Localization

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Wed Feb 20, 2013 5:32 pm
I need to translate the theme.

I executed all these

1. go to the template directory and run this command:

find . -iname "*.php" > files.tmp


2. After that run following command:

xgettext --language=PHP --indent --keyword=__ --keyword=_e --keyword=_ngettext:1,2 -s -n --from-code=UTF8 -f files.tmp


3. Remember to replace all special chars to entities!

4. You should get an *.po file which can be translated and changed to the *.mo file used in Wordpress


But now where I have to put the .mo file and which name I have to give to make it work?
User avatar
Fresh Boarder

GK User
Wed Feb 20, 2013 8:33 pm
Hi,

Please rename this *.mo file to YOUR_LANGUAGE_CODE.mo and place in the language directory i.e. for polish it will be: pl_PL.mo remember also to put in the language directory the *.po file with the same name.
User avatar
Administrator

GK User
Fri Feb 22, 2013 4:58 pm
Hi dziudek.

The file goes in the Fest/languages folder or in the Wp Languages folder?

I already put the 2 files in the Fest/languages folder but nothing happen.
User avatar
Fresh Boarder

GK User
Fri Feb 22, 2013 8:17 pm
Did you changed the WP_LANG constant in the wp-config.php file?
User avatar
Administrator

GK User
Mon Mar 04, 2013 2:17 pm
Obviously yes :D
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 9:15 pm
In this case, please send me an FTP access to your website using the PM message, then I'll check it.
User avatar
Administrator


cron