Page 1 of 1

Hard coded text strings?

Posted: 06 Oct 2010, 14:27
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?

Re: Hard coded text strings?

Posted: 06 Oct 2010, 14:32
by gelesfan
that's a duplicate of my previous post
viewtopic.php?f=38&t=11071

;)

Re: Hard coded text strings?

Posted: 11 Oct 2010, 12:12
by gelesfan
not much reactions here :(
Maos anynews on you side ?

Re: Hard coded text strings?

Posted: 11 Oct 2010, 23:16
by Maos
Nope, unfortunately, I have not found a solution yet. Hope Jan wil react on this.

Re: Hard coded text strings?

Posted: 09 Nov 2010, 18:18
by pablobr
Hi

I have the same issue. Any help please !

thanks

pablobr

Re: Hard coded text strings?

Posted: 14 Jan 2011, 23:39
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

Re: Hard coded text strings?

Posted: 26 Jul 2011, 22:42
by Jan
Ok