Support General meta-box in the "themes folder" language settings Reply To: meta-box in the "themes folder" language settings

#9266
Teia Local StudioTeia Local Studio
Participant

Hello, Ahn!

Sorry for bumping a old topic, but instead of opening a new one with same content, I thought it could be smart to write here.

YES.
I have the same problem when including it from a "plugins" folder INSIDE my theme.

To fix it, in CORE.PHP I need to change from:
load_plugin_textdomain( 'meta-box', false, plugin_basename( RWMB_DIR ) . '/languages/' );

To:
load_textdomain( 'meta-box', plugin_basename( RWMB_DIR ) . '/languages/meta-box-'.get_locale().'.mo' );

So, every time I update the Meta Box plugin, I need to fix this again.
Any ideas?

Thanks, Ahn!
G.


EDIT:


Whoooops... Just saw now this topic was posted on MB-USER-META.
I was referring to the root META-BOX plugin.