A new version of System was added to project Etoys:
http://source.squeak.org/etoys/System-Richo.11.mcz
==================== Summary ====================
Name: System-Richo.11
Author: Richo
Time: 11 May 2010, 1:54:09 pm
UUID: 1c9c54b3-7638-e440-9f84-e5f87ed38faa
Ancestors: System-Richo.10
* Modified TextDomainManager class>>#initialize to use 'Etoys' as the default domain (I changed this before as part of an experiment).
I don't know if this is correct, though. AFAIK the only reason to use the default domain would be if a method doesn't belong to any package. In that case, would be desirable to use 'Etoys' as text domain?
=============== Diff against System-Richo.10 ===============
Item was changed:
----- Method: TextDomainManager classSide>>initialize (in category 'class initialization') -----
initialize
" TextDomainManager initialize "
ClassCategories _ IdentityDictionary new.
Classes _ IdentityDictionary new.
Packages := Dictionary new.
DomainInfos _ Dictionary new.
+ self defaultDomain: 'Etoys'.
- self defaultDomain: 'others'.
"self registerClass: #QuickGuideMorph domain: 'quickguides'.
self registerClass: #QuickGuideHolderMorph domain: 'quickguides'."!
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.
].
].
!
A new version of Protocols was added to project Etoys:
http://source.squeak.org/etoys/Protocols-Richo.2.mcz
==================== Summary ====================
Name: Protocols-Richo.2
Author: Richo
Time: 17 May 2010, 11:53:10 pm
UUID: 5572f53d-62c6-8241-891c-9ca956d09fe2
Ancestors: Protocols-bf.1
This change is probably wrong. But I'm experimenting anyway :).
I made ObjectWithDocumentation>>#wording return the translated value using 'Etoys-Tiles' domain.
=============== Diff against Protocols-bf.1 ===============
Item was changed:
----- Method: ObjectWithDocumentation>>wording (in category 'accessing') -----
wording
"Answer the receiver's wording"
| wording |
(wording := self propertyAt: #wording ifAbsent: [nil])
+ ifNotNil: [^wording translatedInDomain: 'Etoys-Tiles'].
- ifNotNil: [^wording translated].
self initWordingAndDocumentation.
^self propertyAt: #wording ifAbsent: ['']!
Item was removed:
- ----- Method: ElementCategory>>translated (in category 'translation') -----
- translated
- "answer the receiver translated to the current language"
-
- ^ self class new categoryName: categoryName asString translated asSymbol!