243 posts Premium Website Design
  • Has referred 1000+ members
  • Has sold $2M+ on Envato Market
  • Interviewed on an Envato blog
  • Has collected 10+ items on Envato Market
+3 more
ThemeFusion says

Hello folks,

I really need some help with making my theme show up on codestyling localization plugin. I have tried lots of stuff and there are no scripting guard errors but codestyling localization refuses to show up. If anyone has a checklist of some kind on making a theme work with codestyling localization, please post it here or send me an email.

I’d really appreciate some help.

Thanks!

1476 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
OriginalEXE says

Maybe this is the shot in the dark, I never used the plugin so I don’t know exact requirements, but do you have default .po and .mo files and localization folder specified in your theme?

115 posts WordPress Wizard
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
CODE9RS says

Hey Luke, send a mail for me, I can help you ;D

Waiting your message!

243 posts Premium Website Design
  • Has referred 1000+ members
  • Has sold $2M+ on Envato Market
  • Interviewed on an Envato blog
  • Has collected 10+ items on Envato Market
+3 more
ThemeFusion says

Maybe this is the shot in the dark, I never used the plugin so I don’t know exact requirements, but do you have default .po and .mo files and localization folder specified in your theme?

Yep, po and mo file is in place in the languages folder with the load_theme_textdomain specified properly to that folder.

@RDever, just sent an email to you. I really appreciate all the help.

-M

115 posts WordPress Wizard
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
CODE9RS says

Replied.

Waiting your reply ;D

1081 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Has referred 500+ members
+9 more
damojo says

This might help:

load_theme_textdomain( 'yourtextdomain', TEMPLATEPATH.'/lang' );
$locale = get_locale();
$locale_file = TEMPLATEPATH."/lang/$locale.php";
if ( is_readable($locale_file) ) 
require_once($locale_file);
3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

Once I was adding the define code in the functions.php file, not in the main config.cfg file. This thing:

define('WPLANG', 'en_EN');

lots of head smashing :P
by
by
by
by
by
by