[folks] Use Unicode in translatable strings



commit d4669a1bbf4afc89a6ba65587af0edea28f9a6ae
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Oct 4 20:24:12 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 backends/eds/lib/edsf-persona-store.vala      |   16 ++++++++--------
 backends/key-file/kf-persona-store.vala       |    8 ++++----
 backends/key-file/kf-persona.vala             |    2 +-
 backends/telepathy/lib/tpf-persona-store.vala |    6 +++---
 backends/tracker/lib/trf-persona-store.vala   |    2 +-
 folks/backend-store.vala                      |    6 +++---
 folks/im-details.vala                         |    8 ++++----
 folks/individual-aggregator.vala              |   16 ++++++++--------
 folks/org.freedesktop.folks.gschema.xml.in    |    2 +-
 tools/import-pidgin.vala                      |    6 +++---
 tools/import.vala                             |   14 +++++++-------
 11 files changed, 43 insertions(+), 43 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index a0203c5..6d67995 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -650,7 +650,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
                   case ClientError.NOT_SUPPORTED:
                     throw new PersonaStoreError.READ_ONLY (
                         /* Translators: the parameter is an error message. */
-                        _("Removing contacts isn't supported by this persona store: %s"),
+                        _("Removing contacts isn’t supported by this persona store: %s"),
                             e.message);
                   case ClientError.AUTHENTICATION_REQUIRED:
                     /* TODO: Support authentication. bgo#653339 */
@@ -679,7 +679,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
 
           /* Fallback error. */
           throw new PersonaStoreError.REMOVE_FAILED (
-              _("Can't remove contact ‘%s’: %s"), persona.uid, e.message);
+              _("Can’t remove contact ‘%s’: %s"), persona.uid, e.message);
         }
     }
 
@@ -806,7 +806,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
               throw new PersonaStoreError.INVALID_ARGUMENT (
                   /* Translators: the first parameter is an address book URI
                    * and the second is an error message. */
-                  _("Couldn't open address book ‘%s’: %s"), this.id, e1.message);
+                  _("Couldn’t open address book ‘%s’: %s"), this.id, e1.message);
             }
 
           /* Determine which fields the address book supports. This is necessary
@@ -874,7 +874,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
 
               throw new PersonaStoreError.INVALID_ARGUMENT (
                   /* Translators: the parameteter is an error message. */
-                  _("Couldn't get address book capabilities: %s"), e2.message);
+                  _("Couldn’t get address book capabilities: %s"), e2.message);
             }
 
           /* Get the set of capabilities supported by the address book.
@@ -904,7 +904,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
 
               throw new PersonaStoreError.INVALID_ARGUMENT (
                   /* Translators: the parameteter is an error message. */
-                  _("Couldn't get address book capabilities: %s"), e4.message);
+                  _("Couldn’t get address book capabilities: %s"), e4.message);
             }
 
           bool got_view = false;
@@ -920,7 +920,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
                 {
                   throw new PersonaStoreError.INVALID_ARGUMENT (
                       /* Translators: the parameter is an address book URI. */
-                      _("Couldn't get view for address book ‘%s’."),
+                      _("Couldn’t get view for address book ‘%s’."),
                           this.id);
                 }
 
@@ -999,7 +999,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
               throw new PersonaStoreError.INVALID_ARGUMENT (
                   /* Translators: the first parameter is an address book URI
                    * and the second is an error message. */
-                  _("Couldn't get view for address book ‘%s’: %s"),
+                  _("Couldn’t get view for address book ‘%s’: %s"),
                   this.id, e3.message);
             }
 
@@ -1689,7 +1689,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore
               /* Loading/Reading the avatar failed. */
               throw new PropertyError.INVALID_VALUE (
                   /* Translators: the parameter is an error message. */
-                  _("Can't update avatar: %s"), e1.message);
+                  _("Can’t update avatar: %s"), e1.message);
             }
         }
     }
diff --git a/backends/key-file/kf-persona-store.vala b/backends/key-file/kf-persona-store.vala
index 717e748..c629247 100644
--- a/backends/key-file/kf-persona-store.vala
+++ b/backends/key-file/kf-persona-store.vala
@@ -231,7 +231,7 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
                       warning (
                           /* Translators: the first parameter is a filename, and
                            * the second is an error message. */
-                          _("The relationship key file '%s' could not be loaded: %s"),
+                          _("The relationship key file ‘%s’ could not be loaded: %s"),
                           filename, e1.message);
                       this.removed ();
                       return;
@@ -253,7 +253,7 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
                       warning (
                           /* Translators: the first parameter is a path, and the
                            * second is an error message. */
-                          _("The relationship key file directory '%s' could not be created: %s"),
+                          _("The relationship key file directory ‘%s’ could not be created: %s"),
                           parent_dir.get_path (), e3.message);
                       this.removed ();
                       return;
@@ -277,7 +277,7 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
                       warning (
                           /* Translators: the first parameter is a filename, and
                            * the second is an error message. */
-                          _("The relationship key file '%s' could not be created: %s"),
+                          _("The relationship key file ‘%s’ could not be created: %s"),
                           filename, e2.message);
                       this.removed ();
                       return;
@@ -468,7 +468,7 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
             {
               /* Translators: the first parameter is a filename, the second is
                * an error message. */
-              warning (_("Could not write updated key file '%s': %s"),
+              warning (_("Could not write updated key file ‘%s’: %s"),
                   this.file.get_path (), e.message);
             }
         }
diff --git a/backends/key-file/kf-persona.vala b/backends/key-file/kf-persona.vala
index 8461f44..c6356bb 100644
--- a/backends/key-file/kf-persona.vala
+++ b/backends/key-file/kf-persona.vala
@@ -429,7 +429,7 @@ public class Folks.Backends.Kf.Persona : Folks.Persona,
           if (!(e is KeyFileError.GROUP_NOT_FOUND))
             {
               /* Translators: the parameter is an error message. */
-              warning (_("Couldn't load data from key file: %s"), e.message);
+              warning (_("Couldn’t load data from key file: %s"), e.message);
             }
         }
     }
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 025c240..975ac07 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -1306,7 +1306,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
           throw new PersonaStoreError.INVALID_ARGUMENT (
               /* Translators: the first two parameters are store identifiers and
                * the third is a contact identifier. */
-              _("Persona store (%s, %s) requires the following details:\n    contact (provided: '%s')\n"),
+              _("Persona store (%s, %s) requires the following details:\n    contact (provided: ‘%s’)\n"),
               this.type_id, this.id, contact_id);
         }
 
@@ -1415,7 +1415,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
         {
           throw new PropertyError.UNKNOWN_ERROR (
               /* Translators: the parameter is an error message. */
-              _("Failed to change contact's alias: %s"), e1.message);
+              _("Failed to change contact’s alias: %s"), e1.message);
         }
     }
 
@@ -1496,7 +1496,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
       if (!persona.is_user)
         {
           throw new PersonaStoreError.UNSUPPORTED_ON_NON_USER (
-              _("Extended information may only be set on the user's Telepathy contact."));
+              _("Extended information may only be set on the user’s Telepathy contact."));
         }
 
       var info_list = PersonaStore._contact_info_set_to_list (info_set);
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index 77ec6cf..3a355a7 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -740,7 +740,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
                   /* Translators: the first parameter is the unknown key that
                    * was received with the details params, and the second
                    * identifies the persona store. */
-                _("Unrecognized parameter '%s' passed to persona store '%s'."),
+                _("Unrecognized parameter ‘%s’ passed to persona store ‘%s’."),
                 k, this.id);
             }
         }
diff --git a/folks/backend-store.vala b/folks/backend-store.vala
index ba98ec2..f9be840 100644
--- a/folks/backend-store.vala
+++ b/folks/backend-store.vala
@@ -651,7 +651,7 @@ public class Folks.BackendStore : Object {
         {
           /* Translators: the first parameter is a folder path and the second
            * is an error message. */
-          critical (_("Error listing contents of folder '%s': %s"),
+          critical (_("Error listing contents of folder ‘%s’: %s"),
               dir.get_path (), error.message);
 
           return null;
@@ -820,13 +820,13 @@ public class Folks.BackendStore : Object {
           if (error is IOError.NOT_FOUND)
             {
               /* Translators: the parameter is a filename. */
-              critical (_("File or directory '%s' does not exist."),
+              critical (_("File or directory ‘%s’ does not exist."),
                   file.get_path ());
             }
           else
             {
               /* Translators: the parameter is a filename. */
-              critical (_("Failed to get content type for '%s'."),
+              critical (_("Failed to get content type for ‘%s’."),
                   file.get_path ());
             }
 
diff --git a/folks/im-details.vala b/folks/im-details.vala
index 70ea64f..698a3c8 100644
--- a/folks/im-details.vala
+++ b/folks/im-details.vala
@@ -175,7 +175,7 @@ public interface Folks.ImDetails : Object
             {
               throw new ImDetailsError.INVALID_IM_ADDRESS (
                   /* Translators: the parameter is an IM address. */
-                  _("The IM address '%s' could not be understood."),
+                  _("The IM address ‘%s’ could not be understood."),
                   im_address);
             }
 
@@ -189,7 +189,7 @@ public interface Folks.ImDetails : Object
             {
               throw new ImDetailsError.INVALID_IM_ADDRESS (
                   /* Translators: the parameter is an IM address. */
-                  _("The IM address '%s' could not be understood."),
+                  _("The IM address ‘%s’ could not be understood."),
                   im_address);
             }
 
@@ -211,7 +211,7 @@ public interface Folks.ImDetails : Object
             {
               throw new ImDetailsError.INVALID_IM_ADDRESS (
                   /* Translators: the parameter is an IM address. */
-                  _("The IM address '%s' could not be understood."),
+                  _("The IM address ‘%s’ could not be understood."),
                   im_address);
             }
 
@@ -238,7 +238,7 @@ public interface Folks.ImDetails : Object
             {
               throw new ImDetailsError.INVALID_IM_ADDRESS (
                   /* Translators: the parameter is an IM address. */
-                  _("The IM address '%s' could not be understood."),
+                  _("The IM address ‘%s’ could not be understood."),
                   im_address);
             }
 
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 718f694..486364b 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -1060,7 +1060,7 @@ public class Folks.IndividualAggregator : Object
             {
               /* Translators: the first parameter is a persona store identifier
                * and the second is an error message. */
-              warning (_("Error preparing persona store '%s': %s"), store_id,
+              warning (_("Error preparing persona store ‘%s’: %s"), store_id,
                   e.message);
             }
         });
@@ -1291,7 +1291,7 @@ public class Folks.IndividualAggregator : Object
                     {
                       warning (
                           /* Translators: the parameter is a property name. */
-                          _("Unknown property '%s' in linkable property list."),
+                          _("Unknown property ‘%s’ in linkable property list."),
                           prop_name);
                       continue;
                     }
@@ -1564,7 +1564,7 @@ public class Folks.IndividualAggregator : Object
                 {
                   warning (
                       /* Translators: the parameter is a property name. */
-                      _("Unknown property '%s' in linkable property list."),
+                      _("Unknown property ‘%s’ in linkable property list."),
                       prop_name);
                   continue;
                 }
@@ -2050,7 +2050,7 @@ public class Folks.IndividualAggregator : Object
               throw new IndividualAggregatorError.ADD_FAILED (
                   /* Translators: the first parameter is a store identifier
                    * and the second parameter is an error message. */
-                  _("Failed to add contact for persona store ID '%s': %s"),
+                  _("Failed to add contact for persona store ID ‘%s’: %s"),
                   full_id, e.message);
             }
         }
@@ -2149,7 +2149,7 @@ public class Folks.IndividualAggregator : Object
           throw new IndividualAggregatorError.NO_PRIMARY_STORE (
               _("Can’t link personas with no primary store.") + "\n" +
               _("Persona store ‘%s:%s’ is configured as primary, but could not be found or failed to load.") 
+ "\n" +
-              _("Check the relevant service is running, or change the default store in that service or using 
the “%s” GSettings key."),
+              _("Check the relevant service is running, or change the default store in that service or using 
the ‘%s’ GSettings key."),
               this._configured_primary_store_type_id,
               this._configured_primary_store_id,
               "%s %s".printf (IndividualAggregator._FOLKS_GSETTINGS_SCHEMA,
@@ -2181,7 +2181,7 @@ public class Folks.IndividualAggregator : Object
               catch (PropertyError e)
                 {
                   throw new IndividualAggregatorError.PROPERTY_NOT_WRITEABLE (
-                      _("Anti-links can't be removed between personas being linked."));
+                      _("Anti-links can’t be removed between personas being linked."));
                 }
             }
         }
@@ -2480,7 +2480,7 @@ public class Folks.IndividualAggregator : Object
           throw new IndividualAggregatorError.NO_PRIMARY_STORE (
               _("Can’t add personas with no primary store.") + "\n" +
               _("Persona store ‘%s:%s’ is configured as primary, but could not be found or failed to load.") 
+ "\n" +
-              _("Check the relevant service is running, or change the default store in that service or using 
the “%s” GSettings key."),
+              _("Check the relevant service is running, or change the default store in that service or using 
the ‘%s’ GSettings key."),
               this._configured_primary_store_type_id,
               this._configured_primary_store_id,
               "%s %s".printf (IndividualAggregator._FOLKS_GSETTINGS_SCHEMA,
@@ -2489,7 +2489,7 @@ public class Folks.IndividualAggregator : Object
       else if (new_persona == null)
         {
           throw new IndividualAggregatorError.PROPERTY_NOT_WRITEABLE (
-              _("Can't write to requested property (“%s”) of the writeable store."),
+              _("Can’t write to requested property (‘%s’) of the writeable store."),
               property_name);
         }
 
diff --git a/folks/org.freedesktop.folks.gschema.xml.in b/folks/org.freedesktop.folks.gschema.xml.in
index ce26926..852fde0 100644
--- a/folks/org.freedesktop.folks.gschema.xml.in
+++ b/folks/org.freedesktop.folks.gschema.xml.in
@@ -6,7 +6,7 @@
       <summary>Primary store ID</summary>
       <description>The ID of the persona store which folks should use as primary (i.e. to store linking data 
in).
           The type ID of the store may optionally be prepended, separated by a colon.
-          For example: “eds:system-address-book” or “key-file”.</description>
+          For example: ‘eds:system-address-book’ or ‘key-file’.</description>
     </key>
   </schema>
 </schemalist>
diff --git a/tools/import-pidgin.vala b/tools/import-pidgin.vala
index 65589a6..0ea729b 100644
--- a/tools/import-pidgin.vala
+++ b/tools/import-pidgin.vala
@@ -79,7 +79,7 @@ public class Folks.Importers.Pidgin : Folks.Importer
         {
           throw new ImportError.MALFORMED_INPUT (
               /* Translators: the parameter is a filename. */
-              _("The Pidgin buddy list file '%s' could not be loaded."),
+              _("The Pidgin buddy list file ‘%s’ could not be loaded."),
               filename);
         }
 
@@ -114,8 +114,8 @@ public class Folks.Importers.Pidgin : Folks.Importer
       stdout.printf (
           /* Translators: the first parameter is the number of buddies which
            * were successfully imported, and the second is a filename. */
-          ngettext ("Imported %u buddy from '%s'.",
-              "Imported %u buddies from '%s'.", this.persona_count) + "\n",
+          ngettext ("Imported %u buddy from ‘%s’.",
+              "Imported %u buddies from ‘%s’.", this.persona_count) + "\n",
           this.persona_count, filename);
 
       /* Return the number of Personas we imported */
diff --git a/tools/import.vala b/tools/import.vala
index 0375529..ae9ebc2 100644
--- a/tools/import.vala
+++ b/tools/import.vala
@@ -41,7 +41,7 @@ public class Folks.ImportTool : Object
   private const OptionEntry[] options =
     {
       { "source", 's', 0, OptionArg.STRING, ref ImportTool.source,
-          N_("Source backend name (default: 'pidgin')"), "name" },
+          N_("Source backend name (default: ‘pidgin’)"), "name" },
       { "source-filename", 0, 0, OptionArg.FILENAME,
           ref ImportTool.source_filename,
           N_("Source filename (default: specific to source backend)"), null },
@@ -65,7 +65,7 @@ public class Folks.ImportTool : Object
       catch (OptionError e)
         {
           /* Translators: the parameter is an error message. */
-          stderr.printf (_("Couldn't parse command line options: %s") + "\n",
+          stderr.printf (_("Couldn’t parse command line options: %s") + "\n",
               e.message);
           return 1;
         }
@@ -106,7 +106,7 @@ public class Folks.ImportTool : Object
       catch (GLib.Error e1)
         {
           /* Translators: the parameter is an error message. */
-          stderr.printf (_("Couldn't load the backends: %s") + "\n",
+          stderr.printf (_("Couldn’t load the backends: %s") + "\n",
               e1.message);
           return false;
         }
@@ -117,7 +117,7 @@ public class Folks.ImportTool : Object
       if (kf_backend == null)
         {
           /* Translators: the parameter is a backend identifier. */
-          stderr.printf (_("Couldn't load the ‘%s’ backend.") + "\n",
+          stderr.printf (_("Couldn’t load the ‘%s’ backend.") + "\n",
               "key-file");
           return false;
         }
@@ -130,7 +130,7 @@ public class Folks.ImportTool : Object
         {
           /* Translators: the first parameter is a backend identifier and the
            * second parameter is an error message. */
-          stderr.printf (_("Couldn't prepare the ‘%s’ backend: %s") + "\n",
+          stderr.printf (_("Couldn’t prepare the ‘%s’ backend: %s") + "\n",
               "key-file", e2.message);
           return false;
         }
@@ -143,7 +143,7 @@ public class Folks.ImportTool : Object
         {
           stderr.printf (
               /* Translators: the parameter is a backend identifier. */
-              _("Couldn't load the ‘%s’ backend's persona store.") + "\n",
+              _("Couldn’t load the ‘%s’ backend’s persona store.") + "\n",
               "key-file");
           return false;
         }
@@ -164,7 +164,7 @@ public class Folks.ImportTool : Object
           /* Translators: the first parameter is a backend identifier and the
            * second parameter is an error message. */
           stderr.printf (
-              _("Couldn't prepare the ‘%s’ backend's persona store: %s") + "\n",
+              _("Couldn’t prepare the ‘%s’ backend’s persona store: %s") + "\n",
               e3.message);
           return false;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]