How to Translate Poll Results

General questions regarding the use of languages in Joomla! 1.5.

Moderator: General Support Moderators

gato_negro
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Jun 17, 2010 4:21 am

How to Translate Poll Results

Postby gato_negro » Wed Mar 09, 2011 12:44 am

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
You do not have the required permissions to view the files attached to this post.

NyHick
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 240
Joined: Wed Jan 07, 2009 8:17 pm
Location: New York City

Re: How to Translate Poll Results

Postby NyHick » Wed Mar 09, 2011 1:01 am

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).
A clever person solves a problem. A wise person avoids it.

gato_negro
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Jun 17, 2010 4:21 am

Re: How to Translate Poll Results

Postby gato_negro » Wed Mar 09, 2011 1:24 am

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

NyHick
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 240
Joined: Wed Jan 07, 2009 8:17 pm
Location: New York City

Re: How to Translate Poll Results

Postby NyHick » Wed Mar 09, 2011 1:52 am

Check the mod_poll.ini file in the same directory and 1) make sure it exists and 2) is translated.
A clever person solves a problem. A wise person avoids it.

gato_negro
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Jun 17, 2010 4:21 am

Re: How to Translate Poll Results

Postby gato_negro » Wed Mar 09, 2011 3:57 am

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.

gato_negro
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Jun 17, 2010 4:21 am

Re: How to Translate Poll Results

Postby gato_negro » Wed Mar 09, 2011 4:10 am

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

bozden
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sun Dec 09, 2007 10:06 pm
Location: Istanbul / Turkey

Re: How to Translate Poll Results

Postby bozden » Wed Mar 30, 2011 5:56 am

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 !

yakusa
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Sep 02, 2011 11:43 am

Re: How to Translate Poll Results

Postby yakusa » Wed Mar 28, 2012 12:34 pm

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 :)

Avtolider
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Apr 03, 2012 5:42 am

Re: How to Translate Poll Results

Postby Avtolider » Tue Apr 03, 2012 5:47 am

and save with UTF8+BOM (use Notepade++ ;) )
.
Last edited by imanickam on Tue Apr 03, 2012 6:19 am, edited 1 time in total.
Reason: Manual Signature Removed.

bozden
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sun Dec 09, 2007 10:06 pm
Location: Istanbul / Turkey

Re: How to Translate Poll Results

Postby bozden » Wed Apr 04, 2012 6:42 pm

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.


Return to “Language - Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 6 guests