[RCD] Help with Plugin Translation

Brendan brendan at tucows.com
Mon Sep 26 22:00:00 CEST 2016


>>     My function is:
>> function action_pending(){
>>     global $color;
>>     $rcmail = rcmail::get_instance();
>>     //$rcmail->output->show_message('pending');
>>
>>     $plugin_tmdatools_tmdadir =
>> $rcmail->config->get('plugin_tmdatools_tmdadir');
>>     $plugin_tmdatools_tmdasettings =
>> $rcmail->config->get('plugin_tmdatools_tmdasettings');
>>     $show_num = $rcmail->config->get('plugin_tmdatools_showPageNum');
>>
>> }
> 
> You can find your answer in the plugin API docs:
> https://github.com/roundcube/roundcubemail/wiki/Plugin-API#internationalization

i think he's running into an issue where $this doesn't have the context
he needs inside his sub.

aureleo - what is calling action_pending()? an ajax request? some other
sub elsewhere?


More information about the dev mailing list