Zitat von Marc Weustink <[EMAIL PROTECTED]>:

>[...]
> > One issue that might come up in Lazarus (not fpGUI) is a question of
> > timing.  What if rsHello is assigned before correct localization was
> > loaded.  fpGUI does localization handling in Application.Initialize

Good idea.
I think using resourcestrings in initialization sections will always be a
problem. I don't think this can be solved in general.

For example:
IDE packages should use the 'register' procedure for all initializations with
resourcestrings. This is called by the IDE _after_ it set up the basics and
loaded it's configs.

For LCL applications the translator unit inits the default language from the
environment vars. The timing depends on the position in the uses clause of the
project. The language can be later set by the app.
The question is, when should the .po files (or whatever) read to setup the
resourcestrings. Application.Initialize is probably a good place for most apps.


Mattias

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to