Page 1 of 1
How to Translate Poll Results
Posted: Wed Mar 09, 2011 12:44 am
by gato_negro
Hello,
I'm wondering if there is a way to translate certain words that appear on the results page of a poll. The site is
http://www.coronacapitalgroup.com if someone would like to see. Poll is on right side. I'm attaching a screen shot as well of the words I'd like to be able to translate if possible.
Thanks so much.
Trevor
screen_shot.jpg
Re: How to Translate Poll Results
Posted: Wed Mar 09, 2011 1:01 am
by NyHick
a lot of those can be found in the poll language file.
/language/xx-xx/xx-xx.com_poll.ini
based on what language files you are using you would replace the "xx-xx" (example:en-GB).
Re: How to Translate Poll Results
Posted: Wed Mar 09, 2011 1:24 am
by gato_negro
Hi NyHick,
Thanks for such a quick response. I see that file but it's already in Spanish as follows:
# version 1.5.9 2008-08-24 23:02:17 ~0
# Joomla! Project - Spanish Frontend Language file.
# copyright Copyright(C) 2005 - 2009 TodosJuntos.org. All rights reserved - Todos los derechos reservados.
# license/licencia http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, ver LICENSE.php
# Translation/Traducción: http://www.TodosJuntos.org Equipo de traducción de la comunidad hispana de Joomla!
# Todos los archivos ini deben ser guardados como UTF-8 sin BOM - All ini files must be saved as UTF-8 NO BOM
CONTINUE=Continuar
COOKIES MUST BE ENABLED!=¡Las cookies deben estar habilitadas!
FIRST VOTE=Primer voto
LAST VOTE=Último voto
NUMBER OF VOTERS=Cantidad de votantes
SELECT POLL=Seleccione una encuesta
SELECT POLL FROM THE LIST=Seleccione una encuesta de la lista
THANKS FOR YOUR VOTE!=¡Gracias por su voto!
THERE ARE NO RESULTS FOR THIS POLL.=No hay resultados disponibles para esta encuesta.
WARNSELECT=No ha seleccionado una opción. Por favor, inténtelo de nuevo
YOU ALREADY VOTED FOR THIS POLL TODAY!=¡Ya votó en esta encuesta hoy!
YOUR POLL MUST CONTAIN A TITLE.=Su encuesta debe tener un título.
YOUR POLL MUST HAVE A NON-ZERO LAG TIME.=El tiempo mínimo entre votos no puede ser igual a cero (0)
But it only displays in English for some reason.
Trevor
Re: How to Translate Poll Results
Posted: Wed Mar 09, 2011 1:52 am
by NyHick
Check the mod_poll.ini file in the same directory and 1) make sure it exists and 2) is translated.
Re: How to Translate Poll Results
Posted: Wed Mar 09, 2011 3:57 am
by gato_negro
Thanks again. I checked and yes it exists and yes it's in Spanish but site still displaying those items I circled in English even though the rest of the site translates fine.
Re: How to Translate Poll Results
Posted: Wed Mar 09, 2011 4:10 am
by gato_negro
Fyi, the Spanish language file seemed to load. Perhaps it was a cache issue, however there are still 3 language strings that won't translate which are "Hits, Percent and Graph" as circled in the screen shot. Those still don't translate.
I found a topic that is related posted about Beez template. I'm not using Beez template but maybe this will work?
http://joomlacode.org/gf/project/joomla ... m_id=16820
Re: How to Translate Poll Results
Posted: Wed Mar 30, 2011 5:56 am
by bozden
Nope, it is not Spanish only. The following words are also not in Turkish language file tr-TR.com_poll.ini:
Hits
Percent
Graph
I looked for the following but could not find anything:
* No JText calls in any files
* No hard-coded strings in any files
* No data in database tables
* BTW: The English language file does not contain these, so thay must come from somewhere else. There are shown with "??" in language debug.
Very interesting !
Re: How to Translate Poll Results
Posted: Wed Mar 28, 2012 12:34 pm
by yakusa
SOLUTION:
Open Your language ini file from /language/xx-XX/xx-XX.ini and add
HITS=Your translation
PERCENT=Your translation
GRAPH=Your translation
at the end of file and save and upload edited xx-XX.ini file to server
It's all
Re: How to Translate Poll Results
Posted: Tue Apr 03, 2012 5:47 am
by Avtolider
and save with UTF8+BOM (use Notepade++
)
.
Re: How to Translate Poll Results
Posted: Wed Apr 04, 2012 6:42 pm
by bozden
yakusa wrote:SOLUTION:
Open Your language ini file from /language/xx-XX/xx-XX.ini and add
HITS=Your translation
PERCENT=Your translation
GRAPH=Your translation
at the end of file and save and upload edited xx-XX.ini file to server
It's all
With the newer Joomla! versions use the language override files for similar purposes. The method described above will be vulnerable when Joomla (and language files) get updated.
PS: I didn't use default poll on later Joomla! versions, so I don't know if the problem persists there.