aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AMenuManager/admin/amm_linksconfig.tpl
diff options
context:
space:
mode:
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>