GNOME Bugzilla – Bug 784507
Do not include markup in translatable strings
Last modified: 2018-01-11 10:54:55 UTC
See https://wiki.gnome.org/TranslationProject/DevGuidelines/Avoid%20markup%20wherever%20possible If you run, $ git grep "\">" po You can see that many of the strings contain markup.
Checking it here and pretty much all of them follow the first case from this link where you have 2 variables in a phrase to translate. The link example: --- msgid "This text is <b>bold</b>." --- The code example: --- [file: po/ar.po] msgid "%s <span color=\"grey\">(%s used)</span>" --- In the code example the first %s will have a different color from the second %s. Folowing the guideline that says: " In this case, the markup contains important positional information. Only the text "bold" should be bold, and a translation needs to take that into account, so the markup actually carries important information to the translator here. This use of markup is important and a necessity. " I beliave most of the po files should be unchanged, right?! But there are cases like: --- [file: po/gu.po] msgid "<b><span size=\"large\">No boxes found</span></b>" --- where the markup should be removed. This message is just to double check the idea. Is that correct?!
(In reply to Thiago Mendes from comment #1) > Checking it here and pretty much all of them follow the first case from this > link where you have 2 variables in a phrase to translate. > > The link example: > --- > msgid "This text is <b>bold</b>." > --- > The code example: > --- > [file: po/ar.po] > msgid "%s <span color=\"grey\">(%s used)</span>" > --- > > In the code example the first %s will have a different color from the > second %s. > > Folowing the guideline that says: > > " In this case, the markup contains important positional information. Only > the text "bold" should be bold, and a translation needs to take that into > account, so the markup actually carries important information to the > translator here. This use of markup is important and a necessity. " > > I beliave most of the po files should be unchanged, right?! > > But there are cases like: > --- > [file: po/gu.po] > msgid "<b><span size=\"large\">No boxes found</span></b>" > --- > > where the markup should be removed. > > This message is just to double check the idea. > > Is that correct?! Yes.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-boxes/issues/148.