Red Hat Bugzilla – Bug 123494
"with" message in firstboot not marked for translation
Last modified: 2007-11-30 17:10:42 EST
Tested with Swedish.
In the firstboot "Display" screen, the're is an informative text
showing the monitor type and graphics adapter on the system. In my case:
"MAG DJ707 with Matrox Millennium G450"
The "with" is not translated. It's most likely not marked for
translation in the source.
The entire sentence should probably be marked for translation, e.g.
/* Translators: The first %s is the monitor make and model,
the second %s is the graphics adapter make and model. */
g_printf (_("%s with %s"), monitor_name, adapter_name);
This is so that translators can alter the order of the arguments with
printf modifiers if the language requires a different order.
This string comes from system-config-display and the UI is just
plugged into the firstboot parent window. As far as I can tell, this
string is correctly marked for translation:
label.set_text(_("%s with %s")%(self.state.get_monitor_name(),
And it looks like the string is translated in sv.po:
msgid "%s with %s"
msgstr "%s med %s"
I don't have my test machines at the moment, so I can't try to
reproduce this myself. I can't explain why the translation isn't
Ah, I see the problem now. The message is translated in the po files
but I wasn't setting the text domain correctly in the python files.
Should be fixed in cvs now. 1.0.15-2 will contain the fix once I
rebuild the package.
Thanks a bunch!