Blesta Addons Posted October 19, 2014 Report Share Posted October 19, 2014 the plugins link names in "plugin_actions" are not multilanguage in Table: plugin_actions . for example , if we install the support manager or client documents or any other plugin that add action , the action name is added to database with the language that has been installed with it . if the plugin installed in admin side in english , and the client has spanish or frensh language set , the link will be shown in english . this is not a bug , as the name set in the table plugin_actions already . what we need is improvement to how to get the action name . 1 - make action name inserted in array for every installed language. array( 'en_us' => "english name", 'fr_fr' => "french name", 'ar_sa' => "arabic name" ) the only probleme here is if we install new language in the system , it wil not have any entry for it . 2 - load the name from the language file if exist . make client or admin interface has mixed word in two different languages has no sense for me and for my clients . PauloV 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted October 19, 2014 Author Report Share Posted October 19, 2014 i have tough for a easy solution , what i have arrived , as we have already the plugin_id in this table , we can easy get the plugin directory .we should add a new language to the plugins , let say plugin_name.php .then load the file plugin/".$plugin_name."/language/".$client_languege."/plugin_name.php .the file plugin_name.php should only have the plugin name , description , and widget/actions names . PauloV 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.