something is wrong...

Gives registerd users direct access to have the posts translated ImageImage into there own language

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

something is wrong...

Postby KISS News on Thu 01. Jul, 2004 02:34

Hello!
I installed this mod, but something is wrong...
I tested english - german:
it gave me an error:

Startseite › Werkzeuge › Babel Fish Übersetzen › Übersetzungsfehler


Invalid URL http://
Leider ist ein Fehler aufgetreten.
Wenn Sie uns diesen Fehler mitteilen möchten, Senden Sie uns eine E-Mail und lassen Sie uns Folgendes wissen:

* Welchen Browser Sie benutzen.
* Mit welchem Betriebssystem Sie arbeiten.
* Bei welcher Art Übersetzungstext der Fehler aufgetreten ist.

Folgender Fehler ist aufgetreten: 141





Business-Services Seite anmelden Über AltaVista Datenschutz-Richtlinien Hilfe
© 2004 Overture Services, Inc.

AltaVista in English


Also when I try to translate here these posts in this forum, it gives me the same error, so it also doesn't work here :?


I first tried German-Spanish. It gave me this Error:
404 File not found
The web page "http://www.kissfanshop.de/phpbb2viewtopic_translate.php?p=822&sid=3ae526d69b446ec290b48a636e8d55cf#822" does not exist on your web page server.
Looks like there is a slash missing in the URL after phpbb2. Even if I add that slash, it doesn't translate the post. It comes out again in Spanish. It should have translated Spanish into German (like on the flags-icon).
Can anyone please let me know what the problem could be?
Thanks!

P.S.: you may try it yourself. My website is:
http://www.kissfanshop.de/phpbb2/index.php
(user name: tester/password: tester)
KISS News
Poster
Poster
 
Posts: 12
Joined: Wed 30. Jun, 2004 17:55

Postby Pars0nii on Thu 01. Jul, 2004 11:17

I have the same problem in french ...

Invalid URL http://
Nous sommes désolés car votre demande a produit une erreur.
Si vous pensez qu'il s'agit d'un bogue, veuillez nous le faire savoir. Envoyez-nous un e-mail et indiquez ceci:

* Le navigateur utilisé.
* Le système d'exploitation.
* Le type de traduction demandée lorsque l'erreur est apparue.

L'erreur trouvée est : 141

Thanls a lot for help ! :wink:
Pars0nii
Poster
Poster
 
Posts: 3
Joined: Thu 01. Jul, 2004 11:15

Postby KISS News on Thu 01. Jul, 2004 11:21

yes, exactly that error shows up usually.
I made the 2 changes mentioned in one of the previous posts by Lou and the other one by the author in viewtopic.php.
Now SOMETIMES it works, but I still have not figured out, when it words and when it does not.
I am testing it in the Testforum right now.
You amy join and test it on my site and give me feedback, if it works for you:
http://www.kissfanshop.de/phpbb2/index.php
guests can post on my site, but you amy also log in (tester/tester).
What is your website? May I check it out and I'll let you know, if it works for me or not...
KISS News
Poster
Poster
 
Posts: 12
Joined: Wed 30. Jun, 2004 17:55

Postby KISS News on Thu 01. Jul, 2004 11:59

OK, I tested a lot:
http://www.kissfanshop.de/phpbb2/viewtopic.php?t=153

Basically it works, but you have to try several times, because the translating machine is too busy sometimes.

For some reason from German to English it does not work. Some translations are done by http://babelfish.altavista.com/ , which doesn't seem to work. Other translations are done by http://intertran.tranexp.com/, which does work. Anybody knows, how I can make all translations by http://intertran.tranexp.com/?
KISS News
Poster
Poster
 
Posts: 12
Joined: Wed 30. Jun, 2004 17:55

Postby KISS News on Thu 01. Jul, 2004 13:44

* translate_language_map.php
* --------------------
*
* Notes : this file compiles for the "Translate posts" MOD the languages
* supported by the two free online translation services Babel Fish
* Babel Fish (http://babelfish.altavista.com/), and Inter Tran
* (http://intertran.tranexp.com).


I guess the URL to the babelfisch.altavista.com translation site is wrong. All those are getting an URL-error. Either this should be fixed, or all translations should be done by intertran.tranexp.com.
Does anyone have an idea on how to do this?

Here is the code for the translate_language_map.php:

<?php

/***************************************************************************
* translate_language_map.php
* --------------------
*
* Notes : this file compiles for the "Translate posts" MOD the languages
* supported by the two free online translation services Babel Fish
* Babel Fish (http://babelfish.altavista.com/), and Inter Tran
* (http://intertran.tranexp.com).
*
* Full language names are phpBB ones and they can be writen in
* English or in their own languages to support all users, regardless
* of their choice.
*
* Update : 17/09/2003
*
***************************************************************************/

// phpBB language directory name -> Babel Fish language code
$babelfish_lang_code['chinese'] = 'zh';
$babelfish_lang_code['english'] = 'en';
$babelfish_lang_code['french'] = 'fr';
$babelfish_lang_code['german'] = 'de';
$babelfish_lang_code['italian'] = 'it';
$babelfish_lang_code['japanese'] = 'ja';
$babelfish_lang_code['korean'] = 'ko';
$babelfish_lang_code['portuguese'] = 'pt';
$babelfish_lang_code['spanish'] = 'es';
$babelfish_lang_code['russian'] = 'ru';

// List of the translations pairs available on Babel Fish
$babelfish_available['en_fr'] = 'yes';
$babelfish_available['en_de'] = 'yes';
$babelfish_available['en_it'] = 'yes';
$babelfish_available['en_es'] = 'yes';
$babelfish_available['en_pt'] = 'yes';
$babelfish_available['en_ja'] = 'yes';
$babelfish_available['en_zh'] = 'yes';
$babelfish_available['en_ko'] = 'yes';
$babelfish_available['en_ru'] = 'no';

$babelfish_available['fr_en'] = 'yes';
$babelfish_available['de_en'] = 'yes';
$babelfish_available['it_en'] = 'yes';
$babelfish_available['es_en'] = 'yes';
$babelfish_available['pt_en'] = 'yes';
$babelfish_available['ja_en'] = 'yes';
$babelfish_available['zh_en'] = 'yes';
$babelfish_available['ko_en'] = 'yes';
$babelfish_available['ru_en'] = 'yes';

$babelfish_available['fr_de'] = 'yes';
$babelfish_available['de_fr'] = 'yes';

// phpBB language directory name -> Inter Tran language code
//$intertran_lang_code['albanian'] = '';
//$intertran_lang_code['bosnian'] = '';
$intertran_lang_code['bulgarian'] = 'bul';
//$intertran_lang_code['chinese'] = '';
$intertran_lang_code['croatian'] = 'cro';
$intertran_lang_code['czech'] = 'che';
$intertran_lang_code['danish'] = 'dan';
$intertran_lang_code['dutch'] = 'dut';
$intertran_lang_code['english'] = 'eng';
$intertran_lang_code['filipino'] = 'tag';
$intertran_lang_code['finnish'] = 'fin';
//$intertran_lang_code['flemish'] = '';
$intertran_lang_code['french'] = 'fre';
$intertran_lang_code['german'] = 'ger';
$intertran_lang_code['greek'] = 'grk';
//$intertran_lang_code['hindi'] = '';
$intertran_lang_code['hungarian'] = 'hun';
$intertran_lang_code['icelandic'] = 'ice';
$intertran_lang_code['italian'] = 'ita';
$intertran_lang_code['japanese'] = 'jpn';
//$intertran_lang_code['korean'] = '';
$intertran_lang_code['latin'] = 'ltt';
$intertran_lang_code['norwegian'] = 'nor';
$intertran_lang_code['polish'] = 'pol';
$intertran_lang_code['portuguese'] = 'poe';
$intertran_lang_code['portuguese_brazil'] = 'pob';
$intertran_lang_code['romanian'] = 'rom'; // Only available as destination language (into)
$intertran_lang_code['russian'] = 'rus';
$intertran_lang_code['serbian'] = 'sel';
$intertran_lang_code['slovenian'] = 'slo';
$intertran_lang_code['spanish'] = 'spa';
$intertran_lang_code['swedish'] = 'swe';
$intertran_lang_code['turkish'] = 'tur';
//$intertran_lang_code['ukrainian'] = '';
//$intertran_lang_code['vietnamese'] = '';
$intertran_lang_code['welsh'] = 'wel';

// List of the translations pairs available on Inter Tran
/********************************************************************
* All the pairs are available except any translation from Romanian.
* Then, as there is 756 pairs availables (27x28), and as there is only
* 1 exception (Romanian), it's easier to manage Inter Tran pairs
* availability in the viewtopic code and not by a pairs list here.
********************************************************************/

// List of every languages (fpr the drop down list) into which it is possible
// to translate posts (using Babel Fish or Inter Tran)
$available_translate_to = array(
'bulgarian',
'chinese',
'croatian',
'czech',
'danish',
'dutch',
'english',
'filipino',
'finnish',
'french',
'german',
'greek',
'hungarian',
'icelandic',
'italian',
'japanese',
'korean',
'latin',
'norwegian',
'polish',
'portuguese',
'portuguese_brazil',
'romanian',
'russian',
'serbian',
'slovenian',
'spanish',
'swedish',
'turkish',
'welsh');

// phpBB language directory name equivalences (for language entries & flag images)
$lang_equiv['chinese_simplified'] = 'chinese';
$lang_equiv['chinese_traditional_taiwan'] = 'chinese';
$lang_equiv['hrvatski'] = 'croatian';
$lang_equiv['cesky'] = 'czech';
$lang_equiv['dansk'] = 'danish';
$lang_equiv['nederlands'] = 'dutch';
$lang_equiv['suomea'] = 'finnish';
$lang_equiv['francais'] = 'french';
$lang_equiv['deutsch'] = 'german';
$lang_equiv['magyarul'] = 'hungarian';
$lang_equiv['islenska'] = 'icelandic';
$lang_equiv['italiano'] = 'italian';
$lang_equiv['norsk'] = 'norwegian';
$lang_equiv['polski'] = 'polish';
$lang_equiv['portugues'] = 'portuguese';
$lang_equiv['romaneste'] = 'romanian';
$lang_equiv['srpski'] = 'serbian';
$lang_equiv['slovensko'] = 'slovenian';
$lang_equiv['espanol'] = 'spanish';
$lang_equiv['svenska'] = 'swedish';
$lang_equiv['turkce'] = 'turkish';
$lang_equiv['cymraeg'] = 'welsh';

?>
KISS News
Poster
Poster
 
Posts: 12
Joined: Wed 30. Jun, 2004 17:55

Postby bamby on Fri 02. Jul, 2004 01:08

You are looking in the wrong file, Kiss :)

It's only a list to chose from which language to which other one you can translate, nothing more.

The urls you are looking for are the modifications you do to viewtopic.php , and I suppose they are others. I just had a look, and found

<a href="http://babelfish.altavista.com/babelfish/urltrurl?lp=' .


and a bit further
$translate_link = '<a href="http://intertran.tranexp.com/Translate/index.shtml?'


Just search for "http" i your text editor, and you' ll find them.
It should then be easy to change it to the good url if it's really the problem.

Bye for now :wink:
**::Deviens celui que tu es.::**
bamby
Poster
Poster
 
Posts: 19
Joined: Fri 27. Feb, 2004 14:30

Postby Pars0nii on Fri 02. Jul, 2004 08:56

I think, it's the problem, too
Pars0nii
Poster
Poster
 
Posts: 3
Joined: Thu 01. Jul, 2004 11:15

Postby bamby on Fri 02. Jul, 2004 15:46

Hello, I did the changes and now it works.

Babelfish just modified it's way of use.

I went on their webpage and translated one of my board's pages. The code of the action appeared in the address bar, and I compared it with what appears when I use the mod function.

I saw 2 differences

In viewtopic.php :

find

Code: Select all
$translate_link = '<a href="http://babelfish.altavista.com/babelfish/urltrurl?lp=' . $babelfish_lang_code[$translate_from] . '_' . $babelfish_lang_code[$translate_to] . '&urltext=' . urlencode($translate_url.$postrow[$i]['post_id'].'&sid='.$userdata['session_id']


and replace with :

Code: Select all
$translate_link = '<a href="http://babelfish.altavista.com/babelfish/trurl?lp=' . $babelfish_lang_code[$translate_from] . '_' . $babelfish_lang_code[$translate_to] . '&url=' . urlencode($translate_url.$postrow[$i]['post_id'].'&sid='.$userdata['session_id']


In fact, you just have to :

- replace "urltrurl" with "trurl" , taking off "url"

- replace "'&urltext='" with "'&url='" , taking off "text"

***************

The same a bit further on :

find :

Code: Select all
$translate_link .= '<a href="http://babelfish.altavista.com/babelfish/urltrurl?lp=' . $babelfish_lang_code[$translate_from2] . '_' . $babelfish_lang_code[$translate_to] . '&urltext=' . urlencode($translate_url.$postrow[$i]['post_id'].'&sid='.$userdata['session_id']


replace with :

Code: Select all
$translate_link .= '<a href="http://babelfish.altavista.com/babelfish/trurl?lp=' . $babelfish_lang_code[$translate_from2] . '_' . $babelfish_lang_code[$translate_to] . '&url=' . urlencode($translate_url.$postrow[$i]['post_id'].'&sid='.$userdata['session_id']


Tell me if it solves it all. For me it works fine :)

Save files before truying what I propose you to do !

PS

These changes are to do once yoou installed the mod, of course !
You can also directly modify the installation text guide of the mod, for later use.
**::Deviens celui que tu es.::**
bamby
Poster
Poster
 
Posts: 19
Joined: Fri 27. Feb, 2004 14:30

Next

Return to Translate posts [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron