💥 Better names for main macros
This commit is contained in:
parent
eee481cfcb
commit
6df57a0c12
44 changed files with 146 additions and 140 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
use_handle!(MODULE_MENU);
|
||||
create_handle!(MODULE_MENU);
|
||||
|
||||
use_locale!(LOCALE_MENU in "src/module/menu/locales");
|
||||
static_locales!(LOCALES_MENU in "src/module/menu/locales");
|
||||
|
||||
pub struct Menu;
|
||||
|
||||
|
|
@ -12,10 +12,10 @@ impl ModuleTrait for Menu {
|
|||
}
|
||||
|
||||
fn name(&self) -> L10n {
|
||||
L10n::t("module_name", &LOCALE_MENU)
|
||||
L10n::t("module_name", &LOCALES_MENU)
|
||||
}
|
||||
|
||||
fn description(&self) -> L10n {
|
||||
L10n::t("module_description", &LOCALE_MENU)
|
||||
L10n::t("module_description", &LOCALES_MENU)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue