translating clock.schemas.in in gnome-panel



Hey,
	I've just come across a rather messy little detail in gnome-panel wrt.
the clock schemas.

	Basically, we allow translators to change the default clock format to
either 12 or 24 hour format. In 2.6, the new clock_format key is used
for this rather than the hour_format key. The key can have either
"24-hour" or "12-hour" as its value.

	Unfortunately, most translators didn't realize this and translated the
"hour" part into their native language and the clock applet can't handle
these values.

	I'm not sure how to make this more obvious for translators. I tried
adding a "Translators: here's how to translate this" comment in
clock.schemas.in but intltool didn't handle it very well.

	Anyway, I've just committed this change to the gnome-panel
translations:

2004-04-05  Mark McLoughlin  <mark@skynet.ie>
 
        * *.po: don't translate the "24-hour" clock_format value
        from clock.schemas.in into anything but "12-hour" or
        "24-hour". Do not translate the "hour" part into your
        native language - GConf won't understand it.
 
        * mr.po, pa.po: don't translate the "24" hour_format value
        in clock.schemas.in into anything other than "12" or "24".

	I used the following script for the first change, although I did have
to fix a few remaining translations by hand:

for iii in $(grep -Hn -A 1 'msgid "24-hour"' *.po | grep msgstr | sed -e 's/\(.*msgstr\).*/\1/'); do pofile=$(echo $iii | sed 's/\(.*\.po\).*/\1/'); line=$(echo $iii | sed 's/.*.po-\([0-9][0-9]*\)-.*/\1/'); echo $pofile ... $line; sed -e "${line}s/msgstr \".*\([12][24]\).*\"/msgstr \"\1-hour\"/" < $pofile > $pofile.out; mv $pofile.out $pofile; done

Thanks,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]