Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Solve the python standard formation problem in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryspia committed Oct 12, 2014
1 parent 15b4abc commit e1e1b20
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/freeseer/frontend/configtool/configtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, profile, config):

#There is not config file. Using the auto language changing.
if self.config.default_language == "tr_xx_XX.qm":
self.config.default_language = "tr_"+self.current_language+".qm"
self.config.default_language = "tr_" + self.current_language + ".qm"

# Load default language.
actions = self.menuLanguage.actions()
Expand Down
8 changes: 4 additions & 4 deletions src/freeseer/frontend/qtcommon/FreeseerApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ def setupLanguageMenu(self):
languageDetected = True
#Additional case for Simplified Chinese & Traditional Chinese.
#Traditional Chinese has higher priority
if ((self.current_language[:2] != "zh") or \
(str(language) == "tr_zh_HK.qm" and \
self.current_language != "zh_CN")):
if (self.current_language[:2] != "zh" or \
str(language) == "tr_zh_HK.qm" and \
self.current_language != "zh_CN"):
self.current_language = str(language).strip("tr_").rstrip(".qm")

#For the system language not included, using English for default.
if not languageDetected:
self.current_language = "en_US"
2 changes: 1 addition & 1 deletion src/freeseer/frontend/record/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(self, profile, config):

#There is not config file. Using the auto language changing.
if self.config.default_language == "tr_xx_XX.qm":
self.config.default_language = "tr_"+self.current_language+".qm"
self.config.default_language = "tr_" + self.current_language + ".qm"

self.load_settings()

Expand Down
2 changes: 1 addition & 1 deletion src/freeseer/frontend/reporteditor/reporteditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(self, config, db):

#There is not config file. Using the auto language changing.
if self.config.default_language == "tr_xx_XX.qm":
self.config.default_language = "tr_"+self.current_language+".qm"
self.config.default_language = "tr_" + self.current_language + ".qm"

# Load default language
actions = self.menuLanguage.actions()
Expand Down
2 changes: 1 addition & 1 deletion src/freeseer/frontend/talkeditor/talkeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(self, config, db):

#There is not config file. Using the auto language changing.
if self.config.default_language == "tr_xx_XX.qm":
self.config.default_language = "tr_"+self.current_language+".qm"
self.config.default_language = "tr_" + self.current_language + ".qm"

# Load default language
actions = self.menuLanguage.actions()
Expand Down

0 comments on commit e1e1b20

Please sign in to comment.