Add new Makefile step "merge" and document it.
This commit is contained in:
parent
9734ccdeff
commit
0ef6a727eb
4
Makefile
4
Makefile
|
@ -37,6 +37,10 @@ help:
|
||||||
pot:
|
pot:
|
||||||
xgettext --keyword=__ --keyword=___ --from-code=UTF-8 --output=locale/converse.pot converse.js --package-name=Converse.js --copyright-holder="Jan-Carel Brand" --package-version=0.4 -c --language="python";
|
xgettext --keyword=__ --keyword=___ --from-code=UTF-8 --output=locale/converse.pot converse.js --package-name=Converse.js --copyright-holder="Jan-Carel Brand" --package-version=0.4 -c --language="python";
|
||||||
|
|
||||||
|
merge:
|
||||||
|
find ./locale -maxdepth 1 -mindepth 1 -type d -exec msgmerge {}/LC_MESSAGES/converse.po ./locale/converse.pot -U \;
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
r.js -o build.js
|
r.js -o build.js
|
||||||
|
|
||||||
|
|
|
@ -604,7 +604,13 @@ You can then create or update the PO file for a specific language by doing the f
|
||||||
|
|
||||||
msgmerge ./locale/de/LC_MESSAGES/converse.po ./locale/converse.pot -U
|
msgmerge ./locale/de/LC_MESSAGES/converse.po ./locale/converse.pot -U
|
||||||
|
|
||||||
This PO file is then what gets translated.
|
To do this for ALL languages, run:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
make merge
|
||||||
|
|
||||||
|
The resulting PO file is then what gets translated.
|
||||||
|
|
||||||
If you've created a new PO file, please make sure to add the following
|
If you've created a new PO file, please make sure to add the following
|
||||||
attributes at the top of the file (under *Content-Transfer-Encoding*). They are
|
attributes at the top of the file (under *Content-Transfer-Encoding*). They are
|
||||||
|
|
Loading…
Reference in New Issue
Block a user