scan-all should support string arrays
Brought to you by:
dybdahl
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;
Logged In: YES
user_id=116253
Has now partially been implemented
Thanks that its partially implemented. How to use?
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.
This scan-all feature should be documented, but by who and where?