diff --git a/pagetop/src/app.rs b/pagetop/src/app.rs index dbb39ddd..a3d4e67d 100644 --- a/pagetop/src/app.rs +++ b/pagetop/src/app.rs @@ -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, } diff --git a/pagetop/static/locales/en-US/theme.ftl b/pagetop/static/locales/en-US/theme.ftl new file mode 100644 index 00000000..f87bfe36 --- /dev/null +++ b/pagetop/static/locales/en-US/theme.ftl @@ -0,0 +1,6 @@ +header = Header +pagetop = Page Top +content = Content +sidebar = Sidebar +pagebottom = Page Bottom +footer = Footer diff --git a/pagetop/static/locales/es-ES/theme.ftl b/pagetop/static/locales/es-ES/theme.ftl new file mode 100644 index 00000000..65cc7218 --- /dev/null +++ b/pagetop/static/locales/es-ES/theme.ftl @@ -0,0 +1,6 @@ +header = Cabecera +pagetop = Superior +content = Contenido +sidebar = Barra lateral +pagebottom = Inferior +footer = Pie de página