(2017-08-31, 06:05:08)Lucianp Wrote: I am trying to add a value into an html form <label> from /my_plugin/en_US/$i18n() .
Code:<label for=first_name> <?php i18n_r("FIRST_NAME"); ?></label>
I have [...] and
Code:add_action('theme-sidebar','createSideMenu',array($thisfile, i18n_r('my_plug/MY_SETTINGS')));
Thanks
Hi LucianP,
You're indeed staring at the answer. Notice that in the add_action call, you wrote i18n_r('my_plug/MY_SETTNGS') whereas in the form you didn't write the my_plug/ namespace. That's what you need .
As for file/folder structure, you mentioned "/my_plugin/en_US/$i18n()"? That should be /my_plugin/lang/en_US.php (where you define an $i18n = array()). Please refer to the WIKI 's Standard for file and folder creation for more info.