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
German Translation error? - Plugin-Translation-Issue
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
German Translation error? - Plugin-Translation-Issue
Last edited by jamfx on 12 Oct 2009, 07:59, edited 1 time in total.
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: German Translation error?
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
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: German Translation error?
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
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
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: German Translation error?
try to check the upper case of all strings in language file?
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: German Translation error?
Hi,
everything is in UpperCase. I am so confused...
Yours JamFX
everything is in UpperCase. I am so confused...
Yours JamFX
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: German Translation error?
no idea what can be wrong there
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: German Translation error?
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
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
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: German Translation error? - Plugin-Translation-Issue
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:
Just found some more strings...
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"
.'}';
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');
}
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: German Translation error? - Plugin-Translation-Issue
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?
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?
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 61
- Joined: 08 Mar 2009, 09:26
- Contact:
Re: German Translation error? - Plugin-Translation-Issue
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
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
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter