Skip to content

Commit

Permalink
Merge pull request #872 from cvvergara/translating-names-to-same-string
Browse files Browse the repository at this point in the history
Translating names to same string
  • Loading branch information
cvvergara authored Oct 14, 2024
2 parents 46a7676 + 337fbec commit eba29e7
Show file tree
Hide file tree
Showing 246 changed files with 1,939 additions and 2,147 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [de,en,es,fi,fr,hu,ja,it,nl,pt,sv,tr]
language: [de,en,es,fi,fr,hu,ja,it,nl,pt,sv,tr,zh_Hans]

steps:
- uses: actions/checkout@v4
Expand All @@ -48,44 +48,46 @@ jobs:
id: check_files
run: |
# allways processing english, no matter what the change was
if [[ "${{ matrix.language }}" == "en" ]]; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi
# when this file changes all languages are tested
if git diff --name-only HEAD^ HEAD | grep -q '.github/workflows/linkcheck.yml' ; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi
# when there is a change on the way the build is done all languages are tested
if git diff --name-only HEAD^ HEAD | grep -q '^CMakeLists.txt' ; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi
if git diff --name-only HEAD^ HEAD | grep -q '^doc/CMakeLists.txt' ; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi
if git diff --name-only HEAD^ HEAD | grep -q '^doc/conf.py' ; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi
if [[ "${{ matrix.language }}" == "en" ]]; then echo "PROCESS=true" >> $GITHUB_ENV; fi
# if there is a change on the translation
if git diff --name-only HEAD^ HEAD | grep -q "^locale/${{ matrix.language }}" ; then echo "PROCESS=true" >> $GITHUB_ENV; echo "CHK_LINK=true" >> $GITHUB_ENV; exit 0; fi
if git diff --name-only HEAD^ HEAD | grep -q "^locale/${{ matrix.language }}" ; then echo "PROCESS=true" >> $GITHUB_ENV; fi
# if the change involves a link
if git diff HEAD^ "locale/${{ matrix.language }}" | grep "http" | grep -q "+" ; then echo "CHK_LINK=true" >> $GITHUB_ENV; fi
- name: Install python
if: env.PROCESS == 'true'
if: env.PROCESS == 'true' || env.CHK_LINK == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.x'


- name: Install dependencies
if: env.PROCESS == 'true'
if: env.PROCESS == 'true' || env.CHK_LINK == 'true'
run: |
sudo apt-get update
sudo apt-get install -y \
graphviz
graphviz cmake cpanminus
sudo cpanm Text::SimpleTable::AutoWidth
pip install -r requirements.txt
pip list
- name: Configure link checks
if: env.PROCESS == 'true'
if: env.PROCESS == 'true' || env.CHK_LINK == 'true'
run: |
mkdir build
cd build
cmake -DLINKCHECK=ON -DDE=ON -DES=ON -DFI=ON -DFR=ON -DHU=ON -DJA=ON -DIT=ON -DPT=ON -DSV=ON -DTR=ON -DNL=ON -DZH=ON ..
cmake -DHTML=ON -DLINKCHECK=ON -DDE=ON -DES=ON -DFI=ON -DFR=ON -DHU=ON -DJA=ON -DIT=ON -DPT=ON -DSV=ON -DTR=ON -DNL=ON -DZH_HANS=ON ..
- name: Check Links languages
- name: test documentation
if: env.PROCESS == 'true'
run: |
cd build
make html-${{ matrix.language }}
make presentation-html-${{ matrix.language }}
- name: Check Links languages
if: env.CHK_LINK == 'true'
run: |
cd build
make linkcheck-${{ matrix.language }}
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ message(STATUS "OSGeoLiveDoc_DOC_TARGETS = ${OSGeoLiveDoc_DOC_TARGETS}")
# TODO: figure out how to support this
# "el" "hu" "id" "zh")
#---------------------------------------------
set(OSGeoLiveDoc_SUPPORTED_LANGUAGES "de" "es" "fi" "fr" "hu" "it" "ja" "nl" "pt" "sv" "tr" "zh")
set(OSGeoLiveDoc_SUPPORTED_LANGUAGES "de" "es" "fi" "fr" "hu" "it" "ja" "nl" "pt" "sv" "tr" "zh_Hans")
set(OSGeoLiveDoc_ENGLISH "en")

#---------------------------------------------
Expand Down Expand Up @@ -222,7 +222,7 @@ INSERT_INTO_MAP("ru" "Русский")
INSERT_INTO_MAP("sv" "Swidish")
INSERT_INTO_MAP("nl" "Dutch")
INSERT_INTO_MAP("tr" "Turkish")
INSERT_INTO_MAP("zh" "中文")
INSERT_INTO_MAP("zh_Hans" "中文")


message(STATUS "OSGeoLiveDoc_BUILD_LANGUAGES = ${OSGeoLiveDoc_BUILD_LANGUAGES}")
Expand Down
2 changes: 1 addition & 1 deletion doc/quickstart/52nSOS_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ potential starting points are:
* 52°North Sensor Web mailing list: [email protected]
* 52°North `Sensor Web community <https://52north.org/research/scope/geospatial-sensing/>`_
* 52°North `SOS Client <https://sensorweb.demo.52north.org>`__
* 52°North `SOS Web site <https://52north.org/software/software-components/sos/>`_
* 52°North `SOS Web site <https://52north.org/research/scope/research-data-infrastructures/>`_

The development of this version of the 52°North SOS was supported by different
projects, organizations, and persons. More details can be found in the
Expand Down
2 changes: 1 addition & 1 deletion doc/quickstart/actinia_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,4 +473,4 @@ What next?

* Visit the actinia website at `https://actinia.mundialis.de <https://actinia.mundialis.de>`_
* actinia tutorial: `https://neteler.gitlab.io/actinia-introduction <https://neteler.gitlab.io/actinia-introduction>`_
* Further reading: Neteler, M., Gebbert, S., Tawalika, C., Bettge, A., Benelcadi, H., Löw, F., Adams, T, Paulsen, H. (2019). Actinia: cloud based geoprocessing. In Proc. of the 2019 conference on Big Data from Space (BiDS'2019) (pp. 41-44). EUR 29660 EN, Publications Office of the European Union 5, Luxembourg: P. Soille, S. Loekken, and S. Albani (Eds.). (`DOI <https://doi.org/10.5281/zenodo.2631917>`__)
* Further reading: Neteler, M., Gebbert, S., Tawalika, C., Bettge, A., Benelcadi, H., Löw, F., Adams, T, Paulsen, H. (2019). Actinia: cloud based geoprocessing. In Proc. of the 2019 conference on Big Data from Space (BiDS'2019) (pp. 41-44). EUR 29660 EN, Publications Office of the European Union 5, Luxembourg: P. Soille, S. Loekken, and S. Albani (Eds.). (`DOI <https://zenodo.org/records/2631917>`__)
5 changes: 1 addition & 4 deletions doc/quickstart/gdal_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,7 @@ Here we reproject to the Ortho projection.
Note how the poles are clipped? This is because the edges at the pole
can't be reprojected gdalwarp does not read all the data. We can force
gdalwarp to read a bunch of surplus data around chunks as one way to
resolve this. Read more about this in the
`Raster Tutorial <http://web.archive.org/web/20240812222113/https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial>`__.


resolve this.

Mosaicking
==========
Expand Down
Loading

0 comments on commit eba29e7

Please sign in to comment.