Re: Scratch localization.
On Thu, Sep 11, 2008 at 5:37 PM, John Maloney <[EMAIL PROTECTED]> wrote: > So I think things may work fine as they are, once we've updated XO Scratch > to the 1.3 release. (I'm working on that now, with help from Scott if he is > willing). I'm willing, but I seem to have missed your first email re this. Could you resend it to me, too? Thanks! --scott -- ( http://cscott.net/ ) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
Hi, Erik. Unfortunately, the LocalePlugin does not solve this problem. Scratch must still read the Spanish translation file and re-layout the UI. I've forward you an email I sent to Scott about updating XO Scratch to the 1.3 release. -- John On Sep 11, 2008, at 5:35 PM, Erik Garrison wrote: > John, > > In Peru the team is using the Scratch.ini file to set the language to > spanish. There is a long delay between Scratch startup and the > setting > of the language, in which Scratch is in english. Does the > LocalePlugin > rectify this? > > What work needs to be done to update XO Scratch to Scratch 1.3? > > Erik > > On Thu, Sep 11, 2008 at 05:37:48PM -0400, John Maloney wrote: >> Hi, Erik. >> >> Apologies for the delay in responding. I was on vacation, then >> finishing >> the Scratch 1.3 release. >> >> Scratch remembers the last language set by the user in the >> Scratch.ini >> file. If that file is read-only, it fails gracefully. >> >> In older versions of Scratch (such as the current XO version), if no >> language was specified in the Scratch.ini file, Scratch would start >> up >> in English. However, it now uses the Squeak LocalePlugin to set the >> default language. So if the computer's locale is set to Spanish, >> Scratch >> should start up in Spanish. This feature has not yet been tested on >> Linux, but it does work on Mac OS and Windows. >> >> Many thanks to the Squeak folks for creating the LocalePlugin! >> >> So I think things may work fine as they are, once we've updated XO >> Scratch to the 1.3 release. (I'm working on that now, with help from >> Scott if he is willing). >> >> Scratch does not need to write persistent data to any other files. >> >> (It does need to write user projects somewhere, but Scott has solved >> that problem for now.) >> >> -- John >> >> >> On Aug 27, 2008, at 1:00 PM, Erik Garrison wrote: >>> On Wed, Aug 27, 2008 at 06:54:18PM +0200, Bert Freudenberg wrote: Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: > Scratch appears to require manual editing of the Scratch.ini > file in > order to come up in a language other than English. Is there any > way I > can pass a command-line option in bin/scratch-activity to set the > Language preference based on the value of $LANG? I'd prefer > that we > not have to ship a different Scratch bundle per-country. The Right Way to do it would be using the LocalePlugin, as Etoys does. If you need to patch up the bundle you could use the symlink trick again, the actual Scratch.ini would live in data/. Thus the language (and other settings possibly) that the user choses would persist. When running for the first time, the startup script could generate an initial Scratch.ini for the right language. >>> >>> What other persistent data beyond Scratch.ini does Scratch like to >>> modify? >> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
John, In Peru the team is using the Scratch.ini file to set the language to spanish. There is a long delay between Scratch startup and the setting of the language, in which Scratch is in english. Does the LocalePlugin rectify this? What work needs to be done to update XO Scratch to Scratch 1.3? Erik On Thu, Sep 11, 2008 at 05:37:48PM -0400, John Maloney wrote: > Hi, Erik. > > Apologies for the delay in responding. I was on vacation, then finishing > the Scratch 1.3 release. > > Scratch remembers the last language set by the user in the Scratch.ini > file. If that file is read-only, it fails gracefully. > > In older versions of Scratch (such as the current XO version), if no > language was specified in the Scratch.ini file, Scratch would start up > in English. However, it now uses the Squeak LocalePlugin to set the > default language. So if the computer's locale is set to Spanish, Scratch > should start up in Spanish. This feature has not yet been tested on > Linux, but it does work on Mac OS and Windows. > > Many thanks to the Squeak folks for creating the LocalePlugin! > > So I think things may work fine as they are, once we've updated XO > Scratch to the 1.3 release. (I'm working on that now, with help from > Scott if he is willing). > > Scratch does not need to write persistent data to any other files. > > (It does need to write user projects somewhere, but Scott has solved > that problem for now.) > > -- John > > > On Aug 27, 2008, at 1:00 PM, Erik Garrison wrote: >> On Wed, Aug 27, 2008 at 06:54:18PM +0200, Bert Freudenberg wrote: >>> >>> Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: >>> Scratch appears to require manual editing of the Scratch.ini file in order to come up in a language other than English. Is there any way I can pass a command-line option in bin/scratch-activity to set the Language preference based on the value of $LANG? I'd prefer that we not have to ship a different Scratch bundle per-country. >>> >>> The Right Way to do it would be using the LocalePlugin, as Etoys >>> does. >>> >>> If you need to patch up the bundle you could use the symlink trick >>> again, the actual Scratch.ini would live in data/. Thus the language >>> (and other settings possibly) that the user choses would persist. >>> When >>> running for the first time, the startup script could generate an >>> initial Scratch.ini for the right language. >> >> What other persistent data beyond Scratch.ini does Scratch like to >> modify? > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
Hi, Erik. Apologies for the delay in responding. I was on vacation, then finishing the Scratch 1.3 release. Scratch remembers the last language set by the user in the Scratch.ini file. If that file is read-only, it fails gracefully. In older versions of Scratch (such as the current XO version), if no language was specified in the Scratch.ini file, Scratch would start up in English. However, it now uses the Squeak LocalePlugin to set the default language. So if the computer's locale is set to Spanish, Scratch should start up in Spanish. This feature has not yet been tested on Linux, but it does work on Mac OS and Windows. Many thanks to the Squeak folks for creating the LocalePlugin! So I think things may work fine as they are, once we've updated XO Scratch to the 1.3 release. (I'm working on that now, with help from Scott if he is willing). Scratch does not need to write persistent data to any other files. (It does need to write user projects somewhere, but Scott has solved that problem for now.) -- John On Aug 27, 2008, at 1:00 PM, Erik Garrison wrote: > On Wed, Aug 27, 2008 at 06:54:18PM +0200, Bert Freudenberg wrote: >> >> Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: >> >>> Scratch appears to require manual editing of the Scratch.ini file in >>> order to come up in a language other than English. Is there any >>> way I >>> can pass a command-line option in bin/scratch-activity to set the >>> Language preference based on the value of $LANG? I'd prefer that we >>> not have to ship a different Scratch bundle per-country. >> >> The Right Way to do it would be using the LocalePlugin, as Etoys >> does. >> >> If you need to patch up the bundle you could use the symlink trick >> again, the actual Scratch.ini would live in data/. Thus the language >> (and other settings possibly) that the user choses would persist. >> When >> running for the first time, the startup script could generate an >> initial Scratch.ini for the right language. > > What other persistent data beyond Scratch.ini does Scratch like to > modify? ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
At Wed, 27 Aug 2008 18:54:18 +0200, Bert Freudenberg wrote: > > > Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: > > > Scratch appears to require manual editing of the Scratch.ini file in > > order to come up in a language other than English. Is there any way I > > can pass a command-line option in bin/scratch-activity to set the > > Language preference based on the value of $LANG? I'd prefer that we > > not have to ship a different Scratch bundle per-country. > > The Right Way to do it would be using the LocalePlugin, as Etoys > does. The Scratch 1.3 version adapted the LocalePlugin and it appears to be working (at least on Windows). So, I think it is getting there. -- Yoshiki ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
On Wed, Aug 27, 2008 at 06:54:18PM +0200, Bert Freudenberg wrote: > > Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: > > > Scratch appears to require manual editing of the Scratch.ini file in > > order to come up in a language other than English. Is there any way I > > can pass a command-line option in bin/scratch-activity to set the > > Language preference based on the value of $LANG? I'd prefer that we > > not have to ship a different Scratch bundle per-country. > > The Right Way to do it would be using the LocalePlugin, as Etoys does. > > If you need to patch up the bundle you could use the symlink trick > again, the actual Scratch.ini would live in data/. Thus the language > (and other settings possibly) that the user choses would persist. When > running for the first time, the startup script could generate an > initial Scratch.ini for the right language. What other persistent data beyond Scratch.ini does Scratch like to modify? ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Scratch localization.
Am 27.08.2008 um 18:38 schrieb C. Scott Ananian: > Scratch appears to require manual editing of the Scratch.ini file in > order to come up in a language other than English. Is there any way I > can pass a command-line option in bin/scratch-activity to set the > Language preference based on the value of $LANG? I'd prefer that we > not have to ship a different Scratch bundle per-country. The Right Way to do it would be using the LocalePlugin, as Etoys does. If you need to patch up the bundle you could use the symlink trick again, the actual Scratch.ini would live in data/. Thus the language (and other settings possibly) that the user choses would persist. When running for the first time, the startup script could generate an initial Scratch.ini for the right language. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Scratch localization.
Scratch appears to require manual editing of the Scratch.ini file in order to come up in a language other than English. Is there any way I can pass a command-line option in bin/scratch-activity to set the Language preference based on the value of $LANG? I'd prefer that we not have to ship a different Scratch bundle per-country. --scott -- ( http://cscott.net/ ) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel