« on: March 18, 2018, 10:48:10 PM »
https://custom.simplemachines.org/mods/index.php?mod=2794The modification can be used to translate messages in all languages provided by the Google Translator Toolkit.
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
needs new_hooks.zip
in dev soon
manual code changes to:
/Themes/default/Display.template.php and /Themes/core/Display.template.php
find:
// Assuming there are attachments...
if (!empty($message['attachment']))
{
replace with:
// Assuming there are attachments...
if (!empty($message['attachment']))
{
// Allow change attachments output
call_integration_hook('integrate_attachments', array(&$message));
« Last Edit: March 18, 2018, 11:11:32 PM by Chipper »
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.