[REBOL] Re: locale Re: Re: %Maoww_english.r
From: petr:krenzelok:trz:cz at: 24-Aug-2002 19:06
Francesco De Napoli wrote:
>Hello [mh983--attbi--com]
>
>On 23-Ago-02, [mh983--attbi--com] wrote:
>
>>for what it's worth, I think the last one is the best approach: have one
>>file per language and use named constants for the different strings
>>
>>
>
>yes, this is an old idea used with succes by locale.library of AmigaOS
>3.x!!
>
>Many months ago I started to make a Rebol Tools to implement any routines of
>locale.libray, but after a little experiment I haven't more time to
>complete it :(
>
>It is based on external files, collected into a directory called %catalog/.
>
Yes, I know. But then we have to decide, if we add system-wide
directories as /catalogues, /skins, etc., or each app will use its own
directory? Because - in rebol, the app = few KB script in many cases, so
maybe it would be sufficient to look at app directory subdir, or
directly at directory where script resides (no /catalogues subdir, just
catalogue files)
we could e.g. use app-name.czech.cat or even app-name.czech and use
suffix? func to get language name. But it could look confusing having
app-name.r containing app itself, default catalogue and app-name.czech
to contain only language catalogue, not script ...
The problem is - whatever aproach si possible. The only question is,
what way to go ...
And also - don't forget to somehow check for the version needed? So if
you will receive new version of your app, you may try to force not to
use catalogue older than 1.4 version or so ... So now we would need
catalogue to carry its version number too ....
-pekr-