Nicolas Cellier uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-nice.681.mcz==================== Summary ====================
Name: System-nice.681
Author: nice
Time: 26 July 2014, 11:41:38.894 pm
UUID: 232c6d1f-5bf4-45e4-86c7-843c8285b0fa
Ancestors: System-nice.680
Remove one useless send of reset.
By the way, this is twice the same method... TODO remove the InternalTranslator version.
=============== Diff against System-nice.680 ===============
Item was changed:
----- Method: InternalTranslator class>>loadForLocaleIsoString:fromGzippedMimeLiteral: (in category 'file-services') -----
loadForLocaleIsoString: localeString fromGzippedMimeLiteral: mimeString
"merge the translation from the mime literal."
| stream localeID translator gs rbStream s currentPlatform |
s := Base64MimeConverter mimeDecodeToBytes: mimeString readStream.
- s reset.
gs := GZipReadStream on: s.
rbStream := MultiByteBinaryOrTextStream with: gs contents asString.
rbStream converter: UTF8TextConverter new.
rbStream reset.
localeID := LocaleID isoString: localeString.
currentPlatform := Locale currentPlatform.
[Locale
currentPlatform: (Locale localeID: localeID).
stream := ReadStream on: rbStream contents]
ensure: [Locale currentPlatform: currentPlatform].
translator := self localeID: localeID.
translator loadFromStream: stream.
LanguageEnvironment resetKnownEnvironments!
Item was changed:
----- Method: NaturalLanguageTranslator class>>loadForLocaleIsoString:fromGzippedMimeLiteral: (in category 'file-services') -----
loadForLocaleIsoString: localeString fromGzippedMimeLiteral: mimeString
"merge the translation from the mime literal."
| stream localeID translator gs rbStream s currentPlatform |
s := Base64MimeConverter mimeDecodeToBytes: mimeString readStream.
- s reset.
gs := GZipReadStream on: s.
rbStream := MultiByteBinaryOrTextStream with: gs contents asString.
rbStream converter: UTF8TextConverter new.
rbStream reset.
localeID := LocaleID isoString: localeString.
currentPlatform := Locale currentPlatform.
[Locale
currentPlatform: (Locale localeID: localeID).
stream := ReadStream on: rbStream contents]
ensure: [Locale currentPlatform: currentPlatform].
translator := self localeID: localeID.
translator loadFromStream: stream.
LanguageEnvironment resetKnownEnvironments!