[Lazarus] [IDE] Translations of licence texts which are inserted into source code
Václav Valíček
vaclav at valicek.name
Mon Jun 2 20:54:33 CEST 2014
Thanks for apply.
Invented new problem with this - PO Checker - if I change number of %s,
it causes error... I have idea to replace %s with another symbol or
sequence of symbols. First suggestion is to use <br> which is well known
from HTML... Or \n from bash/php/js... Any other suggestions?
Václav Valíček
vaclav at valicek.name
Dne 2.6.2014 12:26, Mattias Gaertner napsal(a):
> On Sun, 1 Jun 2014 20:58:06 +0200
> Václav Valíček <vaclav at valicek.name> wrote:
>
>> While trying to adapt notice about not legal translation, I have found
>> that I have to add new lines to licence text.... And it is problem,
>> because of Format function (ide/sourceeditor.pp:4011) - it would case
>> missmatch.
>>
>> Code:
>> Txt:=CommentText(LCLProc.BreakString(
>> Format(Notice,[#13#13,#13#13,#13#13,#13#13,#13#13]),
>> FEditor.RightEdge-2,0),CommentType);
>>
>> Isn't it silly to change it just to?:
>> Txt:=CommentText(LCLProc.BreakString(
>> StringReplace(Notice, '%s', sLineBreak, [rfReplaceAll]),
>> FEditor.RightEdge-2,0),CommentType);
> I applied that.
>
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list