155 return [] |
155 return [] |
156 else: |
156 else: |
157 return cls.expand(QLocale(language).language()) |
157 return cls.expand(QLocale(language).language()) |
158 |
158 |
159 @classmethod |
159 @classmethod |
160 def expand(self, language): |
160 def expand(cls, language): |
161 """ |
161 """ |
162 Class method to expand a language enum to a readable languages list. |
162 Class method to expand a language enum to a readable languages list. |
163 |
163 |
164 @param language language number (QLocale.Language) |
164 @param language language number (QLocale.Language) |
165 @return list of expanded language names (list of strings) |
165 @return list of expanded language names (list of strings) |