Add support for multiples wordpress languages
Hi, it would be great to be able to install wordpress in multiples languages by setting the option on the ee config file.
@willmkt nice suggestion.
Can you please point to a resource where manual instructions for intended output are given? We will try to automate it.
I mean put an option on the wordpress installation for language.
Example:
wordpress languague default(en):
if i insert BR it will download wordpress from the brazilian repo or change the wp-config to pt_br
Just an update - WordPress 4.0 added language change option in UI.
By the way, if you like to send pull request, we can merge it.
WP-CLI has support for locale http://wp-cli.org/commands/core/download/
Could you add switch for choice language by installation of wp?
Example: --lang=cs_CZ
@rahul286 @gau1991 I'll fix this issue and learn some python code hacks.
@MiteshShah Actually I am planning to support all wp-cli option.
Say when a user enters ee site --create example.com --wp then he can enter additional parameters like ee site --create example.com --wp --wp-cli-lang=cs_CZ
Idea is every --wp-cli-* will be passed directly to wp-cli. That way we can support most wp-cli options without much coding efforts.
If not all wp-cli options makes sense, then we can narrow down options like --lang and just pass them to wp-cli.
:+1: Nice idea
:+1: I need also specify version...
:+1: That would be great.
+1 from me! :)
+1
+1
+1
Also add default language in ee.conf
+1
what if that could be defined in a ee config file, or we can add wp-cli commands as post-creation commands...?
This has been taken care of in https://github.com/EasyEngine/easyengine/issues/1029 (v4 beta).
You can now pass --locale=<locale> argument while site-creation along with multiple other wp-cli parameters to customize your WordPress installation according to your needs.
Also, @willmkt @gresakg @christoferw the default language for WordPress installation can now be set in the config file located at /opt/easyengine/config.yml.
You just need to change the locale in the file to the language you want. It is by default en_US and looks as shown below in the file.
locale: en_US
The preference for language selection is as follows:
--locale parameter during site creation (if passed) > config file.