-
-
Notifications
You must be signed in to change notification settings - Fork 33
Creating a new language
Vicky Vergara edited this page Oct 20, 2018
·
7 revisions
IMPORTANT
- Only publish on the new language the 100% translated files
- Transifex only has the files in
master
branch - This instructions are based on the Japanese language
- All instructions & directory trajectories are from the
root
of the repository
- Go to master branch
git checkout master
- Download the translation
bash tools/transifex/download_translation.sh ja
- Build the Japanese documentation
bash tools/transifex/build_translations.sh ja
- Preview the generated translation
The generated documentation can be found on _build/doc/html/ja
, use your favorite browser
- Workshop site is on branch
gh-pages
git checkout gh-pages
- Copy the documentation to the latest version directory
cp -r _build/doc/html/ja 2.5
- add, commit & push
git add 2.5/ja
git commit -m '<meaningful message>'
git push
- Edit the
index.html
and add the lines to the html list that corresponds:
<li>
<a class="reference internal" href="2.5/en/index.html">English</a> ,
<a class="reference internal" href="2.5/ja/index.html">日本語</a>
</li>
- Additional languages are added to that section.
- Repeat step 1 for each
<lang>-index.html
found. - Check navigation
- Use your favorite browser to navigate on the local computer
- add, commit & push
git commit -a -m '<meaningful message>'
git push
- Edit
index.html
and add the new language,
<p class="rubric">Read me in:</p>
<a class="reference internal" href="index.html">English</a>
- <a class="reference internal" href="ja-index.html">日本語</a>
- <a class="reference internal" href="<lang>-index.html">Language name</a>
- Repeat the step for each
<lang>-index.html
- Create a new
<lang>-index.html
file (example Japanese)
cp index.html ja-index.html
- Update links
- Edit
ja-index.html
file - Change
en
toja
where it applies, example:href="2.5/en/index.html"
->href="2.5/ja/index.html"
if2.5/ja
directory exists.
- Test navigation
- check navigation using your favorite browser
- add commit & push
git add ja-index.html
git commit -a -m '<meaningful message>'
git push
- Translate manually to Japanese
- Translate
ja-index.html
file
- add, commit & push
git commit -a -m '<meaningful message>'
git push
Maintained by the pgRouting Community
Website: https://pgrouting.org