Language file not being read
Tell ya what, I'm well fed up of spending my life in these forums since installing Vantage!
Anyway, current problem is that I just followed the advice about creating a language file and uploaded vantage-en_US.mo to
wp-content/languages//themes/vantage-en_US.mo
Problem is, it doesn't get read by /framework/kernel/functions.php
Code:
function appthemes_load_textdomain() {
$locale = apply_filters( 'theme_locale', get_locale(), APP_TD );
$base = basename( get_template_directory() );
load_textdomain( APP_TD, WP_LANG_DIR . "/themes/$base-$locale.mo" );
}
If I change the above to
Code:
function appthemes_load_textdomain() {
$locale = apply_filters( 'theme_locale', get_locale(), APP_TD );
$base = basename( get_template_directory() );
load_textdomain( APP_TD, WP_LANG_DIR . "/themes/vantage-en_US.mo" );
}
it works and my text modifications display so the language file obviously works.
Any help with this so I don't end up losing the language file link in the code next time I do an update?
Thanks
Martin
Last edited by martinkoss; October 10th, 2013 at 04:12 PM.
Reason: highlighted code edit