Forum Archive - Small change to display text

Small change to display text
Jun 3, 2011 7:29 am by [email protected]
I'm using gtranslate next to Joomfish. I want to make a small change to gtranslate to show the correct text in the dropdown box for each language. On line 167 and 218: echo '<option value="">Select your language</option>'; I would like it to read from an ini file per language. So I modified these lines to echo '<option value="">'.JText::_('Langsel').'</option>'; but it is not using JText and thus displays Langsel. Does anybody know a solution to this?
Re: Small change to display text
Jun 3, 2011 8:08 am by Edvard
You need to have "Langsel" defined in language ini files.
Re: Small change to display text
Jun 3, 2011 9:15 am by [email protected]
Thanks for the quick reply. I have them ofcourse, but it still doesn't work. language\en-GB\en-GB.mod_gtranslate.ini with this # $Id: en-GB.mod_gtranslate.ini 2011-06-03 14:10:00Z clint $ # Joomla! Project # Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. # License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php # Note : All ini files need to be saved as UTF-8 - No BOM LANGSEL=Select your language and language\es-ES\es-ES.mod_gtranslate.ini with this # $Id: es-ES.mod_gtranslate.ini 2011-06-03 14:10:00Z clint $ # Joomla! Project # Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. # License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php # Note : All ini files need to be saved as UTF-8 - No BOM LANGSEL=Seleccione el idioma
Re: Small change to display text
Jun 3, 2011 12:27 pm by Edvard
I don't think that mod_gtranslate.ini file is being loaded. You need to define that in another ini file which is being loaded for sure. Otherwise you need to force it to load the language file.

SIMILAR TOPICS

Onloading the plugin quickly flashes up flags and text namesFeb 7, 2019 3:29 pmReplies: 1Post by: brobertson
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb
Disable translating of a part of my textNov 20, 2018 11:29 amReplies: 3Post by: Ellie741
Change the color of the Language Switcher can i do that?Sep 18, 2018 1:58 pmReplies: 3Post by: rohitlopes
Change Link ColorSep 11, 2018 7:10 pmReplies: 3Post by: onechance

Try GTranslate with a free 15 day trial