[recipes] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Use Unicode in translatable strings
- Date: Mon, 12 Dec 2016 21:18:43 +0000 (UTC)
commit 973f9a078c67b0065d6307ea42dc4c57b8ecbc63
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Dec 12 22:17:59 2016 +0100
Use Unicode in translatable strings
According to https://developer.gnome.org/hig/stable/typography.html
src/gr-cuisine.c | 2 +-
src/gr-details-page.c | 4 ++--
src/gr-ingredients-list.c | 2 +-
src/gr-recipe-exporter.c | 4 ++--
src/gr-recipe-importer.c | 4 ++--
src/gr-recipes-page.ui | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gr-cuisine.c b/src/gr-cuisine.c
index 405e21f..aaa4029 100644
--- a/src/gr-cuisine.c
+++ b/src/gr-cuisine.c
@@ -83,7 +83,7 @@ static const char *descriptions[] = {
"spices, herbs, vegetables and fruits. Indian food is also heavily influenced by religious "
"and cultural choices and traditions. There has also been Middle Eastern and Central Asian "
"influence on North Indian cuisine from the years of Mughal rule. Indian cuisine has been "
- "and is still evolving, as a result of the nation's cultural interactions with other "
+ "and is still evolving, as a result of the nation’s cultural interactions with other "
"societies."),
N_("Italian cuisine is characterized by its simplicity, with many dishes having only four to "
"eight ingredients. Italian cooks rely chiefly on the quality of the ingredients rather "
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index 6c20cb9..5e2b5c5 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -682,8 +682,8 @@ gr_details_page_set_recipe (GrDetailsPage *page,
if (cooked > 0) {
gtk_widget_show (page->cooked_label);
- tmp = g_strdup_printf (ngettext ("You've cooked this recipe before",
- "You've cooked this recipe %d times", cooked), cooked);
+ tmp = g_strdup_printf (ngettext ("You’ve cooked this recipe before",
+ "You’ve cooked this recipe %d times", cooked), cooked);
gtk_label_set_label (GTK_LABEL (page->cooked_label), tmp);
g_free (tmp);
}
diff --git a/src/gr-ingredients-list.c b/src/gr-ingredients-list.c
index eada543..51fe7cc 100644
--- a/src/gr-ingredients-list.c
+++ b/src/gr-ingredients-list.c
@@ -210,7 +210,7 @@ parse_as_unit (Ingredient *ing,
}
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("I don't know this unit: %s"), *string);
+ _("I don’t know this unit: %s"), *string);
return FALSE;
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index d7657c2..8ffa285 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -114,14 +114,14 @@ completed_cb (AutoarCompressor *compressor,
g_autofree char *path = NULL;
path = g_file_get_path (exporter->dest);
- g_message (_("The recipe %s has been exported as ‘%s’"),
+ g_message (_("The recipe %s has been exported as “%s”"),
gr_recipe_get_name (exporter->recipe), path);
dialog = gtk_message_dialog_new (exporter->window,
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
- _("The recipe %s has been exported as ‘%s’"),
+ _("The recipe %s has been exported as “%s”"),
gr_recipe_get_name (exporter->recipe), path);
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
diff --git a/src/gr-recipe-importer.c b/src/gr-recipe-importer.c
index fd3f1de..85f43db 100644
--- a/src/gr-recipe-importer.c
+++ b/src/gr-recipe-importer.c
@@ -408,7 +408,7 @@ import_recipe (GrRecipeImporter *importer)
if (!importer->recipe_ctime) {
g_free (tmp);
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Failed to load recipe: Couldn't parse Created key"));
+ _("Failed to load recipe: Couldn’t parse Created key"));
error_cb (importer->extractor, error, importer);
return;
}
@@ -419,7 +419,7 @@ import_recipe (GrRecipeImporter *importer)
if (!importer->recipe_mtime) {
g_free (tmp);
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Failed to load recipe: Couldn't parse Modified key"));
+ _("Failed to load recipe: Couldn’t parse Modified key"));
error_cb (importer->extractor, error, importer);
return;
}
diff --git a/src/gr-recipes-page.ui b/src/gr-recipes-page.ui
index f4ad533..3605fc6 100644
--- a/src/gr-recipes-page.ui
+++ b/src/gr-recipes-page.ui
@@ -51,7 +51,7 @@
<child>
<object class="GtkLabel" id="pick_label">
<property name="visible">1</property>
- <property name="label" translatable="yes">Editor's Picks</property>
+ <property name="label" translatable="yes">Editor’s Picks</property>
<property name="xalign">0</property>
<accessibility>
<relation target="pick_box" type="label-for"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]