This splits translated code blocks into individual messages, thus
preserving the translation after #1460.
This removes ~6k unnecessary lines from the PO file.
With #1460 merged, we took away the possibility of translating variable,
struct, and function names in the code snippets.
This broke the Brazilian Portuguese translation because it _does_
translate those things quite frequently! This PR reverts the
translations back to the English original.
I tried to also update the surrounding messages to use the English
words: so when a slide talked about a `nome` variable before, it now
uses `name` instead. We don’t have automated tests for this, so I hope I
did this correctly.
Hello, JA translation team! (#652) I've just included some translations
for the "control-flow" section (chapter 8). I'm open to any feedback or
suggestions. Thank you in advance!
Part of #671
- Translate Part `3` , `4` , `5` ,`6.1`, `6.2`, `6.3`
---------
Co-authored-by: Hamid R. K. Pisghadam <kaveh@riseup.net>
Co-authored-by: Kaveh <hamidrkp@riseup.net>
Part of #671
Summary of changes:
- Translate Part 1,2
- Recheck `#, fuzzy` lines and synced their translations
Co-authored-by: Kaveh <hamidrkp@riseup.net>
Part of #671
**Summary of changes:**
- Persian version of book messages synced to original book
- Translate sidebar menu
* I just translate and double check until `# src/SUMMARY.md:333` part*
Still a long way to go.
Also added a small QoL improvement to the translators instructions.
---------
Co-authored-by: Martin Geisler <martin@geisler.net>
I formatted the translation file on WSL. Worried about being failed
again, so I just improved some translations.
Update: Things seems very nice and I will continue my translating work.
Translation contributors who use Windows OS must use WSL instead of
using `dprint fmt` command on Windows itself, until the resolution that
can make the experience on Windows equal to Linux emerged.
To learn more about that, see this issue: #1394 .
---------
Co-authored-by: Emma Li <liyu1204@gmail.com>
Professional translations for missing day 2 entries #684
---------
Co-authored-by: Martin Geisler <martin@geisler.net>
Co-authored-by: Emma Li <liyu1204@gmail.com>
Refresh the po file for Japanese translation. Part of google#652.
Steps taken:
1. MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' \
mdbook build -d po
1. msgmerge --update po/ja.po po/messages.pot
Found an inconsistency in `fr.po` file, this PR corrects it.
See line 165 & 169 in `fr.po`.
---------
Signed-off-by: Oscar <71343264+0scvr@users.noreply.github.com>
This enforces a consistent formatting for the PO files. The goal of this
is to avoid large diffs due to random and unnecessary reformatting.
We use the format of `msgcat`: this is also waht `msgmerge` produces and
it’s easy to replicate for people by installing Gettext and running
`dprint fmt`.
This is a follow-up to #1351 which started enforcing that the `msgid`
fields don’t change due to reformatting in a PR.
If this turns out to be cumbersome, then we can disable it again.
Professional translations for missing exercise solutions entries #324.
This is a new attempt, after fixing the original .po file (#1312).
The diff is large mostly because of the normalization.
Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
Professional translations for missing day 3 entries #324.
This is a new attempt, after fixing the original .po file (#1312).
The diff is large mostly because of the normalization.
Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
Professional translations for missing day 2 entries #324
This is a new attempt, after fixing the original .po file
(https://github.com/google/comprehensive-rust/pull/1312).
The diff is large mostly because of the normalization (line breaks,
etc.)
Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
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.
Hi, JA project folks (#652), here's a MR for the chapter "Control Flow".
When you have some time, could you review the diff? Any feedback or
suggestions are greatly appreciated. Thank you in advance.
Hi, JA translation folks (#652), here's a MR for the chapter "Send and
Sync". This chapter is particularly interesting and contains very
rust-specific concepts which seems unfamiliar to me. Any feedback and
suggestions are welcome :)
Hi all!
This CL fixes#1093:
* Avoids including current false-positives in the checking of typos
* Excludes localization-related files, as `typos` works with
English words
* Fixes existing typos caught in the repo
Tested this in CI with a typo and it showed up in the list of actions!
---------
Co-authored-by: Martin Geisler <martin@geisler.net>
I'm preparing several PRs to submit the Spanish translation, but I need
first to normalize the existing es.po file, otherwise the PRs will be
humongous.
Part of #330, #282, #284.
Refresing Brazilian Portuguese translation via msgmerge with new version
of mdbook-i18n-helpers and agreed Poedit settings. Issue #317, keeping
pace with #1104.
Before, po/zh-CN.po had these statistics:
693 translated messages, 90 fuzzy translations, 998 untranslated
messages.
Afterwards, the statistics for po/zh-CN.po is:
1079 translated messages, 121 fuzzy translations, 1267 untranslated
messages.
The number of translated messages changed from 39% to 44%.
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.
Before, po/tr.po had these statistics:
164 translated messages, 6 fuzzy translations, 1611 untranslated
messages.
Afterwards, the statistics for po/tr.po is:
165 translated messages, 6 fuzzy translations, 2296 untranslated
messages.
The number of translated messages changed from 9% to 7%.
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.
Before, po/uk.po had these statistics:
63 translated messages, 15 fuzzy translations, 1703 untranslated
messages.
Afterwards, the statistics for po/uk.po is:
104 translated messages, 19 fuzzy translations, 2344 untranslated
messages.
The number of translated messages stayed at 4%.
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.
Before, po/ja.po had these statistics:
351 translated messages, 32 fuzzy translations, 1398 untranslated
messages.
Afterwards, the statistics for po/ja.po is:
472 translated messages, 46 fuzzy translations, 1949 untranslated
messages.
The number of translated messages changed from 20% to 19%.
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.
Before, po/pl.po had these statistics:
441 translated messages, 713 fuzzy translations, 627 untranslated
messages.
Afterwards, the statistics for po/pl.po is:
666 translated messages, 882 fuzzy translations, 919 untranslated
messages.
The number of translated messages changed from 25% to 27%.
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.
Before, po/id.po had these statistics:
32 translated messages, 4 fuzzy translations, 1745 untranslated
messages.
Afterwards, the statistics for po/id.po is:
32 translated messages, 3 fuzzy translations, 2432 untranslated
messages.
The number of translated messages changed from 2% to 1%.
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.
Before, po/fr.po had these statistics:
312 translated messages, 984 fuzzy translations, 485 untranslated
messages.
Afterwards, the statistics for po/fr.po is:
343 translated messages, 1363 fuzzy translations, 761 untranslated
messages.
The number of translated messages changed from 18% to 14%.
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.
Before, po/fa.po had these statistics:
300 translated messages, 4 fuzzy translations, 1477 untranslated
messages.
Afterwards, the statistics for po/fa.po is:
291 translated messages, 6 fuzzy translations, 2170 untranslated
messages.
The number of translated messages changed from 17% to 12%.
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.
Before, po/es.po had these statistics:
386 translated messages, 133 fuzzy translations, 1262 untranslated
messages.
Afterwards, the statistics for po/es.po is:
585 translated messages, 142 fuzzy translations, 1740 untranslated
messages.
The number of translated messages changed from 22% to 24%.
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.
Before, po/ru.po had these statistics:
217 translated messages, 35 fuzzy translations, 1529 untranslated
messages.
Afterwards, the statistics for po/ru.po is:
374 translated messages, 47 fuzzy translations, 2046 untranslated
messages.
The number of translated messages changed from 12% to 15%.
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.
Before, po/da.po had these statistics:
279 translated messages, 26 fuzzy translations, 1476 untranslated
messages.
Afterwards, the statistics for po/da.po is:
244 translated messages, 22 fuzzy translations, 2201 untranslated
messages.
The number of translated messages changed from 16% to 10%.
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.
Before, po/bn.po had these statistics:
328 translated messages, 35 fuzzy translations, 1418 untranslated
messages.
Afterwards, the statistics for po/bn.po is:
351 translated messages, 42 fuzzy translations, 2074 untranslated
messages.
The number of translated messages changed from 18% to 14%.
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.
Before, po/el.po had these statistics:
227 translated messages, 846 fuzzy translations, 708 untranslated
messages.
Afterwards, the statistics for po/el.po is:
236 translated messages, 992 fuzzy translations, 1239 untranslated
messages.
The number of translated messages changed from 13% to 10%.
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.
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.
Before, po/zh-TW.po had these statistics:
492 translated messages, 55 fuzzy translations, 1234 untranslated
messages.
Afterwards, the statistics for po/zh-TW.po is:
776 translated messages, 67 fuzzy translations, 1624 untranslated
messages.
The number of translated messages changed from 28% to 31%.
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.
Before, po/pt-BR.po had these statistics:
1272 translated messages, 93 fuzzy translations, 416 untranslated
messages.
Afterwards, the statistics for po/pt-BR.po is:
1703 translated messages, 114 fuzzy translations, 650 untranslated
messages.
The number of translated messages changed from 71% to 69%.
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.
Before, po/it.po had these statistics:
447 translated messages, 927 fuzzy translations, 407 untranslated
messages.
Afterwards, the statistics for po/it.po is:
583 translated messages, 1288 fuzzy translations, 596 untranslated
messages.
The number of translated messages changed from 25% to 24%.
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.
Before, po/de.po had these statistics:
410 translated messages, 697 fuzzy translations, 674 untranslated
messages.
Afterwards, the statistics for po/de.po is:
556 translated messages, 814 fuzzy translations, 1097 untranslated
messages.
The number of translated messages stayed at 23%.
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.
* zh-TW: translate std
Part of #684.
* Apply suggestions from code review
Co-authored-by: Jonathan Hao <phao@google.com>
* Apply suggestions from code review
* zh-TW: fix PO file syntax
We lost a few double-quotes in the editing process.
---------
Co-authored-by: Jonathan Hao <phao@google.com>
* zh-TW: fix line breaks in lists
I looked through the recent PRs for the Taiwanese translations and
found that some lists items had extra line breaks (without the
necessary indentation). This PR should fix the rendering.
Part of #684.
* Apply suggestions from code review
---------
Co-authored-by: Jonathan Hao <phao@google.com>
* fr: update the translation on the Welcome page.
* fr: Some updates to summary.md entries, also removing a few fuzzy markers where the translation has not changed.
* zh-TW: translate enums
Part of #684.
* Apply suggestions from code review
Co-authored-by: Jonathan Hao <phao@google.com>
---------
Co-authored-by: Jonathan Hao <phao@google.com>
* zh-TW: translate memory-management
Part of #684.
* Apply suggestions from code review
Co-authored-by: Jonathan Hao <phao@google.com>
* Update po/zh-TW.po
---------
Co-authored-by: Jonathan Hao <phao@google.com>