🍱 Añade recursos de localización globales

This commit is contained in:
Manuel Cillero 2023-06-04 18:49:23 +02:00
parent 4b218d9ad8
commit c136126deb
3 changed files with 15 additions and 1 deletions

View file

@ -6,7 +6,7 @@ use crate::core::{module, module::ModuleStaticRef};
use crate::html::Markup;
use crate::response::fatal_error::FatalError;
use crate::response::page::ResultPage;
use crate::{config, locale, server, trace, LazyStatic};
use crate::{config, define_locale, locale, server, trace, LazyStatic};
#[cfg(feature = "database")]
use crate::db;
@ -21,6 +21,8 @@ use std::io::Error;
use substring::Substring;
define_locale!(LOCALE_PAGETOP, "static/locales");
pub struct Application {
server: Server,
}

View file

@ -0,0 +1,6 @@
header = Header
pagetop = Page Top
content = Content
sidebar = Sidebar
pagebottom = Page Bottom
footer = Footer

View file

@ -0,0 +1,6 @@
header = Cabecera
pagetop = Superior
content = Contenido
sidebar = Barra lateral
pagebottom = Inferior
footer = Pie de página