♻️ (locale): Renombra L10n a Lc
Simplifica el nombre del tipo de localización. Actualiza todas las referencias en el crate principal, extensiones, ejemplos y tests.
This commit is contained in:
parent
3198b74399
commit
be10dd28a1
65 changed files with 612 additions and 621 deletions
|
|
@ -13,12 +13,12 @@ pub struct Welcome;
|
|||
|
||||
#[async_trait]
|
||||
impl Extension for Welcome {
|
||||
fn name(&self) -> L10n {
|
||||
L10n::l("welcome_extension_name")
|
||||
fn name(&self) -> Lc {
|
||||
Lc::l("welcome_extension_name")
|
||||
}
|
||||
|
||||
fn description(&self) -> L10n {
|
||||
L10n::l("welcome_extension_description")
|
||||
fn description(&self) -> Lc {
|
||||
Lc::l("welcome_extension_description")
|
||||
}
|
||||
|
||||
fn configure_router(&self, router: Router) -> Router {
|
||||
|
|
@ -30,33 +30,33 @@ async fn home(request: HttpRequest) -> Result<Markup, ErrorPage> {
|
|||
let app = &global::SETTINGS.app.name;
|
||||
|
||||
Page::new(request)
|
||||
.with_title(L10n::l("welcome_title"))
|
||||
.with_title(Lc::l("welcome_title"))
|
||||
.with_child(
|
||||
Intro::new()
|
||||
.with_child(
|
||||
Block::new()
|
||||
.with_title(L10n::l("welcome_status_title"))
|
||||
.with_title(Lc::l("welcome_status_title"))
|
||||
.with_child(Html::with(move |cx| {
|
||||
html! {
|
||||
p class="intro-text-lead" {
|
||||
(L10n::l("welcome_status_1").using(cx))
|
||||
(Lc::l("welcome_status_1").using(cx))
|
||||
}
|
||||
p class="intro-text-lead" {
|
||||
(L10n::l("welcome_status_2").using(cx))
|
||||
(Lc::l("welcome_status_2").using(cx))
|
||||
}
|
||||
}
|
||||
})),
|
||||
)
|
||||
.with_child(
|
||||
Block::new()
|
||||
.with_title(L10n::l("welcome_support_title"))
|
||||
.with_title(Lc::l("welcome_support_title"))
|
||||
.with_child(Html::with(move |cx| {
|
||||
html! {
|
||||
p class="intro-text-lead" {
|
||||
(L10n::l("welcome_support_1").using(cx))
|
||||
(Lc::l("welcome_support_1").using(cx))
|
||||
}
|
||||
p class="intro-text-lead" {
|
||||
(L10n::l("welcome_support_2").with_arg("app", app).using(cx))
|
||||
(Lc::l("welcome_support_2").with_arg("app", app).using(cx))
|
||||
}
|
||||
}
|
||||
})),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue