-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this the correct path for translations? #590
Comments
Hi DAnn2012, Code handle load textdomain of LP is correct. Not like you recomment. Because LP not provide file .mo, only file .po. To The system of Wordpress handle to create file .mo for when you choose a language. You can read code of Woocomerce too. Thanks. |
Hi tungnxt89, Thank you for your reply and explanation. But I noticed that recently the WooCommerce code was updated and it has both (and it loads them if there is a custom translation): woocommerce/woocommerce@9f9c427 Thanks. |
Hi DAnn2012, Thank you for your infomation, we'll check it. Thanks. |
Hi DAnn2012, If on method load_plugin_text_domain, we run only: About Woo, woocommerce/woocommerce@9f9c427. Currently, this code not apply for release version. And don't understand why need to write it, we think Wodpress have code to do that. Thanks. |
Hi @tungnxt89 I did some tests. Currently LearnPress first searches for the file with the translation in the custom path, for example " If instead in the code you insert both " Thanks. |
Hello.
Is this the correct path for the
.mo
files with the translations?learnpress/learnpress.php
Line 750 in 52938dc
Should the correct path be
WP_LANG_DIR . '/plugins/learnpress-' . $locale . '.mo'
or not?Thanks.
The text was updated successfully, but these errors were encountered: