[etoys-dev] Etoys: GetText-Richo.13.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Aug 19 18:33:36 EDT 2010
Ricardo Moran uploaded a new version of GetText to project Etoys:
http://source.squeak.org/etoys/GetText-Richo.13.mcz
==================== Summary ====================
Name: GetText-Richo.13
Author: Richo
Time: 19 August 2010, 7:33:46 pm
UUID: 07d6a0a4-9ebe-f24c-b914-d10b8fbc8bbe
Ancestors: GetText-kfr.12
* Fix for bug (SQ-753) Viewer shows only variables.
String>>#translatedInDomain: will try to translate using the specified domain and if the translation wasn't found it will send #translatedInAllDomains. Also, #translatedInDomain:or: was added to String.
=============== Diff against GetText-kfr.12 ===============
Item was changed:
----- Method: String>>translatedInAllDomains (in category '*gettext') -----
translatedInAllDomains
| translation |
"Transcript show: self printString, ' translatedInAllDomains'; cr."
TextDomainManager allKnownDomains do: [:domain |
+ translation := self translatedTo: LocaleID current inDomain: domain.
- translation := self translatedInDomain: domain.
self = translation ifFalse: [^translation]
].
^self!
Item was changed:
----- Method: String>>translatedInDomain: (in category '*gettext') -----
translatedInDomain: aDomainName
+ | translation |
+ translation := self translatedTo: LocaleID current inDomain: aDomainName.
+ self == translation ifTrue: [^self translatedInAllDomains].
+ ^translation
- ^self translatedTo: LocaleID current inDomain: aDomainName
!
Item was added:
+ ----- Method: String>>translatedInDomain:or: (in category '*gettext') -----
+ translatedInDomain: aDomainName or: anotherDomainName
+ | translation |
+ translation := self translatedTo: LocaleID current inDomain: aDomainName.
+ self == translation ifTrue: [^self translatedInDomain: anotherDomainName].
+ ^translation
+ !
More information about the etoys-dev
mailing list