Add suport for russian
parent
0722b4d864
commit
815b507562
|
@ -78,7 +78,7 @@ class ManjaroHello():
|
|||
self.builder.get_object("stack").add_named(scrolled_window, page + "page")
|
||||
|
||||
# Init translation
|
||||
self.locales = ("de", "en", "fr", "pl") # supported locales
|
||||
self.locales = ("de", "en", "fr", "pl", "ru") # supported locales
|
||||
self.default_locale = "en"
|
||||
self.sys_locale = locale.getdefaultlocale()[0]
|
||||
self.default_texts = {}
|
||||
|
@ -172,7 +172,6 @@ class ManjaroHello():
|
|||
}
|
||||
}
|
||||
for method in elts:
|
||||
print(elts[method])
|
||||
for elt in elts[method]:
|
||||
if elt not in self.default_texts:
|
||||
self.default_texts[elt] = getattr(self.builder.get_object(elt), "get_" + method)()
|
||||
|
|
|
@ -505,6 +505,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
|
|||
<item id="en">English (United States)</item>
|
||||
<item id="fr">Français (France)</item>
|
||||
<item id="pl">Polski (Polska)</item>
|
||||
<item id="ru">Pусский (Россия)</item>
|
||||
</items>
|
||||
<signal name="changed" handler="on_languages_changed" swapped="no"/>
|
||||
</object>
|
||||
|
|
Loading…
Reference in New Issue