Firstly i have been install wp with different languange with indonesian languange as default, i have plan, want to translate with other languange, How to simple translate switch, but keep Indonesian as default. with .po file
thanks for the help ...
|
Firstly i have been install wp with different languange with indonesian languange as default, i have plan, want to translate with other languange, How to simple translate switch, but keep Indonesian as default. with .po file thanks for the help ... |
|||
|
|
|
Assuming you're talking about the front-end and you have your strings properly internationalized, you just need to insert the load_theme_textdomain() function to tell wordpress where are your .po files. this is how the Toolbox Theme does it:
UPDATE: i once played with changing users locale to do that automatically, getting the users language from the $_SERVER superglobal. i came up with this, but it's not working yet. Maybe you can work from it. WARNING: THIS IS UNTESTED AND MIGHT BEHAVE WEIRDLY OR EVEN BREAK YOUR SITE, BE CAREFUL
|
|||||
|