Add docstring to get_best_locale()

This commit is contained in:
Hugo Posnic 2016-12-20 00:29:03 +01:00
parent d2cda69010
commit 80820acb3b

View File

@ -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: