Skip to content

Commit

Permalink
* Do not translate error message, more verbose setup warnings (Kinshuk)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOelmueller committed Apr 21, 2012
1 parent 55a21a0 commit 82b4749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion horizons/i18n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def change_language(language=None):
trans.install(unicode=True, names=['ngettext',])
except IOError:
#xgettext:python-format
print _("Configured language {lang} could not be loaded.").format(lang=language)
print "Configured language {lang} could not be loaded.".format(lang=language)
horizons.main.fife.set_uh_setting('Language', LANGUAGENAMES[''])
return change_language() # recurse
else:
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,13 @@ def run(self):
return
po_files = glob.glob("%s/*.po" % self.po_dir)
if len(po_files) and not find_executable('msgfmt'):
self.warn("Can't generate language files, needs msgfmt. Only native language (english) will be available")
self.warn("Can't generate language files, needs msgfmt. "
"Only native language (English) will be available. "
"Try installing the package 'gettext' or 'msgfmt'.")
return
if len(self.desktop_files) and not find_executable('intltool-merge'):
self.warn("Can't generate desktop files, needs intltool-merge")
self.warn("Can't generate desktop files, needs intltool-merge. "
"Try installing the package 'intltool'.")
return

data_files = self.distribution.data_files
Expand Down

0 comments on commit 82b4749

Please sign in to comment.