[etoys-dev] Etoys: GetText-Richo.9.mcz

Korakurider korakurider at gmail.com
Fri May 28 00:29:44 EDT 2010


On Fri, May 28, 2010 at 1:01 PM, Ricardo Moran <richi.moran at gmail.com> wrote:
> Yes, I found a couple of strings in english po that have different
> translations. I guess I should find a different way of telling if a
> translation wasn't found. Maybe if we make NaturalLanguageTranslator return
> nil when a translation is not found? I just don't want to break any existing
> assumptions.
    Translator might return three kind of result:
           a. The translator doesn't know such original string (e.g. msgid)
           b. The translator doesn't know translation for the string,
so return original string as-is
           c. The translator return translation for the string

    We want only case #a  fallback to #translateInAllDomains.
    In current implementation also case #b fallback, that isn't good.

    I think at least for Etoys changing protocol of
NaturalLanguageTranslator (#translate:toLocaleID:inDomain:)
    makes sense, though it might break comptiblity to Pharo port.
    But We need to keep protocol of String.

/Korakurider


> Richo
>
>
> On Thu, May 27, 2010 at 11:37 PM, Korakurider <korakurider at gmail.com> wrote:
>>
>> On Fri, May 28, 2010 at 7:14 AM, Ricardo Moran <richi.moran at gmail.com>
>> wrote:
>> > Yes, unless there is a reason to keep it I don't understand.
>>
>> I think there are cases that raw string of "msgid" in po aren't
>> appropriate for presentation and
>> we want to provide "translation" even for English.  (Don't ask me for
>> example...)
>> Your "optimization" of not translating for en in #translated would
>> kill that opportunity.
>>
>> It seems people don't think having English PO/MO is odd thing to do,
>> as http://translate.sugarlabs.org/en_US/ is running :-)
>>
>> /Korakurider
>>
>>
>> >
>> > Richo
>> >
>> > On Thu, May 27, 2010 at 7:03 PM, Bert Freudenberg <bert at freudenbergs.de>
>> > wrote:
>> >>
>> >> On 27.05.2010, at 21:34, commits at source.squeak.org wrote:
>> >> >
>> >> > Ricardo Moran uploaded a new version of GetText to project Etoys:
>> >> > http://source.squeak.org/etoys/GetText-Richo.9.mcz
>> >> >
>> >> > ==================== Summary ====================
>> >> >
>> >> > Name: GetText-Richo.9
>> >> > Author: Richo
>> >> > Time: 27 May 2010, 6:34:46 pm
>> >> > UUID: d15d7b2c-583b-7c48-8866-03cc2627b3ed
>> >> > Ancestors: GetText-KR.8
>> >> >
>> >> > * Changed #translated to return self if the current locale is
>> >> > English.
>> >>
>> >> Then we should get rid of the en.po, right?
>> >>
>> >> - Bert -
>> >>
>> >>
>> >> _______________________________________________
>> >> etoys-dev mailing list
>> >> etoys-dev at squeakland.org
>> >> http://lists.squeakland.org/mailman/listinfo/etoys-dev
>> >
>> >
>> > _______________________________________________
>> > etoys-dev mailing list
>> > etoys-dev at squeakland.org
>> > http://lists.squeakland.org/mailman/listinfo/etoys-dev
>> >
>> >
>
>


More information about the etoys-dev mailing list