[simple-scan] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Use Unicode in translatable strings
- Date: Sun, 30 Apr 2017 22:41:46 +0000 (UTC)
commit 1b238e8bddef2e8a91002d0f06fad5c5573d869e
Author: Piotr Drąg <piotrdrag gmail com>
Date: Thu Apr 27 09:21:45 2017 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=781986
src/simple-scan.vala | 6 +++---
src/ui.vala | 16 ++++++++--------
2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 6e34677..a18db11 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -23,7 +23,7 @@ public class SimpleScan : Gtk.Application
/* Help string for command line --debug flag */
N_("Print debugging messages"), null},
{ "fix-pdf", 0, 0, OptionArg.STRING, ref fix_pdf_filename,
- N_("Fix PDF files generated with older versions of Simple Scan"), "FILENAME..."},
+ N_("Fix PDF files generated with older versions of Simple Scan"), "FILENAME…"},
{ null }
};
private static Timer log_timer;
@@ -528,7 +528,7 @@ public class SimpleScan : Gtk.Application
Intl.textdomain (GETTEXT_PACKAGE);
var c = new OptionContext (/* Arguments and description for --help text */
- _("[DEVICE...] - Scanning utility"));
+ _("[DEVICE…] — Scanning utility"));
c.add_main_entries (options, GETTEXT_PACKAGE);
c.add_group (Gtk.get_option_group (true));
try
@@ -539,7 +539,7 @@ public class SimpleScan : Gtk.Application
{
stderr.printf ("%s\n", e.message);
stderr.printf (/* Text printed out when an unknown command-line argument provided */
- _("Run '%s --help' to see a full list of available command line options."),
args[0]);
+ _("Run “%s --help” to see a full list of available command line options."),
args[0]);
stderr.printf ("\n");
return Posix.EXIT_FAILURE;
}
diff --git a/src/ui.vala b/src/ui.vala
index ad008a2..941f7bb 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -336,8 +336,8 @@ public class UserInterface : Gtk.ApplicationWindow
public void authorize (string resource, out string username, out string password)
{
- /* Label in authorization dialog. '%s' is replaced with the name of the resource requesting
authorization */
- var description = _("Username and password required to access '%s'").printf (resource);
+ /* Label in authorization dialog. “%s” is replaced with the name of the resource requesting
authorization */
+ var description = _("Username and password required to access “%s”").printf (resource);
username_entry.text = "";
password_entry.text = "";
@@ -514,7 +514,7 @@ public class UserInterface : Gtk.ApplicationWindow
directory = Environment.get_user_special_dir (UserDirectory.DOCUMENTS);
save_dialog = new Gtk.FileChooserDialog (/* Save dialog: Dialog title */
- _("Save As..."),
+ _("Save As…"),
this,
Gtk.FileChooserAction.SAVE,
_("_Cancel"), Gtk.ResponseType.CANCEL,
@@ -722,7 +722,7 @@ public class UserInterface : Gtk.ApplicationWindow
"%s", title);
dialog.format_secondary_text ("%s",
/* Text in dialog warning when a document is about to be lost*/
- _("If you don't save, changes will be permanently lost."));
+ _("If you don’t save, changes will be permanently lost."));
dialog.add_button (discard_label, Gtk.ResponseType.NO);
dialog.add_button (_("_Cancel"), Gtk.ResponseType.CANCEL);
dialog.add_button (_("_Save"), Gtk.ResponseType.YES);
@@ -1766,7 +1766,7 @@ public class UserInterface : Gtk.ApplicationWindow
stack.visible = true;
spinner.active = true;
instructions_label.set_text (/* Label shown while installing drivers */
- _("Installing drivers..."));
+ _("Installing drivers…"));
install_packages.begin (packages_to_install, () => {}, (object, result) =>
{
status_label.visible = true;
@@ -1961,8 +1961,8 @@ public class UserInterface : Gtk.ApplicationWindow
section.append_submenu (_("Document"), menu);
menu.append (_("Reorder Pages"), "app.reorder");
menu.append (_("Save"), "app.save");
- menu.append (_("Email..."), "app.email");
- menu.append (_("Print..."), "app.print");
+ menu.append (_("Email…"), "app.email");
+ menu.append (_("Print…"), "app.print");
section = new Menu ();
appmenu.append_section (null, section);
@@ -2136,7 +2136,7 @@ public class UserInterface : Gtk.ApplicationWindow
fullscreen ();
}
- progress_dialog = new ProgressBarDialog (this, _("Saving document..."));
+ progress_dialog = new ProgressBarDialog (this, _("Saving document…"));
book.saving.connect (book_saving_cb);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]