Skip to content

Commit ee5b1b7

Browse files
authored
Merge pull request #242 from cvvergara/fix-links-and-locale-update
Fix links and locale update
2 parents 52ffce4 + 6f44136 commit ee5b1b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1485
-2039
lines changed

.github/scripts/update_locale.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ cp build/docs/locale_changes_po.txt build/docs/locale_changes_po_pot.txt
3636
perl -ne '/\/en\// && print' build/docs/locale_changes_po.txt | \
3737
perl -pe 's/(.*)en\/LC_MESSAGES(.*)/$1pot$2t/' >> build/docs/locale_changes_po_pot.txt # .pot files
3838

39+
# Do not create empty translation files
40+
git status locale/es --porcelain | awk 'match($1, "?"){print $2}' | xargs -r rm -rf
41+
git status locale/ja --porcelain | awk 'match($1, "?"){print $2}' | xargs -r rm -rf
42+
3943
# Remove obsolete entries #~ from .po files
4044
bash .github/scripts/remove_obsolete_entries.sh
4145

42-
while read -r f; do git add "$f"; done < build/docs/locale_changes_po_pot.txt
46+
cat build/docs/locale_changes_po_pot.txt | xargs -I {} sh -c "(ls {} >> /dev/null 2>&1 && git add {} )"
4347

4448
popd > /dev/null || exit 1

CMakeLists.txt

Lines changed: 66 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ message(STATUS "PGR_WORKSHOP_DOC_TARGETS = ${PGR_WORKSHOP_DOC_TARGETS}")
221221
# TODO: figure out how to support this
222222
# "el" "hu" "id" "zh")
223223
#---------------------------------------------
224-
set(PGR_WORKSHOP_SUPPORTED_LANGUAGES "es")
224+
set(PGR_WORKSHOP_SUPPORTED_LANGUAGES "es" "ja")
225225
set(PGR_WORKSHOP_ENGLISH "en")
226226

227227
#---------------------------------------------
@@ -231,72 +231,75 @@ option(ALL_LANG
231231
"Set ON|OFF (default=OFF) to build all documentation supported languages
232232
${PGR_WORKSHOP_SUPPORTED_LANGUAGES}" OFF)
233233

234-
foreach(lang ${PGR_WORKSHOP_SUPPORTED_LANGUAGES})
235-
string(TOUPPER ${lang} val)
236-
option(${val}
237-
"Set ON|OFF (default=OFF) build ${lang} Documentation" OFF)
238-
endforeach()
234+
foreach(lang ${PGR_WORKSHOP_SUPPORTED_LANGUAGES})
235+
string(TOUPPER ${lang} val)
236+
option(${val}
237+
"Set ON|OFF (default=OFF) build ${lang} Documentation" OFF)
238+
endforeach()
239239

240-
#---------------------------------------------
241-
# Catching the language options to be build
242-
#---------------------------------------------
243-
list(APPEND PGR_WORKSHOP_BUILD_LANGUAGES ${PGR_WORKSHOP_ENGLISH})
240+
#---------------------------------------------
241+
# Catching the language options to be build
242+
#---------------------------------------------
243+
list(APPEND PGR_WORKSHOP_BUILD_LANGUAGES ${PGR_WORKSHOP_ENGLISH})
244+
foreach(lang ${PGR_WORKSHOP_SUPPORTED_LANGUAGES})
245+
string(TOUPPER ${lang} opt)
246+
if (${opt} OR ALL_LANG)
247+
list(APPEND PGR_WORKSHOP_BUILD_LANGUAGES ${lang})
248+
endif()
249+
endforeach()
250+
251+
252+
#---------------------------------------------
253+
# All languages po files are to be generated
254+
#---------------------------------------------
255+
set (SPHINXINTL_LANGUAGE ${PGR_WORKSHOP_ENGLISH})
256+
if(LOCALE)
244257
foreach(lang ${PGR_WORKSHOP_SUPPORTED_LANGUAGES})
245-
string(TOUPPER ${lang} opt)
246-
if (${opt} OR ALL_LANG)
247-
list(APPEND PGR_WORKSHOP_BUILD_LANGUAGES ${lang})
248-
endif()
258+
set(SPHINXINTL_LANGUAGE "${SPHINXINTL_LANGUAGE},${lang}")
249259
endforeach()
260+
set(PGR_WORKSHOP_LANGUAGES ${PGR_WORKSHOP_ENGLISH})
261+
endif()
250262

251263

252-
#---------------------------------------------
253-
# All languages po files are to be generated
254-
#---------------------------------------------
255-
set (SPHINXINTL_LANGUAGE ${PGR_WORKSHOP_ENGLISH})
256-
if(LOCALE)
257-
foreach(lang ${PGR_WORKSHOP_SUPPORTED_LANGUAGES})
258-
set(SPHINXINTL_LANGUAGE "${SPHINXINTL_LANGUAGE},${lang}")
259-
endforeach()
260-
set(PGR_WORKSHOP_LANGUAGES ${PGR_WORKSHOP_ENGLISH})
261-
endif()
264+
message(STATUS "SPHINXINTL_LANGUAGE ${SPHINXINTL_LANGUAGE}")
262265

263266

264-
#------------------------------------------
265-
# Used to generate the languages bar
266-
#------------------------------------------
267-
MACRO(INSERT_INTO_MAP _KEY _VALUE)
268-
SET("LangMap_${_KEY}" "${_VALUE}")
269-
ENDMACRO(INSERT_INTO_MAP)
270-
271-
INSERT_INTO_MAP("ca" "Català")
272-
INSERT_INTO_MAP("de" "Deutsch")
273-
INSERT_INTO_MAP("el" "Ελληνικά")
274-
INSERT_INTO_MAP("en" "English")
275-
INSERT_INTO_MAP("es" "Español")
276-
INSERT_INTO_MAP("fr" "Français")
277-
INSERT_INTO_MAP("fi" "Suomen kieli")
278-
INSERT_INTO_MAP("hu" "Hungarian")
279-
INSERT_INTO_MAP("id" "Bahasa Indonesia")
280-
INSERT_INTO_MAP("it" "Italiano")
281-
INSERT_INTO_MAP("ja" "日本語")
282-
INSERT_INTO_MAP("ko" "한국어")
283-
INSERT_INTO_MAP("pl" "Polski")
284-
INSERT_INTO_MAP("pt" "Portugus")
285-
INSERT_INTO_MAP("ru" "Русский")
286-
INSERT_INTO_MAP("zh" "中文")
287-
288-
289-
message(STATUS "PGR_WORKSHOP_BUILD_LANGUAGES = ${PGR_WORKSHOP_BUILD_LANGUAGES}")
290-
message(STATUS "SPHINXINTL_LANGUAGE = ${SPHINXINTL_LANGUAGE}")
291-
292-
#---------------------------------------------
293-
#---------------------------------------------
294-
#---------------------------------------------
295-
296-
# The list of projects to be documented
297-
298-
#---------------------------------------------
299-
#---------------------------------------------
300-
#---------------------------------------------
301-
302-
add_subdirectory(docs)
267+
#------------------------------------------
268+
# Used to generate the languages bar
269+
#------------------------------------------
270+
MACRO(INSERT_INTO_MAP _KEY _VALUE)
271+
SET("LangMap_${_KEY}" "${_VALUE}")
272+
ENDMACRO(INSERT_INTO_MAP)
273+
274+
INSERT_INTO_MAP("ca" "Català")
275+
INSERT_INTO_MAP("de" "Deutsch")
276+
INSERT_INTO_MAP("el" "Ελληνικά")
277+
INSERT_INTO_MAP("en" "English")
278+
INSERT_INTO_MAP("es" "Español")
279+
INSERT_INTO_MAP("fr" "Français")
280+
INSERT_INTO_MAP("fi" "Suomen kieli")
281+
INSERT_INTO_MAP("hu" "Hungarian")
282+
INSERT_INTO_MAP("id" "Bahasa Indonesia")
283+
INSERT_INTO_MAP("it" "Italiano")
284+
INSERT_INTO_MAP("ja" "日本語")
285+
INSERT_INTO_MAP("ko" "한국어")
286+
INSERT_INTO_MAP("pl" "Polski")
287+
INSERT_INTO_MAP("pt" "Portugus")
288+
INSERT_INTO_MAP("ru" "Русский")
289+
INSERT_INTO_MAP("zh" "中文")
290+
291+
292+
message(STATUS "PGR_WORKSHOP_BUILD_LANGUAGES = ${PGR_WORKSHOP_BUILD_LANGUAGES}")
293+
message(STATUS "SPHINXINTL_LANGUAGE = ${SPHINXINTL_LANGUAGE}")
294+
295+
#---------------------------------------------
296+
#---------------------------------------------
297+
#---------------------------------------------
298+
299+
# The list of projects to be documented
300+
301+
#---------------------------------------------
302+
#---------------------------------------------
303+
#---------------------------------------------
304+
305+
add_subdirectory(docs)

docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (LOCALE)
6767
"${CMAKE_CURRENT_BINARY_DIR}"
6868
"${CMAKE_SOURCE_DIR}/locale/pot"
6969

70-
COMMAND sphinx-intl update -d ${CMAKE_SOURCE_DIR}/locale -l en > locale_changes.txt
70+
COMMAND sphinx-intl update -d ${CMAKE_SOURCE_DIR}/locale -l ${SPHINXINTL_LANGUAGE} > locale_changes.txt
7171
DEPENDS "conf.py"
7272

7373
COMMENT "Generating POT & PO files ..."

docs/advanced/chapter-12.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ Also a new table containing the vertices information was created:
163163
* Additional columns are for analyzing the topology.
164164

165165
Now we are ready for our first routing query with
166-
:ref:`basic/pedestrian:pgr_dijkstra`
166+
`pgr_dijkstra <https://docs.pgrouting.org/latest/en/pgr_dijkstra.html>`__
167+
or any other pgRouting query.
168+
167169

168170

169171
Analyze and Adjust the Routing Network Topology

docs/appendix/appendix-2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To be up-to-date with changes and improvements
5252
sudo apt-get update & sudo apt-get upgrade
5353
5454
To avoid permission denied errors for local users you can set connection method
55-
to ``trust`` in ``/etc/postgresql/<version>/main/pg_hba.conf`` and restart
55+
to ``trust`` in ``/etc/postgresql/<version>/main/pg_hba.conf`` and restart
5656
PostgreSQL server with ``sudo service postgresql restart``.
5757

5858
Following the example with PostgreSQL 10:

docs/appendix/appendix-3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ automatically and creates tables for feature types and road classes.
2020
* Documentation: |osm2pgrouting-wiki|
2121

2222
.. note::
23-
There are some limitations, especially regarding the network size. The way to
23+
There are some limitations, especially regarding the network size. The way to
2424
handle large data sets is to current version of osm2pgrouting needs to load
2525
all data into memory, which makes it fast but also requires a lot or memory
2626
for large datasets. An alternative tool to osm2pgrouting without the network

docs/basic/data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Upload data to the database
107107

108108
The next step is to run ``osm2pgrouting`` converter, which is a command line
109109
tool that inserts the data in the database, "ready" to be used with pgRouting.
110-
Additional information about ``osm2pgrouting`` can be found at the :ref:`osm2pgrouting`
110+
Additional information about ``osm2pgrouting`` can be found at the :doc:`../appendix/appendix-3`
111111

112112
For this step:
113113

docs/basic/vehicle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A query for vehicle routing generally differs from routing for pedestrians:
3333
* Euros
3434
* Pesos
3535
* Dollars
36-
* CO\ :sub:`2`\ emissions
36+
* CO\ :sub:`2`\ emissions
3737
* Wear and tear on the vehicle, etc.
3838

3939
* The ``reverse_cost`` attribute must be taken into account on two way streets.

docs/general-intro/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Introduction
1313
|pgrouting-web| adds routing functionality to |postgis-web|.
1414

1515
Please see the :doc:`contents <../index>` for full content of
16-
@WORKSHOP_AREA@ workshop. This workshop covers two levels for using
16+
@WORKSHOP_AREA@ workshop. This workshop covers two levels for using
1717
pgRouting: `Basic`_ and `Advanced`_.
1818

1919
Basic
@@ -59,19 +59,19 @@ Aknowledments
5959
.. image:: /images/logos/paragon.png
6060
:alt: Paragon Corporation
6161
:width: 200
62-
:target: |paragon|
62+
:target: https://www.paragoncorporation.com/
6363

6464
.. image:: /images/logos/erosion.png
6565
:alt: Paragon Corporation
6666
:width: 200
67-
:target: |erosion|
67+
:target: https://www.erosion.dev/
6868

6969
.. rubric:: Developers & presenters of @WORKSHOP_AREA@ workshop:
7070

7171
* *Vicky Vergara* Is a freelance developer from Mexico. She's the core developer
7272
of pgRouting project and GSoC Mentor. OSGeo Charter member.
7373

74-
* *Ramón Ríos* Is a freelance developer from Mexico. Lead engenieer for
74+
* *Ramón Ríos* Is a freelance developer from Mexico. Lead engenieer for
7575
ParkUpFront
7676

7777

docs/general-intro/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ every map a silo of data and effort."
100100

101101
(Source: https://wiki.openstreetmap.org/wiki/Press)
102102

103-
OpenStreetMap is an adequate data source for pgRouting, because it has no
103+
OpenStreetMap is an adequate data source for pgRouting, because it has no
104104
technical restrictions in terms of processing the data. Data availability still
105105
varies from country to country, but the worldwide coverage is improving day by
106106
day.

0 commit comments

Comments
 (0)