From 43cd7cbaf709aa66f6087e673d435fcd1d222c8a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 13 Nov 2016 23:14:43 +0100 Subject: [PATCH] Localization tpl draft --- Theme/Backend/Lang/en.lang.php | 28 +++ Theme/backend/Lang/en.lang.php | 28 +++ Theme/backend/settings-general.tpl.php | 295 ++++++++++++++++++++----- 3 files changed, 290 insertions(+), 61 deletions(-) diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 64e1f73..f8363cc 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -21,6 +21,7 @@ return ['Admin' => [ 'Activity' => 'Activity', 'Available' => 'Available', 'All' => 'All', + 'Area' => 'Area', 'Banned' => 'Banned', 'Cache' => 'Cache', 'Children' => 'Children', @@ -34,19 +35,28 @@ return ['Admin' => [ 'Deactivate' => 'Deactivate', 'Email' => 'Email', 'EmailAdmin' => 'Email Admin', + 'Fast' => 'Fast', 'Features' => 'Features', 'File' => 'File', + 'General' => 'General', + 'Glass' => 'Glass', 'Group' => 'Group', 'Groups' => 'Groups', + 'Heavy' => 'Heavy', 'Inactive' => 'Inactive', 'Install' => 'Install', 'Installed' => 'Installed', 'LAddress' => 'Local Address', 'Language' => 'Language', + 'Large' => 'Large', + 'Length' => 'Length', + 'Light' => 'Light', 'Localization' => 'Localization', + 'Long' => 'Long', 'Loginname' => 'Login Name', 'Lowercase' => 'Lowercase', 'Maintenance' => 'Maintenance', + 'Medium' => 'Medium', 'Member' => 'Member', 'Members' => 'Members', 'Memcache' => 'Memcache', @@ -74,13 +84,21 @@ return ['Admin' => [ 'RAddress' => 'Remote Address', 'ReCache' => 'Re-Cache', 'Running' => 'Running', + 'Short' => 'Short', + 'Sea' => 'Sea', 'Settings' => 'Settings', 'SettingsGeneral' => 'Settings - General', 'Single' => 'Single', + 'Slow' => 'Slow', + 'Small' => 'Small', + 'Speed' => 'Speed', 'Specialchar' => 'Special character', 'Status' => 'Status', 'Total' => 'Total', 'Release' => 'Release', + 'Tablespoon' => 'Tablespoon', + 'Teaspoon' => 'Teaspoon', + 'Temperature' => 'Temperature', 'Theme' => 'Theme', 'ThousandsSeparator' => 'Thousands Separator', 'Time' => 'Time', @@ -93,8 +111,18 @@ return ['Admin' => [ 'Uppercase' => 'Uppercase', 'Username' => 'Username', 'Version' => 'Version', + 'VeryFast' => 'Very Fast', + 'VeryHeavy' => 'Very Heavy', + 'VeryLarge' => 'Very Large', + 'VeryLight' => 'Very Light', + 'VeryLong' => 'Very Long', + 'VerySlow' => 'Very Slow', + 'VeryShort' => 'Very Short', + 'VerySmall' => 'Very Small', + 'Volume' => 'Volume', 'Warnings' => 'Warnings', 'Website' => 'Website', + 'Weight' => 'Weight', 'i:loc' => 'IP address or URL for remote access.', 'i:mail' => 'Email address.', 'i:oname' => 'Organization name.', diff --git a/Theme/backend/Lang/en.lang.php b/Theme/backend/Lang/en.lang.php index 64e1f73..f8363cc 100644 --- a/Theme/backend/Lang/en.lang.php +++ b/Theme/backend/Lang/en.lang.php @@ -21,6 +21,7 @@ return ['Admin' => [ 'Activity' => 'Activity', 'Available' => 'Available', 'All' => 'All', + 'Area' => 'Area', 'Banned' => 'Banned', 'Cache' => 'Cache', 'Children' => 'Children', @@ -34,19 +35,28 @@ return ['Admin' => [ 'Deactivate' => 'Deactivate', 'Email' => 'Email', 'EmailAdmin' => 'Email Admin', + 'Fast' => 'Fast', 'Features' => 'Features', 'File' => 'File', + 'General' => 'General', + 'Glass' => 'Glass', 'Group' => 'Group', 'Groups' => 'Groups', + 'Heavy' => 'Heavy', 'Inactive' => 'Inactive', 'Install' => 'Install', 'Installed' => 'Installed', 'LAddress' => 'Local Address', 'Language' => 'Language', + 'Large' => 'Large', + 'Length' => 'Length', + 'Light' => 'Light', 'Localization' => 'Localization', + 'Long' => 'Long', 'Loginname' => 'Login Name', 'Lowercase' => 'Lowercase', 'Maintenance' => 'Maintenance', + 'Medium' => 'Medium', 'Member' => 'Member', 'Members' => 'Members', 'Memcache' => 'Memcache', @@ -74,13 +84,21 @@ return ['Admin' => [ 'RAddress' => 'Remote Address', 'ReCache' => 'Re-Cache', 'Running' => 'Running', + 'Short' => 'Short', + 'Sea' => 'Sea', 'Settings' => 'Settings', 'SettingsGeneral' => 'Settings - General', 'Single' => 'Single', + 'Slow' => 'Slow', + 'Small' => 'Small', + 'Speed' => 'Speed', 'Specialchar' => 'Special character', 'Status' => 'Status', 'Total' => 'Total', 'Release' => 'Release', + 'Tablespoon' => 'Tablespoon', + 'Teaspoon' => 'Teaspoon', + 'Temperature' => 'Temperature', 'Theme' => 'Theme', 'ThousandsSeparator' => 'Thousands Separator', 'Time' => 'Time', @@ -93,8 +111,18 @@ return ['Admin' => [ 'Uppercase' => 'Uppercase', 'Username' => 'Username', 'Version' => 'Version', + 'VeryFast' => 'Very Fast', + 'VeryHeavy' => 'Very Heavy', + 'VeryLarge' => 'Very Large', + 'VeryLight' => 'Very Light', + 'VeryLong' => 'Very Long', + 'VerySlow' => 'Very Slow', + 'VeryShort' => 'Very Short', + 'VerySmall' => 'Very Small', + 'Volume' => 'Volume', 'Warnings' => 'Warnings', 'Website' => 'Website', + 'Weight' => 'Weight', 'i:loc' => 'IP address or URL for remote access.', 'i:mail' => 'Email address.', 'i:oname' => 'Organization name.', diff --git a/Theme/backend/settings-general.tpl.php b/Theme/backend/settings-general.tpl.php index e2c5d77..260d1ab 100644 --- a/Theme/backend/settings-general.tpl.php +++ b/Theme/backend/settings-general.tpl.php @@ -32,67 +32,240 @@ $timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants(); $timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants(); $languages = \phpOMS\Localization\ISO639Enum::getConstants(); $currencies = \phpOMS\Localization\ISO4217Enum::getConstants(); - ?> -
-

getText('Settings') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-

getText('Localization') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-

getText('Numberformat') ?>

-
- -
- -
-
-
+
+
+
-
+
+ +
+
+

getText('Settings') ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+ +
+
+

getText('Localization') ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+

getText('Numeric') ?>

+
+
+ +
+
+

getText('Numberformat') ?>

+
+ +
+ +
+
+
+
+ +
+

getText('Weight') ?>

+
+
+ + + + + + + + + + + + +
+
+
+
+ +
+

getText('Speed') ?>

+
+
+ + + + + + + + + + + + + + +
+
+
+
+ +
+

getText('Length') ?>

+
+
+ + + + + + + + + + + + + + +
+
+
+
+ +
+

getText('Area') ?>

+
+
+ + + + + + + + + + + + +
+
+
+
+ +
+

getText('Volume') ?>

+
+
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+