mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
doc: add commands to update .po files (developer's guide)
This commit is contained in:
@@ -1093,6 +1093,15 @@ $ msginit -i weechat.pot -l nl_NL -o nl.po
|
||||
Base language for WeeChat is English, so you must of course perfectly understand
|
||||
English in order to translate to your language.
|
||||
|
||||
After changes in sources, you can regenerate all translations files: run this
|
||||
command in the CMake "build" directory:
|
||||
|
||||
----
|
||||
$ make translations && make update-po
|
||||
----
|
||||
|
||||
Then you can edit .po files (if you can translate in a language).
|
||||
|
||||
When done, you *have* to check your file with script _msgcheck.py_
|
||||
(https://github.com/flashcode/msgcheck):
|
||||
|
||||
@@ -1100,6 +1109,8 @@ When done, you *have* to check your file with script _msgcheck.py_
|
||||
$ msgcheck.py xx.po
|
||||
----
|
||||
|
||||
And then you can recompile WeeChat to use the new translations.
|
||||
|
||||
[[build_autogen_files]]
|
||||
===== Build auto-generated files
|
||||
|
||||
|
||||
@@ -1111,6 +1111,16 @@ $ msginit -i weechat.pot -l nl_NL -o nl.po
|
||||
La langue de base pour WeeChat est l'anglais, donc vous devez évidemment
|
||||
comprendre parfaitement l'anglais pour traduire vers votre langue.
|
||||
|
||||
Après des changements dans les sources, vous pouvez regénérer toutes les
|
||||
traductions : lancez cette commande dans le répertoire "build" de CMake :
|
||||
|
||||
----
|
||||
$ make translations && make update-po
|
||||
----
|
||||
|
||||
Vous pouvez alors éditer les fichiers .po (si vous pouvez traduire dans une
|
||||
langue).
|
||||
|
||||
Une fois terminé, vous *devez* vérifier votre fichier avec le script
|
||||
_msgcheck.py_ (https://github.com/flashcode/msgcheck) :
|
||||
|
||||
@@ -1118,6 +1128,8 @@ _msgcheck.py_ (https://github.com/flashcode/msgcheck) :
|
||||
$ msgcheck.py xx.po
|
||||
----
|
||||
|
||||
Et vous pouvez alors recompiler WeeChat pour utiliser les nouvelles traductions.
|
||||
|
||||
[[build_autogen_files]]
|
||||
===== Construire les fichiers auto-générés
|
||||
|
||||
|
||||
@@ -1092,6 +1092,17 @@ $ msginit -i weechat.pot -l nl_NL -o nl.po
|
||||
WeeChat
|
||||
の翻訳元言語は英語です、翻訳する場合は必ず英語から翻訳してください
|
||||
|
||||
// TRANSLATION MISSING
|
||||
After changes in sources, you can regenerate all translations files: run this
|
||||
command in the CMake "build" directory:
|
||||
|
||||
----
|
||||
$ make translations && make update-po
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Then you can edit .po files (if you can translate in a language).
|
||||
|
||||
翻訳が完了したら、*必ず* _msgcheck.py_ (https://github.com/flashcode/msgcheck)
|
||||
スクリプトを使ってファイルの内容を確認してください:
|
||||
|
||||
@@ -1099,6 +1110,9 @@ WeeChat
|
||||
$ msgcheck.py xx.po
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
And then you can recompile WeeChat to use the new translations.
|
||||
|
||||
[[build_autogen_files]]
|
||||
===== 自動生成ファイルを作成する
|
||||
|
||||
|
||||
Reference in New Issue
Block a user