[Pkg-sugar-commit] [sugar] 01/10: Set default language when read .i18n file - Fixes #4868

Jonas Smedegaard dr at jones.dk
Mon Sep 14 14:55:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository sugar.

commit 0491445196fc519f6e492522bff7bcb2759add1e
Author: Gonzalo Odiard <godiard at gmail.com>
Date:   Wed Jul 1 16:37:41 2015 -0300

    Set default language when read .i18n file - Fixes #4868
    
    If the file is empty or corrupted, use the default language.
---
 extensions/cpsection/language/model.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/extensions/cpsection/language/model.py b/extensions/cpsection/language/model.py
index c20d018..d3a4f65 100644
--- a/extensions/cpsection/language/model.py
+++ b/extensions/cpsection/language/model.py
@@ -110,6 +110,7 @@ def get_languages():
     fd.close()
 
     langlist = None
+    lang = _default_lang
 
     for line in lines:
         if line.startswith('LANGUAGE='):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar.git



More information about the pkg-sugar-commit mailing list