[Lazarus] Improving IDE Internationalization

2010-01-26 Thread Marcelo B de Paula
Hello Marcelo, I've recently been told about developing of a new fpc feature. The feature would allow user to override a default message type (any hint, note or warning) and treat it it as a error. So determining a message type by its number would provide a wrong result (at least icon of the mes

Re: [Lazarus] Improving IDE Internationalization

2010-01-25 Thread dmitry boyarintsev
Hello Marcelo, I've recently been told about developing of a new fpc feature. The feature would allow user to override a default message type (any hint, note or warning) and treat it it as a error. So determining a message type by its number would provide a wrong result (at least icon of the mess

Re: [Lazarus] Improving IDE Internationalization

2010-01-25 Thread Graeme Geldenhuys
Marcelo B de Paula wrote: > review and planning before merging it to trunk. > I gave you the full source code. What more do you want? I think what he meant is that it is easier to review changes when you only need to look at a patch file. The reviewer now needs to use a diff tool, or use the diff

[Lazarus] Improving IDE Internationalization

2010-01-25 Thread Marcelo B de Paula
Using stand-alone files might be trouble some. It's better to report new features as patches Please see, http://wiki.freepascal.org/Creating_A_Patch I´m aware on how to create a patch. This isn´t the case. The code needs some review and planning before merging it to trunk. I gave you the full

Re: [Lazarus] Improving IDE Internationalization

2010-01-25 Thread dmitry boyarintsev
On Mon, Jan 25, 2010 at 5:16 PM, Marcelo B de Paula wrote: > Any question about this code, feel free to ask. Using stand-alone files might be trouble some. It's better to report new features as patches Please see, http://wiki.freepascal.org/Creating_A_Patch thanks, dmitry -- ___

[Lazarus] Improving IDE Internationalization

2010-01-25 Thread Marcelo B de Paula
I uploaded the code i have (TOutputFilter) to bugtracker, #15584. Developers that wants to use or modify it, feel free to do it. What i could do to help, i´ve done. Unfortunatly i have no free time at moment to conclude it. But still have some ideas if anyone is interested. Any question about

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
Indeed, quick fixes have hardcoded English messages. It's possible to use translated messages, with out using message numbers, but it's much harder job than using -vq switch directly. You're free to provide the patch for fixing the problem (and using -vq switch). But you should make the patch ag

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
If you've a patch ready please send it to bugs.freepascal.org as well, creating the issue. thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
Indeed, quick fixes have hardcoded English messages. It's possible to use translated messages, with out using message numbers, but it's much harder job than using -vq switch directly. You're free to provide the patch for fixing the problem (and using -vq switch). But you should make the patch aga

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
What Lazarus version are you using? Could you try svn version? There has been a bug report about it. The reporter considers the bug fixed: http://bugs.freepascal.org/view.php?id=14775 thanks, dmitry Hello again dmitry, Tested with svn version 23.543. Sorry! The icons appear correctly. I can c

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
On Sun, Jan 24, 2010 at 6:33 PM, Marcelo B de Paula wrote: > If i change compiler messages by loading another errorxx.msg in IDE or use a > different errorxx.msg > to compile the compiler itself, the first thing i´ve noticed is that > QuickFixItems stop working, > and message icons on message view

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
Anyway. What i'd like to say is that current implementation is working with both 2.2.4 and 2.4.0 (or later) versions of the compiler. And supports translated messages correctly. Yes, i think that this modification can be tagged to a new release of compiler and ide. About translate messages wo

Re: [Lazarus] Improving IDE Internationalization

2010-01-24 Thread dmitry boyarintsev
On Sun, Jan 24, 2010 at 4:50 PM, Marcelo B de Paula wrote: > The fact that current code is comparing messages with const strings like > "Note:" prevent the use of > translated compiler messages. Instead, the use of message numbers (compiler > switch -vq) can be > used in place to detect the type o

[Lazarus] Improving IDE Internationalization

2010-01-24 Thread Marcelo B de Paula
Line(s); Result:=true; end; - Original Message - From: "dmitry boyarintsev" To: "Lazarus mailing list" Sent: Sunday, January 24, 2010 2:39 AM Subject: Re: [Lazarus] Improving IDE Internationalization Hello Marcelo, The current (svn version) of Lazarus,

Re: [Lazarus] Improving IDE Internationalization

2010-01-23 Thread dmitry boyarintsev
Hello Marcelo, The current (svn version) of Lazarus, is working as described. Except for messages are not loaded from errore.msg file initially. The location of errore.msg may vary from platform to platform, depending on location of FPC. But IDE's compiler messages can be configured to load the m

[Lazarus] Improving IDE Internationalization

2010-01-23 Thread Marcelo B de Paula
Well, for a few days now i'm trying to acomplish this: http://wiki.lazarus.freepascal.org/IDE_Development#Translated_compiler_messages I already have a new TOutputFilter working, but unfortunatly just tested on win32. I will need some help to test this in other plataforms. Some problems appear

[Lazarus] Improving IDE Internationalization

2010-01-02 Thread Marcelo B de Paula
Mattias wrote: >I think there is a better way: > >http://wiki.lazarus.freepascal.org/IDE_Development#Translated_compiler_messages > >I added some todos. > >Mattias Ok. I understand that will take some time to acomplish these todos. I´ll see what i can do to help. What about the embedded string

Re: [Lazarus] Improving IDE Internationalization

2010-01-02 Thread Mattias Gaertner
On Fri, 1 Jan 2010 15:18:44 -0300 "Marcelo Borges de Paula" wrote: > Happy new year to everyone. > >I´m having some troubles when using other compiler messages files to > compile Lazarus or > when using fpc compiled with other message file language than english. >The fact is that Lazar

[Lazarus] Improving IDE Internationalization

2010-01-01 Thread Marcelo Borges de Paula
Happy new year to everyone. I´m having some troubles when using other compiler messages files to compile Lazarus or when using fpc compiled with other message file language than english. The fact is that Lazarus IDE has some pieces of code with embedded strings constants. I thought th