🍱 Añade recursos de localización globales
This commit is contained in:
parent
4b218d9ad8
commit
c136126deb
3 changed files with 15 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
6
pagetop/static/locales/en-US/theme.ftl
Normal file
6
pagetop/static/locales/en-US/theme.ftl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
header = Header
|
||||
pagetop = Page Top
|
||||
content = Content
|
||||
sidebar = Sidebar
|
||||
pagebottom = Page Bottom
|
||||
footer = Footer
|
||||
6
pagetop/static/locales/es-ES/theme.ftl
Normal file
6
pagetop/static/locales/es-ES/theme.ftl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
header = Cabecera
|
||||
pagetop = Superior
|
||||
content = Contenido
|
||||
sidebar = Barra lateral
|
||||
pagebottom = Inferior
|
||||
footer = Pie de página
|
||||
Loading…
Add table
Add a link
Reference in a new issue