Author: rpmcruz
Date: Wed Mar 3 18:48:25 2010
New Revision: 61135
URL: http://svn.opensuse.org/viewcvs/yast?rev=61135&view=rev
Log:
* src/YGUI.cc: bug fix 582148: a few strings should be
set as translatable.
Modified:
branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog
branches/SuSE-Code-11-SP1-Branch/gtk/src/YGUI.cc
Modified: branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog?rev=61135&r1=61134&r2=61135&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog (original)
+++ branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog Wed Mar 3 18:48:25 2010
@@ -1,3 +1,8 @@
+2010-03-03 Ricardo Cruz
+
+ * src/YGUI.cc: bug fix 582148: a few strings should be
+ set as translatable.
+
2010-02-25 Ricardo Cruz
* src/YGUtils.cc: bug fix 582536 and 582560. map jump-to to
Modified: branches/SuSE-Code-11-SP1-Branch/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/gtk/src/YGUI.cc?rev=61135&r1=61134&r2=61135&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/gtk/src/YGUI.cc (original)
+++ branches/SuSE-Code-11-SP1-Branch/gtk/src/YGUI.cc Wed Mar 3 18:48:25 2010
@@ -116,7 +116,7 @@
m_no_border = true;
else if (!strcmp (argp, "help")) {
printf (
- "Command line options for the YaST2 Gtk UI:\n"
+ _("Command line options for the YaST2 UI (Gtk plugin):\n"
"\n"
"--no-wm assume no window manager is running\n"
"--noborder no window manager border for main dialogs\n"
@@ -125,7 +125,7 @@
"--nothreads run without additional UI threads\n"
"--help prints this help text\n"
"\n"
- );
+ ));
exit (0);
}
/*
@@ -295,13 +295,13 @@
GtkWidget* dialog = gtk_message_dialog_new (NULL,
GtkDialogFlags (0), GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- "Macro recording done.");
+ _("Macro recording done."));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
else {
string filename = askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_SAVE,
- DEFAULT_MACRO_FILE_NAME, "*.ycp", "Select Macro File to Record to");
+ DEFAULT_MACRO_FILE_NAME, "*.ycp", _("Select Macro File to Record to"));
if (!filename.empty())
YMacro::record (filename);
}
@@ -310,7 +310,7 @@
void YGUI::askSaveLogs()
{
string filename = askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_SAVE,
- "/tmp/y2logs.tgz", "*.tgz *.tar.gz", "Save y2logs to...");
+ "/tmp/y2logs.tgz", "*.tgz *.tar.gz", _("Save y2logs to..."));
if (!filename.empty()) {
std::string command = "/sbin/save_y2logs";
command += " '" + filename + "'";
@@ -320,7 +320,7 @@
yuiMilestone() << "y2logs saved to " << filename << endl;
else {
char *error = g_strdup_printf (
- "Error: couldn't save y2logs: \"%s\" (exit value: %d)",
+ _("Error: couldn't save y2logs: \"%s\" (exit value: %d)"),
command.c_str(), ret);
yuiError() << error << endl;
errorMsg (error);
@@ -397,7 +397,7 @@
yuiDebug() << "screenshot: " << filename << endl;
filename = askForFileOrDirectory (
- GTK_FILE_CHOOSER_ACTION_SAVE, "", "*.png", "Save screenshot to");
+ GTK_FILE_CHOOSER_ACTION_SAVE, "", "*.png", _("Save screenshot to"));
if (filename.empty()) { // user dismissed the dialog
yuiDebug() << "Save screen shot canceled by user\n";
goto makeScreenShot_ret;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org