GNOME Bugzilla – Bug 754044
Don't use pango markup in strings
Last modified: 2016-09-20 08:15:55 UTC
https://wiki.gnome.org/TranslationProject/DevGuidelines/Avoid%20markup%20wherever%20possible "<small>%s (maximum)</small>" should be changed.
"<small>%s (recommended)</small>" too.
Good catch. I have one question though: How do i deal with translations from .ui files? <property name="label" translatable="yes"><b><span size="large">State of the art virtualization</span></b></property> How do I divide the translated and non translated part there?
That's an important question for me actually, since I'm always looking for ways to move UI setup/initialization to .ui files so if there is no way to avoid this in .ui files, I'd rather want to keep it consistent so that I don't break strings when moving them to .ui files.
How about that? <object> <property name="label" translatable="yes">State of the art virtualization</property> <attributes> <attribute name="size" value="small"/> </attributes> </object>
(In reply to Alexandre Franke from comment #4) > How about that? > > <object> > <property name="label" translatable="yes">State of the art > virtualization</property> > <attributes> > <attribute name="size" value="small"/> > </attributes> > </object> Ah yes, forgot about attributes. :)
Any chance you get this fixed quickly? String freeze is coming very soon.
(In reply to Alexandre Franke from comment #6) > Any chance you get this fixed quickly? String freeze is coming very soon. on it, now!
commit: 27bc483e3e5c6559aa3c0b40b42af45c30292f4c wizard-source: Use CSS for coloring label Instead of using pango markup for coloring labels, we should use the theme. This also reduces pango markup translators are exposed to. commit: 3d084511802e5383dfa6cbfbc229db56d7bfae20 empty-boxes: Make use of pango attributes Instead of inserting pango markup in strings, use pango attributes. This reduces pango markup translators are exposed to. https://bugzilla.gnome.org/show_bug.cgi?id=754044 commit: fbce1df0054bd6022e9d912d088fb175759da275 i-props-provider: Avoid markup in translatable strings This reduces pango markup translators are exposed to.