Page 1 of 3

German Translation error? - Plugin-Translation-Issue

Posted: 20 Aug 2009, 11:36
by jamfx
Hi Jan,
I just installed your wonderfull Phoca-Maps (Comp. and Plugin). I also installed the german Translations for both. Now I am facing the problem, where under the map is the "Get-Route"-String, also the "From Adress"-String: Both shown in english. In the german files are both strings properly coded. I also try to "override" the english-version, but even if I change the english translation (overwrite with german words) the english String is shown.
How could this be? Where do I have to change it?
In the backendstettings of the map I put the languagecode "de" in the small letters in the specific field.
Do you have an Idea?
Thanks
yours JamFX

Re: German Translation error?

Posted: 20 Aug 2009, 22:21
by Jan
Hi, the strings should be normally translated as they are standard Joomla! strings: JText::_('Get Route'). See the language settings of your Joomla! frontend ? maybe there is some problem :( :idea:

Re: German Translation error?

Posted: 21 Aug 2009, 16:48
by jamfx
Hi Jan,
thanks for your reply. But as far as I can see, everything else is working fine. Even the Phoca-Map is working properly.. Just the mentioned String is not beeing translated. I am confused, too.
Anything else I can do?
Yours JamFX

Re: German Translation error?

Posted: 21 Aug 2009, 23:28
by Jan
try to check the upper case of all strings in language file?

Re: German Translation error?

Posted: 22 Aug 2009, 22:09
by jamfx
Hi,
everything is in UpperCase. I am so confused...
Yours JamFX

Re: German Translation error?

Posted: 24 Aug 2009, 11:17
by Jan
:( no idea what can be wrong there :-(

Re: German Translation error?

Posted: 12 Oct 2009, 07:47
by jamfx
Hi Jan,
it's me once more with this issue... I just installed it once more on another server and have the same issue again: You can have a look at it here:
http://is.gd/4eX2q
Everything else is working fine and the strings are in there and translated (as far as I can see). Please have a look and let me know what I can do, to get those strings translated.
Thanks
JamFX

Re: German Translation error? - Plugin-Translation-Issue

Posted: 14 Oct 2009, 20:30
by jamfx
Hi,
thanks for your reply! I couldn't find the lines you wrote, but your hint about the file to edit (plugins/content/phocamaps.php) helped me to solve the problem the "hardcoded" way.
So @JAN:
please fix this "language-bug" in the next release :) The Strings are just not encoded for the use of language.ini-files.
The next "problem" I have is: If I put in the "from-field" an adress, which is unknown in google - I got a error-message in english, too. Maybe this string could also be translated in ini-files, please! :)

So thank you and my problem is solved now.
yours niko
PS: here are the translated strings for it:

Code: Select all

.'function handleErrors'.$mC.'(){'."\n"
		.'	if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_UNKNOWN_ADDRESS) {'."\n"
		.'		alert("'.JText::_('Es konnte keine passender Ort für eine der angegebenen Adressen gefunden werden.').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_SERVER_ERROR) {'."\n"
		.'		alert("'.JText::_('Die Anfrage konnte nicht erfolgreich verarbeitet werden').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_MISSING_QUERY) {'."\n"
		.'		alert("'.JText::_('Es wurde keine Eingabe gemacht').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_UNAVAILABLE_ADDRESS) {'."\n"
		.'		alert("'.JText::_('Die Route konnte wegen Vertragsbruch oder lizenzrechtlichen Problemen nicht ausgegeben werden.').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_BAD_KEY) {'."\n"
		.'		alert("'.JText::_('Der Angegebene Schlüssel ist entweder falsch oder passt nicht zur angegebenen Domain').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_BAD_REQUEST) {'."\n"
		.'		alert("'.JText::_('Die Anfrage konnte nicht erfolgreich berechnet werden').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_UNKNOWN_DIRECTIONS) {'."\n"
		.'		alert("'.JText::_('Für die angegebenen beiden Punkte ist nicht berechenbar oder es gibt keine Routendaten für die Region').'");'."\n"
		.'	} else if (dirPhocaMap'.$mC.'.getStatus().code == G_GEO_TOO_MANY_QUERIES) {'."\n"
		.'		alert("'.JText::_('Der vergebene Schlüssel hat die maximale Anzahl an Anfragen überschritten oder hat zu viele Anfragen in kurzer Zeit in erzeugt. ').'");'."\n"
		.'	} else {'."\n"
		.'		alert("'.JText::_('Ein unbekannter Fehler ist aufgetreten.').'");'."\n"
		.'	}'."\n"
		.'}';
Just found some more strings...

Code: Select all

							if (empty($map)) {
							JError::raiseError('Phoca Maps Plugin Error', JText::_('Die Karte existiert nicht, oder ist nicht veröffentlicht.') .

Code: Select all

							if ($text =='') {
								$text = JText::_('Link zur Karte');
							}

Re: German Translation error? - Plugin-Translation-Issue

Posted: 16 Oct 2009, 20:49
by Jan
Hi, sorry I don't understand you.

The strings should be not translated in:

JText::_('Link zur Karte') the code in Joomla! but in the language file:

de-DE.com_phocamaps.ini file. So this files needs to be updated, not the code?

Re: German Translation error? - Plugin-Translation-Issue

Posted: 18 Oct 2009, 08:49
by jamfx
Hi Jan,

as far as I can see, these languagestrings are translated in the german ini-files, but not used by the plugin or the component... Here is the problem.

Yours JamFX