[squeak-dev] Questions regarding translations

Tobias Pape Das.Linux at gmx.de
Mon Jan 3 17:58:26 UTC 2022

My rule of thumb would be:

sent translated _only_ to literals.

But I don't know, really…

> On 3. Jan 2022, at 18:21, christoph.thiede at student.hpi.uni-potsdam.de wrote:
> Hi all!
> I have some quick questions regarding proper use of #translated & friends:
> 1. When should you use #translatedNoop rather than #translated?
> 2. Should you only use #translated right after a string literal literal or it is also fine to write things such as:
>     (aBoolean ifTrue: ['on'] ifFalse: ['off']) translated.
>     #('yes' 'no' 'cancel') collect: #translated.
>     menu addTranslatedList: ...
> Some examples like the above are already in the Trunk, but on the other hand, I do not know how the translator engine should find the locale strings in this case.
> Thanks in advance!
> Best,
> Christoph
> ---
> Sent from Squeak Inbox Talk

More information about the Squeak-dev mailing list