Driving directions language in comp and plg

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
frankk
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Aug 2008, 20:49

Driving directions language in comp and plg

Post by frankk »

I know some people reported this before, but either I couldn't figure out what to do from the explanations that were given or this is a different issue altogether(which I doubt)

if you look at: http://virtaweb.com/wip/piopolis17/inde ... t-services

is a map integrated in the content of an article using the phoca map plugin and at the bottom of the map is the "get directions tool" in English

now if you look at: http://virtaweb.com/wip/piopolis17/index.php/map

It's the same map displayed through the component and this time the "get direction tool" is in French

How do I put them all in French?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Driving directions language in comp and plg

Post by Jan »

Hi, so this seems like the component has translated it but the plugin not.

Possible problems:

- plugin language was not installed (check if language folders include the plugin translation: https://www.phoca.cz/documents/46-transl ... -in-joomla )
- plugin language was installed correctly but it is not up-to-date or strings are not correct (some strings are missing there or they are not translated) - in such case you need to check the plugin translation - in your case: fr-FR.plg_content_phocamaps.ini

Check if the translation strings are OK:

PLG_PHOCAMAPS_DISPLAY_MAP_DESCRIPTION_LABEL ... is wrong (can be found in french translation)

PLG_CONTENT_PHOCAMAPS_DISPLAY_MAP_DESCRIPTION_LABEL ... is right

Some obsolete translation files include:
PLG_PHOCAMAPS_

so they need to be changed to:
PLG_CONTENT_PHOCAMAPS_ (e.g. in editor like notepad++ is, just make find + replace function: find "PLG_PHOCAMAPS_" replace "PLG_CONTENT_PHOCAMAPS_" and save the file.

Will be great to get fixed translation files to update them on Phoca Download site.

Thank you, Jan
If you find Phoca extensions useful, please support the project
frankk
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Aug 2008, 20:49

Re: Driving directions language in comp and plg

Post by frankk »

Thanks Jan for taking the time to answer me,

The translation file is there, and I just re downloaded it from your site, however I cannot find any of the strings mentionned, here's an example of it's content:

# @component language pack Phoca Plugin
# @copyright Copyright (C) Jan Pavelka https://www.phoca.cz
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
#v1.0.0
DETAIL WINDOW=Fenêtre Détail
DETAIL WINDOW DESC=Défini la fenêtre détail
DISPLAY MAP DESCRIPTION=Afficher Description Carte
DISPLAY MAP DESCRIPTION DESC=Défini si la description de la carte doit être affichée dans le Plugin
MODAL BOX BORDER COLOR=Couleur Bordure Modal Box
MODAL BOX BORDER COLOR DESC=Défini la couleur de bordure de la Modal Box
MODAL BOX BORDER WIDTH=Largeur Bordure Modal Box

I tried downloading for another language (spanish) and found it to be formated the same way (if you note the lack of underscores). If you have an english version of what you need I'd be more than happy to translate it for you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Driving directions language in comp and plg

Post by Jan »

Hi, this is the translation for Joomla! 1.5 - there should be everything OK - which version of Phoca Maps you are using?
If you find Phoca extensions useful, please support the project
frankk
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Aug 2008, 20:49

Re: Driving directions language in comp and plg

Post by frankk »

I'm using PM 2.04 on joomla 1.7

I've managed to make it work using the dutch translation, although this is a very loose translation using google translate and adjusting it. I'd rather start with a real english copy of the file.
Post Reply