Author: rpmcruz
Date: Wed Jun 16 16:43:12 2010
New Revision: 62117
URL: http://svn.opensuse.org/viewcvs/yast?rev=62117&view=rev
Log:
* src/pkg/pkg-selector-help.cc: changed from header
format otherwise it is not picked up by i18n tool.
* src/pkg/ygtkpkgundolist.cc, ygtkpkgproductdialog.cc,
& ygtkpkgfilterview.cc: complemented with translator
commentary.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/pkg/CMakeLists.txt
trunk/gtk/src/pkg/YGPackageSelector.cc
trunk/gtk/src/pkg/ygtkpkgfilterview.cc
trunk/gtk/src/pkg/ygtkpkgproductdialog.cc
trunk/gtk/src/pkg/ygtkpkgundolist.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Wed Jun 16 16:43:12 2010
@@ -1,3 +1,12 @@
+2010-06-16 Ricardo Cruz
+
+ * src/pkg/pkg-selector-help.cc: changed from header
+ format otherwise it is not picked up by i18n tool.
+
+ * src/pkg/ygtkpkgundolist.cc, ygtkpkgproductdialog.cc,
+ & ygtkpkgfilterview.cc: complemented with translator
+ commentary.
+
2010-06-12 Ricardo Cruz
* src/pkg/ygtkpkgmenubar.cc: memorize menu options.
Modified: trunk/gtk/src/pkg/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/CMakeLists.txt?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/src/pkg/CMakeLists.txt (original)
+++ trunk/gtk/src/pkg/CMakeLists.txt Wed Jun 16 16:43:12 2010
@@ -1,6 +1,7 @@
## Makefile.am
set (gtk_pkg_yast_plugin_SRCS
+ pkg-selector-help.cc
YGPackageSelector.cc
YGPackageSelectorPluginImpl.cc
ygtkpkgdetailview.cc
Modified: trunk/gtk/src/pkg/YGPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/YGPackageSelector.cc?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/src/pkg/YGPackageSelector.cc (original)
+++ trunk/gtk/src/pkg/YGPackageSelector.cc Wed Jun 16 16:43:12 2010
@@ -641,7 +641,7 @@
}
};
-#include "pkg-selector-help.h"
+extern const char *pkg_help[], *patch_help[];
static bool confirm_cb (void *pThis)
{
Modified: trunk/gtk/src/pkg/ygtkpkgfilterview.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgfilterview.cc?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgfilterview.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgfilterview.cc Wed Jun 16 16:43:12 2010
@@ -190,15 +190,22 @@
: impl (new Impl (this))
{
if (YGPackageSelector::get()->onlineUpdateMode()) {
+ // Translators: this refers to the package status
addRow (NULL, _("Available"), true, 0);
+ // Translators: this refers to the package status
addRow (NULL, _("Installed"), true, 0);
+ // Translators: this refers to the package status
addRow (NULL, _("Modified"), true, 0, false);
}
else {
+ // Translators: "Any status" may be translated as "All statuses" (whichever's smaller)
addRow (NULL, _("Any status"), true, 0);
+ // Translators: this refers to the package status
addRow (NULL, _("Not installed"), true, 0);
addRow (NULL, _("Installed"), true, 0);
+ // Translators: refers to package status: may be translated as "Upgrade"
addRow (NULL, _("Upgradable"), true, 0, false);
+ // Translators: this refers to the package status
addRow (NULL, _("Locked"), true, 0, false);
addRow (NULL, _("Modified"), true, 0, false);
}
@@ -262,6 +269,7 @@
GtkWidget *hbox = gtk_hbox_new (FALSE, 6), *button, *icon;
+ // Translators: if you prefer, translate this as "Apply Patches"
button = gtk_button_new_with_label (_("Upgrade Patches"));
gtk_widget_set_sensitive (button, hasPatches);
g_signal_connect (G_OBJECT (button), "clicked",
@@ -317,6 +325,7 @@
std::string name = zypp_tag_group_enum_to_localised_text ((YPkgGroupEnum) i);
const char *icon = zypp_tag_enum_to_icon ((YPkgGroupEnum) i);
if (i == YPKG_GROUP_RECENT)
+ // Translators: when "upload" isn't easy to translate, translate this as "7 days old"
name += std::string ("\n<small>") + _("(uploaded last 7 days)") + "</small>";
addRow (icon, name.c_str(), true, GINT_TO_POINTER (i+1));
if (i == YPKG_GROUP_UNKNOWN)
@@ -485,7 +494,7 @@
G_CALLBACK (switch_clicked_cb), this);
gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, TRUE, 0);
button = gtk_button_new_with_label (
- _("Switch system packages to the versions in this repository"));
+ _("Switch installed packages to the versions in this repository"));
gtk_button_set_image (GTK_BUTTON (button),
gtk_image_new_from_stock (GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
g_signal_connect (G_OBJECT (button), "clicked",
@@ -554,6 +563,7 @@
YGtkPkgPriorityModel::YGtkPkgPriorityModel()
{
+ // Translators: "Any priority" may be translated as "All priorities" (whichever's smaller)
addRow (NULL, _("Any priority"), true, 0);
for (int i = 0; i < Ypp::Patch::priorityTotal(); i++)
addRow (NULL, Ypp::Patch::prioritySummary (i), true, 0, false);
Modified: trunk/gtk/src/pkg/ygtkpkgproductdialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgproductdialog.cc?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgproductdialog.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgproductdialog.cc Wed Jun 16 16:43:12 2010
@@ -156,7 +156,8 @@
gtk_container_add (GTK_CONTAINER (scroll), view);
GtkWidget *dialog = gtk_message_dialog_new (YGDialog::currentWindow(),
- GtkDialogFlags (0), GTK_MESSAGE_OTHER, GTK_BUTTONS_CLOSE, _("Product Listing"));
+ // Translators: same as "Listing of Products"
+ GtkDialogFlags (0), GTK_MESSAGE_OTHER, GTK_BUTTONS_CLOSE, _("Products Listing"));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 500);
Modified: trunk/gtk/src/pkg/ygtkpkgundolist.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgundolist.cc?rev=62117&r1=62116&r2=62117&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgundolist.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgundolist.cc Wed Jun 16 16:43:12 2010
@@ -152,6 +152,7 @@
const ZyppDu &point = *it;
if (!point.readonly && point.freeAfterCommit() < 0) {
char *str = g_strdup_printf (
+ // Translators: keep the first and final "%s". They will be expanded with html code.
_("%sPartition %s is %s over-capacity (%s filled out of %s).%s"),
"<b>",
point.dir.c_str(), point.freeAfterCommit().asString().c_str(),
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org