Skip to content
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

Update to mdbook-i18n-helpers 0.3.0 #1460

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Conversation

mgeisler
Copy link
Collaborator

@mgeisler mgeisler commented Nov 9, 2023

This version has much improved support for the translation of code blocks. See google/mdbook-i18n-helpers#95 for details.

Most PO files won’t need any update since most of them don’t translate the comments in the code blocks. Those that do, can run mdbook-i18n-normalize when they feel like it.

This version has much improved support for the translation of code
blocks. See google/mdbook-i18n-helpers#95
for details.

Most PO files won’t need any update since most of them don’t translate
the comments in the code blocks. Those that do, can run
`mdbook-i18n-normalize` when they feel like it.
@mgeisler mgeisler merged commit 031cb4f into main Nov 11, 2023
33 checks passed
@mgeisler mgeisler deleted the mdbook-i18n-helpers-0.3.0 branch November 11, 2023 15:10
@mgeisler
Copy link
Collaborator Author

@henrif75, I broke the build by merging this after #1467. Let me fix that...

mgeisler added a commit that referenced this pull request Nov 11, 2023
With #1460 merged, we took away the possibility of translating
variable and struct 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.
mgeisler added a commit that referenced this pull request Nov 13, 2023
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.
@henrif75
Copy link
Collaborator

@henrif75, I broke the build by merging this after #1467. Let me fix that...

Thanks!

mgeisler added a commit that referenced this pull request Nov 16, 2023
This splits translated code blocks into individual messages, thus
preserving the translation after #1460.

This removes ~6k unnecessary lines from the PO file.
mgeisler pushed a commit that referenced this pull request Dec 7, 2023
Hello, JA translation team!
(#652)

As part of #1460, I normalized ja.po using mdbook-i18n-normalize 0.3.0.

Steps taken: `mdbook-i18n-normalize`.

I'm open to any feedback or suggestions. Thank you in advance!
rickyclarkson pushed a commit to rickyclarkson/comprehensive-rust that referenced this pull request Dec 11, 2023
…1482)

Hello, JA translation team!
(google#652)

As part of google#1460, I normalized ja.po using mdbook-i18n-normalize 0.3.0.

Steps taken: `mdbook-i18n-normalize`.

I'm open to any feedback or suggestions. Thank you in advance!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants