1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 14:27:50 +02:00
Commit Graph

15 Commits

Author SHA1 Message Date
Martin Geisler
4560ee8484
Format all PO files with dprint (#1359)
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.
2023-10-14 12:53:18 +02:00
Martin Geisler
98f5f9a88f
Revert "Fix typo: missing n in unknown" (#1347)
Reverts google/comprehensive-rust#1344.

The edit to the Markdown file has been kept since we _do_ want to fix
the typo!
2023-10-11 11:47:04 +00:00
Noam Zaks
4eebe43f3b
Fix typo: missing n in unknown (#1344) 2023-10-11 11:30:19 +01:00
Alexey Sokolov
4e768e2e36
Fix several typos (#1251)
cc @Makarevich
2023-09-29 11:41:48 -07:00
Martin Geisler
b3bcaacb70
Set POT-Creation-Date field in PO files (#1252)
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.
2023-09-25 16:38:03 +02:00
Makarevich
91c4df3644
ru: day 2, afternoon; more control loops translation (#1095) 2023-09-08 17:18:17 +00:00
Henri Fontana
70fd872d40
ru: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1130)
Part of #330, #282, #326
2023-08-26 16:33:05 +02:00
Martin Geisler
a6994a68f9
ru: normalize with mdbook-i18n-helpers 0.2.2 (#1110)
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.
2023-08-23 11:10:36 -07:00
Yauheni Baltukha
d6f727307d
ru: Day 1: Morning translation (#903)
Translate Day 1: Morning
2023-07-26 22:21:31 +02:00
Makarevich
0c408f139c
ru: day 2, afternoon; first part (#897)
* modified:   po/ru.po: day 2, afternoon, part 1

* Apply other reviewers suggestions from code review

Co-authored-by: Dima <26358380+dyeroshenko@users.noreply.github.com>

* Apply other reviewers suggestions from code review

Co-authored-by: Yauheni Baltukha <evgenii.boltuho@gmail.com>
Co-authored-by: Dima <26358380+dyeroshenko@users.noreply.github.com>

* Apply suggestions from other code reviewers

Co-authored-by: Yauheni Baltukha <evgenii.boltuho@gmail.com>

* Apply suggestions from code review

Co-authored-by: Yauheni Baltukha <evgenii.boltuho@gmail.com>
Co-authored-by: zvonden <zdv@yahoo.com>

* Removed an extra EOLN to fix the build errors.

---------

Co-authored-by: zvonden <zdv@yahoo.com>
Co-authored-by: Dima <26358380+dyeroshenko@users.noreply.github.com>
Co-authored-by: Yauheni Baltukha <evgenii.boltuho@gmail.com>
2023-07-06 15:00:10 +02:00
Yauheni Baltukha
56b741ce22
ru: Update po/ru.po with new messages (#899)
Update po/ru.po with new messages
2023-07-04 23:02:46 +02:00
zvonden
f4f0e7a1f3
ru: Fixed some ru terms, minor rephrasing. (#820)
Fixed some ru terms, minor rephrasing.
2023-07-04 09:25:46 +01:00
Yauheni Baltukha
078a99885d
ru: Translation for the welcome page and chapters 1,2 (#724)
Translate the welcome page and chapters 1,2
2023-06-13 15:50:55 +02:00
Yauheni Baltukha
93e338d6ab
ru: Run msgmerge with --no-wrap to avoid unnecessary diffs (#689)
Run msgmerge --no-wrap --update po/ru.po po/messages.pot
2023-05-26 09:17:14 +02:00
Yauheni Baltukha
59d75c6f85
ru: Create ru.po file (#677)
Russian translation: initial setup
2023-05-25 10:42:01 +02:00