I’m building a WP site for a Spanish company, and I want to change the language of the site (not the admin area’s language).
All the posts and the things that I put in the site are in Spanish, since I created them, but the default texts of the theme are in English (for instance, the string “search” inside the search box).
When I’m trying to change the language through Settings -> General -> Site language to “Español”, it changes. But after I refresh the page it returns to “en_US” again, and in the bottom it says:
Note: The WPLANG constant in your wp-config.php file is no longer needed.
I did change the WPLANG
in wp-confing.php
to define('WPLANG','es_ES')
, doesn’t seem to help.
I am not sure if you have put the language files in the right place.
So, first you need to download spanish language files, you can find here
and then put them into /wp-content/langauges folder, if no, create it.
you can find full tutorial here
First, you have to download spanish version.
All files of wordpress system will translate to Spanish, BUT, some words of your current theme installed maybe are in english, you’ll translate it.
In
search.php
you will find the input box, where you will change the word “Search..” this are in Apparence (Apariencia) -> Editor (Editor)First, make sure the theme you are using is multi-language.
If no:
You need to translate the theme files located in
wp-content/themes/
-EDIT:
You need to download the correct theme to your computer and manually edit the files within the theme folder, then upload it again.
Basically just go trough the theme code and replace the english text you see, for example “next post”/”previous post” to the correct sentence in Spanish in your case.
Just make sure to not edit anything you don’t understand 🙂
Give me a shout if you need more help 🙂