Support » Plugin: Bogo » How to change a name of a language in the menu

  • Resolved valeriyruss

    (@valeriyruss)


    Hi!
    Is there a way to change a name of a language in the menu.
    For example, I’d like to change “English (United States)” to “Eng”. Kind of a short version of the name.
    Another example — “Русский” to “Рус”.
    Where is a file with names of languages? Where are all the names taken from?
    Thanks in advance!

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

    (@takayukister)

    I would use the bogo_language_switcher_links filter hook for such cases.

    valeriyruss

    (@valeriyruss)

    Thanks a lot!
    Your advice helped me solve the problem.
    Here is the solution:

    if( $label === 'Русский' ){
      $label = 'Рус';
    } elseif( $label === 'English (United States)' ) {
      $label = 'Eng';
    }

    @valeriyruss куда добавить этот кусок кода?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.