Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a spanish wordpress blog. after upgdaring centos 5.7 to 5.8 the language changed to english . how can I recover it to spanish ?

share|improve this question

1 Answer 1

The WordPress locale depends on the WPLANG flag, this is found in your wp-config.php file, try to check there, that it's indeed set to Spanish.

WordPress does not try to get the system locale in any way, and depends on either the WPLANG option or definition as stated above. However, there is a locale filter that can be hooked to by other plugins which can set locale based on system locale. Search throughout your codebase for hooks to 'locale' to identify whether any plugin hijacked the locale or not. Alternatively disable all plugins and check again.

grep -rni 'add_filter' * | grep -rni 'locale' --color

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.