News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Quick Translation

Started by Bugo, October 17, 2010, 12:55:02 PM

Previous topic - Next topic

Bugo

Link to Mod

The modification can be used to translate messages in all languages

Masterd


-=[Vyorel]=-

My mods for SMF - [6].

iPhoneDestek

#3
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages






<file name="$themedir/languages/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Üzgünüm, çeviri bulunamamıştır...';
$txt['quick_trans_want_translate'] = 'Bir mesaj çevirmek istiyormusunuz ?';
$txt['quick_trans_select_lang'] = 'Dil seçiniz ';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Üzgünüm, çeviri bulunamamıştır...';
$txt['quick_trans_want_translate'] = 'Bir mesaj çevirmek istiyormusunuz ?';
$txt['quick_trans_select_lang'] = 'Dil seçiniz ';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>




Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages






<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus ';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>



$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Aportadordelmix


Qayyom Ashraf

Successfully Installed (without any error).

But 'Translate' button didn't appeared any where in the message body, how could be configured?
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Bugo

No way. Maybe is a conflict with other scripts (prototype etc).

Qayyom Ashraf

Quote from: Bugo on October 18, 2010, 02:31:54 AM
No way. Maybe is a conflict with other scripts (prototype etc).

I Tried again, now it is working...

Thanks, this is really nice mod!
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Dzonny

Wo-hoo, nice one :)
Simple, elegant, powerfull, like smf :P
Really, i like it, and im gonna use it on my forum, i will just move translation button a little bit... :)


KensonPlays

Sounds awesome ill install it on my test forum tomorrow morning

wiecher

Dutch translate don`t work ?


nend

Hi, Bugo. I was going to use this API in the past but the cap prevented me from doing what I wanted to do with it. I doubt the cap has been lifted though, 5 thousand characters right. The character limit however was only part of it, the response from Google was painfully slow also.  :(

chilly

Quote from: ®SirtLan on October 17, 2010, 03:13:54 PM
Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages

<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Quick Translation MOD  by SirtLanVadisi.NeT
$txt['quick_trans_not_found'] = 'Leider, es konnte keine Übersetzung gefunden werden...';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen ?';
$txt['quick_trans_select_lang'] = 'Wählen Sie eine Sprache aus ';
// End Quick Translation MOD  by SirtLanVadisi.NeT
]]></add>
</operation>
</file>



you used google to translate this? Looks like.
better use this one:

$txt['quick_trans_not_found'] = 'Es konnte leider keine Übersetzung gefunden werden.';
$txt['quick_trans_want_translate'] = 'Wollen Sie eine Nachricht übersetzen?';
$txt['quick_trans_select_lang'] = 'Sprache wählen ';//"Wählen Sie eine Sprache aus" is correct but this one too + it is shorter -> more room for other stuff

Language Coordinator

soulgeek

After installing this Mod on my rC 2.03, I see  nothing, no button called Translate..

how am i suppose to Enable it, where is the settings tab?
lets Grow Together With Law of Attraction !

Join to Seek a Better Like at
Law of Attraction Forum

Bugo

No settings. See screenshot.

Abavagada

For those who can't get it to work, it could be that the extra header info isn't being installed.
Look in Sources/Display.php for any

$context['html_headers']  = '

and replace it with

$context['html_headers']  .= '

Without the dot, it is overwriting this mods extra header data.
That's where I had a conflict with a mod.



qtime

it's working great at 1.1.12 smf, great option!

_pi

#19
nice idea, but it needs to remember last language choice, because having to select translation language again and again is not convenient.

maybe store that info in cookie?
SMF Cookie Format

but much respect for that approach, good work!

Advertisement: