Skip to content

Commit

Permalink
Place the correct load_theme_textdomain call after theme setup
Browse files Browse the repository at this point in the history
Per http://codex.wordpress.org/Function_Reference/load_theme_textdomain:

- If languages reside in the '/lang' folder, load them from there.
- Move the loading to after_theme_setup
  • Loading branch information
zedejose committed Nov 8, 2012
1 parent e5e25bc commit cdc3ebc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions functions.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
if ( ! isset( $content_width ) ) if ( ! isset( $content_width ) )
$content_width = 770; /* pixels */ $content_width = 770; /* pixels */


/**
* Declaring the theme language domain
*/
load_theme_textdomain('bootstrapwp');

/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------
| Setup Theme | Setup Theme
Expand All @@ -45,6 +40,10 @@ function bootstrapwp_theme_setup() {
'main-menu' => __( 'Main Menu', 'bootstrapwp' ), 'main-menu' => __( 'Main Menu', 'bootstrapwp' ),
) ); ) );
add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery', 'link', 'quote', 'status', 'video', 'audio', 'chat' ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery', 'link', 'quote', 'status', 'video', 'audio', 'chat' ) );
/**
* Declaring the theme language domain
*/
load_theme_textdomain('bootstrapwp', get_template_directory() . '/lang');
} }
endif; endif;


Expand Down

0 comments on commit cdc3ebc

Please sign in to comment.