🧑💻 Mejora y simplifica localización de módulos
This commit is contained in:
parent
d0add7c7ab
commit
520d3bb20b
21 changed files with 265 additions and 325 deletions
|
|
@ -11,11 +11,11 @@ impl ModuleTrait for Menu {
|
|||
MODULE_MENU
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
_t("module_name", Locale::From(&LOCALE_MENU))
|
||||
fn name(&self) -> L10n {
|
||||
L10n::t("module_name", &LOCALE_MENU)
|
||||
}
|
||||
|
||||
fn description(&self) -> Option<String> {
|
||||
Some(_t("module_description", Locale::From(&LOCALE_MENU)))
|
||||
fn description(&self) -> L10n {
|
||||
L10n::t("module_description", &LOCALE_MENU)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue