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: 204
graphgraph
User Offline Click here to see the profile of this user
Re:How to Language Flag Icon of the selected language 9 Months, 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: 8367
graph
User Offline Click here to see the profile of this user
Re:How to Language Flag Icon of the selected language 9 Months, 1 Week ago
Karma: 102  
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.
joomleb (User)
Gold Boarder
Posts: 204
graphgraph
User Offline Click here to see the profile of this user
Re:How to Language Flag Icon of the selected language 1 Month, 2 Weeks ago
Karma: 0  
admin wrote:
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


Hi OrdaSoft team,
Please, Has this improvement been added yet officially to the Joomla Translator las version release?

If not, Please, When can we expect the new Joomla Translator release ?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
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: 102  
Sorry,

may be till new Year we will can add some of these features.

Way which we show: as custom changes - most simply. If add this to core of component. This will ask not only add new features - this will ask change core algorithms - so we understand - this will can kill some features - and will require very many test and debug

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
joomleb (User)
Gold Boarder
Posts: 204
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  
Thank you for your reply,
I'll stay tuned here waiting for the "next year features" release
Logged Logged
The administrator has disabled public write access.
Go to top
»