[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55772] Untranslated text in GUI

From: Rik
Subject: [Octave-bug-tracker] [bug #55772] Untranslated text in GUI
Date: Thu, 7 Mar 2019 14:32:05 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #12, bug #55772 (project octave):

The text for About Octave is not static at compile time so that is why it is
not being translated.  See libgui/src/main-window.cc

  void main_window::show_about_octave (void)
    std::string message
      = octave_name_version_copyright_copying_warranty_and_bugs (true);

    QMessageBox::about (this, tr ("About Octave"),
                        QString::fromStdString (message));

The call octave_name_version_copyright_copying_warranty_and_bugs() is to a
function located in liboctave/version.cc which does some more string

  (bool html, const std::string& extra_info)
  std::string sep = (html ? "\n</p>\n<p>\n" : "\n\n");

  std::string msg;

  if (html)
    msg = "<p>\n";

  msg += octave_name_version_copyright_copying_and_warranty (html,
         + sep
         + octave_www_statement (html)
         + sep
         + octave_contrib_statement (html)
         + sep
         + octave_bugs_statement (html)
         + (html ? "\n</p>" : "");

  return msg;

Potentially, there could be two strings which are static at compile time, one
in plain text format and one in HTML format and then the code would have to be
changed to call the right one.  But, part of this is hooked in with the GNU
build system which I believe auto-generates version.cc. 

My thought is that getting this translated would involve a lot of pain, for
very little gain.  Thus, I'm inclined not to fix this instance.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]