Translation file for php files (.mo) breaks css
-
For aco-woo-dynamic-pricing.mo file backend.css does not load. Product List page (page=awdp_admin_product_lists#/) and Settings (page=awdp_ui_settings#/) has its css broken.
Translation works only for aco-woo-dynamic-pricing.json file without aco-woo-dynamic-pricing.mo that represents more than 90%. And this is good.
And in class-awdp-backend.php file there is an error near line 266, wrong path: $plugin_rel_path = (dirname($this->file)) . ‘/../../languages’; /* Relative to WP_PLUGIN_DIR */. This error prevents the translation from working. I’ve changed it to: $plugin_rel_path = plugin_dir_path(__FILE__) . ‘../languages/’; and works fine. Again, only for aco-woo-dynamic-pricing.json.- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Translation file for php files (.mo) breaks css’ is closed to new replies.