• Resolved dleigh

    (@dleigh)


    We’re exploring the different ways to show flags or text in the language switcher. If I wanted to use, for instance, the following 2-letter codes, is there a straightforward way to do it?

    nl – for Nederlands

    en – for English

    pt – for Português

    So we might have something that looks like:

    nl | en | pt

    Or in a dropdown:

    nl
    en
    pt

    Right now we have:

    Nederlands
    English
    Português do Brasil

    which is not very compact.

    Any ideas you might have would be appreciated. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author codingfix

    (@codingfix)

    Hi dleigh, thank you for using Language Switcher for Transposh.
    Unfortunately, currently there is no way to do what you want. I’m a bit busy now, but I’ll try to implement this function as soon as possible.
    I’ll let you know when it will be available.

    Regards

    Thread Starter dleigh

    (@dleigh)

    Thanks for the reply. Even just a hook/filter that would allow replacing the text would be great.

    Thanks.

    Plugin Support marqus61

    (@marqus61)

    Hi, dleigh.
    Sorry for the delay and… Happy New Year.
    I have released an update of LSfT which add the options to use language codes in the switcher both in basic switcher and in custom list. The next step wil be to make availabel the same option in the select too.

    Hope this will help you to deign your webstie yhe way you want 🙂

    Thread Starter dleigh

    (@dleigh)

    Hi,

    Happy New Year!

    Sorry it’s taken me a while to test this. Just got to it today.

    The “[lsft_horizontal_codes]” works fine. However, the dropdown ([lsft_custom_dropdown_codes]) gives me the flags for some reason. Perhaps I’m missing a step that I need to do?

    Thanks for the efforts at improving this!

    Plugin Support marqus61

    (@marqus61)

    Hi.

    Happy New Year to you too! 🙂


    Your request prompted me to begin a rather extensive refactoring process.
    Please bear with me: I’ll be releasing version 2.0 very soon with all the changes I hope will prove to be improvements.
    Thanks. I’ll leave you a message in this forum as soon as the new release is released.

    Cheers

    Plugin Support marqus61

    (@marqus61)

    Hi.

    Version 2.0.1 is available for download. Let me know your thoughts.

    Cheers

    Thread Starter dleigh

    (@dleigh)

    Hi,

    Currently on 2.0.5. Seems to be working well. The new options are appreciated.

    We’ve decided to implement the horizontal codes (lsft_horizontal_codes) output. I may have missed it, but I don’t see a way to style the currently selected language code differently? Is there a way currently or could another class be added to the “li” or “a” element of the currently selected language code?

    Thanks!

    Plugin Support marqus61

    (@marqus61)

    Hi.

    Just released version 2.0.6. I’ve added the class ‘current-lang’ to the current language item in horizontal and vertical switchers. You’ll be able to to add custom Css using this class to change background-color or add a bottom border, for instance. The only limit is your imagination 😉
    Just as an example, in the CssEditor provided by LSFT you can add a rule like this one:

    li.lang_switcher.current-lang {
    border-bottom: 1px solid #eaeaea;
    }

    Remember to save your changes.
    Obviously, you can add the same type of rule using the Customizer or any plugin which provides this funcionality.

    Cheers

    Thread Starter dleigh

    (@dleigh)

    Works great. Thanks!

    Plugin Support marqus61

    (@marqus61)

    Glad to hear that!

    Cheers

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.