Hard coded text strings?

Phoca Maps - displaying maps in Joomla! CMS
Maos
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Aug 2010, 14:49

Hard coded text strings?

Post by Maos »

I have installed phoca maps and made a article about the locations of our scoutinggroup. I have my entire site in dutch, backend and frontend. When I check the language in the backend, part of the language strings is translated and another part is not. But when I check the language files, I can find several of the strings that are not translated. In the backend, I do not really care, but there seams to be a similar problem in the frontend. The string to get a route is in english, but there are translated strings available in the ini files.


en-GB ini:

Line 118: FROM ADDRESS=From (address)
Line 108: GET ROUTE=Get Route

nl-NL ini:

Line 109: GET ROUTE=Bereken Route
Line 119: FROM ADDRESS=Vanaf (adres)

Tekst in string:

administrator\com_phocamaps\front\views\map\tmpl\default.php (1 hits)
Line 80:
echo JText::_('From Address').': <input type="text" size="30" id="fromPMAddress'.$id.'" name="pmfrom'.$id.'" value=""/>';
Line 82:
echo ' <input name="pmsubmit'.$id.'" type="submit" value="'.JText::_('Get Route').'" /></form></div>';


See this page for the front end view:
http://waterscoutingjanvangent.nl/index ... n/locaties

It seems to me the literal text from line 80 and 82 is printed instead of the replacements defined in the language files. How can I fix this without directly changing the printed texts in line 80 and 82?
gelesfan
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Oct 2010, 14:14
Location: Belgium
Contact:

Re: Hard coded text strings?

Post by gelesfan »

that's a duplicate of my previous post
viewtopic.php?f=38&t=11071

;)
gelesfan
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Oct 2010, 14:14
Location: Belgium
Contact:

Re: Hard coded text strings?

Post by gelesfan »

not much reactions here :(
Maos anynews on you side ?
Maos
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Aug 2010, 14:49

Re: Hard coded text strings?

Post by Maos »

Nope, unfortunately, I have not found a solution yet. Hope Jan wil react on this.
pablobr
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Jun 2009, 00:20

Re: Hard coded text strings?

Post by pablobr »

Hi

I have the same issue. Any help please !

thanks

pablobr
gelesfan
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Oct 2010, 14:14
Location: Belgium
Contact:

Re: Hard coded text strings?

Post by gelesfan »

Hello

Just posted the soltuion on my blog
http://linxtek._ _.com/2011/01/joo ... rings.html

Hope it helps :D

Next time : how to make an installable package with the translation file
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hard coded text strings?

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply