[gitg/wip/spellcheck] Do not set default spell checking language



commit fe62807ac9269aeeadcb5c6c9beb9564debe7262
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jul 7 13:13:28 2013 +0200

    Do not set default spell checking language
    
    In this way we use the system language instead of a predefined
    one, that would have to be translated.

 data/org.gnome.gitg.gschema.xml.in.in |    2 +-
 gitg/commit/gitg-commit-dialog.vala   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.gitg.gschema.xml.in.in b/data/org.gnome.gitg.gschema.xml.in.in
index 688f1a5..554ff1d 100644
--- a/data/org.gnome.gitg.gschema.xml.in.in
+++ b/data/org.gnome.gitg.gschema.xml.in.in
@@ -117,7 +117,7 @@
       <default>true</default>
     </key>
     <key name="spell-checking-language" type="s">
-      <default>'EN_us'</default>
+      <default>''</default>
     </key>
   </schema>
   <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gitg.preferences.hidden" 
path="/org/gnome/gitg/preferences/hidden/">
diff --git a/gitg/commit/gitg-commit-dialog.vala b/gitg/commit/gitg-commit-dialog.vala
index a7842ea..416a3e4 100644
--- a/gitg/commit/gitg-commit-dialog.vala
+++ b/gitg/commit/gitg-commit-dialog.vala
@@ -237,7 +237,7 @@ class Dialog : Gtk.Dialog
 
        private void set_spell_language()
        {
-               if (d_spell_checker != null && d_spell_checking_language != null)
+               if (d_spell_checker != null && d_spell_checking_language != "")
                {
                        try
                        {
@@ -246,7 +246,7 @@ class Dialog : Gtk.Dialog
                        catch
                        {
                                warning(_("Cannot set spell checking language: %s"), 
d_spell_checking_language);
-                               d_spell_checking_language = null;
+                               d_spell_checking_language = "";
                        }
                }
        }


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