This is a comment on Problems when updating from 6.2.1 to 6.3.0, posted by ascrsoft at 08/04/2026 21:19
View source for Re: Problems when updating from 6.2.1 to 6.3.0
For people who need the translation to be hidden once it has been selected, so that the Google message doesn't appear—the one warning that the form cannot be resubmitted and that an error will occur if you try to do so.
Step 1: Add Step 4 to the translate.js file
%%(hl js)
// 4. Remove translator div
const iframe = document.getElementById('gt-nvframe');
const translate_div = document.getElementById('translate-box');
if (iframe) {
if (translate_div) {
translate_div.remove();
}
}
%%
Step 2: Add a div to header.tpl
%%(hl tpl)
<div id="translate-box">
[= gt =
<!-- Google Translate -->
[ ' _t: Language ' ]:
<select id="translateCombo" data-current-lang="[ ' lang | e js ' ]">
[= o =
<option value="[ ' lang ' ]"[ ' selected ' ]>[ ' language | e ' ]</option>
=]
</select>
=]
</div>%%