UTF8 Special characters

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
yodam
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Aug 25, 2018 5:12 pm

UTF8 Special characters

Post by yodam » Wed Mar 18, 2020 2:43 pm

Hi,
In translation I want to substitute a "Send" word in a utf8 symbol or a fontawesome if possible.

How to do this?

Thanks!

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

Re: UTF8 Special characters

Post by infograf768 » Thu Mar 19, 2020 7:49 am

To use a UTf8 character is easy. Just enter it as an htmlentity of paste it in the string value.
For example, using a symbol for "Send"

Code: Select all

&#9658;
gives: Please ►the information

To use a fontawsome "icon" would mean making sure you are loading fontawsome, creating a specific class in your template.css and add it in the string value.

For example

Code: Select all

MY_STRING="Please <span class=\"fas fa-external-link-alt\" aria-hidden=\"true\">::before</span> the information."
Class:

Code: Select all

.fa-external-link-alt::before
{
    content: "\f35d";
}
which is
Screen Shot 2020-03-19 at 08.43.06.png


Would render: Please fontawsome_icon the information.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

yodam
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Aug 25, 2018 5:12 pm

Re: UTF8 Special characters

Post by yodam » Thu Mar 19, 2020 8:13 am

Thanks!!!

 

Post Reply

Return to “Language - Joomla! 3.x”