🧑💻 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
|
|
@ -14,12 +14,12 @@ impl ModuleTrait for Node {
|
|||
MODULE_NODE
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
_t("module_name", Locale::From(&LOCALE_NODE))
|
||||
fn name(&self) -> L10n {
|
||||
L10n::t("module_name", &LOCALE_NODE)
|
||||
}
|
||||
|
||||
fn description(&self) -> Option<String> {
|
||||
Some(_t("module_description", Locale::From(&LOCALE_NODE)))
|
||||
fn description(&self) -> L10n {
|
||||
L10n::t("module_description", &LOCALE_NODE)
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
|
|
@ -41,7 +41,7 @@ impl ModuleTrait for Node {
|
|||
}
|
||||
|
||||
async fn node(request: server::HttpRequest) -> ResultPage<Markup, FatalError> {
|
||||
Page::new(request).with_title(Text::n("Nodo")).render()
|
||||
Page::new(request).with_title(L10n::text("Nodo")).render()
|
||||
}
|
||||
|
||||
fn before_render_page(page: &mut Page) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue