Hi Mindaugas,
hb_i18n_gettext() return original text if lookup failed, so, it will return
> empty string if parameter is empty string, but it will happen after lookup.
> Of cause we can implement additional check for empty string, but do not see
> any reason for it. It will make empty string "conversion" faster, and all
> other lookup will take longer (because one more test for empty string).
No, it is IMO perfect this way, empty strings are rare.
>
> Actually, I do not imagine, why we need use hb_i18n_gettext("") at all???
> Do you have any real life sample?
>From hbmk2:
---
LOCAL aText_Basic := {;
I_( "Syntax:" ),;
I_( "" ),;
I_( " hbmk [options] [<script[s]>]
<src[s][.prg|.c|.obj|.o|.rc|.res|.pot|.hbl]>" ),;
I_( "" ),;
I_( "Options:" ) }
---
Of course you can swap I_( "" ) to I_( " " ) or "", but it makes source less
consistent.
Anyway there are other solution for this specific case, but a fatal warning
is too heavy
here IMO.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour