-
Notifications
You must be signed in to change notification settings - Fork 993
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
i18n - extracting new, pulling from tx #9912
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To pull new updates I also needed to change this line:
Line 41 in b26b09f
tx pull -f |
It needs to be cd .. && tx pull -f
. This appears to be something that changed between transifex-client
and tx
.
@@ -15392,7 +15492,7 @@ msgstr "" | |||
|
|||
#: | |||
#: ../webpack/assets/javascripts/react_app/components/HostDetails/DetailsCard/PowerStatus/actions.js:13 | |||
msgid "Power has been set to \"%s\" successfully" | |||
msgid "Power has been set to \\\"%s\\\" successfully" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it's this line:
Line 13 in 38e2c55
__('Power has been set to "%s" successfully'), |
There are no backslashes in there, so I question where this come from.
I don't know if this really fixing an escaping issue that already existing, or if there's some duplicate escaping bug that was introduced somewhere. I'll try to dig further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little confused what to look into here. The original string uses single quotes and double quotes on the inside. Why are they both getting swapped to double quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webhippie/gettext_i18n_rails_js@77743bc suggests this is intentional, but it would be nice to test it out end to end.
I see there was a French translation for the old string, so you can try to update this PR with the newly translated string, wait for Packit to be built and try it out in the UI.
It's just a few strings, so I won't hold it back on this, but if we can figure this out while Pulp is getting unblocked that would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. Does this PR not already update the string for other languages? If not, what do I need to do? I've never tested other languages in Satellite since we've never had to do it on QE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and no. This PR does multiple things.
It updates the template (.pot
). This is the file with source strings. They're never supposed to be translated, but instead are used to update the .po
files which exist for each language. So the resulting .po
files are a combination of the .pot
file as well as the translations from Transifex.
The problem is that Transifex pulls its strings from git develop, so it can't know about updated strings until this is merged. Since source string changed, translators can't have translated it, so it's empty.
Perhaps at some point we can be smarter in finding these minimally changed strings, but in practice I'd expect it's rare. How do you know it's really the same?
Does that help clarify it a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok that makes sense
@@ -7356,8 +7356,8 @@ msgstr "État d’alimentation" | |||
msgid "Power a Virtual Machine" | |||
msgstr "Démarrer une Machine Virtuelle" | |||
|
|||
msgid "Power has been set to \"%s\" successfully" | |||
msgstr "L’alimentation a pu être définie sur \"%s\"" | |||
msgid "Power has been set to \\\"%s\\\" successfully" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ekohl I made this change. Is this what you were saying to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did I do this right? Copr failed at
pl/foreman.po:11990: 'msgid' and 'msgstr' entries do not both end with '\n'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ekohl I made this change. Is this what you were saying to do?
This is indeed what I meant.
pl/foreman.po:11990: 'msgid' and 'msgstr' entries do not both end with '\n'
That's a warning from a different file. I left a comment there (that I updated it).
locale/pl/foreman.po
Outdated
"* globalny\n" | ||
"* konfigurowany\n" | ||
"* zbudowany\n" | ||
msgstr "Typem statusu może być:\\n* globalny\\n* konfigurowany\\n* zbudowany\\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the line that breaks it. I've fixed it up in Transifex so I expect it to work if you pull again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok pulling now
@ekohl I'm not sure how to interpret that failure for Copr |
This matches what we use in foreman-packaging.
Looks like a networking failure, but it does highlight a difference: we build against centos-stream-8 while regular packaging builds against rhel-8. I've opened #9931 but for now I think we can retrigger is /packit build |
c117726
to
7347af5
Compare
/packit build |
1 similar comment
/packit build |
7347af5
to
650d88d
Compare
No description provided.