WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] Change WordPress Admin Flags (13 posts)

  1. zouzouille
    Member
    Posted 1 year ago #

    Hi,

    My WordPress Multisite have on site for Portugal and one other for Brasil. The plugin displays portuguese flag for both.

    In front office I can change that thanks this function and this code line
    $link = str_replace('pt.png','br.png',$link);

    How can i do the same in WordPress admin ? (Flags in managing column and flags in post or page meta box)

    Thanks in advance !

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    In my opinion there is a much easier way to accomplish this. Download the Brazilian version of WordPress from here -> http://br.wordpress.org/ and copy just all files from /wp-content/languages to the same directory of your WordPress installation (or install just WP Native Dashboard and download these files with this plugin). Then you can choose Brazilian Portuguese (pt_BR) for the other site.

    Let me know if this works for you!

    Cheers,
    Dennis.

  3. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Was your problem resolved?

  4. zouzouille
    Member
    Posted 1 year ago #

    Hi,

    Thank you for your answer.

    I've done it, I've copied these files but it doesn't work for pt_BR version .

    I also have 3 sites in English (us, uk and ca) I also copy .po and .mo files of different versions and it works very well.

    That is why I tried to change the display of flags.

    Thanks again for your assistance.

  5. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Did you remove the additional code - which you mentioned earlier - too?

  6. zouzouille
    Member
    Posted 1 year ago #

    Yes i did

  7. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    OK ... and the settings for the language too?

  8. zouzouille
    Member
    Posted 1 year ago #

    In the settings for the language, WordPress only propose "Portuguese" without differentiating pt_PT or pt_BR

    Oddly enough, for my 3 sites in English (us, ca, uk) wordpress propose only British English and English

    So I have chosen British English for uk site and English for american and canadian sites, and Multisite Language Switcher correctly displays the American and Canadian flags

  9. zouzouille
    Member
    Posted 1 year ago #

    I also have a website dedicated to Belgium (will be in French)

    WordPress Belgium doesn't exist so I have to use the french .po and .mo files, so MLS display french flag

    I would like to change the flag (for diplay the Belgium flag) that's why I use the additional code and I ask you how can I change the flags in the wordpress admin

  10. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting problem! I will check what I can do for you and if there is a quick solution.

  11. zouzouille
    Member
    Posted 1 year ago #

    ok, thanks for your help !

  12. zouzouille
    Member
    Posted 1 year ago #

    Hi Dennis,

    I could solve my problems.

    For the Brazilian site, in NetWork Admin > Sites > "my site" > Settings > WPLANG > I could change pt_PT in pt_BR

    And MSLS now recognizes the country

    For the Belgian site, that doesn't have a specific version of wordpress, I created .po and .mo files (fr_BE), I changed the NetWork Admin settings like Brazilian site

    And now it works correctly

    Thank you for your help !

  13. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    OK, very good!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.