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.