HTML Tags in .ini files
Moderator: wendhausen
- cindio
- Joomla! Intern
- Posts: 57
- Joined: Fri Jul 27, 2007 3:13 pm
- Contact:
HTML Tags in .ini files
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.
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
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.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- cindio
- Joomla! Intern
- Posts: 57
- Joined: Fri Jul 27, 2007 3:13 pm
- Contact:
Re: HTML Tags in .ini files
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.
I'll just go ahead and use them, they work fine.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Jul 19, 2007 7:27 am
- Location: France
- Contact:
Re: HTML Tags in .ini files
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.
- cindio
- Joomla! Intern
- Posts: 57
- Joined: Fri Jul 27, 2007 3:13 pm
- Contact:
Re: HTML Tags in .ini files
Thank you! I'm glad I've been cautious about it and just used the tag.
- humvee
- Joomla! Master
- Posts: 14704
- Joined: Wed Aug 17, 2005 10:27 pm
- Location: Kent, England
Re: HTML Tags in .ini files
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.
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.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Jul 05, 2007 5:49 pm
Re: HTML Tags in .ini files
Hi,
Do you know how to add html tags in a language file of Joomla?
like this:
Thank you.
Do you know how to add html tags in a language file of Joomla?
like this:
Code: Select all
YOU ARE ALREADY REGISTERED.=You alreade registered.<br />Go back http://www.joomla.org
- ot2sen
- Joomla! Master
- Posts: 10381
- Joined: Thu Aug 18, 2005 9:58 am
- Location: Hillerød - Denmark
- Contact:
Re: HTML Tags in .ini files
Hi giannis_rx,
Try adding the <a href for the url, if that is what you are asking
Try adding the <a href for the url, if that is what you are asking
Code: Select all
YOU ARE ALREADY REGISTERED.=You alreade registered.<br />Go back <a href="http://www.joomla.org">http://www.joomla.org</a>
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Jul 05, 2007 5:49 pm
Re: HTML Tags in .ini files
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?
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?
- ot2sen
- Joomla! Master
- Posts: 10381
- Joined: Thu Aug 18, 2005 9:58 am
- Location: Hillerød - Denmark
- Contact:
Re: HTML Tags in .ini files
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
Will have a closer look at this one too
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
-
- Joomla! Apprentice
- Posts: 13
- Joined: Wed Mar 22, 2006 9:19 pm
Re: HTML Tags in .ini files
Anybody got a solution for adding a link to the language?
thanks
kobi
thanks
kobi
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
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
<jdoc:include type = "message" />
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
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
<jdoc:include type = "message" />
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Dec 05, 2010 6:51 pm
Re: HTML Tags in .ini files
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.
Any help would be appreciated.
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: Select all
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.
-
- Joomla! Apprentice
- Posts: 25
- Joined: Thu Sep 01, 2005 12:47 pm
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Dec 05, 2010 6:51 pm
Re: HTML Tags in .ini files
Thanks, dimkasta, but I think I already did.dimkasta wrote:Try using single quotes
I'll give it another try though.
-
- Joomla! Apprentice
- Posts: 25
- Joined: Thu Sep 01, 2005 12:47 pm
Re: HTML Tags in .ini files
You might also want to try using entities instead of = and #
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Dec 05, 2010 6:51 pm
Re: HTML Tags in .ini files
Thanks, will do.dimkasta wrote:You might also want to try using entities instead of = and #
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Dec 29, 2010 5:59 pm
Re: HTML Tags in .ini files
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
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
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Dec 29, 2010 5:59 pm
Re: HTML Tags in .ini files
talking about pt-BR.com_users.ini filearmello wrote: I edited the line 30 as below:
NEW_USER_MESSAGE=<html><head></head><body>teste</body></html>
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
Nope, html formatting as nothing to do with UTF8 charset.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?
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Dec 29, 2010 5:59 pm
Re: HTML Tags in .ini files
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.
-
- Joomla! Intern
- Posts: 89
- Joined: Fri Mar 09, 2007 5:13 pm
Re: HTML Tags in .ini files
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?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
yes, it is possible. Which version of Joomla do you use?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?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Intern
- Posts: 89
- Joined: Fri Mar 09, 2007 5:13 pm
Re: HTML Tags in .ini files
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.
Thank you.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
Update to 2.5.9
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Intern
- Posts: 89
- Joined: Fri Mar 09, 2007 5:13 pm
Re: HTML Tags in .ini files
Already done. I stated the wrong version number.
Thank you
Thank you
-
- I've been banned!
- Posts: 33
- Joined: Tue Jan 15, 2013 7:06 am
Re: HTML Tags in .ini files
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>
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>
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
Except that double quotes should not exist in a constant value in 2.5.x/3.xPariya 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>
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- I've been banned!
- Posts: 24
- Joined: Tue Jan 15, 2013 7:05 am
Re: HTML Tags in .ini files
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'>??
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: HTML Tags in .ini files
yes you can, but sometimes that will not work.
So better use
"_QQ_"
in the value when you need a doublequote.
So better use
"_QQ_"
in the value when you need a doublequote.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group