[gnome-packagekit] Use the term software more consistently
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Use the term software more consistently
- Date: Mon, 4 Mar 2013 10:39:10 +0000 (UTC)
commit 7aefdbf7bd023558bcf824da677923957a0a8bed
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Mar 4 10:36:42 2013 +0000
Use the term software more consistently
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=695013
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpk-application.c | 34 +++++++++++------------------
src/gpk-dbus-task.c | 46 ++++++++++++++++++---------------------
src/gpk-install-package-name.c | 4 +-
3 files changed, 36 insertions(+), 48 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 24f6b87..7878182 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -901,22 +901,19 @@ gpk_application_get_requires_cb (PkClient *client, GAsyncResult *res, GpkApplica
if (array->len == 0) {
gpk_error_dialog_modal (window,
/* TRANSLATORS: no packages returned */
- _("No packages"),
+ _("No software"),
/* TRANSLATORS: this package is not required by any others */
- _("No other packages require this package"), NULL);
+ _("No other software requires this."), NULL);
goto out;
}
package_ids = pk_package_ids_from_id (package_id_selected);
name = gpk_dialog_package_id_name_join_locale (package_ids);
- /* TRANSLATORS: title: how many packages require this package */
- title = g_strdup_printf (ngettext ("%i package requires %s",
- "%i packages require %s",
- array->len), array->len, name);
+ title = g_strdup_printf (_("Software requires %s"), name);
/* TRANSLATORS: show a array of packages for the package */
- message = g_strdup_printf (ngettext ("Packages listed below require %s to function correctly.",
- "Packages listed below require %s to function correctly.",
+ message = g_strdup_printf (ngettext ("The software listed below require %s to function correctly.",
+ "The software listed below require %s to function correctly.",
array->len), name);
dialog = gtk_message_dialog_new (window, GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -1028,23 +1025,18 @@ gpk_application_get_depends_cb (PkClient *client, GAsyncResult *res, GpkApplicat
if (array->len == 0) {
gpk_error_dialog_modal (window,
/* TRANSLATORS: no packages returned */
- _("No packages"),
+ _("No software"),
/* TRANSLATORS: this package does not depend on any others */
- _("This package does not depend on any others"), NULL);
+ _("This software does not depend on any other"), NULL);
goto out;
}
package_ids = pk_package_ids_from_id (package_id_selected);
name = gpk_dialog_package_id_name_join_locale (package_ids);
- /* TRANSLATORS: title: show the number of other packages we depend on */
- title = g_strdup_printf (ngettext ("%i additional package is required for %s",
- "%i additional packages are required for %s",
- array->len), array->len, name);
+ title = g_strdup_printf (_("Additional software is required for %s"), name);
/* TRANSLATORS: message: show the array of dependent packages for this package */
- message = g_strdup_printf (ngettext ("Packages listed below are required for %s to function
correctly.",
- "Packages listed below are required for %s to function
correctly.",
- array->len), name);
+ message = g_strdup_printf (_("%s requires the following additional software to function correctly."),
name);
dialog = gtk_message_dialog_new (window, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", title);
@@ -1283,15 +1275,15 @@ gpk_application_suggest_better_search (GpkApplicationPrivate *priv)
if (priv->search_mode == GPK_MODE_GROUP ||
priv->search_mode == GPK_MODE_ALL_PACKAGES) {
/* TRANSLATORS: be helpful, but this shouldn't happen */
- message = _("Try entering a package name in the search bar.");
+ message = _("Try entering a name in the search bar.");
} else if (priv->search_mode == GPK_MODE_SELECTED) {
/* TRANSLATORS: nothing in the package queue */
- message = _("There are no packages queued to be installed or removed.");
+ message = _("There is no softare queued to be installed or removed.");
} else {
if (priv->search_type == GPK_SEARCH_NAME ||
priv->search_type == GPK_SEARCH_FILE)
/* TRANSLATORS: tell the user to switch to details search mode */
- message = _("Try searching package descriptions by clicking the icon next to the
search text.");
+ message = _("Try searching software descriptions by clicking the icon next to the
search text.");
else
/* TRANSLATORS: tell the user to try harder */
message = _("Try again with a different search term.");
@@ -2625,7 +2617,7 @@ gpk_application_activate_about_cb (GSimpleAction *action,
"website-label", _("PackageKit Website"),
"website", "http://www.packagekit.org",
/* TRANSLATORS: description of NULL, gpk-application that is */
- "comments", _("Package Manager for GNOME"),
+ "comments", _("Software management for GNOME"),
"authors", authors,
"documenters", documenters,
"artists", artists,
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 95e258e..2c2b786 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -275,7 +275,7 @@ gpk_dbus_task_libnotify_cb (NotifyNotification *notification, gchar *action, gpo
if (g_strcmp0 (action, "show-error-details") == 0) {
details = g_markup_escape_text (pk_error_get_details (task->priv->cached_error_code), -1);
/* TRANSLATORS: detailed text about the error */
- gpk_error_dialog (_("Error details"), _("Package Manager error details"), details);
+ gpk_error_dialog (_("Error details"), _("Software error details"), details);
g_free (details);
} else {
g_warning ("unknown action id: %s", action);
@@ -310,7 +310,7 @@ gpk_dbus_task_error_msg (GpkDbusTask *dtask, const gchar *title, GError *error)
gpk_modal_dialog_set_help_id (dtask->priv->dialog, "dialog-permissions");
} else if (error->code == PK_CLIENT_ERROR_CANNOT_START_DAEMON) {
/* TRANSLATORS: could not start system service */
- message = _("The packagekitd service could not be started.");
+ message = _("The software service could not be started.");
gpk_modal_dialog_set_help_id (dtask->priv->dialog, "dialog-no-service");
} else if (error->code == PK_CLIENT_ERROR_INVALID_INPUT) {
/* TRANSLATORS: the user tried to query for something invalid */
@@ -470,7 +470,7 @@ gpk_dbus_task_install_packages_cb (PkTask *task, GAsyncResult *res, GpkDbusTask
results = pk_task_generic_finish (task, res, &error);
if (results == NULL) {
/* TRANSLATORS: error: failed to install, detailed error follows */
- gpk_dbus_task_error_msg (dtask, _("Failed to install package"), error);
+ gpk_dbus_task_error_msg (dtask, _("Failed to install software"), error);
error_dbus = g_error_new (GPK_DBUS_ERROR, gpk_dbus_task_get_code_from_gerror (error), "%s",
error->message);
gpk_dbus_task_dbus_return_error (dtask, error_dbus);
g_error_free (error);
@@ -508,7 +508,7 @@ gpk_dbus_task_install_package_ids (GpkDbusTask *dtask)
GtkWindow *window;
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_PROGRESS,
GPK_MODAL_DIALOG_PACKAGE_PADDING);
/* TRANSLATORS: title: installing packages */
- gpk_modal_dialog_set_title (dtask->priv->dialog, _("Installing packages"));
+ gpk_modal_dialog_set_title (dtask->priv->dialog, _("Installing software"));
if (dtask->priv->show_progress)
gpk_modal_dialog_present (dtask->priv->dialog);
@@ -1091,7 +1091,7 @@ gpk_dbus_task_install_package_names_resolve_cb (PkTask *task, GAsyncResult *res,
if (array->len == 0) {
if (!dtask->priv->show_warning) {
/* TRANSLATORS: couldn't resolve name to package */
- title = g_strdup_printf (_("Could not find packages"));
+ title = g_strdup_printf (_("Could not find software"));
info_url = gpk_vendor_get_not_found_url (dtask->priv->vendor,
GPK_VENDOR_URL_TYPE_DEFAULT);
/* only show the "more info" button if there is a valid link */
if (info_url != NULL)
@@ -1100,7 +1100,7 @@ gpk_dbus_task_install_package_names_resolve_cb (PkTask *task, GAsyncResult *res,
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING,
0);
gpk_modal_dialog_set_title (dtask->priv->dialog, title);
/* TRANSLATORS: message: could not find */
- gpk_modal_dialog_set_message (dtask->priv->dialog, _("The packages could not be found
in any software source"));
+ gpk_modal_dialog_set_message (dtask->priv->dialog, _("The software could not be found
in any software source"));
gpk_modal_dialog_set_help_id (dtask->priv->dialog, "dialog-package-not-found");
/* TRANSLATORS: button: a link to the help file */
gpk_modal_dialog_set_action (dtask->priv->dialog, _("More information"));
@@ -1140,9 +1140,7 @@ gpk_dbus_task_install_package_names_resolve_cb (PkTask *task, GAsyncResult *res,
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_FINISHED, 0);
/* TRANSLATORS: title: package is already installed */
gpk_modal_dialog_set_title (dtask->priv->dialog,
- ngettext ("The package is already installed",
- "The packages are already installed",
- g_strv_length (dtask->priv->package_ids)));
+ _("The software is already installed"));
/* TRANSLATORS: message: package is already installed */
gpk_modal_dialog_set_message (dtask->priv->dialog, _("Nothing to do."));
gpk_modal_dialog_present (dtask->priv->dialog);
@@ -1159,7 +1157,7 @@ gpk_dbus_task_install_package_names_resolve_cb (PkTask *task, GAsyncResult *res,
if (dtask->priv->show_warning) {
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING, 0);
/* TRANSLATORS: failed to install, shouldn't be shown */
- gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to install package"));
+ gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to install software"));
/* TRANSLATORS: the search gave us the wrong result. internal error. barf. */
gpk_modal_dialog_set_message (dtask->priv->dialog, _("Incorrect response from
search"));
gpk_modal_dialog_present (dtask->priv->dialog);
@@ -1239,20 +1237,18 @@ gpk_dbus_task_install_package_names (GpkDbusTask *dtask, gchar **packages, GpkDb
/* check user wanted operation */
message = g_strdup_printf ("%s\n\n%s\n%s",
- /* TRANSLATORS: a program needs a package, for instance openoffice-clipart
*/
- ngettext ("An additional package is required:", "Additional packages are
required:", len),
+ _("Additional software is required"),
text,
- /* TRANSLATORS: ask the user if it's okay to search */
- ngettext ("Do you want to search for and install this package now?", "Do
you want to search for and install these packages now?", len));
+ _("Do you want to search for and install this software now?"));
g_free (text);
/* make title using application name */
if (dtask->priv->parent_title != NULL) {
/* TRANSLATORS: string is a program name, e.g. "Movie Player" */
- text = g_strdup_printf (ngettext ("%s wants to install a package", "%s wants to install
packages", len), dtask->priv->parent_title);
+ text = g_strdup_printf (_("%s requires additional software"), dtask->priv->parent_title);
} else {
/* TRANSLATORS: a random program which we can't get the name wants to do something */
- text = g_strdup (ngettext ("A program wants to install a package", "A program wants to
install packages", len));
+ text = g_strdup (_("An application requires additional software"));
}
/* TRANSLATORS: button: confirm to search for packages */
@@ -1379,7 +1375,7 @@ gpk_dbus_task_install_provide_files_search_file_cb (PkClient *client, GAsyncResu
if (dtask->priv->show_warning) {
split = pk_package_id_split (package_id);
/* TRANSLATORS: we've already got a package that provides this file */
- text = g_strdup_printf (_("The %s package already provides this file"),
split[PK_PACKAGE_ID_NAME]);
+ text = g_strdup_printf (_("%s already provides this file"),
split[PK_PACKAGE_ID_NAME]);
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING, 0);
/* TRANSLATORS: title */
gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to install file"));
@@ -1670,7 +1666,7 @@ gpk_dbus_task_codec_what_provides_cb (PkClient *client, GAsyncResult *res, GpkDb
}
title = ngettext ("Install the following plugin", "Install the following plugins", array->len);
- message = ngettext ("Do you want to install this package now?", "Do you want to install these
packages now?", array->len);
+ message = _("Do you want to install this software now?");
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_CONFIRM,
GPK_MODAL_DIALOG_PACKAGE_LIST);
gpk_modal_dialog_set_package_list (dtask->priv->dialog, array);
@@ -2131,7 +2127,7 @@ gpk_dbus_task_fontconfig_what_provides_cb (PkClient *client, GAsyncResult *res,
}
/* TRANSLATORS: title: show a list of fonts */
- title = ngettext ("Do you want to install this package now?", "Do you want to install these packages
now?", array->len);
+ title = _("Do you want to install this software now?");
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_CONFIRM,
GPK_MODAL_DIALOG_PACKAGE_LIST);
gpk_modal_dialog_set_package_list (dtask->priv->dialog, array);
gpk_modal_dialog_set_title (dtask->priv->dialog, title);
@@ -2298,8 +2294,8 @@ gpk_dbus_task_install_fontconfig_resources (GpkDbusTask *dtask, gchar **fonts, G
"Additional fonts are required to view this document correctly.", len);
/* TRANSLATORS: we need to download a new font package to display a document */
- title_part = ngettext ("Do you want to search for a suitable package now?",
- "Do you want to search for suitable packages now?", len);
+ title_part = ngettext ("Do you want to search for a suitable font now?",
+ "Do you want to search for suitable fonts now?", len);
/* check user wanted operation */
message = g_strdup_printf ("%s\n\n%s\n%s", title, text, title_part);
@@ -2468,7 +2464,7 @@ gpk_dbus_task_plasma_service_what_provides_cb (PkClient *client, GAsyncResult *r
}
title = ngettext ("Install the following plugin", "Install the following plugins", array->len);
- message = ngettext ("Do you want to install this package now?", "Do you want to install these
packages now?", array->len);
+ message = _("Do you want to install this software now?");
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_CONFIRM,
GPK_MODAL_DIALOG_PACKAGE_LIST);
gpk_modal_dialog_set_package_list (dtask->priv->dialog, array);
@@ -2803,7 +2799,7 @@ gpk_dbus_task_printer_driver_what_provides_cb (PkClient *client, GAsyncResult *r
}
title = ngettext ("Install the following driver", "Install the following drivers", array->len);
- message = ngettext ("Do you want to install this package now?", "Do you want to install these
packages now?", array->len);
+ message = ngettext ("Do you want to install this driver now?", "Do you want to install these drivers
now?", array->len);
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_CONFIRM,
GPK_MODAL_DIALOG_PACKAGE_LIST);
gpk_modal_dialog_set_package_list (dtask->priv->dialog, array);
@@ -3009,9 +3005,9 @@ gpk_dbus_task_remove_package_by_file_search_file_cb (PkClient *client, GAsyncRes
if (dtask->priv->show_warning) {
gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING, 0);
/* TRANSLATORS: failed to find the package for the file */
- gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to find package for this
file"));
+ gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to find any software"));
/* TRANSLATORS: nothing found */
- gpk_modal_dialog_set_message (dtask->priv->dialog, _("The file could not be found in
any packages"));
+ gpk_modal_dialog_set_message (dtask->priv->dialog, _("The file could not be found in
any available software"));
gpk_modal_dialog_set_help_id (dtask->priv->dialog, "dialog-package-not-found");
/* TRANSLATORS: button: show the user a button to get more help finding stuff */
gpk_modal_dialog_present (dtask->priv->dialog);
diff --git a/src/gpk-install-package-name.c b/src/gpk-install-package-name.c
index 143275c..4ca2442 100644
--- a/src/gpk-install-package-name.c
+++ b/src/gpk-install-package-name.c
@@ -77,9 +77,9 @@ main (int argc, char *argv[])
if (packages == NULL) {
/* TRANSLATORS: failed */
- gpk_error_dialog (_("Failed to install package from name"),
+ gpk_error_dialog (_("Failed to install software by name"),
/* TRANSLATORS: nothing was specified */
- _("You need to specify a package to install"), NULL);
+ _("You need to specify the name of the software to install"), NULL);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]