Add docstring to get_best_locale()
This commit is contained in:
parent
d2cda69010
commit
80820acb3b
@ -98,6 +98,10 @@ class ManjaroHello():
|
||||
self.window.show();
|
||||
|
||||
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:
|
||||
return self.preferences["locale"]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user