diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-05-16 12:26:07 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-05-16 12:26:07 +0000 |
| commit | 74198871a67e9ca1bdc46fc9b57ac4b09649eddf (patch) | |
| tree | d8abdfa9be21febda997d3c88b08e919729acce3 /fluid/Fl_Function_Type.cxx | |
| parent | 3f177d70dee93b576efb7807107dd66302ca5de4 (diff) | |
I18N didn't work right for menus - the messages numbers were wrong.
Added new "msgnum()" method to Fl_Type to handle computing the message
number on the fly.
Now initialize nl_catd and locale settings directly in the static
variables so that menu labels are correctly looked up. This hack shouldn't
be necessary in 2.0...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index c757d197b..515a8efe3 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -1,9 +1,9 @@ // -// "$Id: Fl_Function_Type.cxx,v 1.15.2.13 2000/04/25 01:57:48 mike Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.14 2000/05/16 12:26:02 mike Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-1999 by Bill Spitzak and others. +// Copyright 1998-2000 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -269,11 +269,6 @@ void Fl_Function_Type::write_code1() { } if (havewidgets) write_c(" %s* w;\n",subclassname(child)); indentation += 2; - - if (i18n_type == 2 && !i18n_file[0]) - // Initialize _catalog as needed... - write_c(" if (_catalog == (nl_catd)-1) _catalog = catopen(\"%s\", 0);\n", - i18n_program); } void Fl_Function_Type::write_code2() { @@ -677,5 +672,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.13 2000/04/25 01:57:48 mike Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.14 2000/05/16 12:26:02 mike Exp $". // |
