You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.mo files are created in the languages/wpml directory
Actual behavior
.mo files are created in a languages/wpml/wpml directory
Steps to reproduce the problem
Following the docs results in the creation of a wpml directoryinside the wpml directory, and an unhappy website. define( 'WP_LANG_DIR','/files/languages/wpml' );
Suggested Resolution
Looking at the existing directorystructure that the plugin has created, suggests that the correct setting would be: define( 'WP_LANG_DIR','/files/languages' );
Additional information
Is it also worth noting in the docs that, when connecting using SFTP via the Windows 11 Terminal, you can use ln -s uploads/languages languages to create the necessary symlink, assuming you're in the /code/wp-content directory?
The text was updated successfully, but these errors were encountered:
That makes sense, thank you for reporting. We will update the path to avoid languages/wpml/wpm
Setting WP_LANG_DIR to this path instead: $_SERVER['HOME'] .'/files/languages'
Related: Our solution for issue 3 calls for a symlink AND switching the WP_LANG_DIR constant to a writeable path, but I think only one is needed to solve the issue - not both. See also: WPML recommendations
I think we should delete symlink suggestion and just recommend updating WP_LANG_DIR to a writeable path - @jazzsequence can you weight in?
@stevector do either of you have a WPML license we can use to validate the above?
@TonyKnibb-MakaraHealth if you have interest and time to help us validate the above, please do and let us know your results. We'll work on this issue either way 🙂 Thanks for reporting
I think these docs are incorrect: https://docs.pantheon.io/plugins-known-issues#wpml---the-wordpress-multilingual-plugin
Expected behavior
.mo files are created in the
languages/wpml
directoryActual behavior
.mo files are created in a
languages/wpml/wpml
directorySteps to reproduce the problem
Following the docs results in the creation of a
wpml
directoryinside thewpml
directory, and an unhappy website.define( 'WP_LANG_DIR','/files/languages/wpml' );
Suggested Resolution
Looking at the existing directorystructure that the plugin has created, suggests that the correct setting would be:
define( 'WP_LANG_DIR','/files/languages' );
Additional information
Is it also worth noting in the docs that, when connecting using SFTP via the Windows 11 Terminal, you can use
ln -s uploads/languages languages
to create the necessary symlink, assuming you're in the/code/wp-content
directory?The text was updated successfully, but these errors were encountered: