Add translation template to the repository
This commit is contained in:
parent
aafd8df413
commit
709504d400
3 changed files with 1359 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -30,7 +30,6 @@ intltool-update
|
||||||
|
|
||||||
po/.intltool-merge-cache
|
po/.intltool-merge-cache
|
||||||
po/POTFILES
|
po/POTFILES
|
||||||
po/midori.pot
|
|
||||||
po/stamp-it
|
po/stamp-it
|
||||||
po/*.gmo
|
po/*.gmo
|
||||||
|
|
||||||
|
|
19
TRANSLATE
19
TRANSLATE
|
@ -2,15 +2,12 @@ This file is licensed under the terms of the expat license, see the file EXPAT.
|
||||||
|
|
||||||
+++ Translating Midori +++
|
+++ Translating Midori +++
|
||||||
|
|
||||||
If you want to translate Midori, you need a few preparations.
|
If you want to translate Midori, here are a few helpful tips.
|
||||||
|
|
||||||
First create/ update the localization template:
|
To update the localization template:
|
||||||
|
|
||||||
./waf build --update-po
|
./waf build --update-po
|
||||||
|
|
||||||
Running this command again will also update all translations
|
|
||||||
as needed, according to changes in the template.
|
|
||||||
|
|
||||||
If you want to add a new language 'aa', create it like this:
|
If you want to add a new language 'aa', create it like this:
|
||||||
|
|
||||||
cd po
|
cd po
|
||||||
|
@ -21,6 +18,18 @@ To check your language 'aa' for errors, do this:
|
||||||
|
|
||||||
msgfmt -c --check-accelerators=_ aa.po
|
msgfmt -c --check-accelerators=_ aa.po
|
||||||
|
|
||||||
|
To test your changes, make sure you install Midori:
|
||||||
|
|
||||||
|
./waf install
|
||||||
|
|
||||||
|
And of course you can uninstall it again after testing:
|
||||||
|
|
||||||
|
./waf uninstall
|
||||||
|
|
||||||
|
To run Midori in a particular language, run it like this:
|
||||||
|
|
||||||
|
LANG=fr_FR.utf8 midori
|
||||||
|
|
||||||
As a general rule, your localization should be based off of the
|
As a general rule, your localization should be based off of the
|
||||||
current state of the git repository.
|
current state of the git repository.
|
||||||
|
|
||||||
|
|
1345
po/midori.pot
Normal file
1345
po/midori.pot
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue