po/README: document miscellaneous topics mentioned by l10n coordinator
cover po/README: document miscellaneous topics mentioned by l10n coordinator
Document various topics mentioned by l10n coordinator (Jiang Xin) when pulling l10n contributions.
Bagas Sanjaya (3):
po/README: document PO helper
po/README: document "core translation"
po/README: document l10n conventions
po/README | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+)
Signature · 1 line
2.25.1
PATCH 1/3 po/README: document PO helper
Document about PO helper script (po-helper.sh). It covers about installing the script and short usage examples.
--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
po/README +22 -0
@@ -286,3 +286,25 @@ Testing marked strings Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specifically +written for the purpose of Git l10n workflow. + +To install the script, checkout "po-helper" branch, then copy +utils/po-helper.sh to somewhere on $PATH, and mark it executable. + +Below are the usage examples: + + - To start new language translation: + po-helper.sh init XX.po + - To update PO file: + po-helper.sh update XX.po + - To syntax check: + po-helper.sh check XX.po + +Run po-helper.sh without arguments for usage help.
Signature · 1 line
2.25.1
Re: [PATCH 1/3] po/README: document PO helper
Quoted 14 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document about PO helper script (
po-helper.sh). It covers about installing the script and short usage examples.Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)po/README +0
-0
po/README Testing marked strings · line 295
Quoted 10 lines
po/README +7
-0@@ -286,3 +286,25 @@ Testing marked strings Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specifically
It's better to rename the script to other name without the suffix ".sh", so we can reimplement it in other programming language. Maybe we can rename it to git-po-helper, and host this helper in a separate project on GitHub.
Quoted 18 lines
po/README +15
-1+written for the purpose of Git l10n workflow. + +To install the script, checkout "po-helper" branch, then copy +utils/po-helper.sh to somewhere on $PATH, and mark it executable. + +Below are the usage examples: + + - To start new language translation: + po-helper.sh init XX.po + - To update PO file: + po-helper.sh update XX.po + - To syntax check: + po-helper.sh check XX.po + +Run po-helper.sh without arguments for usage help. --2.25.1
Re: [PATCH 1/3] po/README: document PO helper
Quoted 16 lines · Jiang Xin
Quoted 15 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document about PO helper script (
po-helper.sh). It covers about installing the script and short usage examples.Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)po/README +0
-0@@ -286,3 +286,25 @@ Testing marked strings
Quoted 14 lines
po/README Testing marked strings · line 295
Quoted 9 lines
po/README +7
-0Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specificallyIt's better to rename the script to other name without the suffix ".sh", so we can reimplement it in other programming language. Maybe we can rename it to
git-po-helper, and host this helper in a separate project on GitHub.
It might be a good move in the longer term, but if the po-helper.sh is working well enough to fill the need of i18n/l10n team right now, I think documenting the status quo would be a good way to help the contributors immediately.
And when we reimplement it (if that is desirable---I have no opinion myself), we certainly would want to update this part of the doc to use the name of the rewritten tool.
In any case, I expect that you to be the main reviewer on this topic and you will feed me the final commits, just like any other change in the po/* area via a pull request. In other words, I may have input to the discussion on list, but I won't be applying the result myself---I'll be pulling from git://github.com/git-l10n/git-po.git
repository instead.
Thanks.
Re: [PATCH 1/3] po/README: document PO helper
Quoted 42 lines · Junio C Hamano
Quoted 16 lines · Jiang Xin
Quoted 15 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document about PO helper script (
po-helper.sh). It covers about installing the script and short usage examples.Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)po/README +0
-0@@ -286,3 +286,25 @@ Testing marked stringsQuoted 14 lines
po/README Testing marked strings · line 295
Quoted 9 lines
po/README +7
-0Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specificallyIt's better to rename the script to other name without the suffix ".sh", so we can reimplement it in other programming language. Maybe we can rename it to
git-po-helper, and host this helper in a separate project on GitHub.It might be a good move in the longer term, but if the
po-helper.shis working well enough to fill the need of i18n/l10n team right now, I think documenting the status quo would be a good way to help the contributors immediately.And when we reimplement it (if that is desirable---I have no opinion myself), we certainly would want to update this part of the doc to use the name of the rewritten tool.
Quoted 9 lines
In any case, I expect that you to be the main reviewer on this topic and you will feed me the final commits, just like any other change in the po/* area via a pull request. In other words, I may have input to the discussion on list, but I won't be applying the result myself---I'll be pulling from
git://github.com/git-l10n/git-po.git
repository instead.Thanks.
Grazie Junio. However, I'm more of writing documentation rather than contributing code, so I will help for the documentation and usage testing. But anyways, we can ask for help from other l10n contributors who are more proficient at coding.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Re: [PATCH 1/3] po/README: document PO helper
Quoted 52 lines · Bagas Sanjaya <[email protected]> 于2021年3月12日周五 下午7:57写道:
Quoted 49 lines · Junio C Hamano
Quoted 16 lines · Jiang Xin
Quoted 15 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document about PO helper script (
po-helper.sh). It covers about installing the script and short usage examples.Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)po/README +0
-0@@ -286,3 +286,25 @@ Testing marked stringsQuoted 14 lines
po/README Testing marked strings · line 295
Quoted 9 lines
po/README +7
-0Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specificallyIt's better to rename the script to other name without the suffix ".sh", so we can reimplement it in other programming language. Maybe we can rename it to
git-po-helper, and host this helper in a separate project on GitHub.It might be a good move in the longer term, but if the
po-helper.shis working well enough to fill the need of i18n/l10n team right now, I think documenting the status quo would be a good way to help the contributors immediately.And when we reimplement it (if that is desirable---I have no opinion myself), we certainly would want to update this part of the doc to use the name of the rewritten tool.
In any case, I expect that you to be the main reviewer on this topic and you will feed me the final commits, just like any other change in the po/* area via a pull request. In other words, I may have input to the discussion on list, but I won't be applying the result myself---I'll be pulling from
git://github.com/git-l10n/git-po.git
repository instead.
Quoted 8 lines
Quoted 2 lines
Thanks.
Grazie Junio. However, I'm more of writing documentation rather than contributing code, so I will help for the documentation and usage testing. But anyways, we can ask for help from other l10n contributors who are more proficient at coding.
Hi Bagas,
I created a new repository at
https://github.com/git-l10n/git-po-helper that contains a new helper program git-po-helper to replace the obsolete po-helper.sh script.
The new git-po-helper program can check character encoding of the commit log, check author/committer datetime, and check format of po/TEAMS, etc., in addition to the conventions listed in README of the new project "git-l10n/git-po-helper".
You can update your patches according to this change.
All l10n contributors can use this new helper to check their l10n contributions.
BTW, with the help of Daniel, a google group named git-l10n is created for discussion on git-l10n. This mail is also cc to this email
address: [email protected] .
--
Jiang Xin
Re: [PATCH 1/3] po/README: document PO helper
Quoted 73 lines · Jiang Xin <[email protected]> 于2021年5月13日周四 下午11:40写道:
Quoted 52 lines · Bagas Sanjaya <[email protected]> 于2021年3月12日周五 下午7:57写道:
Quoted 49 lines · Junio C Hamano
Quoted 16 lines · Jiang Xin
Quoted 15 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document about PO helper script (
po-helper.sh). It covers about installing the script and short usage examples.Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)po/README +0
-0@@ -286,3 +286,25 @@ Testing marked stringsQuoted 14 lines
po/README Testing marked strings · line 295
Quoted 9 lines
po/README +7
-0Git's tests are run under LANG=C LC_ALL=C. So the tests do not need be changed to account for translations as they're added. + + +PO Helper +--------- + +To make maintaining XX.po file easier, the l10n coordinator created +po-helper.sh script. It is wrapper to gettext suite, specificallyIt's better to rename the script to other name without the suffix ".sh", so we can reimplement it in other programming language. Maybe we can rename it to
git-po-helper, and host this helper in a separate project on GitHub.It might be a good move in the longer term, but if the
po-helper.shis working well enough to fill the need of i18n/l10n team right now, I think documenting the status quo would be a good way to help the contributors immediately.And when we reimplement it (if that is desirable---I have no opinion myself), we certainly would want to update this part of the doc to use the name of the rewritten tool.
In any case, I expect that you to be the main reviewer on this topic and you will feed me the final commits, just like any other change in the po/* area via a pull request. In other words, I may have input to the discussion on list, but I won't be applying the result myself---I'll be pulling from
git://github.com/git-l10n/git-po.git
repository instead.Quoted 8 lines
Quoted 2 lines
Thanks.
Grazie Junio. However, I'm more of writing documentation rather than contributing code, so I will help for the documentation and usage testing. But anyways, we can ask for help from other l10n contributors who are more proficient at coding.
Hi Bagas,
I created a new repository at
https://github.com/git-l10n/git-po-helper that contains a new helper programgit-po-helperto replace the obsoletepo-helper.shscript.The new
git-po-helperprogram can check character encoding of the commit log, check author/committer datetime, and check format ofpo/TEAMS, etc., in addition to the conventions listed in README of the new project "git-l10n/git-po-helper".
Quoted 7 lines
You can update your patches according to this change.
All l10n contributors can use this new helper to check their l10n contributions.
BTW, with the help of Daniel, a google group named git-l10n is created for discussion on git-l10n. This mail is also cc to this email
address: [email protected] .
Based on pull request form Bagas, that made some nice changes for "po/README", I recreated a new pull request #525 on GitHub:
https://github.com/git-l10n/git-po/pull/525
Please help to review. This pull request contains the following commits:
+ 826abe532f l10n: README: note on fuzzy translations
+ 93f2050952 l10n: README: document l10n conventions
+ 1466dc3b86 l10n: README: document "core translation"
+ 06d662e594 l10n: README: document git-po-helper
+ a5724c83a2 l10n: README: add file extention ".md"
You can download the commits using command:
git fetch https://github.com/git-l10n/git-po refs/pull/525/head
--
Jiang Xin
PATCH 2/3 po/README: document "core translation"
In reply to Bagas SanjayaWe now expect new language translations to have core subset of 5000+ messages translated for these to be merged. If it hasn't been done yet, do so by first generate core PO, then do translation work there, merge it back to main PO (XX.po), and fix any "fuzzy" errors.
--- po/README | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)
po/README +36 -0
@@ -39,6 +39,42 @@ coordinate among yourselves and nominate the team leader for your language, so that the l10n coordinator only needs to interact with one person per language. +Because there are now over 5000 messages that needs to be translated, +we expect to complete translation for core subset of messages before +a new language translation can be merged. See "Core translation" +below. + + +Core translation +---------------- +The core translation file, core-XX.po, covers some of commonly used +commands: + + - wt-status.c + - builtin/clone.c + - builtin/checkout.c + - builtin/index-pack.c + - builtin/push.c + - builtin/reset.c + +To generate core-XX.po, install the helper script (see "PO Helper") +and check the main PO file: + + cd po/ + po-helper.sh check id.po + +This will generate po/core-XX.po and corresponding po/core-XX.pot +template. Now complete the translation in po/core-XX.po. + +When it is completed, merge core translation back to main PO file: + + msgcat core-XX.po XX.po -s -o /tmp/XX.po + mv /tmp/XX.po XX.po + msgmerge --add-location --backup=off -U XX.po git.pot + +Fix any "fuzzy" errors that occurs, such as misplaced translated +messages and duplicate messages. + Translation Process Flow ------------------------
Signature · 1 line
2.25.1
Re: [PATCH 2/3] po/README: document "core translation"
Quoted 32 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
We now expect new language translations to have core subset of 5000+ messages translated for these to be merged. If it hasn't been done yet, do so by first generate core PO, then do translation work there, merge it back to main PO (XX.po), and fix any "fuzzy" errors.
Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)po/README +13
-0@@ -39,6 +39,42 @@ coordinate among yourselves and nominate the team leader for your language, so that the l10n coordinator only needs to interact with one person per language. +Because there are now over 5000 messages that needs to be translated, +we expect to complete translation for core subset of messages before +a new language translation can be merged. See "Core translation" +below. + + +Core translation +---------------- +The core translation file, core-XX.po, covers some of commonly used +commands: + + - wt-status.c + - builtin/clone.c
po/README coordinate among yourselves and nominate the team leader for your · line 64
Quoted 10 lines
po/README +10
-0+ - builtin/checkout.c + - builtin/index-pack.c + - builtin/push.c + - builtin/reset.c + +To generate core-XX.po, install the helper script (see "PO Helper") +and check the main PO file: + + cd po/ + po-helper.sh check id.po
s/id.po/XX.po/
Quoted 19 lines
po/README +13
-1+ +This will generate po/core-XX.po and corresponding po/core-XX.pot +template. Now complete the translation in po/core-XX.po. + +When it is completed, merge core translation back to main PO file: + + msgcat core-XX.po XX.po -s -o /tmp/XX.po + mv /tmp/XX.po XX.po + msgmerge --add-location --backup=off -U XX.po git.pot + +Fix any "fuzzy" errors that occurs, such as misplaced translated +messages and duplicate messages. + Translation Process Flow ------------------------ --2.25.1
PATCH 3/3 po/README: document l10n conventions
In reply to Bagas SanjayaDocument things that l10n contributors must folow.
--- po/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
po/README +21 -0
@@ -344,3 +344,24 @@ Below are the usage examples: po-helper.sh check XX.po Run po-helper.sh without arguments for usage help. + + +Conventions +----------- + +There are some conventions that l10n contributors must follow: + + 1. The subject of each commit should be prefixed with `l10n: `. + 2. The length of commit log title (subject) should be less than 50 + characters, and the length of other lines (commit log body) + should be no more than 72 characters. + 3. Add "Signed-off-by" trailer to your commit log, like other + commits in Git. You can automatically add the trailer by + committing with `git commit -s`. + 4. Check syntax with `msgfmt` or `po-helper.sh check` before + committing. + 5. Squash trivial commits to make history clear. + 6. Do NOT edit files outside po/ directory. + 7. Other subsystems ("git-gui", "gitk", and Git itself) have their + own workflow. See Documentation/SubmittingPatches if you want + to make contributions to these subsystems.
Signature · 1 line
2.25.1
Re: [PATCH 3/3] po/README: document l10n conventions
Quoted 6 lines · Bagas Sanjaya
Document things that l10n contributors must folow.
Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
Oh oh oh, typo there. folow -> follow.
Quoted 30 lines
po/README +21
-0@@ -344,3 +344,24 @@ Below are the usage examples: po-helper.sh check XX.po Run po-helper.sh without arguments for usage help. + + +Conventions +----------- + +There are some conventions that l10n contributors must follow: + + 1. The subject of each commit should be prefixed with `l10n: `. + 2. The length of commit log title (subject) should be less than 50 + characters, and the length of other lines (commit log body) + should be no more than 72 characters. + 3. Add "Signed-off-by" trailer to your commit log, like other + commits in Git. You can automatically add the trailer by + committing with `git commit -s`. + 4. Check syntax with `msgfmt` or `po-helper.sh check` before + committing. + 5. Squash trivial commits to make history clear. + 6. Do NOT edit files outside po/ directory. + 7. Other subsystems ("git-gui", "gitk", and Git itself) have their + own workflow. See Documentation/SubmittingPatches if you want + to make contributions to these subsystems.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Re: [PATCH 3/3] po/README: document l10n conventions
In reply to Bagas SanjayaQuoted 27 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document things that l10n contributors must folow.
Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)po/README +11
-0@@ -344,3 +344,24 @@ Below are the usage examples: po-helper.sh check XX.po Run po-helper.sh without arguments for usage help. + + +Conventions +----------- + +There are some conventions that l10n contributors must follow: + + 1. The subject of each commit should be prefixed with `l10n: `. + 2. The length of commit log title (subject) should be less than 50 + characters, and the length of other lines (commit log body) + should be no more than 72 characters.
po/README Below are the usage examples: · line 367
Quoted 10 lines
po/README +10
-0+ 3. Add "Signed-off-by" trailer to your commit log, like other + commits in Git. You can automatically add the trailer by + committing with `git commit -s`. + 4. Check syntax with `msgfmt` or `po-helper.sh check` before + committing. + 5. Squash trivial commits to make history clear. + 6. Do NOT edit files outside po/ directory. + 7. Other subsystems ("git-gui", "gitk", and Git itself) have their + own workflow. See Documentation/SubmittingPatches if you want + to make contributions to these subsystems.
This patch 3/3 can be merged before we reimplement the utility git-po-helper.
--
Jiang Xin
Re: [PATCH 3/3] po/README: document l10n conventions
Quoted 41 lines · Jiang Xin
Quoted 27 lines · Bagas Sanjaya <[email protected]> 于2021年3月11日周四 下午8:56写道:
Document things that l10n contributors must folow.
Signed-off-by Bagas Sanjaya <[email protected]>--- po/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)po/README +11
-0@@ -344,3 +344,24 @@ Below are the usage examples: po-helper.sh check XX.po Run po-helper.sh without arguments for usage help. + + +Conventions +----------- + +There are some conventions that l10n contributors must follow: + + 1. The subject of each commit should be prefixed with `l10n: `. + 2. The length of commit log title (subject) should be less than 50 + characters, and the length of other lines (commit log body) + should be no more than 72 characters.po/README Below are the usage examples: · line 367
Quoted 10 lines
po/README +10
-0+ 3. Add "Signed-off-by" trailer to your commit log, like other + commits in Git. You can automatically add the trailer by + committing with `git commit -s`. + 4. Check syntax with `msgfmt` or `po-helper.sh check` before + committing. + 5. Squash trivial commits to make history clear. + 6. Do NOT edit files outside po/ directory. + 7. Other subsystems ("git-gui", "gitk", and Git itself) have their + own workflow. See Documentation/SubmittingPatches if you want + to make contributions to these subsystems.This patch 3/3 can be merged before we reimplement the utility
git-po-helper.
Quoted 3 lines
--
Jiang Xin
Did you mean this patch can be sent separated from this series?
Signature · 1 line
An old man doll... just what I always wanted! - Clara