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

23 Commits

Author SHA1 Message Date
Martin Geisler
6de9413ac3
da: translate a number of tiny/trivial messages (#1489) 2023-11-28 19:45:24 +01:00
Martin Geisler
13c4963fab
da: Run through mdbook-i18n-normalize 0.3.0 (#1461)
This splits translated code blocks into individual messages, thus
preserving the translation after #1460.

This removes ~6k unnecessary lines from the PO file.
2023-11-16 11:45:52 +00:00
Martin Geisler
15d3172a31
da: refresh translation and fix fuzzy entries (#1264)
There are two commits, I hope they're individually small enough that
GitHub will show them.
2023-10-16 10:12:53 +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
Martin Geisler
c74b2c8a04
da: Translate the welcome page (#1256) 2023-09-27 12:57:48 +00:00
Martin Geisler
ea44e2547b
da: refresh translation (#1203)
Stats before:

    312 translated messages, 2155 untranslated messages.

and after:

    320 translated messages, 2136 untranslated messages.

Part of #286.
2023-09-26 09:20:32 +00: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
Martin Geisler
b7a6ccd63c
da: Fix all fuzzy entries (#1122)
Part of #286.
2023-09-11 16:42:56 +02:00
Martin Geisler
7d68a0869f
da: copy mostly trivial code blocks (#1123)
Most of these code blocks don't have strings or comments to translate
(but a few do).

Part of #286.
2023-09-10 08:14:07 +00:00
Martin Geisler
e55361233e
da: refresh translation (#1118)
Clean update of the file, no new translations.

Part of #286.
2023-08-24 15:06:27 -07:00
Martin Geisler
cc9a672baf
da: normalize with mdbook-i18n-helpers 0.2.2 (#1111)
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.
2023-08-23 11:10:04 -07:00
Per Larsen
2f77996d0f
da: Complete translations for SUMMARY.md (#923)
* da: Complete translations for SUMMARY.md

* Apply suggestions from code review

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-07-10 08:30:58 +00:00
Martin Geisler
6920a4787b
da: Sync translation (#714)
* da: Sync translation

This resulted in some rewrapped strings due to how `msgmerge` wraps
the strings compared to how `mdbook-xgettext` extracts them.

I also translated a few strings.

* Apply suggestions from code review
2023-05-30 14:34:35 +00:00
Martin Geisler
de5f796da4
da: Small fixes from #646 (#648) 2023-05-22 19:44:53 +02:00
Martin Geisler
06e4f7843f
da: Translate pages about threads (#649) 2023-05-22 14:47:35 +02:00
Martin Geisler
98f3e6bf81
da: Translate most small messages (#646)
This copies a bunch of untranslatable page titles (such as crate
names) to the translation. I also translated a lot of small and fuzzy
entries. We should now be at 200 translated entries.
2023-05-19 07:44:51 -07:00
Per Larsen
add35bab8c
da: Additional translations (#644) 2023-05-19 14:23:49 +00:00
Martin Geisler
6e9b02e5f4
da: Sync translation with c45b350 (#616)
da: sync with c45b350

This is the result of running

    MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
    msgmerge --update po/da.po po/messages.pot
2023-05-18 06:59:45 -07:00
Per Larsen
c45b35011c
da: Update translation (#632)
A few more translations in order for me to get my feet wet.
2023-05-15 11:46:33 +00:00
Dustin J. Mitchell
ba28dd2d4c
Parse Markdown in mdbook-xgettext (#449)
* 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
2023-03-07 18:07:07 +00:00
Jooyung Han
7bddf5e6d6
Remove Last-* properties in po/ko.po (#468)
* Remove Last-* properties in po/ko.po

* Remove Last* properties in other po files

---------

Co-authored-by: Jooyung Han <jooyung@google.com>
2023-03-01 20:57:47 +09:00
Martin Geisler
2de9c0dae8 Start a Danish translation 2023-01-18 16:12:53 +01:00