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

Add Romanian translation #1176

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

zeha
Copy link
Contributor

@zeha zeha commented Jan 8, 2025

@zeha zeha changed the title I18n ro Add Romanian translation Jan 8, 2025
@zeha zeha mentioned this pull request Jan 8, 2025
man/po/LINGUAS Outdated Show resolved Hide resolved
@alejandro-colomar
Copy link
Collaborator

@hallyn , @ikerexxe

I was wondering... Translations affect printf(3) function specifiers. We should have some CI test that verifies that translations have compatible formatting strings. I imagine that it would be easy to trigger undefined behavior from a typo in a translation.

@alejandro-colomar
Copy link
Collaborator

v2 (by @alejandro-colomar )

  • Fix typo
$ git range-diff zeha/master zeha/i18n-ro i18n-ro 
1:  43f27ef4 ! 1:  467fd58a Add Romanian po files
    @@ Commit message
         Add Romanian po files
     
         Bug-Debian: https://bugs.debian.org/1080487
    +    [alx: fix typo: po => ro]
     
      ## man/po/LINGUAS ##
     @@
      # LINGUAS
      
     -LINGUAS = da de fr it pl ru sv uk zh_CN
    -+LINGUAS = da de fr it pl po ru sv uk zh_CN
    ++LINGUAS = da de fr it pl ro ru sv uk zh_CN
      
      # These variables are generated based on the LINGUAS list
      POFILES = $(patsubst %,$(srcdir)/%.po,$(LINGUAS))

@alejandro-colomar
Copy link
Collaborator

v2b (by @alejandro-colomar )

  • Rebase
$ git range-diff zeha/master..zeha/i18n-ro shadow/master..i18n-ro 
1:  467fd58a ! 1:  1d1e2d85 Add Romanian po files
    @@ man/po/LINGUAS
     @@
      # LINGUAS
      
    --LINGUAS = da de fr it pl ru sv uk zh_CN
    -+LINGUAS = da de fr it pl ro ru sv uk zh_CN
    +-LINGUAS = da de fr it pl pt ru sv uk zh_CN
    ++LINGUAS = da de fr it pl pt ro ru sv uk zh_CN
      
      # These variables are generated based on the LINGUAS list
      POFILES = $(patsubst %,$(srcdir)/%.po,$(LINGUAS))

@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Jan 10, 2025

v2c

  • Tweaks to commit message
$ git range-diff shadow/master zeha/i18n-ro i18n-ro 
1:  1d1e2d85 ! 1:  c2b5dc1b Add Romanian po files
    @@ Metadata
     Author: Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>
     
      ## Commit message ##
    -    Add Romanian po files
    +    man/, po/: Update Romanian translation
     
         Bug-Debian: https://bugs.debian.org/1080487
         [alx: fix typo: po => ro]
    +    Reviewed-by: Alejandro Colomar <alx@kernel.org>
     
      ## man/po/LINGUAS ##
     @@

v2d

  • again
$ git range-diff shadow/master c2b5dc1b i18n-ro 
1:  c2b5dc1b ! 1:  e56cbc0c man/, po/: Update Romanian translation
    @@ Metadata
      ## Commit message ##
         man/, po/: Update Romanian translation
     
    +    Add translation of manual pages, and update the translation of strings.
    +
         Bug-Debian: https://bugs.debian.org/1080487
         [alx: fix typo: po => ro]
         Reviewed-by: Alejandro Colomar <alx@kernel.org>

Add translation of manual pages, and update the translation of strings.

Bug-Debian: https://bugs.debian.org/1080487
[alx: fix typo: po => ro]
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a technical point of view it looks good, but as I don't know Romanian I can't speak from a language point of view.

I was wondering... Translations affect printf(3) function specifiers. We should have some CI test that verifies that translations have compatible formatting strings. I imagine that it would be easy to trigger undefined behavior from a typo in a translation.

I agree that we should have some type of CI check for this. What about using msgfmt or pofilter for that?

@alejandro-colomar
Copy link
Collaborator

From a technical point of view it looks good, but as I don't know Romanian I can't speak from a language point of view.

Same thing from me.

I was wondering... Translations affect printf(3) function specifiers. We should have some CI test that verifies that translations have compatible formatting strings. I imagine that it would be easy to trigger undefined behavior from a typo in a translation.

I agree that we should have some type of CI check for this. What about using msgfmt or pofilter for that?

Yup, some of that would be good.

@alejandro-colomar alejandro-colomar merged commit bb4a2da into shadow-maint:master Jan 10, 2025
9 checks passed
@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Jan 10, 2025

From a technical point of view it looks good, but as I don't know Romanian I can't speak from a language point of view.

Same thing from me.

I was wondering... Translations affect printf(3) function specifiers. We should have some CI test that verifies that translations have compatible formatting strings. I imagine that it would be easy to trigger undefined behavior from a typo in a translation.

I agree that we should have some type of CI check for this. What about using msgfmt or pofilter for that?

Yup, some of that would be good.

In parallel, I was planning a significant reduction of strings, by changing error messages to be more uniform, and print the program name and errno string, which would transform most format strings to something like: "%s: %s\n", which doesn't need translation.

But yeah, we still need some verification for the remaining ones.

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.

3 participants