Odd string
Hi,
In Disco, for ubuntu-
%sing snap %s
What does the "%sing" part stand for?
Best,
AO
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2019-04-09
- Last reply:
- 2019-06-18
Manfred Hampl (m-hampl) said : | #1 |
"%s" is a placeholder that is filled with a string parameter, and "ing" is constant text.
Digging into the source https:/
As far as I can see there are two branches, and depending on the status of the snap, it is either installing or refreshing that snap.
The value of "command" is either "install" or "refresh", and the string %sing results either in "installing" or in "refreshing".
With the way that this was done, I do not see any possibility that the words "install" and "refresh" could be translated to a different language.
The only reasonable solution that I can suggest is a split into two messages, e.g.
…
if re.search(
…
else:
try:
…
This would make the strings easily translatable.
AO (aofrl10n) said : | #2 |
Hi Manfred,
Thanks for your prompt answer.
Best,
AO
Adolfo Jayme (fitojb) said : | #3 |
Bug 1824005 has been fixed now.
Can you help with this problem?
Provide an answer of your own, or ask AO for more information if necessary.