2017-01-12

‎Manually Installing Language Files

← Older revision

Revision as of 13:46, 12 January 2017

(3 intermediate revisions by the same user not shown)

Line 24:

Line 24:

'''Note:''' If you make an error in the steps or you do not specify the correct language, WordPress will default back to English. For more help Installing WordPress, see [[Installing WordPress]] and [[FAQ Installation]].

'''Note:''' If you make an error in the steps or you do not specify the correct language, WordPress will default back to English. For more help Installing WordPress, see [[Installing WordPress]] and [[FAQ Installation]].



* Download the <tt>.mo</tt> language file for your language. The naming convention of the <tt>.mo</tt> files is based on the ISO-639 language code (e.g. ''pt'' for Portuguese) followed by the ISO-3166 country code (e.g. ''_PT'' for Portugal or ''_BR'' for Brazil). So, the Brazilian Portuguese file would be called <tt>pt_BR.mo</tt>, and a non-specific Portuges file would be called <tt>pt.mo</tt>. Complete lists of codes can be found at [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes (country codes)] and [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes (language codes)].

+

* Download the <tt>.mo</tt> language file for your language
. You can get the .mo files from [http://svn.automattic.com/wordpress-i18n/ here] or export from a specific WordPress translation project. For example, you want to export a Tagalog .mo file, you need to go to that specific Tagalog translation project [https://translate.wordpress.org/projects/wp/4.4.x/tl/default (example link)], go the the bottom, choose the '''Machine Object Message Catalog (.mo)''' from the dropdown and hit export
. The naming convention of the <tt>.mo</tt> files is based on the ISO-639 language code (e.g. ''pt'' for Portuguese) followed by the ISO-3166 country code (e.g. ''_PT'' for Portugal or ''_BR'' for Brazil). So, the Brazilian Portuguese file would be called <tt>pt_BR.mo</tt>, and a non-specific Portuges file would be called <tt>pt.mo</tt>. Complete lists of codes can be found at [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes (country codes)] and [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes (language codes)].

* On your site server, create a new folder in your <tt>/wp-content</tt> directory called <tt>/languages</tt>.

* On your site server, create a new folder in your <tt>/wp-content</tt> directory called <tt>/languages</tt>.

Line 39:

Line 39:

==== WordPress v4.0 and above ====

==== WordPress v4.0 and above ====

* Change the language in the admin settings screen. Settings > General > Site Language.

* Change the language in the admin settings screen. Settings > General > Site Language.

+

Note: In any case that the language that you need is not available in the above option, please refer to installing the language files manually.

==== WordPress v3.9.2 and below ====

==== WordPress v3.9.2 and below ====

Show more