]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n fix in menu and added correct syntax in example config file
authorBanana <mail@bananas-playground.net>
Fri, 19 Apr 2024 17:45:11 +0000 (19:45 +0200)
committerBanana <mail@bananas-playground.net>
Fri, 19 Apr 2024 17:45:11 +0000 (19:45 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
documentation/i18n.md
webclient/config/config.php.default
webclient/view/default/system/menu.php

index 6f8ba3758438a053d3256e8dae63f82261eb11b5..9dc3e43a25d42d17fa10fd0a7e90d6d10717154a 100644 (file)
@@ -11,6 +11,11 @@ the format of the constant in the `config.php` is an array. `iso3 => value, iso2
 
 Additional to the usual ini format, there is the possibility to use an existing key as a value.
 
+# Available languages
+
++ English `iso3 = eng` `iso2 = en`
++ German `iso3 = deu` `iso2 = de`
+
 ## How to create a new language file
 
 Lookup the correct [ISO 639-3](https://iso639-3.sil.org/code_tables/639/data) code and create a file with this code
index f039dfed95fae6b747c3369bc313f3fda21e2e04..6aa3a8dc72bc1ee1c0b8566f6a9de39b4628a306 100644 (file)
@@ -28,7 +28,7 @@ const TIMEZONE = '~timezone~';
 
 # language setting
 # see i18n.md file for syntax
-const FRONTEND_LANGUAGE = 'eng';
+const FRONTEND_LANGUAGE = array('iso3' => 'eng', 'iso2' => 'en');
 
 # path settings
 const PATH_ABSOLUTE = '~pathabsolute~';
index 88c9a69640e444c7157485b5d849ce10a57c9408..cf2ecd2253a532b75af419f716f8b6710ce4394c 100644 (file)
@@ -33,7 +33,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
        <div class="uk-navbar-left">
                <ul class="uk-navbar-nav">
                        <li class="uk-parent">
-                               <a href="<?php echo $I18n->t('menu.lv1.show'); ?>"></a>
+                               <a href=""><?php echo $I18n->t('menu.lv1.show'); ?></a>
                                <div class="uk-navbar-dropdown">
                                        <ul class="uk-nav uk-navbar-dropdown-nav">
                                                <?php foreach($_menuShow as $entry) { ?>