aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-25 20:18:28 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-25 20:18:28 +0000
commit6b445114da301438f386eeb9853448b53fd9e516 (patch)
tree029b826deec8d484047a7394c92b9477f3e54f43 /admin/themes
parent7ebdbee901b1290fc3578b81241b25227c786efb (diff)
Feature 1535: Add language manager.
git-svn-id: http://piwigo.org/svn/trunk@5357 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/default-layout.css8
-rw-r--r--admin/themes/default/template/admin.tpl1
-rw-r--r--admin/themes/default/template/languages_installed.tpl34
3 files changed, 41 insertions, 2 deletions
diff --git a/admin/themes/default/default-layout.css b/admin/themes/default/default-layout.css
index d9c71d96a..68cba396e 100644
--- a/admin/themes/default/default-layout.css
+++ b/admin/themes/default/default-layout.css
@@ -36,13 +36,14 @@ TABLE#detailedStats {
width: 99%;
}
-/* Plugins tables */
+/* Plugins, languages tables */
TABLE.plugins { min-width: 400px; }
TABLE.plugins A { border: 0; }
TABLE.plugins TR TD { padding: 4px 10px; }
TABLE.plugins TR TD.pluginState { padding: 4px 16px; }
-TABLE.plugins TR TD.active {
+TABLE.plugins TR TD.active,
+TABLE.languages TR TD.active {
background: url(icon/plugin_active.gif) no-repeat center left;
background-color: inherit; /* IE need it */
}
@@ -63,6 +64,9 @@ 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/admin.tpl b/admin/themes/default/template/admin.tpl
index 23da23182..9f2bde9e0 100644
--- a/admin/themes/default/template/admin.tpl
+++ b/admin/themes/default/template/admin.tpl
@@ -84,6 +84,7 @@ jQuery().ready(function(){ldelim}
<li><a href="{$U_CONFIG_GENERAL}">{'Options'|@translate}</a></li>
<li><a href="{$U_CONFIG_MENUBAR}">{'Menu'|@translate}</a></li>
<li><a href="{$U_CONFIG_EXTENTS}">{'Templates'|@translate}</a></li>
+ <li><a href="{$U_CONFIG_LANGUAGES}">{'Languages'|@translate}</a></li>
<li><a href="{$U_CONFIG_THEMES}">{'Themes'|@translate}</a></li>
</ul>
</dd>
diff --git a/admin/themes/default/template/languages_installed.tpl b/admin/themes/default/template/languages_installed.tpl
new file mode 100644
index 000000000..e83f13437
--- /dev/null
+++ b/admin/themes/default/template/languages_installed.tpl
@@ -0,0 +1,34 @@
+<div class="titrePage">
+ <h2>{'Languages'|@translate}</h2>
+</div>
+
+<table class="table2 languages">
+<thead>
+ <tr class="throw">
+ <td>{'Language'|@translate}</td>
+ <td>{'Actions'|@translate}</td>
+ </tr>
+</thead>
+
+{foreach from=$languages item=language name=languages_loop}
+ <tr class="{if $smarty.foreach.languages_loop.index is odd}row1{else}row2{/if}">
+ <td class="{$language.STATE}" style="text-align: left;">
+ {$language.NAME}
+ {if $language.IS_DEFAULT}<i>({'Default'|@translate})</i>{/if}
+ </td>
+ <td>
+ {if !$language.IS_DEFAULT}
+ {if $language.STATE == 'active' or $language.STATE == 'missing'}
+ <a href="{$language.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a> |
+ <a href="{$language.U_ACTION}&amp;action=set_default">{'Default'|@translate}</a>
+ {else}
+ <a href="{$language.U_ACTION}&amp;action=activate">{'Activate'|@translate}</a> |
+ <a href="{$language.U_ACTION}&amp;action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
+ {/if}
+ {else}
+ ---
+ {/if}
+ </td>
+ </tr>
+{/foreach}
+</table> \ No newline at end of file