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

    (@takayukister)

    Unfortunately the current version doesn’t support it. I’ll consider it for future releases.

    Thread Starter Bauhaus-Design

    (@bauhaus-design)

    That’s not good — do you think there is a way to delete the GB-Translation and to replace the American Flagg by the British? I welcome your response.
    With kind regards,
    LLB

    You can do it if you edit bogo/includes/functions.php.

    Comment out line 214 and that’s it. The line looks like:

    $installed_locales[] = ‘en_US’;

    It seems to be working for me.

    Or … another approach … create a simple plugin, and add the following filter:

    add_filter('bogo_language_switcher_links', 'my_bogo_language_switcher_links_filter');
    function my_bogo_language_switcher_links_filter($links, $args)
    {
            foreach ( $links as $key => $link ) {
                    if ( $link['locale'] == 'en_US' ) {
                            unset( $links[$key] );
                            break;
                    }
            }
            return $links;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deleting US-Translation’ is closed to new replies.