Add docstring to get_best_locale()

merge-requests/64/head
Hugo Posnic 2016-12-20 00:29:03 +01:00
parent d2cda69010
commit 80820acb3b
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ class ManjaroHello():
self.window.show(); self.window.show();
def get_best_locale(self): def get_best_locale(self):
"""Choose best locale, based on user's preferences.
:return: locale to use
:rtype: str
"""
if self.preferences["locale"] in self.locales: if self.preferences["locale"] in self.locales:
return self.preferences["locale"] return self.preferences["locale"]
else: else: