The Joomla! Forum ™






Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: HTML Tags in .ini files
PostPosted: Sun Aug 19, 2007 8:24 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Jul 27, 2007 3:13 pm
Posts: 57
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
 Profile  
 
PostPosted: Mon Aug 20, 2007 7:13 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
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
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Mon Aug 20, 2007 10:32 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Jul 27, 2007 3:13 pm
Posts: 57
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
 Profile  
 
PostPosted: Mon Oct 29, 2007 1:26 pm 
Joomla! Apprentice
Joomla! Apprentice

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
 Profile  
 
PostPosted: Mon Oct 29, 2007 1:56 pm 
User avatar
Joomla! Intern
Joomla! Intern

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


Top
 Profile  
 
PostPosted: Sat Nov 03, 2007 12:06 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 14715
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.


Top
 Profile  
 
PostPosted: Mon Jul 20, 2009 11:49 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 05, 2007 5:49 pm
Posts: 12
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
 Profile  
 
PostPosted: Mon Jul 20, 2009 12:25 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 9:58 am
Posts: 10075
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
redCOMPONENT Community Manager http://redcomponent.com
Personligt site www.ot2sen.dk
Dansk Joomla! support websted - joomla.dk


Top
 Profile  
 
PostPosted: Tue Jul 21, 2009 9:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 05, 2007 5:49 pm
Posts: 12
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
 Profile  
 
PostPosted: Tue Jul 21, 2009 9:41 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 9:58 am
Posts: 10075
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
redCOMPONENT Community Manager http://redcomponent.com
Personligt site www.ot2sen.dk
Dansk Joomla! support websted - joomla.dk


Top
 Profile  
 
PostPosted: Thu Oct 15, 2009 9:30 pm 
Joomla! Apprentice
Joomla! Apprentice

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

thanks
kobi


Top
 Profile  
 
PostPosted: Fri Oct 16, 2009 7:13 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
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
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sun Dec 05, 2010 6:56 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Dec 05, 2010 6:51 pm
Posts: 3
Hi all :)

Sorry to revive this old thread but adding html to the .ini language file does not work for me.
The html appears as code.

Code:
Your Account has been successfully activated. You can now <a href="#login">log in using the username and password</a> you chose during the registration.


Any help would be appreciated. ;)


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 7:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 01, 2005 12:47 pm
Posts: 21
Try using single quotes

_________________
http://www.d-extensions.com


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 8:35 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Dec 05, 2010 6:51 pm
Posts: 3
dimkasta wrote:
Try using single quotes

Thanks, dimkasta, but I think I already did.
I'll give it another try though. ;)


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 10:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 01, 2005 12:47 pm
Posts: 21
You might also want to try using entities instead of = and #

_________________
http://www.d-extensions.com


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 10:45 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Dec 05, 2010 6:51 pm
Posts: 3
dimkasta wrote:
You might also want to try using entities instead of = and #

Thanks, will do. :)


Top
 Profile  
 
PostPosted: Wed Dec 29, 2010 6:15 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 29, 2010 5:59 pm
Posts: 3
Hi people,

I am going through the same problem, i am using pt-BR language file, and i am trying to insert html code into the new user welcome mail, but the e-mails show the code (Tags) instead of just "teste"

I edited the line 30 as below:

NEW_USER_MESSAGE=<html><head></head><body>teste</body></html>

Have tried many other ways. Any trick?

When I change another *.ini field, the site recognize ok, but when the field is about mail, it do not work.
In Portuguese I have to put this e-mail in html format because I need to show characters like “ç” “á” “ê”. So I need to write it in UTF-8 coding. You see?

thanks in advance

Alexandre Mello


Top
 Profile  
 
PostPosted: Wed Dec 29, 2010 6:48 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 29, 2010 5:59 pm
Posts: 3
armello wrote:
I edited the line 30 as below:

NEW_USER_MESSAGE=<html><head></head><body>teste</body></html>


talking about pt-BR.com_users.ini file


Top
 Profile  
 
PostPosted: Thu Dec 30, 2010 10:47 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
Quote:
In Portuguese I have to put this e-mail in html format because I need to show characters like “ç” “á” “ê”. So I need to write it in UTF-8 coding. You see?

Nope, html formatting as nothing to do with UTF8 charset.
If your ini mail string contains utf8 characters, they should display OK in the mail sent.

Joomla mail are sent with
Content-Type: text/plain; charset="utf-8"

<x-charset utf-8>
some text

</x-charset>

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Dec 30, 2010 12:55 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 29, 2010 5:59 pm
Posts: 3
Ok Thats right... I was writing the UTF-8 Code intead of the regular caracter, and was not working... Now it's ok.. but the HTML TAGs remain apearing at the mesenge.


Top
 Profile  
 
PostPosted: Tue Feb 26, 2013 8:59 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 09, 2007 5:13 pm
Posts: 89
I was wondering if you could reference image files to display and internal links via the language file as well. If so would you kindly tell me how?


Top
 Profile  
 
PostPosted: Wed Feb 27, 2013 12:27 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
baparks wrote:
I was wondering if you could reference image files to display and internal links via the language file as well. If so would you kindly tell me how?

yes, it is possible. Which version of Joomla do you use?

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Feb 27, 2013 2:54 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 09, 2007 5:13 pm
Posts: 89
I am using J!2.5.7 however after posting this inquiry I accomplished what I set out to do. You can view the results herehttp://dineout-indy.com/broad-ripple-village/yats.html

Thank you.


Top
 Profile  
 
PostPosted: Wed Feb 27, 2013 5:31 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
Update to 2.5.9

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Feb 27, 2013 6:35 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 09, 2007 5:13 pm
Posts: 89
Already done. I stated the wrong version number.

Thank you


Top
 Profile  
 
PostPosted: Wed Mar 13, 2013 6:24 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jan 15, 2013 7:06 am
Posts: 32
hi ever body i want to add
Your Account has been successfully activated. You can now log in using the <span style="font-size:18px">username</span> and <span style="font-size:18px">password</span>

_________________
http://sabtha.ir my advertising website
http://pernet.ir my advertisment website


Top
 Profile  
 
PostPosted: Wed Mar 13, 2013 8:07 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
Pariya wrote:
hi ever body i want to add
Your Account has been successfully activated. You can now log in using the <span style="font-size:18px">username</span> and <span style="font-size:18px">password</span>

Except that double quotes should not exist in a constant value in 2.5.x/3.x

example of use:

JLIB_DATABASE_ERROR_FUNCTION_FAILED="DB function failed with error number %s <br /><span style="_QQ_"color: red;"_QQ_">%s</span>"

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Mar 14, 2013 12:24 pm 
I've been banned!

Joined: Tue Jan 15, 2013 7:05 am
Posts: 24
hi infograf768
i dont undrestand your minig
you said we cant use double quotes
and you show a sample but i didnt undrastand it.
if i want write <div class="text">
can i write it <div class='text'>??


Last edited by Rezayusefi on Fri Mar 15, 2013 7:04 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Mar 14, 2013 3:00 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17192
Location: **Translation Matters**
yes you can, but sometimes that will not work.
So better use
"_QQ_"

in the value when you need a doublequote.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 32 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