Skip to content

Commit

Permalink
Added support for translations
Browse files Browse the repository at this point in the history
Includes:
- Default (en_US)
- Portuguese Brazil (pt_BR)
  • Loading branch information
Filipe F. Kalicki committed Aug 15, 2014
1 parent bf3b3a6 commit 0deb3ba
Show file tree
Hide file tree
Showing 5 changed files with 864 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
if ( ! defined( 'CMB_META_BOX_URL' ) )
define( 'CMB_META_BOX_URL', cmb_Meta_Box::get_meta_box_url() );

// Load translation
load_textdomain( 'cmb', trailingslashit( dirname(__FILE__) . '/lang' ) . get_locale() . '.mo' );

$meta_boxes = array();
$meta_boxes = apply_filters( 'cmb_meta_boxes', $meta_boxes );
foreach ( $meta_boxes as $meta_box ) {
Expand Down
Binary file added lang/default.mo
Binary file not shown.
Loading

0 comments on commit 0deb3ba

Please # to comment.