On Mon, 29 Oct 2007 16:41:26 +0000
Luis Rodrigues <[EMAIL PROTECTED]> wrote:
> On Sun, 2007-10-21 at 14:07 +0200, Mattias Gaertner wrote:
> > On Sun, 21 Oct 2007 13:48:18 +0200
> > Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> >
> > > On Sun, 21 Oct 2007 01:30:21 +0100
> > > Luis Rodrigues <[EMAIL PROTECTED]> wrote:
> > >
> > > > On Tue, 2007-10-16 at 01:03 +0200, Mattias Gaertner wrote:
> > > > > On Mon, 15 Oct 2007 16:28:23 +0100
> > > > > Luis Rodrigues <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > We're using FOnReadStringProperty from reader.inc to
> > > > > > translate the string properties, how about TStrings how can
> > > > > > this be done?
> > > > > >
> > > > > > Ideas please.
> > > > >
> > > > > First define requirements:
> > > > > - Some TStrings should not be translated
> > > > > - Some TStrings should be translated line by line
> > > > > (TCombobox, TListBox)
> > > > > - Some TStrings should be translated as text (TMemo)
> > > > >
> > > > > To FPC team:
> > > > > Is it possible to use TTranslateStrings = type TStrings?
> > > > > I ask because, the compiler allows it, but stops later with a
> > > > > not helping message:
> > > > > lcl/interfaces/gtk2/interfaces.pas(1,1) Fatal: Compilation
> > > > > aborted
> > > >
> > > > Are there any fpc devs on this list? Should I ask this somewhere
> > > > else?
> > >
> > > I asked on the fpc devel list.
> >
> > Answer: Yes, but it is buggy.
> > Maybe you can make some tests and report the bugs.
> > Then we can use this eventually and for now projects can use
> > resourcestrings.
>
> What type of tests? Just try to use TTranslateStrings = type TStrings
> with different versions of the compiler to see if it works?
Yes. Create small test cases and report the bugs, so they can be fixed
quickly. Then we can use it with the next fpc 2.2.2 which will come in
1-3 months.
After that:
I think we need at least two types of TTranslateStrings types, one for
translating line by line and one for the whole text.
Maybe
TTranslateStringsText
and
TTranslateStringsLines
?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives