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