> Hi, Manolo and others,
>
> I've tried to localize the printer dialog strings in a cross-platform
> way, but the relevant global string pointers are defined in
> print_panel.cxx and thus only available on the U*X (Xlib) platforms,
> because this file is not included in the Win32 and Mac builds.
> It's for the (Xl1) printer dialog only. They are marked "These
> attributes apply to the Xlib platform only" in the current docs.
>
> This implies that developers who want to do localization of these
> strings would need something like
>
> #if !defined(WIN32) && !defined(__APPLE__)
>   ... localization of strings ...
> #endif
>
> in their code.  I don't like that. :-(
>

Albrecht:

I'm not convinced by this proposal. It could be confusing for the
FLTK programmer to pretend these strings are platform independent
when they are really unused on Mac and WIN32, where dialogs
are localized by the OS.

If you really consider that the requirement to put
#if !defined(WIN32) && !defined(__APPLE__) / #endif in the source code
is bad, I would then suggest to just move the definition of these
strings from file print_panel.cxx to file Fl_Printer.cxx
where they would be compiled for all platforms, even if for no use
on Mac and Win, but to keep them in class Fl_Printer.

Manolo
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to