• Resolved ymhuk90

    (@ymhuk90)


    Hello!

    I am using be_BY language (“Беларуская мова”) and want to change language’s name to “Беларуская” in menu for better fitting the screen. I`ve tried editing array in multilanguage/includes/languages.php but it seems to be the wrong way.

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

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    “I`ve tried editing array in multilanguage/includes/languages.php but it seems to be the wrong way.”
    You can do it in that way.
    But first, you should delete “Беларуская мова” from the Languages list on the plugin settings page.
    After you edit the languages.php file you can add it back and enable. It will be added with the new name.
    Please note, languages.php file will be overwritten after plugin update, but your language name in options will stay the same.

    The second solution is to edit the multilanguage options directly in your WP database.
    Your language has to be added to the list.
    Please go to the plugin settings page, open the “Custom code” tab, mark the “Activate” checkbox in the “Editing bws-custom-code.php” section and add the following code:

    $ops = get_option('mltlngg_options');
    foreach ( $ops['list_of_languages'] as $key => $lang ) {
        if ( 'be_BY' == $lang['locale'] ) {
            $ops['list_of_languages'][ $key ]['name'] = 'Беларуская';               /* You can place here any name you want */
            break;
        }
    }
    update_option( 'mltlngg_options', $ops );

    Open any page in the frontend and refresh it. Check the results.
    Finally, you can remove the custom code.

    Let us know about the results.

    Sincerely,
    BestWebSoft Support Team

    • This reply was modified 8 years, 1 month ago by bestwebsoft.
    Thread Starter ymhuk90

    (@ymhuk90)

    The second solution works fine.
    Thank you very much!

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for your reply. We are glad that you have found the solution. Feel free to contact our support team with any questions in future.

    Sincerely,
    BestWebSoft Support Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing language`s name in menu’ is closed to new replies.