HTML Tags in .ini files

A place to discuss Joomla! translation matters.

Moderator: wendhausen

Rezayusefi
I've been banned!
Posts: 24
Joined: Tue Jan 15, 2013 7:05 am

Re: HTML Tags in .ini files

Post by Rezayusefi » Thu Mar 14, 2013 3:13 pm

thank you very much infograf768
now i undrestand your meaning.

Richardkl
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Mon Jul 21, 2008 4:50 pm

Re: HTML Tags in .ini files

Post by Richardkl » Sun Apr 14, 2013 1:13 am

have you ever got html tags working as I just ungraded to 2.5 and all my link embedded messages don't work any more. example of one is below.

Code: Select all

COM_KUNENA_LOGIN_FORUM="Only community members can participate in forum threads. You must be logged in to contribute. to get a FREE account just click on <a href="_QQ_"index.php?option=com_acctexp&task=subscribe"_QQ_"> Registration and Upgrades.</a>

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Sun Apr 14, 2013 8:36 am

Richardkl wrote:have you ever got html tags working as I just ungraded to 2.5 and all my link embedded messages don't work any more. example of one is below.

Code: Select all

COM_KUNENA_LOGIN_FORUM="Only community members can participate in forum threads. You must be logged in to contribute. to get a FREE account just click on <a href="_QQ_"index.php?option=com_acctexp&task=subscribe"_QQ_"> Registration and Upgrades.</a>
Missing a double quote at the end of string:

Code: Select all

COM_KUNENA_LOGIN_FORUM="Only community members can participate in forum threads. You must be logged in to contribute. to get a FREE account just click on <a href="_QQ_"index.php?option=com_acctexp&task=subscribe"_QQ_"> Registration and Upgrades.</a>"
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Richardkl
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Mon Jul 21, 2008 4:50 pm

Re: HTML Tags in .ini files

Post by Richardkl » Sun Apr 14, 2013 2:44 pm

Thanks for your replay

The double quote was there, I missed it on the cut and paste.

Any other ideas.?
So you are saying that HTML tags are suppose to work in 2.5 ?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Mon Apr 15, 2013 8:50 am

They do.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Repepioras
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 28, 2009 3:30 pm

Re: HTML Tags in .ini files

Post by Repepioras » Thu May 02, 2013 1:41 pm

not work:

Code: Select all

COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Text %s,\n\nText Text Text %s. Text.\nText Text:\n <a href="_QQ_"%s"_QQ_">TEXT</a> \n\nText %s Text Text:\n\nText: %s\nText: %s"
in email get:

Text,

Text "Site name" Text. TextTextText.
TextTextTextTextTextText:
<a href="http://www.domain.lt/index.php?option=c ... c">TEXT</a>

Text Text Text http://www.domain.com/ Text Text Text:

Text Text: Text
Last edited by Repepioras on Fri May 03, 2013 1:58 pm, edited 1 time in total.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Fri May 03, 2013 5:12 am

Please write in English in the English forums
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Repepioras
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 28, 2009 3:30 pm

Re: HTML Tags in .ini files

Post by Repepioras » Fri May 03, 2013 2:00 pm

Text this is not matter english or not because question in english. In email i get all html code.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Fri May 03, 2013 4:31 pm

Now I understand your question.

Here is the original English string:
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s \n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
and the Latvian one (if you use Latvian):
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Labdien %s,\n\nPaldies, ka esat reģistrējies(usies) vietnē %s. Jūsu lietotāja konts ir izveidots, bet tas ir jāaktivizē pirms izmantošanas.\nLai veiktu šo darbību, aktivizējiet zemāk redzamo saiti, vai iekopējiet to pārlūkprogrammas adreses laukā:\n%s \n\nPēc aktivizācijas varēs pieslēgties vietnei %s ar sekojoša lietotāja vārda un paroles palīdzību:\n\nLietotāja vārds: %s\nParole: %s"
It looks like the string you use is wrong.
Which version of Joomla do you use? Which language pack?
Where did you get this pack?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Repepioras
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 28, 2009 3:30 pm

Re: HTML Tags in .ini files

Post by Repepioras » Mon May 06, 2013 6:43 pm

I`m not from Latvia. I`m from Lithuania.
%s this string is long url i want use simple word link like <a href="_QQ_"%s"_QQ_">TEXT</a> but in email i get all html code with text not link

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Tue May 07, 2013 9:50 am

A mail like this does not use html tags. You can't add them in the string.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Repepioras
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Sep 28, 2009 3:30 pm

Re: HTML Tags in .ini files

Post by Repepioras » Fri May 10, 2013 12:14 am

Solution:

http://www.joomla123.lt/forumas/Joomla- ... ja-emailas

Sorry, but in lithuanian.
use google translate.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Fri May 10, 2013 10:08 am

I can understand the code, although simply add true in registration.php should work without changing the library.
This is a hack though that will be overriden by next update, so beware!
Also, not sure this is safe.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

pcknights22
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Tue Jul 08, 2014 12:54 pm

Re: HTML Tags in .ini files

Post by pcknights22 » Wed Sep 03, 2014 12:39 pm

Hi There,
I am also trying to have html tags to my in file but no luck.
The html code is displayed instead any ideas? I am posting the code i used.

COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be verified before you can use it.\nTo verify the account click on the following link or copy-paste it in your browser:\n %s \n\nAfter verification an administrator will be notified to activate your account. You'll receive a confirmation when it's done.\nOnce that account has been activated you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s \n\nAll the best \n\nThe Business Gateway Team\n\n<br><img src="_QQ_"http://testsite.com/images/bottom_banner.jpg"_QQ_">"

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Wed Sep 03, 2014 6:46 pm

This string is a mail message, not an ordinary joomla message or text. Using <br> and other html tags may not work
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

pcknights22
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Tue Jul 08, 2014 12:54 pm

Re: HTML Tags in .ini files

Post by pcknights22 » Thu Sep 04, 2014 9:18 am

It is from the:
../language/en-GB/en-GB.com_user.ini
I can change the text that is send to the users but I can't find a way to add an image to the email
Does any one know a way that I can add an image to the emails that are send to the users?

dorsa
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Mon Jul 29, 2013 5:46 am

Re: HTML Tags in .ini files

Post by dorsa » Fri Sep 05, 2014 6:42 pm

@pcknights22
If you want to change the standard email users receive after registering themselves instead of the Administrator registering them, then edit the en-GB.com_user.ini file at:

language/en-GB/en-GB.com_user.ini

Look for the ini value for SEND_MSG and use your own.
SEND_MSG=Hello %s,\n\nThank you for registering at %s.\n\nYou may now log in to %s using the
username and password you registered with.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Sat Sep 06, 2014 8:41 am

@dorsa

please, if you do not understand a question, do not post.
Looks like you just want your signature url to display as much as possible...
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

pcknights22
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Tue Jul 08, 2014 12:54 pm

Re: HTML Tags in .ini files

Post by pcknights22 » Mon Sep 08, 2014 7:44 am

I want below that specific message to display an image.
Is this possible?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: HTML Tags in .ini files

Post by infograf768 » Mon Sep 08, 2014 8:54 am

I do not think so, as I said above. Even If I change sendmail to permit html mail, it does not work.

From an extension it is different, but, as you see, it requires a specific code:
http://docs.joomla.org/Sending_email_from_extensions
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Translations”