spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 326a3b85264a899ae6ea66ba2038511045c96a74
parent bfd54209c4c313dd83ebaccdacd3b8e1520211aa
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Fri, 22 Apr 2011 09:39:45 +0800

i18n: '(system default)' was not translated

Diffstat:
Msrc/spek-preferences.vala | 4+++-
Msrc/spek.vala | 1-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/spek-preferences.vala b/src/spek-preferences.vala @@ -37,7 +37,6 @@ namespace Spek { }; private Preferences () { - languages[0,1] = _("(system default)"); file_name = Path.build_filename (Environment.get_user_config_dir (), "spek"); DirUtils.create_with_parents (file_name, 0755); file_name = Path.build_filename (file_name, "preferences"); @@ -59,6 +58,9 @@ namespace Spek { if (_instance == null) { _instance = new Preferences (); } + if (_instance.languages[0,1] == null) { + languages[0,1] = _("(system default)"); + } return _instance; } } diff --git a/src/spek.vala b/src/spek.vala @@ -34,7 +34,6 @@ namespace Spek { Environment.set_variable ("LANGUAGE", Preferences.instance.language, true); } -// Intl.setlocale (LocaleCategory.ALL, prefs.language); Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR); Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8"); Intl.textdomain (Config.GETTEXT_PACKAGE);