Angus Leeming <[EMAIL PROTECTED]> writes: | > I would actually prefere: | > | > string str; | > if (some choice) { | > str = getDescription(); | > } | > fl_set_object(label(obj, _(str)); | > | > | > But I am not sure if everybody else agrees with me on that. | | Ok, so what YOU'RE saying is that a good rule is: | | if I define a sting str, then I should use N_() where I define it: | | string str = N_("some very interesting text"); | | And then when I pass it to xforms use _() there | | fl_set_object_label(obj, _(str)); Unless you are creating it dynamically and showing it to te user promptly... string str(_("Hello World")); fl_set_object_label(obj, str.c_str()); Lgb | | If this is the case, then all I'm missing in FormPreferences is the | final _() | bit. The N_() bits can stay as they are. I have not looked at the code in detail, but yes it would seem so. Lgb
- Re: Some messages won't get translated Angus Leeming
- Re: Some messages won't get translated Dekel Tsur
- Re: Some messages won't get translated Angus Leeming
- Re: Some messages won't get translated Lars Gullik Bjønnes
- Re: Some messages won't get translated Angus Leeming
- Re: Some messages won't get translated Jean-Marc Lasgouttes
- Re: Some messages won't get translat... Angus Leeming
- Re: Some messages won't get tra... Jean-Marc Lasgouttes
- Re: Some messages won't get tra... Lars Gullik Bjønnes
- Re: Some messages won't get... Angus Leeming
- Re: Some messages won't get... Lars Gullik Bjønnes
- Re: Some messages won't get translated Dekel Tsur
- Re: Some messages won't get translat... Angus Leeming
- Re: Some messages won't get tra... Lars Gullik Bjønnes
- Re: Some messages won't get... Angus Leeming
- Re: Some messages won't get... Angus Leeming
- Re: Some messages won't get... Lars Gullik Bjønnes
- PATCH: Re: Some messages wo... Angus Leeming
- Re: PATCH: Re: Some message... Allan Rae
- Re: PATCH: Re: Some message... Angus Leeming
- Re: PATCH: Re: Some message... Lars Gullik Bjønnes