Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Can't change language. Please help!
Avatar
Dragonleaf
Puerto Rico
Member
Free Members
sp_UserOfflineSmall Offline
Mar 24, 2014 - 11:55 am

Please help!

I downloaded the core and default theme .mo files and installed them in wp-content/sp-resources/forum-language/simple-press and wp-content/sp-resources/forum-language/sp-themes respectively. I rename both .mo files to sp-es and in wp-config.php I change the WP-Lang to define('WPLANG', 'es'); as follows: 

/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
* language support.
*/
define('WPLANG', 'es');

/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 24, 2014 - 12:52 pm

The core SP mo file is called sp-es.mo but the theme is not. You really can not rename these files from the way we supply them as it looks for the files by the name itself. You need to rename the theme mo file back.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dragonleaf
Puerto Rico
Member
Free Members
sp_UserOfflineSmall Offline
Mar 24, 2014 - 10:32 pm

Yellow Swordfish said
The core SP mo file is called sp-es.mo but the theme is not. You really can not rename these files from the way we supply them as it looks for the files by the name itself. You need to rename the theme mo file back.

I renamed the theme mo file back but didn't work. Do I need to delete the ".mo" extension from the file name or make any other adjustment to the define('WPLANG', 'es');?

 

Thanks for the help

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 25, 2014 - 5:20 am

OK - let us recap. Clearly wanting Spanish so defning your WPLANG as 'es' is correct.

Core Simple:Press:
In the /wp-content/sp-resources/forum-language/simple-press/ folder you place the file sp-es.mo which yopu have downloaded from our translation site. When downloaded this should already have the correct name. You will not notice too much form this file as most of the translations come form the theme but an easy way to test if it works is to open the About popup (from the 'i' next to the copyright notice in the footer). tested this morning and this is working fine for me.

Simple:Press Theme:
Assuming - for example - you are using the 'default' theme then you should have downloaded the spDefault-es.mo file which must be placed in the /wp-content/sp-resources/forum-language/sp-themes/ folder. This too works fine for me here in testing.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dragonleaf
Puerto Rico
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2014 - 7:56 am

I did exactly as you say, didn't work at all. I only want Spanish language for the users so I deleted the core mo file. I keep trying with the default theme Spanish mo file but nothing.

I notices that maybe the Language selection plugin is not working, it is active but the option do not display in the forum.

Uninstall/install again the laguage selection plug in and all my SimplePress settings chrashed. Now I cant see the plugins and there is no drop down menu for the forum settings, weird...

 

Please help

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 26, 2014 - 9:08 am

I really do not know what to say. I have literally just downloaded the latest .es MO files for the core and default themes - installed them - changed my WP config to 'es' and it all works exactly as it should.

It is definitely the MO files you have exported - yes? I can guarantee that at this moment in time there is nothing wrong with them.

And are you definitely using the spDefault SP theme? Not a custom version or anything?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dragonleaf
Puerto Rico
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2014 - 9:38 am

ISSUE RESOLVED! 

Files: spDefault-es.mo and spDefault-es.po

WPLANG must be: define('WPLANG', 'es_ES');

 

Rename the .mo file from spDefault-es.mo to spDefault-es_ES.mo and spDefault-es.po to spDefault-es_ES.po

Using the default theme did the following:

wp-content/sp-resources/forum-language/simple-press add the file spDefault-es.po

wp-content/sp-resources/forum-language/sp-plugins add the file spDefault-es.mo

wp-content/sp-resources/forum-language/sp-themes add the file spDefault-es.mo

It changed everything to Spanish and no issues with the settings display. the only issue is that language selector plugin do not work but this is not an problem for me.

Thanks for the help, I hope this became useful for anyone else if needed.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 26, 2014 - 9:50 am

Should not make any difference whatsoever. The important thing is that they match 'es' or 'es_ES' - they just need to be the same in both the WP_LANG setting and the MO file names.

What's more - from the purists angle - if you are a Spaniad living in Spain then es_ES is actually technically incorrect. Not that it matters...!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620