[etoys-dev] Etoys: Multilingual-Richo.3.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun May 23 09:34:47 EDT 2010
A new version of Multilingual was added to project Etoys:
http://source.squeak.org/etoys/Multilingual-Richo.3.mcz
==================== Summary ====================
Name: Multilingual-Richo.3
Author: Richo
Time: 11 May 2010, 1:50:33 pm
UUID: 3e9d334f-0127-9149-a82b-c9961c684ecc
Ancestors: Multilingual-Richo.2
* Modified GetTextExporter2>>#appendStringReceivers:into: to use the default domain if a method that doesn't belong to any package was found.
The only case I found is in Player150132>>#setVersion which is a script in the "Home" project that sets the current version in the text inside the "About" flap.
=============== Diff against Multilingual-Richo.2 ===============
Item was changed:
----- Method: GetTextExporter2>>appendStringReceivers:into: (in category 'private') -----
appendStringReceivers: aSymbol into: domains
| literals references domainName methodReference keywords found |
found := TranslatedReceiverFinder new stringReceiversWithContext: aSymbol.
found do: [ :assoc |
methodReference := assoc key.
keywords := assoc value.
domainName _ self getTextDomainForPackage:
+ (PackageOrganizer default packageOfMethod: methodReference ifNone: [TextDomainManager defaultDomain]).
- (PackageOrganizer default packageOfMethod: methodReference).
literals _ domains at: domainName ifAbsentPut: [Dictionary new].
keywords do: [ :literal |
references _ literals at: literal ifAbsentPut: [OrderedCollection new].
references add: methodReference.
].
].
!
More information about the etoys-dev
mailing list