• Resolved kappesante

    (@kappekappesantecom)


    i like this plugin, a lot. i just have 2-3 little issues i’d like to fix and understand well before giving it 5 stars.

    1. wpglobus-translate-options did not help getting rid of those: {:text}{:}{:text}{:}
    i’m trying this plugin on a child theme, based on athena. added all the stuff i found on translation tables, but still no help.

    2. since i need only 2 languages, a dropdown menu is not the perfect choice. a single flag of the other language available will be ok, but i cannot find a way to put it in the right place. always on top or on bottom of main manu, instead inside like the default dropdown switcher. so maybe there is a way to hide the current language from the menu, and just keep the other option as the only option available.

    adding

    .wpglobus-current-language {
       display:none;
    }

    hides the switcher, so no options are shown.

    3. i’d really love to put the switcher somewhere else, a widget maybe?

    yes, i’ve read the forum here, but still can’t fix my issues ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kappesante

    (@kappekappesantecom)

    1 and 3 solved, thanks to alex.
    for the #2, maybe i’ve found a bug:

    sadly, it seems i miss something. the code works (sometimes) on widget, but not in the menus. please take a look: https://www.papagirl.eu
    i’ve added one widget for every option. you can see that sometimes you got only one option, some other you got two options. the menu is still unaffected by css code.
    twenty seventeen theme, fresh install, no other plugins active: both options are in the menu.
    some other themes: switcher on menu totally disappear

    Hi, how to add translate directly on .php page. I have some new templates and plugins, where I have this coede:
    <?php echo __( 'Area', 'location' ); ?>
    How to get translate for “Area”? Try this:
    <?php echo __( '{:sr}Oblast{:}{:en}Area{:}', 'location' ); ?>
    But not work.
    Please help.
    Thanks!

    • This reply was modified 7 years, 9 months ago by brankoads.
    Plugin Contributor Alex Gor

    (@alexgff)

    You can use

    
    <?php echo apply_filters('the_title', '{:sr}Oblast{:}{:en}Area{:}' ); ?>
    

    Sorry, but not work for me. I have try this:

    if ( WPGlobus::Config()->language == 'en' ) {
      echo __( 'Baths', 'realocation' );
    } else if ( WPGlobus::Config()->language == 'sr' ) {
       echo __( 'Kupatila', 'realocation' );
    }

    and this working fine. But is too long code… Must be something shorter ??

    I have one more qu. Can you add Serbian (Srpski jezik) flag. Here you are Serbian flag: https://sr.wikipedia.org/wiki/Srbija
    Thanks

    Hi Alex Gor, I have find serbian language.. But still have problems with translate some theme plugins. I am using this theme: https://preview.byaviators.com/theme/realocation/
    and have problem with translate filter plugin (for rent, for sale, property title, location…). Please help me how to do that. If need to by some plugin more or donate, please tell. Thanks in advance!

    Plugin Contributor Alex Gor

    (@alexgff)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘{:it}{:}{:en}{:} and the single flag’ is closed to new replies.