[Sugar-devel] internationalization: homonym handling in genpot?
Walter Bender
walter.bender at gmail.com
Fri Sep 10 15:18:29 EDT 2010
On Fri, Sep 10, 2010 at 1:17 PM, Erik Blankinship <erikb at mediamods.com> wrote:
>> #TRANS: bow and arrow
>> activeDisplay = _("Bow")
>> #TRANS: the front of a ship
>> istrDisplay = _("Bow")
>>
>> Ooh interesting, not bumped into this need myself yet, but (as a cheat) it
>> strikes me that gettext is using the given strings as IDs for its string
>> lookups so you could replace your strings with _("Arrow|Bow")
>> and _("Ship|Bow"), then make sure the pot file actually has the correct Bow
>> msgstr set. I think though what your really looking for is context support
>> but have not tinkered other than a few min googling:
>
> Just to make sure I understand your solution, if the activity is run in an
> untranslated language, won't "Arrow|Bow" be displayed?
I think you can fill in (by hand) the msgstr in your POT file and it
will "do the right thing" for untranslated languages.
-walter
> I was thinking to use "bow" and "bow ", and them trim all white space before
> displaying in an activity.
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Sugar-devel
mailing list