Menu

#35 scan-all should support string arrays

open-accepted
None
4
2005-03-29
2003-03-27
No

Make it possible to mark strings in the source code as
translatable, even though they're not resourcestrings
and not enclosed by _(). This could be handy for array
of string constants:

var
aaa : array[1..2] of string = ( 'aaa', 'bbb' ); //
gnugettext: translate
i:integer;
begin
for i:=low(aaa) to high(aaa) do
aaa[i]:=_(aaa[i]);
ShowMessage(aaa[1]);
end;

Discussion

  • Lars B. Dybdahl

    Lars B. Dybdahl - 2003-05-24

    Logged In: YES
    user_id=116253

    Has now partially been implemented

     
  • Lars B. Dybdahl

    Lars B. Dybdahl - 2003-05-24
    • priority: 5 --> 4
    • summary: Switches for dxgettext in source code --> scan-all should support string arrays
     
  • Lars B. Dybdahl

    Lars B. Dybdahl - 2003-05-24
    • assigned_to: dybdahl --> nobody
     
  • Lars B. Dybdahl

    Lars B. Dybdahl - 2005-03-29
    • assigned_to: nobody --> dybdahl
    • status: open --> open-accepted
     
  • Barry Staes

    Barry Staes - 2012-04-11

    Thanks that its partially implemented. How to use?

     
  • Barry Staes

    Barry Staes - 2012-05-23

    After going through dxgettext it seems this is the intended syntax.

    {gnugettext: scan-all}
    const
    foo = 'hello';
    bar = 'world';
    {gnugettext: reset}

    I have not tested whether this works with arrays in packages, which is what i need.

     
  • Barry Staes

    Barry Staes - 2012-05-23

    This scan-all feature should be documented, but by who and where?

     

Log in to post a comment.

MongoDB Logo MongoDB