• Resolved Jeshil

    (@jeshil)


    Hello,

    I installed the plugin of Transposh but I am having difficulty to change the flag display to displaying the language code so instead of UK flag I want to have EN DE etc..

    Has anybody implemented this before? Please help me with some feedback how to do it?

    I am trying to change the widget appearance in tpw_flags.php in the line of

    transposh_utils::display_flag(“$plugpath/img/flags”, $langrecord[‘flag’], $langrecord[‘langorig’], false) .

    to substitute it with something to showing language code but I can’t figure out how..

    https://ww.wp.xz.cn/plugins/transposh-translation-filter-for-wordpress/

Viewing 1 replies (of 1 total)
  • Thread Starter Jeshil

    (@jeshil)

    You scratch your head for some time but at the minute you post for help you find a solution. Bit embrassing..

    If anybody faces the same issue as me, I went to contants.php in core folder of the general plugin folder of Transposh and changed the array of languages and changed the original language for Englisht to EN and German to DE. Then I used the widget from flags/tpw_flags_css.php, inside this php file I changed the line below

    instead of
    transposh_utils::display_flag("", $langrecord['flag'], $langrecord['langorig'], true) .
    to just $langrecord['langorig'] .

    and done 🙂

Viewing 1 replies (of 1 total)

The topic ‘Display language code instead of Flags’ is closed to new replies.