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