Plugin Internationalization

Testing

Now comes the hard part: testing to see whether the translations work correctly and show up where they are supposed to be. That is controlled by a definition in the WordPress ‘wp-config.php’ file. Unfortunately, I was unable to locate a simple means of changing the defined language for the back end, even though several plugins appeared to do this.

Instead, I opened the ‘wp-config.php’ file and searched for the following statement:

Note that the default definition is the one that matches the underlying hosting system, in this case, “en_US’. To change that, the second parameter must be modified with the same language code as was used for creating the language file under test. In this situation, I would simply comment out the first line of the file and uncomment the second, then save the file.

Share
The short URL of the present article is: http://www.terryobrien.me/pHO9N

Page 4 of 5
First | Prev | 1 | 2 | 3 | 4 | 5 | Next | Last
View All