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));