From 5a6acfdb9a41de038ca044abc75ce674fcc6f219 Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 3 Jan 2023 21:13:38 +0100 Subject: [PATCH] fixed i18n and updated changelog --- CHANGELOG | 1 + webroot/lib/i18n.class.php | 4 ++-- webroot/view/_foot.php | 3 +++ webroot/view/entry/entry.html | 26 +++++++++++++------------- webroot/view/list/list.html | 13 +++++++------ 5 files changed, 26 insertions(+), 21 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 08f75ed..1e70197 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ 1.x Atlas - + i18n. See upgrade-from-1.0.txt for more details. + PHP 8.1 stuff + + Search 1.0 Lykos - 2022-11-12 diff --git a/webroot/lib/i18n.class.php b/webroot/lib/i18n.class.php index 1bebd80..a7c63e3 100644 --- a/webroot/lib/i18n.class.php +++ b/webroot/lib/i18n.class.php @@ -30,9 +30,9 @@ class I18n { * i18n constructor. */ public function __construct() { - $_langFile = ABSOLUTE_PATH.'/lib/i18n/'.$this->_defaultLangToUse.'.ini'; + $_langFile = PATH_ABSOLUTE.'/lib/i18n/'.$this->_defaultLangToUse.'.ini'; if(defined('FRONTEND_LANGUAGE')) { - $_langFile = ABSOLUTE_PATH.'/lib/i18n/'.FRONTEND_LANGUAGE.'.ini'; + $_langFile = PATH_ABSOLUTE.'/lib/i18n/'.FRONTEND_LANGUAGE.'.ini'; if(file_exists($_langFile)) { $_langData = parse_ini_file($_langFile); if($_langData !== false) { diff --git a/webroot/view/_foot.php b/webroot/view/_foot.php index 308b1d0..45716f3 100644 --- a/webroot/view/_foot.php +++ b/webroot/view/_foot.php @@ -1,2 +1,5 @@ + diff --git a/webroot/view/entry/entry.html b/webroot/view/entry/entry.html index a480212..e8f5c95 100644 --- a/webroot/view/entry/entry.html +++ b/webroot/view/entry/entry.html @@ -1,21 +1,21 @@ - -

Created: , Updated:

- -
- - - ('form.checkbox.deleteentry'); ?> -

-('text.home'); ?> -">t('text.home'); ?> + '.$be.' | '; } -?> - ('text.new'); ?> - + ?> + t('text.new'); ?> +

+ +

Created: , Updated:

+ +
+ + + t('form.checkbox.deleteentry'); ?> +
diff --git a/webroot/view/list/list.html b/webroot/view/list/list.html index 5caf839..4c8111b 100644 --- a/webroot/view/list/list.html +++ b/webroot/view/list/list.html @@ -1,19 +1,20 @@
- +
-

- ('text.home'); ?> | ('text.new'); ?> -

+

+ t('text.home'); ?> | $v) { $_link = ''; foreach($v['breadcrumb'] as $be) { $_link .= '/'.$be; - echo ''.$be.' '; + echo ''.$be.' | '; } ?> + t('text.new'); ?> +