This updates each PO file to the date when it was last touched:
for po_file in po/*.po; do
POT_DATE=$(git log -1 --date=short --format=%ad $po_file)
sed -i -e 's/"POT-Creation-Date:.*"/"POT-Creation-Date:
'$POT_DATE'\\n"/' $po_file
done
The dates will be updated with `msgmerge` in the future via
https://github.com/google/mdbook-i18n-helpers/pull/87.
The dates here can be adjusted by hand if needed — the starting point
here only serves as a rough anchor to let us freeze the translations
from further updates. So if you know that you ran `msgmerge` most
recently on a given date, please update the file to that date in a later
PR.
Before, po/ko.po had these statistics:
1323 translated messages, 231 fuzzy translations, 227 untranslated
messages.
Afterwards, the statistics for po/ko.po is:
1898 translated messages, 259 fuzzy translations, 310 untranslated
messages.
The number of translated messages changed from 74% to 77%.
With this change, it becomes important to use the latest version of
mdbook-i18n-helpers when viewing the translation locally. To update to
the latest version, run
cargo install mdbook-i18n-helpers
You will now be able to serve the translation locally.
Part of #330.
* ko: refresh translation for async
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: move translations back to where they belong
Moving them back helps avoid conflicts. The outdated messages can be
cleaned up with `msgmerge` at a later point.
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for error-handling
Part of #925.
* ko: move translations back to where they belong
Moving them back helps avoid conflicts. The outdated messages can be
cleaned up with `msgmerge` at a later point.
* ko: refresh translation for concurrency
Part of #925.
* ko: move translation back to where it belongs
This is likely outdated, but moving it here helps avoid conflicts. The
outdated paragraph can be cleaned up with `msgmerge` at a later point.
* ko: refresh translation for android
Part of #925.
* ko: move translations back to where they belong
Moving them back helps avoid conflicts. The outdated paragraphs can be
cleaned up with `msgmerge` at a later point.
* ko: refresh translation for pattern-matching
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: move translation back to where it belongs
This is likely outdated, but moving it here helps avoid conflicts. The
outdated paragraph can be cleaned up with `msgmerge` at a later point.
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for generics
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: move translation back to where it belongs
This paragraph is likely outdated, but moving it here helps avoid
conflicts. The outdated paragraph can be cleaned up with `msgmerge` at
a later point.
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for modules
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Update po/ko.po
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for testing
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for basic-syntax
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Update po/ko.po
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for welcome
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for control-flow
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for SUMMARY
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for credits
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for running-the-course
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Rebase and move translations to correct spot
I believe the PO file would benefit from a msgmerge run. I’ll let the
translators do this after merging all outstanding translations.
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* ko: refresh translation for enums
Part of #925.
* Apply suggestions from code review
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Update Korean Translation (20230217)
carg install & gen messages.pot & msgmerge
* Resolve fuzzy entries in Korean
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Parse Markdown to support translation.
This upgrades from just splitting Markdown files on double-newlines, to
using a Markdown parser to break them into more appropriate chunks. The
upshot is that code samples are all in one message, lists are bundled
together, and generally it should be easier to translate.
* [WIP] helper to update po files for new translation
* process synthetic input file-by-file
* review comments
* remove temporary code
* fix msgfmt lints
* Update mdbook to 0.4.28
This version contains https://github.com/rust-lang/mdBook/pull/1986 which will allow us to test the code in each translation.
* Fix formatting in Korean translation
The extra code block made `mdbook test` fail.
* Update po/ko.po with the latest changes
```
$ MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
$ msgmerge --update po/ko.po --no-wrap po/messages.pot
```
* Resolve fuzzy translations in Korean
* Translate new texts into Korean
* Copy code blocks as msgstr in Korean
and fix some minor typos.
* Remove #~ lines from ko.po
* Address Jiyong's comments
* Fix typos and translate untranslated messages in Korean
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Resolve fuzzy items in Korean
* Add missing translation in Korean (visibility)
* Translate filesystem in Korean
* Update po/ko.po
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Update po/ko.po
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* Update po/ko.po
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
Co-authored-by: Jiyong Park <55639800+jiyongp@users.noreply.github.com>
* s/블럭/블록
* Add missing translation for Korean
* Fix spacing in Korean
along with typos.
* Add missing msgstr in Korean
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Add missing translation in Korean
* Cosmetic refinement of Korean translation
* typo
* spacing
* newlines
* `_text_` into `*text*` or `*text*`
* removed a few "translation note"(역주)
* Fix typo in Korean
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Run msgmerge --no-wrap --update po/ko.po po/messages.pot
* Be consistent with the line ending. For example, if the original text
ends with ":", so the translation is.
* Remove unnecessary newline characters
If a newline character is from the rendering of the source text, remove
it in the translated text.
* Fix the remaining inconsistencies on line ending chracters
* s/제너릭/제네릭/g
제네릭 seems to be the popular translation for "generic":
제너릭: 120K results
제네릭: 1M results
* s/트레이트/트레잇/g
트레잇 seems to be the popular translation for "trait" at least in the
Rust ecosystem. The Rust book also uses 트레잇.
https://rinthel.github.io/rust-lang-book-ko/appendix-08-glossary.html
* Revive the missing translations for the Translations section
* Resolve remaining fuzzy translations
* Update Korean translation
* Apply --no-wrap for Korean translation
Use `--no-wrap` for Korean translation to avoid unnecessary diffs.
When updating ko.po,
`msgmerge --no-wrap --update po/ko.po po/messages.pot`
Poedit's settings:
- uncheck "line-wrapping"
- uncheck "keep old formatting"
Note that with these settings/options `msgstr` will be still
line-wrapped at `\n`.
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Remove all fuzzy items in Korean translation
* Apply grammar fixes in Korean Translation
of #440, #441
---------
Co-authored-by: Jooyung Han <jooyung@google.com>
* Update Korean translation with latest English
- mdbuild build
- msgmerge --update
- poedit
* Resolve some fuzzy marks
and also add Korean translation for translations.md.
---------
Co-authored-by: Jooyung Han <jooyung@google.com>