Support » Plugin: Transposh WordPress Translation » Language text has "1" at end

  • Resolved nate.ads

    (@nateads)


    I changed the tpw_flags_css.php file line 32 from having flags to just displaying text.

    I changed line 32 from this
    transposh_utils::display_flag("", $langrecord['flag'], $langrecord['langorig'], true) .

    to this
    $langrecord['lang'], true .

    I get text in place of the flags but for some odd reason the text now says “English1” and “French1”. Can someone help guide me in the right direction to figure out why the “1” appears? My goal is to just have text.

    https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author oferwald

    (@oferwald)

    remove the true

    🙂

    Thread Starter nate.ads

    (@nateads)

    I forgot about this post. Thanks Ofer Wald for the answer.

    I figured it out a few days ago. For anyone wondering how to change the display to text change
    $langrecord['lang'], true .

    to
    $langrecord['lang'], false .

    Plugin Author oferwald

    (@oferwald)

    Hi,

    Why not simply?
    $langrecord[‘lang’] .

    🙂

    Thread Starter nate.ads

    (@nateads)

    I can change it to that now. I originally thought it needed either true or false for some reason. Thanks for the help on this. It’s a great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Language text has "1" at end’ is closed to new replies.