mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
PHP strings extraction with rebulid-translations.sh + tx push -s -t
This commit is contained in:
parent
1335a6117b
commit
4a4f578c49
@ -67,6 +67,12 @@ Generating the .pot file from source
|
||||
|
||||
To generate a .pot file for translators on has to use the following command:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ ./scripts/po/rebuild-translations.sh
|
||||
|
||||
That is based on:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ xgettext -f po/pofilelist.txt --keyword=i18n --keyword=translate \
|
||||
@ -81,7 +87,7 @@ Accessing the Transifex files
|
||||
=============================
|
||||
|
||||
Transifex does not have direct repository integration anymore.
|
||||
They have created a command line client namend ``tx``::
|
||||
They have created a command line client named ``tx``::
|
||||
|
||||
$ tx init
|
||||
Creating .tx folder...
|
||||
|
||||
1037
po/cs_CZ.po
1037
po/cs_CZ.po
File diff suppressed because it is too large
Load Diff
1041
po/es_AR.po
1041
po/es_AR.po
File diff suppressed because it is too large
Load Diff
1186
po/es_ES.po
1186
po/es_ES.po
File diff suppressed because it is too large
Load Diff
1157
po/es_MX.po
1157
po/es_MX.po
File diff suppressed because it is too large
Load Diff
1121
po/es_VE.po
1121
po/es_VE.po
File diff suppressed because it is too large
Load Diff
1037
po/id_ID.po
1037
po/id_ID.po
File diff suppressed because it is too large
Load Diff
1055
po/ko_KR.po
1055
po/ko_KR.po
File diff suppressed because it is too large
Load Diff
908
po/messages.pot
908
po/messages.pot
File diff suppressed because it is too large
Load Diff
1138
po/nb_NO.po
1138
po/nb_NO.po
File diff suppressed because it is too large
Load Diff
1179
po/pt_BR.po
1179
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
1173
po/pt_PT.po
1173
po/pt_PT.po
File diff suppressed because it is too large
Load Diff
1205
po/sk_SK.po
1205
po/sk_SK.po
File diff suppressed because it is too large
Load Diff
@ -37,7 +37,7 @@ fi
|
||||
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
|
||||
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1
|
||||
sort ${PODIR}/pofilelist.tmp1 | uniq > ${PODIR}/pofilelist.tmp
|
||||
xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp
|
||||
xgettext --from-code=UTF-8 --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp
|
||||
sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot
|
||||
rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user