New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ro: Refresh Romanian translation #1991
Conversation
afeb121
to
67693a9
Compare
Hi @RazvanSt, thanks for the update! Running
shows me that you're re-introducing line numbers on the source lines: -#: src/SUMMARY.md
+#: src/SUMMARY.md:18 src/SUMMARY.md:47 src/SUMMARY.md:76 src/SUMMARY.md:103
+#: src/SUMMARY.md:129 src/SUMMARY.md:149 src/SUMMARY.md:167 src/SUMMARY.md:190
+#: src/SUMMARY.md:213 src/SUMMARY.md:262 src/SUMMARY.md:304 src/SUMMARY.md:355
msgid "Welcome"
msgstr "Bine ați venit"
-#: src/SUMMARY.md src/hello-world.md src/hello-world/hello-world.md
-#, fuzzy
+#: src/SUMMARY.md:19 src/SUMMARY.md:24 src/hello-world.md:1
+#: src/types-and-values/hello-world.md:1
msgid "Hello, World"
-msgstr "Bună lume!"
+msgstr "Bună lume" This is because you haven't set the "granularity" when extracting strings. See TRANSLATIONS.md. Perhaps your |
Thank you.
I am trying to push from an older branch. I'll do a rebase and try to fix
the issues.
…On Mon, 15 Apr 2024 at 17:09, Martin Geisler ***@***.***> wrote:
Hi @RazvanSt <https://github.com/RazvanSt>, thanks for the update! Running
gh pr diff 1991 | bat -l patch
shows me that you're re-introducing line numbers on the source lines:
-#: src/SUMMARY.md+#: src/SUMMARY.md:18 src/SUMMARY.md:47 src/SUMMARY.md:76 src/SUMMARY.md:103+#: src/SUMMARY.md:129 src/SUMMARY.md:149 src/SUMMARY.md:167 src/SUMMARY.md:190+#: src/SUMMARY.md:213 src/SUMMARY.md:262 src/SUMMARY.md:304 src/SUMMARY.md:355
msgid "Welcome"
msgstr "Bine ați venit"
-#: src/SUMMARY.md src/hello-world.md src/hello-world/hello-world.md-#, fuzzy+#: src/SUMMARY.md:19 src/SUMMARY.md:24 src/hello-world.md:1+#: src/types-and-values/hello-world.md:1
msgid "Hello, World"-msgstr "Bună lume!"+msgstr "Bună lume"
This is because you haven't set the "granularity" when extracting strings.
See TRANSLATIONS.md
<https://github.com/google/comprehensive-rust/blob/main/TRANSLATIONS.md>.
Perhaps your mdbook-i18n-helpers are old, if the setting doesn't seem to
have an effect.
—
Reply to this email directly, view it on GitHub
<#1991 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WDVOGPOGMGQD4UCQZKDTY5PNTHAVCNFSM6AAAAABGGXTNGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJWHE2TKOJVGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Should be fixed now, but the format still fails. |
I still see the line numbers on the source lines: diff --git a/po/ro.po b/po/ro.po
index 33b56d8efca..edf6bb20bbb 100644
--- a/po/ro.po
+++ b/po/ro.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Comprehensive Rust 🦀\n"
-"POT-Creation-Date: 2024-01-24T13:24:49+01:00\n"
-"PO-Revision-Date: 2023-11-07 15:51+0200\n"
+"POT-Creation-Date: 2024-04-15T17:42:59+03:00\n"
+"PO-Revision-Date: 2024-04-05 08:52+0300\n"
"Last-Translator: Razvan Stefanescu <rstefanescu@google.com>\n"
"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
"Language: ro\n"
@@ -11,1268 +11,1286 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
"20)) ? 1 : 2;\n"
-"X-Generator: Poedit 3.4.1\n"
+"X-Generator: Poedit 3.4.2\n"
-#: src/SUMMARY.md src/index.md
+#: src/SUMMARY.md:3 src/index.md:1
msgid "Welcome to Comprehensive Rust 🦀"
msgstr "Bine ați venit la Comprehensive Rust 🦀 (ghidul complet pentu Rust)"
Try deleting the old entries that start with
They represent inactive translations. |
4d1f35c
to
7f8d73c
Compare
Phew. Fixed. I used to "Translation/Purge Deleted Translations" in Poedit to remove stalled translations and fixed to left/right single/double quotes. |
@RazvanSt, do you know someone who could review your PRs? I just need someone to read through them and click the review button. It would be great if you know a Romanian Rust community? |
This is still a problem: please make sure to use the |
Hello,
Grrrr, this email thread got lost among others and forgot to reply to it.
Unfortunately I do not know anybody in the romanian Rust community, but
I'll ask one of my colleagues to take a look.
Regards,
Razvan
…On Wed, 17 Apr 2024 at 15:59, Martin Geisler ***@***.***> wrote:
@RazvanSt <https://github.com/RazvanSt>, do you know someone who could
review your PRs? I just need someone to read through them and click the
review button. It would be great if you know a Romanian Rust community?
—
Reply to this email directly, view it on GitHub
<#1991 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WDVO6I46QO5E4C66X263Y5ZW4TAVCNFSM6AAAAABGGXTNGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGIYDMMBZHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think there is a problem with the creation/update of the messages.pot
file:
*$ mdbook --versionmdbook v0.4.36*
*$ MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot", "granularity":
0}}' mdbook build -d po*
*$ MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot-g1",
"granularity": 1}}' mdbook build -d po*
*$ diff po/messages.pot po/messages.pot-g15c5< "POT-Creation-Date:
2024-05-09T14:33:28+03:00\n"---> "POT-Creation-Date:
2024-05-09T14:34:25+03:00\n"*
There is no difference in the messages.pot file when using granularity 0 or
1. Tested with mdbook v0.4.36 and v0.4.37. Am I missing something?
Regards,
Razvan
…On Wed, 17 Apr 2024 at 16:00, Martin Geisler ***@***.***> wrote:
-#: src/SUMMARY.md src/index.md+#: src/SUMMARY.md:3 src/index.md:1
msgid "Welcome to Comprehensive Rust 🦀"
msgstr "Bine ați venit la Comprehensive Rust 🦀 (ghidul complet pentu Rust)"
This is still a problem: please make sure to use the "granularity": 0
setting when running mdbook-xgettext.
—
Reply to this email directly, view it on GitHub
<#1991 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WDVKXJIROLOO5FJS47ATY5ZXAHAVCNFSM6AAAAABGGXTNGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGIYDQMBSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Strange, but I think I know what it is: you probably need to update
You should have version 0.3.2. The use of |
Thank you, that will be great! You can also try asking on various forums — I've done that myself in the past. |
b095e16
to
d087f80
Compare
Some more updates to the translation. Updated the template used. Signed-off-by: Mihai Preda <mpreda@google.com> Signed-off-by: Razvan Stefanescu <rstefanescu@google.com>
It looks good now, let's merge this! Thanks! Until the translation is ~50% done, I would recommend freshing it only every ~3 months or so. |
Some more updates to the translation.