- Posts: 12
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Trying to add $ in my labels.txt but it won't work?
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Trying to add $ in my labels.txt but it won't work?
- snowball77
- Topic Author
- Offline
- New Member
I am adding some titles and descriptions into my labels.txt file.
However when I add $650.00 for example in the code, the character $ obviously is read as something else.
Does anyone know how I can get around this so I can show a dollar sign in my labels?
A
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
- Posts: 4696
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- snowball77
- Topic Author
- Offline
- New Member
- Posts: 12
I tried this change but it is reading it literally - see I use this
Aloe-spicata.jpg||<b>Black Botanica: Aloe Spicata </b>
No. BB01: LTD. ED. 75 Size 850 x 600mm
Print &36;650.00 Framed &36;850.00
And you can test it here webc5.sky.studiocoast.com.au/index.php?option=com_content&view=article&id=5&Itemid=2
It is still showing as $36;
Is there something else I have to do?
Please Log in or Create an account to join the conversation.
- snowball77
- Topic Author
- Offline
- New Member
- Posts: 12
I have used the &36; to try and show $ and it will not work??
Please help?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6221
So, e.g. display prices like this: "Buy this for USD 20"
OK, it looks like PHP is to blame here... It parses the labels file as PHP and therefore things e.g. $20 is a variable and hides it completely. The solution is to "escape" the $ sign.
So in your labels instead of writing e.g. "$20 for this", write "\$20 for this" (without the quotes of course...).
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- backlashforblow
- Offline
- New Member
- Posts: 1
Hello, Thanks so much for the reply.
I tried this change but it is reading it literally - see I use this
Aloe-spicata.jpg||<b>Black Botanica: Aloe Spicata </b>
No. BB01: LTD. ED. 75 Size 850 x 600mm
Print &36;650.00 Framed &36;850.00
And you can test it here webc5.sky.studiocoast.com.au/index.php?option=com_content&view=article&id=5&Itemid=2
It is still showing as $36;
Is there something else I have to do?
sounds good to me. It really helped me out a lot. Thanks ;D
Wedding Hairstyles
Please Log in or Create an account to join the conversation.
- Alexander Radin
- Offline
- New Member
- Posts: 14
"$36 2,400" works but it does not work if the space is not there and it does not work if you use "$36;" (with the semicolon). No quotes of course.
The solution of escaping it did not work for me.
Please Log in or Create an account to join the conversation.
- snowball77
- Topic Author
- Offline
- New Member
- Posts: 12
Thanks for getting back to me on this one
I ended up using a line like this so $36$ 850.00 worked for me !
Aloe-spicata.jpg||<b>Black Botanica: Aloe Spicata </b>
No. BB01: LTD. ED. 75 Size 850 x 600mm
Print $36$ 650.00 Framed $36$ 850.00
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Trying to add $ in my labels.txt but it won't work?