In my opinion there is a much easier way to accomplish this. Download the Brazilian version of WordPress from here -> http://br.ww.wp.xz.cn/ 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.
Was your problem resolved?
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.
Did you remove the additional code – which you mentioned earlier – too?
OK … and the settings for the language too?
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
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
Interesting problem! I will check what I can do for you and if there is a quick solution.
ok, thanks for your help !
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 !