The Joomla! Forum ™






Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Wed Mar 09, 2011 12:44 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jun 17, 2010 4:21 am
Posts: 11
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
Attachment:
screen_shot.jpg


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Mar 09, 2011 1:01 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Jan 07, 2009 8:17 pm
Posts: 240
Location: New York City
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.


Top
 Profile  
 
PostPosted: Wed Mar 09, 2011 1:24 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jun 17, 2010 4:21 am
Posts: 11
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


Top
 Profile  
 
PostPosted: Wed Mar 09, 2011 1:52 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Jan 07, 2009 8:17 pm
Posts: 240
Location: New York City
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.


Top
 Profile  
 
PostPosted: Wed Mar 09, 2011 3:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jun 17, 2010 4:21 am
Posts: 11
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.


Top
 Profile  
 
PostPosted: Wed Mar 09, 2011 4:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jun 17, 2010 4:21 am
Posts: 11
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


Top
 Profile  
 
PostPosted: Wed Mar 30, 2011 5:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Dec 09, 2007 10:06 pm
Posts: 13
Location: Istanbul / Turkey
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 !


Top
 Profile  
 
PostPosted: Wed Mar 28, 2012 12:34 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 02, 2011 11:43 am
Posts: 9
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 :)


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 5:47 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 03, 2012 5:42 am
Posts: 3
and save with UTF8+BOM (use Notepade++ ;) )
.


Last edited by imanickam on Tue Apr 03, 2012 6:19 am, edited 1 time in total.
Manual Signature Removed.


Top
 Profile  
 
PostPosted: Wed Apr 04, 2012 6:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Dec 09, 2007 10:06 pm
Posts: 13
Location: Istanbul / Turkey
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group