]> git.lyx.org Git - lyx.git/commitdiff
Patches from Angus and John
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Dec 2000 09:49:54 +0000 (09:49 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Dec 2000 09:49:54 +0000 (09:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1260 a592a061-630c-0410-9148-cb99ea01b6c8

32 files changed:
ChangeLog
INSTALL
src/LColor.C
src/frontends/kde/FormTabularCreate.C
src/frontends/kde/citationdlg.C
src/frontends/kde/copyrightdlg.C
src/frontends/kde/dlg/.cvsignore
src/frontends/kde/dlg/Makefile.am
src/frontends/kde/dlg/README
src/frontends/kde/dlg/dialogs/para.dlg
src/frontends/kde/dlg/emptytable.C
src/frontends/kde/dlg/moc/.cvsignore
src/frontends/kde/dlg/paradlgdata.C
src/frontends/kde/dlg/paradlgdata.h
src/frontends/kde/dlg/tabstack.C
src/frontends/kde/moc/.cvsignore
src/frontends/kde/paradlg.C
src/frontends/kde/paraextradlg.C
src/frontends/kde/parageneraldlg.C
src/frontends/kde/printdlg.C
src/frontends/kde/refdlg.C
src/frontends/kde/tabcreatedlg.C
src/frontends/kde/tocdlg.C
src/frontends/kde/urldlg.C
src/frontends/xforms/ButtonController.C
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/form_graphics.C
src/frontends/xforms/form_paragraph.C
src/frontends/xforms/form_preferences.C
src/frontends/xforms/forms/fdfixc.sed
src/lyxlookup.h
src/lyxrc.C

index 8554b5110be85ba568686f155ea5024bdb54cce6..ce56d6b26c69ac2c1a1d7a1c6e578cea04a6e485 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,50 @@
+2000-12-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * INSTALL: update PROBLEMS section.
+
+       * src/lyxlookup.h: remove condition on xforms version, since we
+       should not include it if not appropriate.
+
+2000-12-05  John Levon  <moz@compsoc.man.ac.uk>
+
+       * src/LColor.C: "latex text" -> "latex inset" (from
+       Angus Leeming)
+
+       * src/lyxrc.C: "it's" -> "its" (from Angus Leeming)
+
+       * src/frontends/kde/FormTabularCreate.C:
+       * src/frontends/kde/citationdlg.C:
+       * src/frontends/kde/copyrightdlg.C:
+       * src/frontends/kde/paradlg.C:
+       * src/frontends/kde/paraextradlg.C:
+       * src/frontends/kde/parageneraldlg.C:
+       * src/frontends/kde/printdlg.C:
+       * src/frontends/kde/refdlg.C:
+       * src/frontends/kde/tabcreatedlg.C:
+       * src/frontends/kde/tocdlg.C:
+       * src/frontends/kde/urldlg.C: add necessary headers
+       (from Angus Leeming)
+
+       * src/frontends/kde/dlg/emptytable.C:
+       * src/frontends/kde/dlg/tabstack.C: ctors shouldn't have
+       default parameters (from Angus Leeming)
+               
+       * src/frontends/kde/dlg/moc/.cvsignore:
+       * src/frontends/kde/dlg/.cvsignore:
+       * src/frontends/kde/moc/.cvsignore: fix the library name
+       (from Angus Leeming)
+
+       * src/frontends/kde/paradlg.C:
+       * src/frontends/kde/parageneraldlg.C:
+       * src/frontends/kde/dlg/para.dlg:
+       * src/frontends/kde/dlg/paradlgdata.C: added accelerators
+
+       * src/frontends/kde/dlg/README: clarified qtarch version
+
+       * src/frontends/kde/dlg/Makefile.am: removed the
+       dlg rules as they created spontaneous rebuilds
+       (not a good idea as it requires qtarch)
+
 2000-12-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * config/lyxinclude.m4 (LYX_PATH_XFORMS): display also the
diff --git a/INSTALL b/INSTALL
index d506060d495c8d4c706f5b84ee7fb36996032fe7..ad7aeb2d7a4509f877a9f4c79ac99b93cab70963 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -306,9 +306,8 @@ notify us.
     will be solved if you use --with-included-gettext when configuring
     LyX.
 
-  o It is possible to compile lyx with Digital Unix cxx compiler
-    version 6.1 (and presumably compaq C++ 6.2 on both Tru64 unix and
-    linux/alpha, when this will be available), provided one uses
+  o It is possible to compile lyx with Tru64 Unix cxx compiler
+    version 6.2, provided one uses
        CXX=cxx
        CXXFLAGS='-ptr /tmp/lyx_cxx_repository -std strict_ansi -g -O'
 
@@ -316,17 +315,15 @@ notify us.
     repository, due to the tricks used by automake for dependencies. Ask
     Jean-Marc.Lasgouttes@inria.fr for a workaround.
 
-  o On Digital Unix with cxx, you may have a compilation error in
+  o On Tru64 Unix, you may have to compile with
+    --with-included-string to work around a Tru64 linker limitation
+    (the STL string template creates names which may be too long).
+
+  o On Tru64 Unix with cxx, you may have a compilation error in
     lyx_main.C if you have GNU gettext installed. This is due to a bug
     in gettext. To solve this, you can either (1) configure with
     --with-included-gettext or (2) add -D__STDC__ to cxx flags.
 
-  o The configure script seems to hang while it is checking the LaTeX setup.
-    We think that this is not a real problem, but rather a symptom of the 
-    fact that the ec-fonts are being rendered.  This process can take quite 
-    some time, so the remedy is simply to have patience. (The fonts need to 
-    be rendered at some point to be usable anyways.)
-
   o According to John Collins <collins@phys.psu.edu>, on SunOS 4.1.3 you may 
     find two sets of X libraries, and they are of course incompatible :-)
     One is the set provided as part of OpenWindows, and one is the standard
index d6a8006c754c5ea4617241651222aee74fe0420b..0d3b77b6981246ee56a9176e053320ba1373e702 100644 (file)
@@ -85,7 +85,7 @@ LColor::LColor()
        { footnote, N_("footnote"), "footnote", "DarkRed", "footnote" },
        { footnotebg, N_("footnote background"), "footnotebg", "grey60", "footnotebg" },
        { footnoteframe, N_("footnote frame"), "footnoteframe", "IndianRed", "footnoteframe" },
-       { ert, N_("latex text"), "ert", "DarkRed", "ert" },
+       { ert, N_("latex inset"), "ert", "DarkRed", "ert" },
        { inset, N_("inset"), "inset", "black", "inset" },
        { insetbg, N_("inset background"), "insetbg", "grey60", "insetbg" },
        { insetframe, N_("inset frame"), "insetframe", "IndianRed", "insetframe" },
index d9f1b4b4a66989e2090ba129fcbed7a5f52e828a..212ad982dd64aa360796c745898f3ab2e3feb6c1 100644 (file)
@@ -23,8 +23,6 @@
 #include "BufferView.h"
 #include "insets/insettabular.h"  
 
-using std::endl;
-
 FormTabularCreate::FormTabularCreate(LyXView *v, Dialogs *d)
        : dialog_(0), lv_(v), d_(d), h_(0)
 {
index d2b0b79220536ef6ffcbc74ead3cca398a75c5b9..c6dc16109224cfaa4ef654cd943be98ad449cc81 100644 (file)
@@ -13,6 +13,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <config.h>
 #include "citationdlg.h"
 
 CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags)
index 59ded801981f486dca3e7b150f87cb19ca38571e..ddfaa09edfa9952c2a2b99847e0320ba35bfdf54 100644 (file)
@@ -7,6 +7,7 @@
 
  *********************************************************************/
 
+#include <config.h>
 #include "copyrightdlg.h"
 
 #define Inherited CopyrightDialogData
index 1e006fafea2187280a000cddbff1671c898146f3..4b27e295da52c9c98e7b38fd71336b9c83f1044b 100644 (file)
@@ -3,5 +3,5 @@ Makefile
 *.deps
 *.lo
 .libs
-libkde.la
+libkdedlg.la
 *moc.C
index 0653c7306297f1429e7aefec232494dc9bcd379d..042c655d4f5ed7b592907c657112c210fec46362 100644 (file)
@@ -37,29 +37,6 @@ libkdedlg_la_SOURCES = \
        tabstack.h \
        $(GENSOURCES)
 
-# dialog file dependencies
-
-copyrightdlgdata.C copyrightdlgdata.h: dialogs/copyright.dlg
-       $(QTARCH) -g $<
-indexdlgdata.C indexdlgdata.h: dialogs/index.dlg
-       $(QTARCH) -g $<
-printdlgdata.C printdlgdata.h: dialogs/print.dlg
-       $(QTARCH) -g $<
-paradlgdata.C paradlgdata.h: dialogs/para.dlg
-       $(QTARCH) -g $<
-parageneraldlgdata.C parageneraldlgdata.h: dialogs/parageneral.dlg
-       $(QTARCH) -g $<
-paraabovedlgdata.C paraabovedlgdata.h: dialogs/paraabove.dlg
-       $(QTARCH) -g $<
-parabelowdlgdata.C parabelowdlgdata.h: dialogs/parabelow.dlg
-       $(QTARCH) -g $<
-paraextradlgdata.C paraextradlgdata.h: dialogs/paraextra.dlg
-       $(QTARCH) -g $<
-tabcreatedlgdata.C tabcreatedlgdata.h: dialogs/tabcreate.dlg
-       $(QTARCH) -g $<
-
-dlgdata: $(GENSOURCES)
-
 moc/copyrightdlgdata_moc.C: copyrightdlgdata.C copyrightdlgdata.h
 moc/emptytable_moc.C: emptytable.C emptytable.h
 moc/indexdlgdata_moc.C: indexdlgdata.C indexdlgdata.h
index 43145094bcfb936846615d69ea576c84a54afeab..f4aa9260baf2db071643bb3c6a98214b8262edb7 100644 (file)
@@ -1,11 +1,14 @@
-These files are generated with qtarch-1.4-6 which can be downloaded
+These files are generated with qtarch-1.4-5 which can be downloaded
 from 
 
 http://qtarch.sourceforge.net/
 
 Currently you also need this patch : 
 http://www.movement.uklinux.net/patches/lyx/qtarch-1.4.6.diff
+
+Eventually the intent is to fold this patch into the official qtarch and
+release a qtarch-1.4-6 tarball.
+
 Note this is *not* the latest version, as they only support Qt 2.0.
 
 You should compile in the KDE module when you compile qtarch-1.4.
index d5c6e628601db3aa7bc1c89174cb255a55b88517..df6a6d4143d6857aa156b946b5820d7208263088 100644 (file)
@@ -22,7 +22,7 @@ PushButton {
                Default {true}
                AutoDefault {false}
                IsMenuButton {false}
-               Text {OK}
+               Text {&OK}
                AutoRepeat {false}
                AutoResize {false}
                Rect {73 555 69 55}
@@ -74,7 +74,7 @@ PushButton {
                Default {false}
                AutoDefault {false}
                IsMenuButton {false}
-               Text {Apply}
+               Text {&Apply}
                AutoRepeat {false}
                AutoResize {false}
                Rect {215 555 68 55}
@@ -103,7 +103,7 @@ PushButton {
                Default {false}
                AutoDefault {false}
                IsMenuButton {false}
-               Text {Restore}
+               Text {&Restore}
                AutoRepeat {false}
                AutoResize {false}
                Rect {357 555 68 55}
@@ -132,7 +132,7 @@ PushButton {
                Default {false}
                AutoDefault {false}
                IsMenuButton {false}
-               Text {Cancel}
+               Text {&Cancel}
                AutoRepeat {false}
                AutoResize {false}
                Rect {498 555 69 55}
index 10ed8e06e8e093a308060f9d1f1bbc0bb85c2ee3..53ef5225b89d5cd07ddfd764e0bfc9df325a1118 100644 (file)
@@ -21,7 +21,7 @@
 
 const unsigned int cellsize = 20;
 
-EmptyTable::EmptyTable(QWidget * parent = 0, const char * name = 0)
+EmptyTable::EmptyTable(QWidget * parent, const char * name)
        : QTableView(parent,name)
 {
        setNumCols(5);
index 1e006fafea2187280a000cddbff1671c898146f3..5f0d90dae71bda5808ee753de8f1bc7c3acde30f 100644 (file)
@@ -3,5 +3,5 @@ Makefile
 *.deps
 *.lo
 .libs
-libkde.la
+libkdedlgmoc.la
 *moc.C
index 7c39b753d0b5e70c8a9b43d220026d1fbbe71aab..2d1c845bad4fa3bce9f955b0a1c122fba2bbd401 100644 (file)
@@ -3,7 +3,7 @@
        --- Qt Architect 1.4-6 generated file ---
 
        File: paradlgdata.C
-       Last generated: Mon Dec 4 18:21:54 2000
+       Last generated: Tue Dec 5 17:05:19 2000
 
        DO NOT EDIT!!!  This file will be automatically
        regenerated by qtarch.  All changes will be lost.
@@ -36,7 +36,7 @@ ParaDialogData::ParaDialogData
        ok->setBackgroundMode( QWidget::PaletteBackground );
        ok->setFontPropagation( QWidget::NoChildren );
        ok->setPalettePropagation( QWidget::NoChildren );
-       ok->setText( _("OK") );
+       ok->setText( _("&OK") );
        ok->setAutoRepeat( false );
        ok->setAutoResize( false );
        ok->setToggleButton( false );
@@ -62,7 +62,7 @@ ParaDialogData::ParaDialogData
        apply->setBackgroundMode( QWidget::PaletteBackground );
        apply->setFontPropagation( QWidget::NoChildren );
        apply->setPalettePropagation( QWidget::NoChildren );
-       apply->setText( _("Apply") );
+       apply->setText( _("&Apply") );
        apply->setAutoRepeat( false );
        apply->setAutoResize( false );
        apply->setToggleButton( false );
@@ -79,7 +79,7 @@ ParaDialogData::ParaDialogData
        restore->setBackgroundMode( QWidget::PaletteBackground );
        restore->setFontPropagation( QWidget::NoChildren );
        restore->setPalettePropagation( QWidget::NoChildren );
-       restore->setText( _("Restore") );
+       restore->setText( _("&Restore") );
        restore->setAutoRepeat( false );
        restore->setAutoResize( false );
        restore->setToggleButton( false );
@@ -96,7 +96,7 @@ ParaDialogData::ParaDialogData
        cancel->setBackgroundMode( QWidget::PaletteBackground );
        cancel->setFontPropagation( QWidget::NoChildren );
        cancel->setPalettePropagation( QWidget::NoChildren );
-       cancel->setText( _("Cancel") );
+       cancel->setText( _("&Cancel") );
        cancel->setAutoRepeat( false );
        cancel->setAutoResize( false );
        cancel->setToggleButton( false );
index 35b2818e08fab390a9e376a4c637fb3b94745527..c769b71ad0792b371c912b29663ce0b55654ba70 100644 (file)
@@ -3,7 +3,7 @@
        --- Qt Architect 1.4-6 generated file ---
 
        File: paradlgdata.h
-       Last generated: Mon Dec 4 18:21:54 2000
+       Last generated: Tue Dec 5 17:05:19 2000
 
        DO NOT EDIT!!!  This file will be automatically
        regenerated by qtarch.  All changes will be lost.
index 9e3e656bcd7d4c88142040cf9ec817d83b827cdc..14e2841f79b4a640b55ca5236622d146ddc6b038 100644 (file)
@@ -24,7 +24,7 @@
  * A tab bar and a widget stack for storing related pages.
  */
 
-TabStack::TabStack(QWidget * parent = 0, const char * name = 0)
+TabStack::TabStack(QWidget * parent, const char * name)
        : QWidget(parent,name), tabs(0), stack(0)
 {
        stack = new QWidgetStack(this, "stack");
index 1e006fafea2187280a000cddbff1671c898146f3..bd8e2310e44e24e76f4770de7f4396a416c41650 100644 (file)
@@ -3,5 +3,5 @@ Makefile
 *.deps
 *.lo
 .libs
-libkde.la
+libkdemoc.la
 *moc.C
index ea4c418c851fb9a240f1336709ce5277ddd7f370..a23c92a05157d568024ff24422156142dc4920a3 100644 (file)
@@ -13,6 +13,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <config.h>
 #include "support/lstrings.h" 
 
 #include "paradlg.h"
@@ -30,8 +31,8 @@ ParaDialog::ParaDialog(FormParagraph *form, QWidget *parent, const char *name, b
        generalpage = new ParaGeneralDialog(this, "generalpage");
        extrapage = new ParaExtraDialog(this, "extrapage");
        
-       tabstack->addTabPage(generalpage, _("General"));
-       tabstack->addTabPage(extrapage, _("Extra"));
+       tabstack->addTabPage(generalpage, _("&General"));
+       tabstack->addTabPage(extrapage, _("&Extra"));
 }
 
 ParaDialog::~ParaDialog()
index bf587454a6b4d34bfdd1cb6cb9e94f6c68b6c8f3..813d4b364dc679e3ae19a002c7e69c76ecb95883 100644 (file)
@@ -7,6 +7,7 @@
 
  *********************************************************************/
 
+#include <config.h>
 #include "paraextradlg.h"
 
 #include <gettext.h>
index d23e41940d8f221a25909094e23ca858f7f3a5c7..033027621821c27a260da6e7bcb39189f15bc00d 100644 (file)
@@ -7,6 +7,7 @@
 
  *********************************************************************/
 
+#include <config.h>
 #include "parageneraldlg.h"
 
 #include <gettext.h>
@@ -27,8 +28,8 @@ ParaGeneralDialog::ParaGeneralDialog
 
        // FIXME: free punctuation to whoever can make the value
        // boxes not be overly large
-       spacetab->addTabPage(abovepage, _("Spacing Above"));
-       spacetab->addTabPage(belowpage, _("Spacing Below"));
+       spacetab->addTabPage(abovepage, _("&Spacing Above"));
+       spacetab->addTabPage(belowpage, _("Spacing &Below"));
 
        connect(abovepage->spaceabove, SIGNAL(highlighted(int)), this, SLOT(spaceaboveHighlighted(int)));
        connect(belowpage->spacebelow, SIGNAL(highlighted(int)), this, SLOT(spacebelowHighlighted(int)));
index 6c6981d115b0814c092c22592ab94b58e06d6503..13c998f41b9ce40a20202400b2a1217a536046b7 100644 (file)
@@ -4,6 +4,7 @@
  * John Levon, moz@compsoc.man.ac.uk
  */
 
+#include <config.h>
 #include "dlg/printdlgdata.h"
 #include "printdlg.h"
 #include "support/lstrings.h"
index 5db39f2afdd227ed7471761c920a7e6f5dc814d7..ea826bd6f0d45f6157d4075da98fe451a591c523 100644 (file)
@@ -13,6 +13,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <config.h>
 #include "refdlg.h"
 
 RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags)
index 7361802e9e1deb011c1801984d317b713d208be2..ec25e4725631ba632a650576d08ed8e2c106d238 100644 (file)
@@ -4,6 +4,7 @@
  * John Levon, <moz@compsoc.man.ac.uk>
  */
 
+#include <config.h>
 #include "tabcreatedlg.h"
 #include "support/lstrings.h"
 
index b3551bf7ec3cc9e0ac85eca772c159b46e4f0851..7ec38f4e4a41e344db0387d75696f0fce895b7c4 100644 (file)
@@ -13,6 +13,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <config.h>
 #include "tocdlg.h"
 
 TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags)
index cf03667848a97bc4d869d3873159a98e38ce99b1..f0535f55f885d9af543a488a97f484f5216eb8e4 100644 (file)
@@ -13,6 +13,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <config.h>
 #include "urldlg.h"
 
 UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags)
index 3ba27dbb33e077da14a239c2643aa8c1941cc7e6..da4ad9ab71f9263e0608b32b253ed89c30f9bf2b 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "ButtonController.h"
 #include "support/LAssert.h"
+#include "gettext.h" // _()
 //#include "debug.h"
 
 
@@ -53,10 +54,10 @@ void ButtonController::refresh()
        if (cancel_) {
                if (bp_->buttonStatus(ButtonPolicy::CANCEL)) {
                        fl_set_object_label(cancel_,
-                                           cancel_label);
+                                           _(cancel_label));
                } else {
                        fl_set_object_label(cancel_,
-                                           close_label);
+                                           _(close_label));
                }
        }
        if (!read_only_.empty()) {
index 1e05bbf99c777ab0cc253c01994bf25d5b815830..d1ac93e457c61d1125d275ca48edc00d5d609010 100644 (file)
@@ -345,7 +345,7 @@ void FormPreferences::feedback(FL_OBJECT * ob)
        str = formatted(str, dialog_->text_warning->w-10,
                        FL_SMALL_SIZE, FL_NORMAL_STYLE);
 
-       fl_set_object_label(dialog_->text_warning, str.c_str());
+       fl_set_object_label(dialog_->text_warning, _(str.c_str()));
        fl_set_object_lsize(dialog_->text_warning, FL_SMALL_SIZE);
 }
 
@@ -739,13 +739,13 @@ void FormPreferences::Colors::LoadBrowserLyX()
        xformColorDB.clear();
        XformColor xcol;
 
-       xcol.name = N_("GUI background");
+       xcol.name = _("GUI background");
        xcol.colorID = FL_COL1;
        fl_getmcolor(FL_COL1, &xcol.r, &xcol.g, &xcol.b);
 
        xformColorDB.push_back(xcol);
 
-       xcol.name = N_("GUI text");
+       xcol.name = _("GUI text");
        xcol.colorID = FL_BLACK;
        fl_getmcolor(FL_BLACK, &xcol.r, &xcol.g, &xcol.b);
 
@@ -754,13 +754,13 @@ void FormPreferences::Colors::LoadBrowserLyX()
 
        xformColorDB.push_back(xcol);
 
-       xcol.name = N_("GUI selection");
+       xcol.name = _("GUI selection");
        xcol.colorID = FL_YELLOW;
        fl_getmcolor(FL_YELLOW, &xcol.r, &xcol.g, &xcol.b);
 
        xformColorDB.push_back(xcol);
 
-       xcol.name = N_("GUI pointer");
+       xcol.name = _("GUI pointer");
        xcol.colorID = GUI_COLOR_CURSOR;
        fl_getmcolor(GUI_COLOR_CURSOR, &xcol.r, &xcol.g, &xcol.b);
 
@@ -1575,11 +1575,11 @@ bool FormPreferences::Interface::input(FL_OBJECT const * const ob)
 {
        if (ob == dialog_->button_bind_file_browse) {
                string dir  = system_lyxdir + string("bind");
-               string name = N_("Sys Bind");
+               string name = _("Sys Bind");
                pair<string,string> dir1(name, dir);
 
                dir = user_lyxdir + string("bind");
-               name = N_("User Bind");
+               name = _("User Bind");
                pair<string,string> dir2(name, dir);
 
                parent_.browse(dialog_->input_bind_file,
@@ -1587,11 +1587,11 @@ bool FormPreferences::Interface::input(FL_OBJECT const * const ob)
                
        } else if (ob == dialog_->button_ui_file_browse) {
                string dir  = system_lyxdir + string("ui");
-               string name = N_("Sys UI");
+               string name = _("Sys UI");
                pair<string,string> dir1(name, dir);
 
                dir = user_lyxdir + string("ui");
-               name = N_("User UI");
+               name = _("User UI");
                pair<string,string> dir2(name, dir);
 
                parent_.browse(dialog_->input_ui_file,
@@ -3009,7 +3009,7 @@ void FormPreferences::printWarning(string const & warning)
        str = formatted(str, dialog_->text_warning->w-10,
                         FL_SMALL_SIZE, FL_NORMAL_STYLE);
 
-       fl_set_object_label(dialog_->text_warning, str.c_str());
+       fl_set_object_label(dialog_->text_warning, _(str.c_str()));
        fl_set_object_lsize(dialog_->text_warning, FL_SMALL_SIZE);
 }
 
index f60385700d61adf920c592c449cf3482a4c3cf32..bcb4e3402637fcbca2a6d5e09a0a865e4887c6a2 100644 (file)
@@ -49,6 +49,7 @@ FD_form_graphics * FormGraphics::build_graphics()
     fl_set_object_lalign(obj, FL_ALIGN_CENTER);
 
   fdui->radio_button_group_width = fl_bgn_group();
+  // xgettext:no-c-format
   fdui->radio_width_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 140, 80, 30, _("% of Page"));
     fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
   fdui->radio_width_default = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 80, 80, 30, _("Default"));
@@ -58,12 +59,14 @@ FD_form_graphics * FormGraphics::build_graphics()
     fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
   fdui->radio_width_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 120, 80, 30, _("Inch"));
     fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
+  // xgettext:no-c-format
   fdui->radio_width_percent_column = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 160, 96, 30, _("% of Column"));
     fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
   fl_end_group();
 
 
   fdui->radio_button_group_height = fl_bgn_group();
+  // xgettext:no-c-format
   fdui->radio_height_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 140, 96, 30, _("% of Page"));
     fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
   fdui->radio_height_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 120, 96, 30, _("Inch"));
index 3ea62f88825ea44a5d2aff2a3817c9e2493da608..8b660004f31443f7e1573d16eddd99b8db5b35e0 100644 (file)
@@ -163,6 +163,7 @@ FD_form_paragraph_extra * FormParagraph::build_paragraph_extra()
     fl_set_button_shortcut(obj, scex(_("Length|#L")), 1);
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
+  // xgettext:no-c-format
   fdui->input_pextra_widthp = obj = fl_add_input(FL_INT_INPUT, 240, 70, 90, 30, idex(_("or %|#o")));
     fl_set_button_shortcut(obj, scex(_("or %|#o")), 1);
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
index fa7abc1dc46a8fb0fb31755e73a4b9b21b1254c0..4313bdc100a8a7cc9f2cccb13357182a31ab793e 100644 (file)
@@ -102,6 +102,7 @@ FD_form_screen_fonts * FormPreferences::build_screen_fonts()
   fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT, 210, 65, 200, 30, _("Typewriter"));
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
+  // 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);
     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
index 191483eca96bca4fc7fb07d116863243d5b42afe..8dcd0d60a12cdb9f21f4475fcad876c1893ec7ae 100644 (file)
@@ -41,16 +41,20 @@ s/#include \"forms\.h\"/#include FORMS_H_LOCATION/
 #  replace the string with scex(_(string))
 /shortcut/ s/".*[|].*"/scex(_(&))/
 
-
 #  For all lines containing "fl_add" and a string containing |, replace
 #  the string with idex(_(string))
 /fl_add/ s/".*[|].*"/idex(_(&))/
 
-# For all lines containing "fl_add" and a string containing |, add the
-# shortcut command after the end of this line
+#  For all lines containing "fl_add" and a string containing |, add the
+#  shortcut command after the end of this line
 /fl_add/ s/idex(\(.*\)").*$/&\
     fl_set_button_shortcut(obj,scex(\1")),1);/
 
+#  gettext will get confused if the string contains a "%" unless the line is
+#  preceeded immediately by //xgettext:no-c-format
+/_(".*[%].*")/i\
+  // xgettext:no-c-format
+
 # We use new/delete not malloc/free so change to suit.
 s/\(\(FD_[^ ]*\) \*fdui =\).*sizeof(\*fdui))/\1 new \2/
 
index dbe6a40318a0cfcbb1d7e7c4aefdd93f4f484899..9af24af619bab410859b4c95a741e05fb248200c 100644 (file)
    functions. This should probably be moved into LyXView (to have
    different input methods for different frames, but for now we can
    keep it as it is. */
+#ifndef LYXLOOKUP_H
+#define LYXLOOKUP_H
 
 #include <config.h>
-#include FORMS_H_LOCATION
-#if FL_REVISION < 89
-//#include <X11/Xlib.h>
+#include <X11/Xlib.h>
 
 /// Initialize the compose key handling
-extern void InitLyXLookup(Display *, Window ) ;
+extern void InitLyXLookup(Display *, Window);
 
 /// Read a keysym and/or a string (like XLookupString)
 extern int LyXLookupString(XEvent * event,    
@@ -28,4 +28,5 @@ extern int LyXLookupString(XEvent * event,
 
 /// Call this when you destroy your window
 extern void CloseLyXLookup();
+
 #endif
index 7b9812df291ae939eb7864dd13203d94a70321e6..db3b8c70bb9769bcc3e05a6cf95dc8f1775a8899 100644 (file)
@@ -1663,6 +1663,7 @@ string const LyXRC::getDescription(LyXRCTags tag)
                break;
                
        case RC_SCREEN_ZOOM:
+               //xgettext:no-c-format
                str = N_("The zoom percentage for screen fonts. A setting of 100% will make the fonts roughly the same size as on paper.");
                break;
                
@@ -1708,7 +1709,7 @@ string const LyXRC::getDescription(LyXRCTags tag)
                break;
                
        case RC_TEMPDIRPATH:
-               str = N_("LyX will place it's temporary directories in this path. They will be deleted when you quit LyX.");
+               str = N_("LyX will place its temporary directories in this path. They will be deleted when you quit LyX.");
                break;
                
        case RC_USETEMPDIR:
@@ -1866,6 +1867,7 @@ string const LyXRC::getDescription(LyXRCTags tag)
                break;
                
        case RC_DATE_INSERT_FORMAT:
+               //xgettext:no-c-format
                str = N_("This accepts the normal strftime formats; see man strftime for full details. E.g.\"%A, %e. %B %Y\".");
                break;