aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AMenuManager/admin/amm_linksconfig.tpl
diff options
context:
space:
mode:
authorgrum <grum@piwigo.org>2008-08-07 21:52:45 +0000
committergrum <grum@piwigo.org>2008-08-07 21:52:45 +0000
commit526d8006a16bd8b666d94aaf152346537045a0a5 (patch)
treebe1a62befe2bdbe3d0d03a8155aa1d1b228093e5 /plugins/AMenuManager/admin/amm_linksconfig.tpl
parent5e3d71c9cab75c7796c566823df96765522c8965 (diff)
updating files for the Menu class (test_menu)
+ add functionnalities updating files for the AMenuManager plugin + fixes some bugs + add functionnalities updating common classes grum_plugins_classes-2 (needed for the AMenuManager plugin) + add functionalities for google_translator use git-svn-id: http://piwigo.org/svn/trunk@2468 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/AMenuManager/admin/amm_linksconfig.tpl')
-rw-r--r--plugins/AMenuManager/admin/amm_linksconfig.tpl25
1 files changed, 20 insertions, 5 deletions
diff --git a/plugins/AMenuManager/admin/amm_linksconfig.tpl b/plugins/AMenuManager/admin/amm_linksconfig.tpl
index 55ee8b6a0..25e6d75cc 100644
--- a/plugins/AMenuManager/admin/amm_linksconfig.tpl
+++ b/plugins/AMenuManager/admin/amm_linksconfig.tpl
@@ -35,6 +35,15 @@
objhidden[objnames.indexOf(input_id)][objlang.options.selectedIndex].value = obj.value;
}
+ function do_translation()
+ {
+ var inputid = document.getElementById('iamm_links_title');
+ var tolang = objlang.options[objlang.options.selectedIndex].value.substr(0,2);
+
+ google_translate(inputid.value, '{/literal}{$datas.fromlang}{literal}', tolang, inputid, 'value', apply_changes, inputid.id);
+ }
+
+
</script>
{/literal}
@@ -46,7 +55,7 @@
<form method="post" action="" class="general">
<fieldset>
- <legend>{'g002_setting_link_block_menu'|@translate}</legend>
+ <legend>{'g002_setting_block_menu'|@translate}</legend>
{if isset($datas.language_list) and count($datas.language_list)}
{foreach from=$datas.language_list key=name item=language_row}
@@ -57,7 +66,7 @@
<table class="formtable">
<tr>
- <td>{'g002_setting_link_block_active'|@translate}</td>
+ <td>{'g002_setting_block_active'|@translate}</td>
<td>
<select name="famm_links_active" id="iamm_links_active">
{html_options values=$datas.yesno_values output=$datas.yesno_labels selected=$datas.active_selected}
@@ -66,12 +75,18 @@
</tr>
<tr>
- <td>{'g002_setting_link_block_title'|@translate}</td>
+ <td>{'g002_setting_block_title'|@translate}</td>
<td>
- <input type="text" id="iamm_links_title" value="" maxlength="50" onkeyup="apply_changes('iamm_links_title');" />
+ <input type="text" id="iamm_links_title" value="" maxlength="50" onkeyup="apply_changes('iamm_links_title');" onblur="apply_changes('iamm_links_title');"/>
<select onchange="change_lang();" id="islang">
{html_options values=$datas.language_list_values output=$datas.language_list_labels selected=$datas.lang_selected}
- </select>
+ </select><br>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td style="font-size:80%;">
+ <a style="cursor:pointer;" onclick="do_translation()">{'g002_translate'|@translate}</a>
</td>
</tr>