easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Add support for multiples wordpress languages

Open willmkt opened this issue 12 years ago • 18 comments

Hi, it would be great to be able to install wordpress in multiples languages by setting the option on the ee config file.

willmkt avatar Feb 06 '14 13:02 willmkt

@willmkt nice suggestion.

Can you please point to a resource where manual instructions for intended output are given? We will try to automate it.

rahul286 avatar Feb 06 '14 14:02 rahul286

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

willmkt avatar Feb 11 '14 20:02 willmkt

Just an update - WordPress 4.0 added language change option in UI.

rahul286 avatar Mar 17 '15 14:03 rahul286

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/

rahul286 avatar Mar 17 '15 14:03 rahul286

Could you add switch for choice language by installation of wp?

Example: --lang=cs_CZ

JosefJezek avatar Apr 28 '15 08:04 JosefJezek

@rahul286 @gau1991 I'll fix this issue and learn some python code hacks.

MiteshShah avatar Apr 28 '15 16:04 MiteshShah

@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.

rahul286 avatar Apr 28 '15 16:04 rahul286

:+1: Nice idea

MiteshShah avatar Apr 29 '15 05:04 MiteshShah

:+1: I need also specify version...

JosefJezek avatar Apr 29 '15 10:04 JosefJezek

:+1: That would be great.

katzkawai avatar Apr 30 '15 04:04 katzkawai

+1 from me! :)

ingobaab avatar Jul 24 '15 19:07 ingobaab

+1

hamidfzm avatar Aug 03 '15 19:08 hamidfzm

+1

alexkappel avatar Sep 07 '15 12:09 alexkappel

+1

gresakg avatar Sep 24 '15 11:09 gresakg

Also add default language in ee.conf

gresakg avatar Sep 24 '15 11:09 gresakg

+1

christoferw avatar Jan 25 '16 14:01 christoferw

what if that could be defined in a ee config file, or we can add wp-cli commands as post-creation commands...?

christoferw avatar Jan 25 '16 14:01 christoferw

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.

mrrobot47 avatar Jun 29 '18 07:06 mrrobot47