Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 4:23 am (All times are UTC )

 





Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: HTML Tags in .ini files
Posted: Sun Aug 19, 2007 8:24 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jul 27, 2007 3:13 pm
Posts: 55
I'm sure it's fine to add common HTML tags in the .ini files while translating, but I'd like verification. For example, I noticed that in
en-GB.com_config.ini (in Administrator), some of the tooltips use the emphasis tag for the title names, but one or two titles lacked that, so I added them. Also and .
definitely does work to end a line!
Generally, I'll stick to what I see in the original en-GB file, but inserting common tags and escapes might be helpful, just want to know what you think.


Last edited by cindio on Sun Aug 19, 2007 8:37 pm, edited 1 time in total.

Top
   
 
Posted: Mon Aug 20, 2007 7:13 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11690
Location: **Translation Matters**
I suggest you report your findings in the 1.5 Q&T forum in order for devs to correct the output if necessary.
http://forum.joomla.org/index.php/board,199.0.html

Please do state the SVN number or date of nightly build as all strings may have been corrected since RC1.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Mon Aug 20, 2007 10:32 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jul 27, 2007 3:13 pm
Posts: 55
No errors, just a matter of styling! I just wanted 'permission' to use tags.
I'll just go ahead and use them, they work fine.


Top
   
 
Posted: Mon Oct 29, 2007 1:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 19, 2007 7:27 am
Posts: 6
Location: France
HTML can be used in ini files but should NOT contain the equal sign (=), otherwise the PHP function parse_ini_file which is probably used by Joomla to read these files will throw an error.


Top
  E-mail  
 
Posted: Mon Oct 29, 2007 1:56 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jul 27, 2007 3:13 pm
Posts: 55
Thank you! I'm glad I've been cautious about it and just used the tag.


Top
   
 
Posted: Sat Nov 03, 2007 12:06 am 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 6262
Location: Kent, England
Cindio
There is absolutely no problem using HTML to improve the appearance of the language files, and how you choose to do that for your own translation is entirely up to you. There are many examples that I would like to improve in the en-GB files but time constraints prohibit this for now. This is more feature request then essential priority. Making sure the translation strings are there and complete are my priority for the moment.
Regards

Andy

ps the same goes for cleaning up the deprecated strings that still exist in abundance at the present time, there is nothing stopping their removal "locally" if that is what is desired just list these in the translation together with the file name and they can be removed from en_GB as I get chance.

_________________
Andy Wallace Author of the J! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf
Joomla! Day UK 2009. Visit the official site http://joomladay.org.uk
Register at the site to receive regular updates.


Top
   
 
Posted: Mon Jul 20, 2009 11:49 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 05, 2007 5:49 pm
Posts: 10
Hi,

Do you know how to add html tags in a language file of Joomla?

like this:
Code:
YOU ARE ALREADY REGISTERED.=You alreade registered.<br />Go back http://www.joomla.org


Thank you.


Top
  E-mail  
 
Posted: Mon Jul 20, 2009 12:25 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 9:58 am
Posts: 8103
Location: Hillerød - Denmark
Hi giannis_rx,

Try adding the <a href for the url, if that is what you are asking :)
Code:
YOU ARE ALREADY REGISTERED.=You alreade registered.<br />Go back <a href="http://www.joomla.org">http://www.joomla.org</a>

_________________
Ole Bang Ottosen - Joomla! Translation Coordination Team
Joomla Leadership Team - Production Working Group - i18n/l10n/translation

Webløsninger og professionel support http://www.ot2sen.dk | Dansk Joomla! support - http://joomla.dk/


Top
  E-mail  
 
Posted: Tue Jul 21, 2009 9:10 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 05, 2007 5:49 pm
Posts: 10
Hi, thanks for reply,

I take this in email, html does not work.

You alreade registered.<br />Go back <a href="http://www.joomla.org">http://www.joomla.org</a>

Any Ideas?


Top
  E-mail  
 
Posted: Tue Jul 21, 2009 9:41 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 9:58 am
Posts: 8103
Location: Hillerød - Denmark
Ok, we had a similar report in the last days concerning another string from the ini-files.

Will have a closer look at this one too

_________________
Ole Bang Ottosen - Joomla! Translation Coordination Team
Joomla Leadership Team - Production Working Group - i18n/l10n/translation

Webløsninger og professionel support http://www.ot2sen.dk | Dansk Joomla! support - http://joomla.dk/


Top
  E-mail  
 
Posted: Thu Oct 15, 2009 9:30 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Mar 22, 2006 9:19 pm
Posts: 9
Anybody got a solution for adding a link to the language?

thanks
kobi


Top
  E-mail  
 
Posted: Fri Oct 16, 2009 7:13 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11690
Location: **Translation Matters**
One can add a "normal" link to any string in Joomla.
If the string is displayed on site, the html will be correctly displayed.
If the string is sent by mail then it should be formatted as
<a href="http://www.joomla.org"</a>
The url will be clickable but will display the tags in the mail client.

One could add http headers in the string in order to display formatting in the email client, similar to a Newsletter, but that would be quite heavy.

Concerning the use of html tags generally, it may depend on the string. In some cases, it is advised to use html entities for the tags and special characters as "="

Exemple:
<jdoc:include type = "message" /> in the description of an extension will not display.
But
&lt;jdoc:include type &#x003D; "message" /&gt;
will.

The use of single quotes (and other special chars as | ) is strictly depending on the way the string is parsed to display.
They may have to be escaped to avoid breaking some code
\' and \|

Example
ICON_SEP=\|
in language/en-GB/en-GB.ini

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 7 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 © 2000, 2002, 2005, 2007 phpBB Group