OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
How to Language Flag Icon of the selected language (0 viewing) 

Joomla Translate module support

Go to bottom Favoured: 0

How to Language Flag Icon of the selected language

joomleb (User)
Gold Boarder
Posts: 202
graphgraph
User Offline Click here to see the profile of this user
Re:How to Language Flag Icon of the selected language 1 Month, 1 Week ago
Karma: 0  
Hi guys,
PHP 8.1.27 + Joomla 4.4.3 (&5) + Joomla Translate Commerce 6.1.12

Please, Do you have any news about the "Instead to show the "fa-globe-americas" as fixed icon improvement roadmap ?

OR
Please, How can we show the Language Flag Icon of the selected language ?" Can you help with the piece of code to add ? (As detailed above)
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8243
graph
User Offline Click here to see the profile of this user
Re:How to Language Flag Icon of the selected language 1 Month, 1 Week ago
Karma: 101  
Hello

For that in OrdaSoft Joomla Translate you need do so steps:

1 . For show in OrdaSoft Joomla Translate for English Language - the USA flag
You need at
{yours site}/modules/mod_seftranslate/tmpl/flags/flat/64/
Code:

file EN.png - rename to EN.png-
and
file US.png - rename to EN.png


You need do same with files in folder:
{ypurts site}/modules/mod_seftranslate/tmpl/flags/shiny/64/

2 - you need use code like you proposed, but little other:
Code:


<div class="dropdown">
<a type="button" class="flag-icon flag-icon-en sef-translate-cur-lang" data-bs-toggle="dropdown" aria-expanded="false"></a>
<div class="dropdown-menu">
{module id="..."}
</div>
</div>


You may add this code to yours site with help Joomla Custom HTML module

3 you need in file:
{yours site}/modules/mod_seftranslate/tmpl/default.php

find below row
Code:

    function go_transl(lang)
    {
  


and replace to
Code:

    function go_transl(lang)
    {
      
      $jqST(".sef-translate-cur-lang").removeClass().addClass("flag-icon flag-icon-"+lang+" sef-translate-cur-lang");



Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»