From 55ea0f2c4cd0a642f1470e6bdee33fc59a25ecbf Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 26 Mar 2010 00:55:12 +0000 Subject: Feature 1535: Allow to install new languages from PEM. git-svn-id: http://piwigo.org/svn/trunk@5371 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/default-layout.css | 9 ++--- .../default/template/languages_installed.tpl | 6 ++-- admin/themes/default/template/languages_new.tpl | 40 ++++++++++++++++++++++ 3 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 admin/themes/default/template/languages_new.tpl (limited to 'admin/themes') diff --git a/admin/themes/default/default-layout.css b/admin/themes/default/default-layout.css index a4939889c..43ffc2373 100644 --- a/admin/themes/default/default-layout.css +++ b/admin/themes/default/default-layout.css @@ -37,10 +37,14 @@ TABLE#detailedStats { } /* Plugins, languages tables */ -TABLE.plugins { min-width: 400px; } +TABLE.plugins, +TABLE.languages { + min-width: 500px; +} TABLE.plugins A { border: 0; } TABLE.plugins TR TD { padding: 4px 10px; } TABLE.plugins TR TD.pluginState { padding: 4px 16px; } +TABLE.languages TR TD { padding: 7px 20px; } TABLE.plugins TR TD.active, TABLE.languages TR TD.active { @@ -64,9 +68,6 @@ TABLE.plugins ul.pluginsActions { TABLE.plugins ul.pluginsActions li { display: inline; } -TABLE.languages { min-width: 400px; } -TABLE.languages TR TD { text-align: center; padding: 4px 20px; } - /* categoryOrdering */ SELECT.categoryList { width: 100%; diff --git a/admin/themes/default/template/languages_installed.tpl b/admin/themes/default/template/languages_installed.tpl index e83f13437..493d1edda 100644 --- a/admin/themes/default/template/languages_installed.tpl +++ b/admin/themes/default/template/languages_installed.tpl @@ -1,5 +1,5 @@
-

{'Languages'|@translate}

+

{'Installed Languages'|@translate}

@@ -12,11 +12,11 @@ {foreach from=$languages item=language name=languages_loop} - -
+ {$language.NAME} {if $language.IS_DEFAULT}({'Default'|@translate}){/if} + {if !$language.IS_DEFAULT} {if $language.STATE == 'active' or $language.STATE == 'missing'} {'Deactivate'|@translate} | diff --git a/admin/themes/default/template/languages_new.tpl b/admin/themes/default/template/languages_new.tpl new file mode 100644 index 000000000..dac7489e4 --- /dev/null +++ b/admin/themes/default/template/languages_new.tpl @@ -0,0 +1,40 @@ +{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} +{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} + + + +
+

{'Add New Language'|@translate}

+
+ +{if !empty($languages)} + + + + + + + + + + +{foreach from=$languages item=language name=languages_loop} + + + + + + + +{/foreach} +
{'Language'|@translate}{'Version'|@translate}{'Date'|@translate}{'Author'|@translate}{'Actions'|@translate}
{$language.EXT_NAME}{$language.VERSION}{$language.DATE}{$language.AUTHOR}{'Install'|@translate} + / {'download'|@translate|@ucfirst} +
+{/if} \ No newline at end of file -- cgit v1.2.3