From 80820acb3bf4731c34299091edc5864c4f4c3bb2 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Tue, 20 Dec 2016 00:29:03 +0100 Subject: [PATCH] Add docstring to get_best_locale() --- src/manjaro_hello.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 91142e3..24b0592 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -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: