German Translation error? - Plugin-Translation-Issue

Phoca Maps - displaying maps in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, so the problem is finding the language string not to change the core code. Maybe there is problem while installing the plugin. Try to copy the language ini file to both langauge folders:


language/de-DE/
administrator/language/de-DE/

I don't know it exactly, but maybe this can be a bug in Joomla! (not loading a lang string for plugins), maybe there is some information on joomla.org

Jan
If you find Phoca extensions useful, please support the project
jamfx
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 08 Mar 2009, 09:26
Contact:

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

Post by jamfx »

Hi Jan,

once more. In both files the language-codes are translated. They are not in Uppercase, but I also tried switching it to uppercase. The result: just showing the Upper-Case-Code but not the string.
It's about line 225 in phocamaps.php

Code: Select all

$output.=' <input name="pmsubmit'.$mC.'" type="submit" value="'.JText::_('GET ROUTE').'" /></form></div>';
in language-file:

Code: Select all

GET ROUTE=Route berechnen
And shown on the page is: GET ROUTE
So what can we do now? :)

Thanks once more.
JamFX
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

seems like you have some problem with language loading. the string in the JText is not case sensitive and can be upper but lower case too.
If you find Phoca extensions useful, please support the project
jamfx
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 08 Mar 2009, 09:26
Contact:

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

Post by jamfx »

Hi,
yes, it seems like. But i have this on all tested pages I tried it with... I tried different servers but always the same issue. So I am a little curious, do you have any more idea what I could do?

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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

:( no as I am testing it on my winxp, suse localhost and my freebsd server and everywhere there is no problem with translation :-(
If you find Phoca extensions useful, please support the project
Heimi
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jan 2010, 22:52

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

Post by Heimi »

Hello Jan,

i have the same Problem. It seems that the Code of the php file is shown without translation. At first i tried to put the german translation into the english ini but no effect! At Second i changed the php-file by inserting a blank into the "JText::_"-String it will be shown directly. Do you have any idea why the ini-file is not being used?

Peter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, no idea, try to check your installation of Joomla! Try to see if the ini is on right place, if it has right name, see:
https://www.phoca.cz/documents/46-transl ... -in-joomla

Jan
If you find Phoca extensions useful, please support the project
mike@uumm.de
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Feb 2010, 22:33

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

Post by mike@uumm.de »

Hi Jan,

I didn't find a solution for the "bug" with the german translation but maybe this hint can help.

I've installed both, the component and the plugin (and both language packages). Then I have creadted a Menu Itme which uses the map (Type: Phoca Maps » Map), Here the translation for the route works fine.

Next is an arcticle where I include den Plugin (Type: Articles » Beitrag). The same map is included using the code {phocamaps view=map|id=1} . In the article the translation doesn't work.

The translation in the Admin aera works fine.

I've tried it on a opensuse and a sun solaris machine with apache and php5 with your actual release, both installations with the same result.

Any Idea?

Thanx
Mike

If you want to take a look, send me a mail. I'll give you a link to my test site.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, maybe try to check the translation of the plugin if it was installed - if it is in the right folder.

Jan
If you find Phoca extensions useful, please support the project
mike@uumm.de
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Feb 2010, 22:33

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

Post by mike@uumm.de »

Hi Jan,

looks good:

pwd: language
find . -type f -iname "*phoca*"
./de-DE/de-DE.com_phocamaps.ini
./de-DE/de-DE.plg_content_phocamaps.ini
./de-DE/de-DE.com_phocamaps.menu.ini
./en-GB/en-GB.com_phocamaps.ini
./en-GB/en-GB.plg_content_phocamaps.ini
./en-GB/en-GB.com_phocamaps.menu.ini

Any idea?
Thanx for the support
Mike
Post Reply