]> git.lyx.org Git - features.git/commitdiff
Most translations should now work.
authorAngus Leeming <leeming@lyx.org>
Tue, 2 Apr 2002 17:04:23 +0000 (17:04 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 2 Apr 2002 17:04:23 +0000 (17:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3884 a592a061-630c-0410-9148-cb99ea01b6c8

13 files changed:
src/ChangeLog
src/frontends/xforms/ChangeLog
src/frontends/xforms/FeedbackController.C
src/frontends/xforms/FormBibtex.C
src/frontends/xforms/FormCitation.C
src/frontends/xforms/FormForks.C
src/frontends/xforms/FormMathsBitmap.C
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/FormSendto.C
src/frontends/xforms/FormTexinfo.C
src/frontends/xforms/Tooltips.C
src/frontends/xforms/xforms_helpers.C
src/lyxrc.C

index 12fb1c39e6c464c12dc3c900ad3b6f4f41e31e90..43c6b755cec8e6dc895d8a5647458336f3d09963 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-02  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * lyxrc.C (getDescription): use _() correctly rather than N_().
+
 2002-03-28  Herbert Voss  <voss@lyx.org>
 
        * lyxlength.C: compatibility stuff for < 1.1.6fix4 and 
index e59fec9d03011ab81c61a2ba73b0f2aa024196e4..c77797edc47fd8cdf19ac4d847fc3837249c73e2 100644 (file)
@@ -1,3 +1,16 @@
+2002-04-02  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * FeedbackController.C:
+       * FormBibtex.C:
+       * FormCitation.C:
+       * FormForks.C:
+       * FormMathsBitmap.C:
+       * FormPreferences.C:
+       * FormSendto.C:
+       * FormTexinfo.C:
+       * Tooltips.C:
+       * xforms_helpers.C: use _() correctly rather than N_().
+
 2002-03-28  Juergen Spitzmueller <j.spitzmueller@gmx.de>
 
        * FormDocument.C (CheckChoiceClass): update the necessary class
index 18a2213f0c526bdfe991011026016f588a1c99be..2e8ada7e0602375dd3d60deaf025300c09f7b8dc 100644 (file)
@@ -23,7 +23,6 @@
 #include "xforms_helpers.h" // formatted
 #include "support/LAssert.h"
 
-
 FeedbackController::FeedbackController()
        : warning_posted_(false), message_widget_(0)
 {}
@@ -88,9 +87,7 @@ void FeedbackController::PrehandlerCB(FL_OBJECT * ob, int event, int key)
 void FeedbackController::postWarning(string const & warning)
 {
        warning_posted_ = true;
-
-       string const str = _("WARNING! ") + warning;
-       postMessage(str);
+       postMessage(warning);
 }
 
 
@@ -106,9 +103,8 @@ void FeedbackController::clearMessage()
                return;
 
        // This trick is needed to get xforms to clear the label...
-       fl_hide_object(message_widget_);
        fl_set_object_label(message_widget_, "");
-       fl_show_object(message_widget_);
+       fl_hide_object(message_widget_);
 }
 
 
@@ -116,10 +112,18 @@ void FeedbackController::postMessage(string const & message)
 {
        lyx::Assert(message_widget_);
 
-       string const str = formatted(message,
-                                    message_widget_->w-10, FL_SMALL_SIZE);
+       string str;
+       if (warning_posted_)
+               str = _("WARNING! ") + message;
+       else
+               str = message;
+
+       str = formatted(str, message_widget_->w-10, FL_SMALL_SIZE);
 
        fl_set_object_label(message_widget_, str.c_str());
        FL_COLOR const label_color = warning_posted_ ? FL_TOMATO : FL_BLACK;
        fl_set_object_lcol(message_widget_, label_color);
+
+       if (!message_widget_->visible)
+               fl_show_object(message_widget_);
 }
index c9606f45baaaf45d9546425c55f5c825708e92f4..4adbb201151b8bc0e369de884058eeedc7d1a069 100644 (file)
@@ -59,16 +59,16 @@ void FormBibtex::build()
        bc().addReadOnly(dialog_->check_bibtotoc);
 
        // set up the tooltips
-       string str = N_("The database you want to cite from. Insert it without the default extension \".bib\". If you insert it with the browser, LyX strips the extension. Several databases must be separated by a comma: \"natbib, books\".");
+       string str = _("The database you want to cite from. Insert it without the default extension \".bib\". If you insert it with the browser, LyX strips the extension. Several databases must be separated by a comma: \"natbib, books\".");
        tooltips().init(dialog_->button_database_browse, str);
 
-       str = N_("Browse your directory for BibTeX stylefiles.");
+       str = _("Browse your directory for BibTeX stylefiles.");
        tooltips().init(dialog_->button_style_browse, str);
 
-       str = N_("The BibTeX style to use (only one allowed). Insert it without the default extension \".bst\" and without path. Most of the bibstyles are stored in $TEXMF/bibtex/bst. $TEXMF is the root dir of the local TeX tree. In \"Help->TeX Info\" you can list all installed styles.");
+       str = _("The BibTeX style to use (only one allowed). Insert it without the default extension \".bst\" and without path. Most of the bibstyles are stored in $TEXMF/bibtex/bst. $TEXMF is the root dir of the local TeX tree. In \"Help->TeX Info\" you can list all installed styles.");
        tooltips().init(dialog_->input_style, str);
 
-       str = N_("Activate this option if you want the bibliography to appear in the Table of Contents (which doesn't happen by default).");
+       str = _("Activate this option if you want the bibliography to appear in the Table of Contents (which doesn't happen by default).");
        tooltips().init(dialog_->check_bibtotoc, str);
 }
 
index ec86fa46b9ae4a1c82eff04707411e08e7a0ca9e..153443afb431f5829c9e35dd5c8761a470a788b5 100644 (file)
@@ -173,49 +173,49 @@ void FormCitation::build()
        bc().addReadOnly(dialog_->check_force_uppercase);
 
        //set up the tooltip mechanism
-       string str = N_("Add the selected entry to the current citation reference.");
+       string str = _("Add the selected entry to the current citation reference.");
        tooltips().init(dialog_->button_add, str);
 
-       str = N_("Delete the selected entry from the current citation reference.");
+       str = _("Delete the selected entry from the current citation reference.");
        tooltips().init(dialog_->button_del, str);
 
-       str = N_("Move the selected entry upwards (in the current list).");
+       str = _("Move the selected entry upwards (in the current list).");
        tooltips().init(dialog_->button_up, str);
 
-       str = N_("Move the selected entry downwards (in the current list).");
+       str = _("Move the selected entry downwards (in the current list).");
        tooltips().init(dialog_->button_down, str);
 
-       str = N_("The entries which will be cited. Select them with the arrow buttons from the right browser window.");
+       str = _("The entries which will be cited. Select them with the arrow buttons from the right browser window.");
        tooltips().init(dialog_->browser_cite, str);
 
-       str = N_("All entries in the database you have loaded (via \"Insert->Lists&TOC->BibTex Reference\"). Move the ones you want to cite with the arrow buttons into the left browser window.");
+       str = _("All entries in the database you have loaded (via \"Insert->Lists&TOC->BibTex Reference\"). Move the ones you want to cite with the arrow buttons into the left browser window.");
        tooltips().init(dialog_->browser_bib, str);
 
-       str = N_("Information about the selected entry");
+       str = _("Information about the selected entry");
        tooltips().init(dialog_->browser_info, str);
 
-       str = N_("Here you may select how the citation label should look inside the text (Natbib).");
+       str = _("Here you may select how the citation label should look inside the text (Natbib).");
        tooltips().init(dialog_->choice_style, str);
 
-       str = N_("Activate if you want to print all authors in a reference with more than three authors, and not \"<First Author> et.al.\" (Natbib).");
+       str = _("Activate if you want to print all authors in a reference with more than three authors, and not \"<First Author> et.al.\" (Natbib).");
        tooltips().init(dialog_->check_full_author_list, str);
 
-       str = N_("Activate if you want to print the first character of the author name as uppercase (\"Van Gogh\", not \"van Gogh\"). Useful at the beginning of sentences (Natbib).");
+       str = _("Activate if you want to print the first character of the author name as uppercase (\"Van Gogh\", not \"van Gogh\"). Useful at the beginning of sentences (Natbib).");
        tooltips().init(dialog_->check_force_uppercase, str);
 
-       str = N_("Optional text which appears before the citation reference, e.g. \"see <Ref>\"");
+       str = _("Optional text which appears before the citation reference, e.g. \"see <Ref>\"");
        tooltips().init(dialog_->input_before, str);
 
-       str = N_("Optional text which appears after the citation reference, e.g. \"pp. 12\"");
+       str = _("Optional text which appears after the citation reference, e.g. \"pp. 12\"");
        tooltips().init(dialog_->input_after, str);
 
-       str = N_("Search your database (all fields will be searched).");
+       str = _("Search your database (all fields will be searched).");
        tooltips().init(dialog_->input_search, str);
 
-       str = N_("Activate if you want to have case sensitive search: \"bibtex\" finds \"bibtex\", but not \"BibTeX\".");
+       str = _("Activate if you want to have case sensitive search: \"bibtex\" finds \"bibtex\", but not \"BibTeX\".");
        tooltips().init(dialog_->check_search_case, str);
 
-       str = N_("Activate if you want to enter Regular Expressions.");
+       str = _("Activate if you want to enter Regular Expressions.");
        tooltips().init(dialog_->check_search_type, str);
 }
 
index 0a8efb021de3bf1daeee3c61e54934ccc5090696..38224aec27986924644b08f50380a49e2a67bab8 100644 (file)
@@ -51,19 +51,19 @@ void FormForks::build() {
        bc().invalid();
 
        // Set up the tooltip mechanism
-       string str = N_("All currently running child processes forked by LyX.");
+       string str = _("All currently running child processes forked by LyX.");
        tooltips().init(dialog_->browser_children, str);
 
-       str = N_("A list of all child processes to kill.");
+       str = _("A list of all child processes to kill.");
        tooltips().init(dialog_->browser_kill, str);
 
-       str = N_("Add all processes to the list of processes to kill.");
+       str = _("Add all processes to the list of processes to kill.");
        tooltips().init(dialog_->button_all, str);
 
-       str = N_("Add the currently selected child process to the list of processes to kill.");
+       str = _("Add the currently selected child process to the list of processes to kill.");
        tooltips().init(dialog_->button_add, str);
 
-       str = N_("Remove the currently selected item from the list of processes to kill.");
+       str = _("Remove the currently selected item from the list of processes to kill.");
        tooltips().init(dialog_->button_remove, str);
 }
 
index 580ff6fb1c3a378872a8bd462a2356255d4b0d2d..4a5423c8d7d08c8f35e33ee0a45c4fef8f31cb68 100644 (file)
@@ -86,7 +86,7 @@ void FormMathsBitmap::build()
                y_ = max(y_, obj->y + obj->h);
        }
 
-       char const * const label = N_("Close|^[");
+       char const * const label = _("Close|^[");
        x_ = (form_->w - 90) / 2;
        y_ += 10;
 
index 6e03925c7f4199707fdaa5987340dd8a17ea4909..987efe0e8950ddf4e90f70faabb87f76b69ae8c9 100644 (file)
@@ -508,10 +508,10 @@ FormPreferences::Colors::feedback(FL_OBJECT const * const ob) const
        string str;
 
        if (ob == dialog_->browser_lyx_objs) {
-               str = N_("LyX objects that can be assigned a color.");
+               str = _("LyX objects that can be assigned a color.");
 
        } else if (ob == dialog_->button_modify) {
-               str = N_("Modify the LyX object's color. Note: you must then \"Apply\" the change.");
+               str = _("Modify the LyX object's color. Note: you must then \"Apply\" the change.");
 
        } else if (ob == dialog_->dial_hue ||
                   ob == dialog_->slider_saturation ||
@@ -519,11 +519,11 @@ FormPreferences::Colors::feedback(FL_OBJECT const * const ob) const
                   ob == dialog_->slider_red ||
                   ob == dialog_->slider_green ||
                   ob == dialog_->slider_blue) {
-               str = N_("Find a new color.");
+               str = _("Find a new color.");
 
        } else if (ob == dialog_->radio_rgb ||
                   ob == dialog_->radio_hsv) {
-               str = N_("Toggle between RGB and HSV color spaces.");
+               str = _("Toggle between RGB and HSV color spaces.");
        }
 
        return str;
@@ -963,22 +963,22 @@ FormPreferences::Converters::feedback(FL_OBJECT const * const ob) const
        string str;
 
        if (ob == dialog_->browser_all) {
-               str = N_("All the currently defined converters known to LyX.");
+               str = _("All the currently defined converters known to LyX.");
        } else if (ob == dialog_->choice_from) {
-               str = N_("Convert \"from\" this format");
+               str = _("Convert \"from\" this format");
        } else if (ob == dialog_->choice_to) {
-               str = N_("Convert \"to\" this format");
+               str = _("Convert \"to\" this format");
        } else if (ob == dialog_->input_converter) {
-               str = N_("The conversion command. $$i is the input file name, $$b is the file name without its extension and $$o is the name of the output file.");
+               str = _("The conversion command. $$i is the input file name, $$b is the file name without its extension and $$o is the name of the output file.");
        } else if (ob == dialog_->input_flags) {
-               str = N_("Flags that control the converter behavior");
+               str = _("Flags that control the converter behavior");
        } else if (ob == dialog_->button_delete) {
-               str = N_("Remove the current converter from the list of available converters. Note: you must then \"Apply\" the change.");
+               str = _("Remove the current converter from the list of available converters. Note: you must then \"Apply\" the change.");
        } else if (ob == dialog_->button_add) {
                if (string(ob->label) == _("Add"))
-                       str = N_("Add the current converter to the list of available converters. Note: you must then \"Apply\" the change.");
+                       str = _("Add the current converter to the list of available converters. Note: you must then \"Apply\" the change.");
                else
-                       str = N_("Modify the contents of the current converter. Note: you must then \"Apply\" the change.");
+                       str = _("Modify the contents of the current converter. Note: you must then \"Apply\" the change.");
        }
 
        return str;
@@ -1226,24 +1226,24 @@ FormPreferences::Formats::feedback(FL_OBJECT const * const ob) const
        string str;
 
        if (ob == dialog_->browser_all) {
-               str = N_("All the currently defined formats known to LyX.");
+               str = _("All the currently defined formats known to LyX.");
        } else if (ob == dialog_->input_format) {
-               str = N_("The format identifier.");
+               str = _("The format identifier.");
        } else if (ob == dialog_->input_gui_name) {
-               str = N_("The format name as it will appear in the menus.");
+               str = _("The format name as it will appear in the menus.");
        } else if (ob == dialog_->input_shrtcut) {
-               str = N_("The keyboard accelerator. Use a letter in the GUI name. Case sensitive.");
+               str = _("The keyboard accelerator. Use a letter in the GUI name. Case sensitive.");
        } else if (ob == dialog_->input_extension) {
-               str = N_("Used to recognize the file. E.g., ps, pdf, tex.");
+               str = _("Used to recognize the file. E.g., ps, pdf, tex.");
        } else if (ob == dialog_->input_viewer) {
-               str = N_("The command used to launch the viewer application.");
+               str = _("The command used to launch the viewer application.");
        } else if (ob == dialog_->button_delete) {
-               str = N_("Remove the current format from the list of available formats. Note: you must then \"Apply\" the change.");
+               str = _("Remove the current format from the list of available formats. Note: you must then \"Apply\" the change.");
        } else if (ob == dialog_->button_add) {
                if (string(ob->label) == _("Add"))
-                       str = N_("Add the current format to the list of available formats. Note: you must then \"Apply\" the change.");
+                       str = _("Add the current format to the list of available formats. Note: you must then \"Apply\" the change.");
                else
-                       str = N_("Modify the contents of the current format. Note: you must then \"Apply\" the change.");
+                       str = _("Modify the contents of the current format. Note: you must then \"Apply\" the change.");
        }
 
        return str;
@@ -1525,27 +1525,27 @@ bool FormPreferences::Interface::input(FL_OBJECT const * const ob)
 {
        if (ob == dialog_->button_bind_file_browse) {
                string dir  = AddName(system_lyxdir, "bind");
-               string name = N_("Sys Bind|#S#s");
+               string name = _("Sys Bind|#S#s");
                pair<string,string> dir1(name, dir);
 
                dir = AddName(user_lyxdir, "bind");
-               name = N_("User Bind|#U#u");
+               name = _("User Bind|#U#u");
                pair<string,string> dir2(name, dir);
 
                parent_.browse(dialog_->input_bind_file,
-                              N_("Bind file"), "*.bind", dir1, dir2);
+                              _("Bind file"), "*.bind", dir1, dir2);
 
        } else if (ob == dialog_->button_ui_file_browse) {
                string dir  = AddName(system_lyxdir, "ui");
-               string name = N_("Sys UI|#S#s");
+               string name = _("Sys UI|#S#s");
                pair<string,string> dir1(name, dir);
 
                dir = AddName(user_lyxdir, "ui");
-               name = N_("User UI|#U#u");
+               name = _("User UI|#U#u");
                pair<string,string> dir2(name, dir);
 
                parent_.browse(dialog_->input_ui_file,
-                              N_("UI file"), "*.ui", dir1, dir2);
+                              _("UI file"), "*.ui", dir1, dir2);
        }
 
        return true;
@@ -1733,18 +1733,18 @@ bool FormPreferences::Language::input(FL_OBJECT const * const ob)
 
        if (ob == dialog_->button_kbmap1_browse) {
                string const dir  = AddName(system_lyxdir, "kbd");
-               string const name = N_("Key maps|#K#k");
+               string const name = _("Key maps|#K#k");
                pair<string, string> dir1(name, dir);
 
                parent_.browse(dialog_->input_kbmap1,
-                              N_("Keyboard map"), "*.kmap", dir1);
+                              _("Keyboard map"), "*.kmap", dir1);
        } else if (ob == dialog_->button_kbmap2_browse) {
                string const dir  = AddName(system_lyxdir, "kbd");
-               string const name = N_("Key maps|#K#k");
+               string const name = _("Key maps|#K#k");
                pair<string, string> dir1(name, dir);
 
                parent_.browse(dialog_->input_kbmap2,
-                              N_("Keyboard map"), "*.kmap", dir1);
+                              _("Keyboard map"), "*.kmap", dir1);
        }
 
        return activate;
@@ -2219,24 +2219,24 @@ bool FormPreferences::Paths::input(FL_OBJECT const * const ob)
 
        if (ob == dialog_->button_default_path_browse) {
                parent_.browse(dialog_->input_default_path,
-                              N_("Default path"), string());
+                              _("Default path"), string());
        } else if (ob == dialog_->button_template_path_browse) {
                parent_.browse(dialog_->input_template_path,
-                              N_("Template path"), string());
+                              _("Template path"), string());
        } else if (ob == dialog_->button_temp_dir_browse) {
                parent_.browse(dialog_->input_temp_dir,
-                              N_("Temp dir"), string());
+                              _("Temp dir"), string());
        } else if (ob == dialog_->button_lastfiles_browse) {
                pair<string, string> dir(_("User|#U#u"), user_lyxdir);
 
                parent_.browse(dialog_->input_lastfiles,
-                              N_("Lastfiles"), string(), dir);
+                              _("Lastfiles"), string(), dir);
        } else if (ob == dialog_->button_backup_path_browse) {
                parent_.browse(dialog_->input_backup_path,
-                              N_("Backup path"), string());
+                              _("Backup path"), string());
        } else if (ob == dialog_->button_serverpipe_browse) {
                parent_.browse(dialog_->input_serverpipe,
-                              N_("LyX Server pipes"), string());
+                              _("LyX Server pipes"), string());
        }
 
        return activate;
@@ -2688,7 +2688,7 @@ bool FormPreferences::ScreenFonts::input()
            || 0.0 >= strToDbl(fl_get_input(dialog_->input_huge))
            || 0.0 >= strToDbl(fl_get_input(dialog_->input_huger))) {
                activate = false;
-               str = N_("Fonts must be positive!");
+               str = _("Fonts must be positive!");
 
        } else if (strToDbl(fl_get_input(dialog_->input_tiny)) >
                   // Fontsizes -- tiny < script < footnote etc.
@@ -2711,7 +2711,7 @@ bool FormPreferences::ScreenFonts::input()
                   strToDbl(fl_get_input(dialog_->input_huger))) {
                activate = false;
 
-               str = N_("Fonts must be input in the order tiny > script> footnote > small > normal > large > larger > largest > huge > huger.");
+               str = _("Fonts must be input in the order tiny > script> footnote > small > normal > large > larger > largest > huge > huger.");
        }
 
        if (!activate)
@@ -2931,7 +2931,7 @@ bool FormPreferences::SpellOptions::input(FL_OBJECT const * const ob)
 
        if (ob == dialog_->button_personal_dict) {
                parent_.browse(dialog_->input_personal_dict,
-                              N_("Personal dictionary"), "*.ispell");
+                              _("Personal dictionary"), "*.ispell");
        }
 
        return true; // All input is valid!
index e795da854ca9109aa466249766694c8b9e46cc98..78101b2852176083b7f097b9f79f2d607a2faab2 100644 (file)
@@ -43,10 +43,10 @@ void FormSendto::build()
        bc().setCancel(dialog_->button_close);
 
        // Set up the tooltip mechanism
-       string str = N_("Export the buffer to this format before running the command below on it.");
+       string str = _("Export the buffer to this format before running the command below on it.");
        tooltips().init(dialog_->browser_formats, str);
 
-       str = N_("Run this command on the buffer exported to the chosen format. $$FName will be replaced by the name of this file.");
+       str = _("Run this command on the buffer exported to the chosen format. $$FName will be replaced by the name of this file.");
        tooltips().init(dialog_->input_command, str);
 }
 
index 4a8217db25dfb2036e58148532de81b25e040364..87a3b9e01bc871bfc2db7c11dad9c18b23f68e56 100644 (file)
@@ -40,25 +40,25 @@ void FormTexinfo::build() {
        updateStyles(ControlTexinfo::cls);
 
        // set up the tooltips
-       string str = N_("Runs the script \"TexFiles.sh\" to build new file lists.");
+       string str = _("Runs the script \"TexFiles.sh\" to build new file lists.");
        tooltips().init(dialog_->button_rescan, str);
 
-       str = N_("Shows the contents of the marked file. Only possible in full path mode.");
+       str = _("Shows the contents of the marked file. Only possible in full path mode.");
        tooltips().init(dialog_->button_view, str);
 
-       str = N_("Runs the script \"texhash\" which builds the a new LaTeX tree. Needed if you install a new TeX class or style. To execute it, you need the write permissions for the tex-dirs, often /var/lib/texmf and other.");
+       str = _("Runs the script \"texhash\" which builds the a new LaTeX tree. Needed if you install a new TeX class or style. To execute it, you need the write permissions for the tex-dirs, often /var/lib/texmf and other.");
        tooltips().init(dialog_->button_texhash, str);
 
-       str = N_("View full path or only file name. Full path is needed to view the contents of a file.");
+       str = _("View full path or only file name. Full path is needed to view the contents of a file.");
        tooltips().init(dialog_->check_fullpath, str);
 
-       str = N_("Shows the installed LaTeX Document classes. Remember, that these classes are only available in LyX if a corresponding LyX layout file exists!");
+       str = _("Shows the installed LaTeX Document classes. Remember, that these classes are only available in LyX if a corresponding LyX layout file exists!");
        tooltips().init(dialog_->radio_cls, str);
 
-       str = N_("Shows the installed LaTeX style files, which are available in LyX by default, like \"babel\" or through \\usepackage{<the stylefile>} in LaTeX preamble.");
+       str = _("Shows the installed LaTeX style files, which are available in LyX by default, like \"babel\" or through \\usepackage{<the stylefile>} in LaTeX preamble.");
        tooltips().init(dialog_->radio_sty, str);
 
-       str = N_("Shows the installed style files for BibTeX. They can be loaded through insert->Lists&Toc->BibTeX Reference->Style.");
+       str = _("Shows the installed style files for BibTeX. They can be loaded through insert->Lists&Toc->BibTeX Reference->Style.");
        tooltips().init(dialog_->radio_bst, str);
 }
 
index 4e004ffc3ed4eefb84f53fbd5e6badc80f34fb91..28ac595cd6c6e26dbf2ada34e02673928065930c 100644 (file)
@@ -84,7 +84,7 @@ void Tooltips::init(FL_OBJECT * ob, string const & tip)
                return;
 
        // Store the tooltip string
-       tooltipsMap[ob] = formatted(_(str), 400);
+       tooltipsMap[ob] = formatted(str, 400);
 }
 
 
@@ -152,7 +152,7 @@ void Tooltips::init(FL_OBJECT * ob, string const & tip)
                return;
 
        // Store the tooltip string
-       tooltipsMap[ob] = formatted(_(str), 400);
+       tooltipsMap[ob] = formatted(str, 400);
 
        if (!tooltip_timer_) {
                if (fl_current_form && ob->form != fl_current_form)
index aec955b472c8116c674a216663c7708576bf77e3..8c92261ab335fc54cf8bff665350341f15c03f03 100644 (file)
@@ -398,18 +398,18 @@ bool RWInfo::WriteableDir(string const & name)
        error_message.erase();
 
        if (!AbsolutePath(name)) {
-               error_message = N_("The absolute path is required.");
+               error_message = _("The absolute path is required.");
                return false;
        }
 
        FileInfo const tp(name);
        if (!tp.isOK() || !tp.isDir()) {
-               error_message = N_("Directory does not exist.");
+               error_message = _("Directory does not exist.");
                return false;
        }
 
        if (!tp.writable()) {
-               error_message = N_("Cannot write to this directory.");
+               error_message = _("Cannot write to this directory.");
                return false;
        }
 
@@ -422,18 +422,18 @@ bool RWInfo::ReadableDir(string const & name)
        error_message.erase();
 
        if (!AbsolutePath(name)) {
-               error_message = N_("The absolute path is required.");
+               error_message = _("The absolute path is required.");
                return false;
        }
 
        FileInfo const tp(name);
        if (!tp.isOK() || !tp.isDir()) {
-               error_message = N_("Directory does not exist.");
+               error_message = _("Directory does not exist.");
                return false;
        }
 
        if (!tp.readable()) {
-               error_message = N_("Cannot read this directory.");
+               error_message = _("Cannot read this directory.");
                return false;
        }
 
@@ -451,13 +451,13 @@ bool RWInfo::WriteableFile(string const & name)
        error_message.erase();
 
        if (name.empty()) {
-               error_message = N_("No file input.");
+               error_message = _("No file input.");
                return false;
        }
 
        string const dir = OnlyPath(name);
        if (!AbsolutePath(dir)) {
-               error_message = N_("The absolute path is required.");
+               error_message = _("The absolute path is required.");
                return false;
        }
 
@@ -468,23 +468,23 @@ bool RWInfo::WriteableFile(string const & name)
        }
 
        if (!d.isOK() || !d.isDir()) {
-               error_message = N_("Directory does not exist.");
+               error_message = _("Directory does not exist.");
                return false;
        }
 
        if (!d.writable()) {
-               error_message = N_("Cannot write to this directory.");
+               error_message = _("Cannot write to this directory.");
                return false;
        }
 
        FileInfo f(name);
        if (dir == name || (f.isOK() && f.isDir())) {
-               error_message = N_("A file is required, not a directory.");
+               error_message = _("A file is required, not a directory.");
                return false;
        }
 
        if (f.isOK() && f.exist() && !f.writable()) {
-               error_message = N_("Cannot write to this file.");
+               error_message = _("Cannot write to this file.");
                return false;
        }
 
@@ -497,13 +497,13 @@ bool RWInfo::ReadableFile(string const & name)
        error_message.erase();
 
        if (name.empty()) {
-               error_message = N_("No file input.");
+               error_message = _("No file input.");
                return false;
        }
 
        string const dir = OnlyPath(name);
        if (!AbsolutePath(dir)) {
-               error_message = N_("The absolute path is required.");
+               error_message = _("The absolute path is required.");
                return false;
        }
 
@@ -514,28 +514,28 @@ bool RWInfo::ReadableFile(string const & name)
        }
 
        if (!d.isOK() || !d.isDir()) {
-               error_message = N_("Directory does not exist.");
+               error_message = _("Directory does not exist.");
                return false;
        }
 
        if (!d.readable()) {
-               error_message = N_("Cannot read from this directory.");
+               error_message = _("Cannot read from this directory.");
                return false;
        }
 
        FileInfo f(name);
        if (dir == name || (f.isOK() && f.isDir())) {
-               error_message = N_("A file is required, not a directory.");
+               error_message = _("A file is required, not a directory.");
                return false;
        }
 
        if (!f.exist()) {
-               error_message = N_("File does not exist.");
+               error_message = _("File does not exist.");
                return false;
        }
 
        if (!f.readable()) {
-               error_message = N_("Cannot read from this file.");
+               error_message = _("Cannot read from this file.");
                return false;
        }
 
index 3831760b44648442190fda92949012cef80c69eb..310eac244a8e8d6a7892f631e35187b2863d1a6d 100644 (file)
@@ -1674,315 +1674,315 @@ string const LyXRC::getDescription(LyXRCTags tag)
 
        switch (tag) {
        case RC_FONT_ENCODING:
-               str = N_("The font encoding used for the LaTeX2e fontenc package. T1 is highly recommended for non-English languages.");
+               str = _("The font encoding used for the LaTeX2e fontenc package. T1 is highly recommended for non-English languages.");
                break;
 
        case RC_PRINTER:
-               str = N_("The default printer to print on. If none is specified, LyX will use the environment variable PRINTER.");
+               str = _("The default printer to print on. If none is specified, LyX will use the environment variable PRINTER.");
                break;
 
        case RC_PRINT_COMMAND:
-               str = N_("Your favorite print program, e.g. \"dvips\", \"dvilj4\".");
+               str = _("Your favorite print program, e.g. \"dvips\", \"dvilj4\".");
                break;
 
        case RC_PRINTEVENPAGEFLAG:
-               str = N_("The option to print only even pages.");
+               str = _("The option to print only even pages.");
                break;
 
        case RC_PRINTODDPAGEFLAG:
-               str = N_("The option to print only odd pages.");
+               str = _("The option to print only odd pages.");
                break;
 
        case RC_PRINTPAGERANGEFLAG:
-               str = N_("The option for specifying a comma-separated list of pages to print.");
+               str = _("The option for specifying a comma-separated list of pages to print.");
                break;
 
        case RC_PRINTCOPIESFLAG:
-               str = N_("The option for specifying the number of copies to print.");
+               str = _("The option for specifying the number of copies to print.");
                break;
 
        case RC_PRINTCOLLCOPIESFLAG:
-               str = N_("The option for specifying whether the copies should be collated.");
+               str = _("The option for specifying whether the copies should be collated.");
                break;
 
        case RC_PRINTREVERSEFLAG:
-               str = N_("The option to reverse the order of the pages printed.");
+               str = _("The option to reverse the order of the pages printed.");
                break;
 
        case RC_PRINTLANDSCAPEFLAG:
-               str = N_("The option to print out in landscape.");
+               str = _("The option to print out in landscape.");
                break;
 
        case RC_PRINTPAPERFLAG:
-               str = N_("The option to specify paper type.");
+               str = _("The option to specify paper type.");
                break;
 
        case RC_PRINTPAPERDIMENSIONFLAG:
-               str = N_("Option to specify the dimensions of the print paper.");
+               str = _("Option to specify the dimensions of the print paper.");
                break;
 
        case RC_PRINTTOPRINTER:
-               str = N_("Option to pass to the print program to print on a specific printer.");
+               str = _("Option to pass to the print program to print on a specific printer.");
                break;
 
        case RC_PRINT_ADAPTOUTPUT:
-               str = N_("Select for LyX to pass the name of the destination printer to your print command.");
+               str = _("Select for LyX to pass the name of the destination printer to your print command.");
                break;
 
        case RC_PRINTTOFILE:
-               str = N_("Option to pass to the print program to print to a file.");
+               str = _("Option to pass to the print program to print to a file.");
                break;
 
        case RC_PRINTFILEEXTENSION:
-               str = N_("Extension of printer program output file. Usually \".ps\".");
+               str = _("Extension of printer program output file. Usually \".ps\".");
                break;
 
        case RC_PRINTEXSTRAOPTIONS:
-               str = N_("Extra options to pass to printing program after everything else, but before the filename of the DVI file to be printed.");
+               str = _("Extra options to pass to printing program after everything else, but before the filename of the DVI file to be printed.");
                break;
 
        case RC_PRINTSPOOL_COMMAND:
-               str = N_("When set, this printer option automatically prints to a file and then calls a separate print spooling program on that file with the given name and arguments.");
+               str = _("When set, this printer option automatically prints to a file and then calls a separate print spooling program on that file with the given name and arguments.");
                break;
 
        case RC_PRINTSPOOL_PRINTERPREFIX:
-               str = N_("If you specify a printer name in the print dialog, the following argument is prepended along with the printer name after the spool command.");
+               str = _("If you specify a printer name in the print dialog, the following argument is prepended along with the printer name after the spool command.");
                break;
 
        case RC_SCREEN_DPI:
-               str = N_("DPI (dots per inch) of your monitor is auto-detected by LyX. If that goes wrong, override the setting here.");
+               str = _("DPI (dots per inch) of your monitor is auto-detected by LyX. If that goes wrong, override the setting here.");
                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.");
+               str = _("The zoom percentage for screen fonts. A setting of 100% will make the fonts roughly the same size as on paper.");
                break;
 
        case RC_SCREEN_FONT_SIZES:
-               str = N_("The font sizes used for calculating the scaling of the screen fonts.");
+               str = _("The font sizes used for calculating the scaling of the screen fonts.");
                break;
 
        case RC_SCREEN_FONT_ROMAN:
        case RC_SCREEN_FONT_SANS:
        case RC_SCREEN_FONT_TYPEWRITER:
-               str = N_("The screen fonts used to display the text while editing.");
+               str = _("The screen fonts used to display the text while editing.");
                break;
 
        case RC_POPUP_BOLD_FONT:
-               str = N_("The bold font in the dialogs.");
+               str = _("The bold font in the dialogs.");
                break;
 
        case RC_POPUP_NORMAL_FONT:
-               str = N_("The normal font in the dialogs.");
+               str = _("The normal font in the dialogs.");
                break;
 
        case RC_SCREEN_FONT_ENCODING:
-               str = N_("The encoding for the screen fonts.");
+               str = _("The encoding for the screen fonts.");
                break;
 
        case RC_POPUP_FONT_ENCODING:
-               str = N_("The encoding for the menu/popups fonts.");
+               str = _("The encoding for the menu/popups fonts.");
                break;
 
        case RC_SET_COLOR:
                break;
 
        case RC_AUTOSAVE:
-               str = N_("The time interval between auto-saves (in seconds). 0 means no auto-save.");
+               str = _("The time interval between auto-saves (in seconds). 0 means no auto-save.");
                break;
 
        case RC_DOCUMENTPATH:
-               str = N_("The default path for your documents.  An empty value selects the directory LyX was started from.");
+               str = _("The default path for your documents.  An empty value selects the directory LyX was started from.");
                break;
 
        case RC_TEMPLATEPATH:
-               str = N_("The path that LyX will set when offering to choose a template.  An empty value selects the directory LyX was started from.");
+               str = _("The path that LyX will set when offering to choose a template.  An empty value selects the directory LyX was started from.");
                break;
 
        case RC_TEMPDIRPATH:
-               str = N_("LyX will place its temporary directories in this path. They will be deleted when you quit LyX.");
+               str = _("LyX will place its temporary directories in this path. They will be deleted when you quit LyX.");
                break;
 
        case RC_USETEMPDIR:
-               str = N_("Select if you wish to use a temporary directory structure to store temporary TeX output.");
+               str = _("Select if you wish to use a temporary directory structure to store temporary TeX output.");
                break;
 
        case RC_LASTFILES:
-               str = N_("The file where the last-files information should be stored.");
+               str = _("The file where the last-files information should be stored.");
                break;
 
        case RC_AUTOREGIONDELETE:
-               str = N_("De-select if you don't want the current selection to be replaced automatically by what you type.");
+               str = _("De-select if you don't want the current selection to be replaced automatically by what you type.");
                break;
 
        case RC_AUTORESET_OPTIONS:
-               str = N_("De-select if you don't want the class options to be reset to defaults after class change.");
+               str = _("De-select if you don't want the class options to be reset to defaults after class change.");
                break;
 
        case RC_OVERRIDE_X_DEADKEYS:
-               str = N_("Select if LyX is to take over the handling of the dead keys (a.k.a. accent keys) that may be defined for your keyboard.");
+               str = _("Select if LyX is to take over the handling of the dead keys (a.k.a. accent keys) that may be defined for your keyboard.");
                break;
 
 
        case RC_SERVERPIPE:
-               str = N_("This starts the lyxserver. The pipes get an additional extension \".in\" and \".out\". Only for advanced users.");
+               str = _("This starts the lyxserver. The pipes get an additional extension \".in\" and \".out\". Only for advanced users.");
                break;
 
        case RC_BINDFILE:
-               str = N_("Keybindings file. Can either specify an absolute path, or LyX will look in its global and local bind/ directories.");
+               str = _("Keybindings file. Can either specify an absolute path, or LyX will look in its global and local bind/ directories.");
                break;
 
        case RC_UIFILE:
-               str = N_("The  UI (user interface) file. Can either specify an absolute path, or LyX will look in its global and local ui/ directories.");
+               str = _("The  UI (user interface) file. Can either specify an absolute path, or LyX will look in its global and local ui/ directories.");
                break;
 
        case RC_KBMAP:
        case RC_KBMAP_PRIMARY:
        case RC_KBMAP_SECONDARY:
-               str = N_("Use this to set the correct mapping file for your keyboard. You'll need this if you for instance want to type German documents on an American keyboard.");
+               str = _("Use this to set the correct mapping file for your keyboard. You'll need this if you for instance want to type German documents on an American keyboard.");
                break;
 
        case RC_ASCIIROFF_COMMAND:
-               str = N_("Use to define an external program to render tables in the ASCII output. E.g. \"groff -t -Tlatin1 $$FName\"  where $$FName is the input file. If \"none\" is specified, an internal routine is used.");
+               str = _("Use to define an external program to render tables in the ASCII output. E.g. \"groff -t -Tlatin1 $$FName\"  where $$FName is the input file. If \"none\" is specified, an internal routine is used.");
                break;
 
        case RC_ASCII_LINELEN:
-               str = N_("This is the maximum line length of an exported ASCII file (LaTeX, SGML or plain text).");
+               str = _("This is the maximum line length of an exported ASCII file (LaTeX, SGML or plain text).");
                break;
 
        case RC_NUMLASTFILES:
-               str = N_("Maximal number of lastfiles. Up to 9 can appear in the file menu.");
+               str = _("Maximal number of lastfiles. Up to 9 can appear in the file menu.");
                break;
 
        case RC_CHECKLASTFILES:
-               str = N_("Select to check whether the lastfiles still exist.");
+               str = _("Select to check whether the lastfiles still exist.");
                break;
 
        case RC_VIEWDVI_PAPEROPTION:
-               str = N_("Specify the paper command to DVI viewer (leave empty or use \"-paper\")");
+               str = _("Specify the paper command to DVI viewer (leave empty or use \"-paper\")");
                break;
 
        case RC_DEFAULT_PAPERSIZE:
-               str = N_("Specify the default paper size.");
+               str = _("Specify the default paper size.");
                break;
 
        case RC_PS_COMMAND:
                break;
 
        case RC_ACCEPT_COMPOUND:
-               str = N_("Consider run-together words, such as \"diskdrive\" for \"disk drive\", as legal words?");
+               str = _("Consider run-together words, such as \"diskdrive\" for \"disk drive\", as legal words?");
                break;
 
        case RC_SPELL_COMMAND:
-               str = N_("What command runs the spell checker?");
+               str = _("What command runs the spell checker?");
                break;
 
        case RC_USE_INP_ENC:
-               str = N_("Specify whether to pass the -T input encoding option to ispell. Enable this if you can't spellcheck words with international letters in them. This may not work with all dictionaries.");
+               str = _("Specify whether to pass the -T input encoding option to ispell. Enable this if you can't spellcheck words with international letters in them. This may not work with all dictionaries.");
                break;
 
        case RC_USE_ALT_LANG:
        case RC_ALT_LANG:
-               str = N_("Specify an alternate language. The default is to use the language of the document.");
+               str = _("Specify an alternate language. The default is to use the language of the document.");
                break;
 
        case RC_USE_PERS_DICT:
        case RC_PERS_DICT:
-               str = N_("Specify an alternate personal dictionary file. E.g. \".ispell_english\".");
+               str = _("Specify an alternate personal dictionary file. E.g. \".ispell_english\".");
                break;
 
        case RC_USE_ESC_CHARS:
        case RC_ESC_CHARS:
-               str = N_("Specify additional chars that can be part of a word.");
+               str = _("Specify additional chars that can be part of a word.");
                break;
 
        case RC_SCREEN_FONT_SCALABLE:
-               str = N_("Allow bitmap fonts to be resized. If you are using a bitmap font, selecting this option may make some fonts look blocky in LyX. Deselecting this option makes LyX use the nearest bitmap font size available, instead of scaling.");
+               str = _("Allow bitmap fonts to be resized. If you are using a bitmap font, selecting this option may make some fonts look blocky in LyX. Deselecting this option makes LyX use the nearest bitmap font size available, instead of scaling.");
                break;
 
        case RC_CHKTEX_COMMAND:
-               str = N_("Define how to run chktex. E.g. \"chktex -n11 -n1 -n3 -n6 -n9 -22 -n25 -n30 -n38\" Refer to the ChkTeX documentation.");
+               str = _("Define how to run chktex. E.g. \"chktex -n11 -n1 -n3 -n6 -n9 -22 -n25 -n30 -n38\" Refer to the ChkTeX documentation.");
                break;
 
        case RC_CURSOR_FOLLOWS_SCROLLBAR:
-               str = N_("LyX normally doesn't update the cursor position if you move the scrollbar. Set to true if you'd prefer to always have the cursor on screen.");
+               str = _("LyX normally doesn't update the cursor position if you move the scrollbar. Set to true if you'd prefer to always have the cursor on screen.");
                break;
 
        case RC_DIALOGS_ICONIFY_WITH_MAIN:
-               str = N_("Iconify the dialogs when the main window is iconified. (Affects only dialogs shown after the change has been made.)");
+               str = _("Iconify the dialogs when the main window is iconified. (Affects only dialogs shown after the change has been made.)");
                break;
 
        case RC_EXIT_CONFIRMATION:
-               str = N_("Sets whether LyX asks for a second confirmation to exit when you have changed documents. (LyX will still ask to save changed documents.)");
+               str = _("Sets whether LyX asks for a second confirmation to exit when you have changed documents. (LyX will still ask to save changed documents.)");
                break;
 
        case RC_DISPLAY_GRAPHICS:
-               str = N_("Select how LyX will display any graphics.");
+               str = _("Select how LyX will display any graphics.");
                break;
 
        case RC_DISPLAY_SHORTCUTS:
-               str = N_("LyX continously displays names of last command executed, along with a list of defined short-cuts for it in the minibuffer. Set to false if LyX seems slow.");
+               str = _("LyX continously displays names of last command executed, along with a list of defined short-cuts for it in the minibuffer. Set to false if LyX seems slow.");
                break;
 
        case RC_MAKE_BACKUP:
-               str = N_("De-select if you don't want LyX to create backup files.");
+               str = _("De-select if you don't want LyX to create backup files.");
                break;
 
        case RC_BACKUPDIR_PATH:
-               str = N_("The path for storing backup files. If it is an empty string, LyX will store the backup file in the same directory as the original file.");
+               str = _("The path for storing backup files. If it is an empty string, LyX will store the backup file in the same directory as the original file.");
                break;
 
        case RC_RTL_SUPPORT:
-               str = N_("Select to enable support of right-to-left languages (e.g. Hebrew, Arabic).");
+               str = _("Select to enable support of right-to-left languages (e.g. Hebrew, Arabic).");
                break;
 
        case RC_MARK_FOREIGN_LANGUAGE:
-               str = N_("Select to control the highlighting of words with a language foreign to that of the document.");
+               str = _("Select to control the highlighting of words with a language foreign to that of the document.");
                break;
 
        case RC_LANGUAGE_PACKAGE:
-               str = N_("The latex command for loading the language package. E.g. \"\\usepackage{babel}\", \"\\usepackage{omega}\".");
+               str = _("The latex command for loading the language package. E.g. \"\\usepackage{babel}\", \"\\usepackage{omega}\".");
                break;
 
        case RC_LANGUAGE_GLOBAL_OPTIONS:
-               str = N_("De-select if you don't want the language(s) used as an argument to \\documentclass.");
+               str = _("De-select if you don't want the language(s) used as an argument to \\documentclass.");
                break;
 
        case RC_LANGUAGE_USE_BABEL:
-               str = N_("De-select if you don't want babel to be used when the language of the document is the default language.");
+               str = _("De-select if you don't want babel to be used when the language of the document is the default language.");
                break;
 
        case RC_LANGUAGE_AUTO_BEGIN:
-               str = N_("Select if a language switching command is needed at the beginning of the document.");
+               str = _("Select if a language switching command is needed at the beginning of the document.");
                break;
 
        case RC_LANGUAGE_AUTO_END:
-               str = N_("Select if a language switching command is needed at the end of the document.");
+               str = _("Select if a language switching command is needed at the end of the document.");
                break;
 
        case RC_LANGUAGE_COMMAND_BEGIN:
-               str = N_("The latex command for changing from the language of the document to another language. E.g. \\selectlanguage{$$lang} where $$lang is substituted by the name of the second language.");
+               str = _("The latex command for changing from the language of the document to another language. E.g. \\selectlanguage{$$lang} where $$lang is substituted by the name of the second language.");
                break;
 
        case RC_LANGUAGE_COMMAND_END:
-               str = N_("The latex command for changing back to the language of the document.");
+               str = _("The latex command for changing back to the language of the document.");
                break;
 
        case RC_LANGUAGE_COMMAND_LOCAL:
-               str = N_("The latex command for local changing of the language.");
+               str = _("The latex command for local changing of the language.");
                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\".");
+               str = _("This accepts the normal strftime formats; see man strftime for full details. E.g.\"%A, %e. %B %Y\".");
                break;
 
        case RC_SHOW_BANNER:
-               str = N_("De-select if you don't want the startup banner.");
+               str = _("De-select if you don't want the startup banner.");
                break;
 
        case RC_WHEEL_JUMP:
-               str = N_("The wheel movement factor (for mice with wheels or five button mice).");
+               str = _("The wheel movement factor (for mice with wheels or five button mice).");
                break;
 
        case RC_CONVERTER:
@@ -1995,15 +1995,15 @@ string const LyXRC::getDescription(LyXRCTags tag)
                break;
 
        case RC_NEW_ASK_FILENAME:
-               str = N_("This sets the behaviour if you want to be asked for a filename when creating a new document or wait until you save it and be asked then.");
+               str = _("This sets the behaviour if you want to be asked for a filename when creating a new document or wait until you save it and be asked then.");
                break;
 
        case RC_DEFAULT_LANGUAGE:
-               str = N_("New documents will be assigned this language.");
+               str = _("New documents will be assigned this language.");
                break;
 
        case RC_LABEL_INIT_LENGTH:
-               str = N_("Maximum number of words in the initialization string for a new label");
+               str = _("Maximum number of words in the initialization string for a new label");
                break;
 
        default: