Add docstring to get_best_locale()
parent
d2cda69010
commit
80820acb3b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue