[gnome-calculator] Use Unicode in translatable strings



commit 7eaaaeafbd38d32c13b37373b1be82a72ad6a58c
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Mon Nov 7 10:13:19 2016 +0100

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

 data/buttons-financial.ui   |   16 ++++++++--------
 data/buttons-programming.ui |    4 ++--
 lib/math-equation.vala      |    4 ++--
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/data/buttons-financial.ui b/data/buttons-financial.ui
index 17ff485..9b23d6b 100644
--- a/data/buttons-financial.ui
+++ b/data/buttons-financial.ui
@@ -1442,7 +1442,7 @@
   <object class="GtkDialog" id="syd_dialog">
     <property name="can_focus">False</property>
     <property name="border_width">6</property>
-    <property name="title" translatable="yes" comments="Title of Sum-of-the-Years'-Digits Depreciation 
dialog">Sum-of-the-Years'-Digits Depreciation</property>
+    <property name="title" translatable="yes" comments="Title of Sum-of-the-Years’-Digits Depreciation 
dialog">Sum-of-the-Years’-Digits Depreciation</property>
     <property name="resizable">False</property>
     <property name="type_hint">dialog</property>
     <child internal-child="vbox">
@@ -1471,7 +1471,7 @@
             </child>
             <child>
               <object class="GtkButton" id="button16">
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Calculate result button">C_alculate</property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Calculate result button">C_alculate</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>
@@ -1506,7 +1506,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Label before period input">_Period:</property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Label before period input">_Period:</property>
                 <property name="use_underline">True</property>
                 <property name="mnemonic_widget">syd_period</property>
               </object>
@@ -1522,7 +1522,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Label before life input">_Life:</property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Label before life input">_Life:</property>
                 <property name="use_underline">True</property>
                 <property name="mnemonic_widget">syd_life</property>
               </object>
@@ -1538,7 +1538,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Label before salvage input">_Salvage:</property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Label before salvage input">_Salvage:</property>
                 <property name="use_underline">True</property>
                 <property name="mnemonic_widget">syd_salvage</property>
               </object>
@@ -1554,7 +1554,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Label before cost input">_Cost:</property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Label before cost input">_Cost:</property>
                 <property name="use_underline">True</property>
                 <property name="mnemonic_widget">syd_cost</property>
               </object>
@@ -1631,7 +1631,7 @@
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
                 <property name="width-chars">50</property>
-                <property name="label" translatable="yes" comments="Sum-of-the-Years'-Digits Depreciation 
Dialog: Description of calculation">Calculates the depreciation allowance on an asset for a specified period 
of time, using the Sum-of-the-Years'-Digits method. This method of depreciation accelerates the rate of 
depreciation, so that more depreciation expense occurs in earlier periods than in later ones. The useful life 
is the number of periods, typically years, over which an asset is depreciated. </property>
+                <property name="label" translatable="yes" comments="Sum-of-the-Years’-Digits Depreciation 
Dialog: Description of calculation">Calculates the depreciation allowance on an asset for a specified period 
of time, using the Sum-of-the-Years’-Digits method. This method of depreciation accelerates the rate of 
depreciation, so that more depreciation expense occurs in earlier periods than in later ones. The useful life 
is the number of periods, typically years, over which an asset is depreciated. </property>
                 <property name="wrap">True</property>
               </object>
               <packing>
@@ -2346,7 +2346,7 @@
     </child>
     <child>
       <object class="GtkButton" id="calc_finc_sum_of_the_years_digits_depreciation_button">
-        <property name="label" translatable="yes" comments="Calculates the depreciation allowance on an 
asset for a specified period of time, using the Sum-Of-The-Years'-Digits method. This method of depreciation 
accelerates the rate of depreciation, so that more depreciation expense occurs in earlier periods than in 
later ones. The depreciable cost is cost - salvage. The useful life is the number of periods, typically 
years, over which an asset is depreciated. See also: http://en.wikipedia.org/wiki/Depreciation";>Syd</property>
+        <property name="label" translatable="yes" comments="Calculates the depreciation allowance on an 
asset for a specified period of time, using the Sum-Of-The-Years’-Digits method. This method of depreciation 
accelerates the rate of depreciation, so that more depreciation expense occurs in earlier periods than in 
later ones. The depreciable cost is cost - salvage. The useful life is the number of periods, typically 
years, over which an asset is depreciated. See also: http://en.wikipedia.org/wiki/Depreciation";>Syd</property>
         <property name="visible">True</property>
         <property name="can_focus">True</property>
         <property name="receives_default">True</property>
diff --git a/data/buttons-programming.ui b/data/buttons-programming.ui
index 24066b1..28568e3 100644
--- a/data/buttons-programming.ui
+++ b/data/buttons-programming.ui
@@ -2202,7 +2202,7 @@
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
             <property name="focus_on_click">False</property>
-            <property name="tooltip_text" translatable="yes">Ones' Complement</property>
+            <property name="tooltip_text" translatable="yes">Ones’ Complement</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'ones '</property>
           </object>
@@ -2219,7 +2219,7 @@
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
             <property name="focus_on_click">False</property>
-            <property name="tooltip_text" translatable="yes">Two's Complement</property>
+            <property name="tooltip_text" translatable="yes">Two’s Complement</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'twos '</property>
           </object>
diff --git a/lib/math-equation.vala b/lib/math-equation.vala
index af0dfea..cfd7b8e 100644
--- a/lib/math-equation.vala
+++ b/lib/math-equation.vala
@@ -970,14 +970,14 @@ public class MathEquation : Gtk.SourceBuffer
 
             case ErrorCode.UNKNOWN_VARIABLE:
                 solvedata.error = /* Error displayed to user when they an unknown variable is entered */
-                                  _("Unknown variable '%s'").printf (error_token);
+                                  _("Unknown variable “%s”").printf (error_token);
                 solvedata.error_start = error_start;
                 solvedata.error_end = error_end;
                 break;
 
             case ErrorCode.UNKNOWN_FUNCTION:
                 solvedata.error = /* Error displayed to user when an unknown function is entered */
-                                  _("Function '%s' is not defined").printf (error_token);
+                                  _("Function “%s” is not defined").printf (error_token);
                 solvedata.error_start = error_start;
                 solvedata.error_end = error_end;
                 break;


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