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

Reply via email to