> 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_shortcut(obj, scex(_(dummy)), 1); > > This way we could make a small simplification of the idex()->scex() rule > that's giving problems and we could probably merge the two fl_add and > shortcut rules into one that makes code similar to the above (ie. only > handle two cases -- with[out] shortcut. 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_counter(FL_NORMAL_COUNTER,310,130,100,30,idex(_(dummy))); fl_set_button_shortcut(obj,scex(_(dummy)),1); } The sed script is ALMOST understandable too! Angus
- 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 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 Angus Leeming
- Re: Some messages won't get translated Lars Gullik Bjønnes
- PATCH: Re: Some messages won't get trans... Angus Leeming
- Re: PATCH: Re: Some messages won't get t... Allan Rae
- Re: PATCH: Re: Some messages won't get t... Angus Leeming
- Re: PATCH: Re: Some messages won't get t... Lars Gullik Bjønnes
- Re: PATCH: Re: Some messages won't get t... Angus Leeming
- Re: PATCH: Re: Some messages won't get t... Lars Gullik Bjønnes
- Re: PATCH: Re: Some messages won't get t... Jean-Marc Lasgouttes
- Re: PATCH: Re: Some messages won't get t... Jean-Marc Lasgouttes
- Re: Some messages won't get translated Baruch Even
- Re: Some messages won't get translated Angus Leeming