Angus Leeming <[EMAIL PROTECTED]> writes:
| On Wednesday 06 December 2000 16:52, Lars Gullik Bjønnes wrote:
| > Angus Leeming <[EMAIL PROTECTED]> writes:
| > | Great idea. Done it.
| > |
| > | fdui->counter_zoom = obj =
| > | fl_add_counter(FL_NORMAL_COUNTER,310,130,100,30,"Zoom %|#Z");
| > |
| >
On Wednesday 06 December 2000 16:52, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | Great idea. Done it.
> |
> | fdui->counter_zoom = obj =
> | fl_add_counter(FL_NORMAL_COUNTER,310,130,100,30,"Zoom %|#Z");
> |
> | becomes
> |
> | fdui->counter_zoom = obj;
> | {
> |/
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> fdui-> counter_zoom = obj;
Angus> { // xgettext:no-c-format char * dummy = N_("Zoom %|#Z"); obj =
Angus> fl_add_counter(FL_NORMAL_COUNTER,310,130,100,30,idex(_(dummy)));
Angus> fl_set_button_shortcut(obj,scex(_(dummy)),1); }
Hmm,
Angus Leeming <[EMAIL PROTECTED]> writes:
| Great idea. Done it.
|
| fdui->counter_zoom = obj =
| fl_add_counter(FL_NORMAL_COUNTER,310,130,100,30,"Zoom %|#Z");
|
| becomes
|
| fdui->counter_zoom = obj;
| {
|// xgettext:no-c-format
|char * dummy = N_("Zoom %|#Z");
|obj = fl_add_cou
> Actually, here's an idea. What if we changed the rules around so we had
> code that looked like:
>
>// xgettext:no-c-format
>char * dummy = N_("Zoom %|#Z");
>fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 310, 130,
> 100, 30, idex(_(dummy)));
>fl_set_button_shortc
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Attached is a patch that (almost) resolves this bug.
Applied.
JMarc
On Tue, 5 Dec 2000, Angus Leeming wrote:
> Results in, eg, this:
> // xgettext:no-c-format
>fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 310, 130,
> 100, 30, idex(_("Zoom %|#Z")));
> fl_set_button_shortcut(obj, scex(_("Zoom %|#Z")), 1);
>
> (Sorry I can't seem to turn
Attached is a patch that (almost) resolves this bug.
However, I have a problem in frontends/xforms/forms/fdfixc.sed. Putting this
in the sed script:
# gettext will get confused if the string contains a "%" unless the line is
# preceeded immediately by //xgettext:no-c-format
/_(".*[%].*")/i\