WordPress – Localized

A localized version (in this example Dutch) of WordPress is basically the same as the normal WordPress except for:

  • includes/version.php -> contains aan extra line at the end with
    $wp_local_package = 'nl_NL';
  • The wp-content/languages folder

Basically, all you need to do is:

Download your languages files from the http://nl.wordpress.org/
There is no need to add this repo as a submodule; just manually download the language files you require.
Create a folder under content called languages. Place all of your .mo (and optionally .po) files here.
Open up wp-config.php and set the WP_LANG constant on line 51.

define( 'WPLANG', 'nl_NL' );

Note: WordPress will notify you that you don’t have the latest version, unless you add the line

  • $wp_local_package = 'nl_NL';

to version.php in wp/includes/

You will have to add that line after each update of WP and on all servers 🙁

OR what I did:

Remove WP submodule, and add as normal files to git repo (see also the post with Git snippets)