Title: Make the l10n plugins enabled by default
Author: Jiehan Zheng
Published: November 5, 2011

---

 [  ](https://profiles.wordpress.org/jiehanzheng/) [Jiehan Zheng](https://profiles.wordpress.org/jiehanzheng/)
1:51 am _on_ November 5, 2011     
Tags: [request ( 1,484 )](https://make.wordpress.org/polyglots/tag/request/),
[zh_CN ( 552 )](https://make.wordpress.org/polyglots/teams/?locale=zh_CN)   

# Make the l10n plugins enabled by default

Upon the suggestion, I’ve just re-written the three features (Chinese video embedding,
Dashboard style modification, and Asian character count fix) in `/wp-content/languages/
zh_CN.php` into three separate plugins. I want them to be enabled by default after
installation. To make zh_CN.php more efficient, instead of checking pluginPlugin
A plugin is a piece of software containing a group of functions that can be added
to a WordPress website. They can extend functionality or add new features to your
WordPress websites. WordPress plugins are written in the PHP programming language
and integrate seamlessly with WordPress. These can be free in the WordPress.org 
Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. state each time zh_CN.php is required
in `wp-settings.php`, **I want to request for an action hook that will run after
initial WordPress installation and each coreCore Core is the set of software required
to run WordPress. The Core Development Team builds WordPress. update.**

That way I can hook to the “install finished” action and enable the l10nLocalization
Localization (sometimes shortened to "**l10n**") is the process of adapting a product
or service to a particular language, culture, and desired local "look-and-feel."
plugins. The reason why I want an “core updated” hook is that I want to make new
l10n plugins we publish in the future be enabled automatically, as well. In zh_CN.
php, I will of course use `add_option()` and `get_option()` to check if the plugins
were disabled by the user manually before so it won’t be re-enabled automatically
again.

If there’s a better way or guideline for such situation, please let me know. Thank
you.

[#request](https://make.wordpress.org/polyglots/tag/request/), [#zh_cn](https://make.wordpress.org/polyglots/teams/?locale=zh_CN)

### Share this:

 * [  Threads ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=threads)
 * [  Bluesky ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=bluesky)
 * [  Facebook ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=facebook)
 * [  X ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=x)
 * [  Mastodon ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=mastodon)
 * [  WhatsApp ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=jetpack-whatsapp)
 * [  LinkedIn ](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?share=linkedin)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fpolyglots%2F2011%2F11%2F05%2Fmake-the-l10n-plugins-enabled-by-default%2F%23respond&locale=en_US)

 * [To-do](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?output_format=md#)

 1. ![](https://secure.gravatar.com/avatar/34368b9c92a4bfa3bd2a84a222147375526d5ccfbbb3afe32abfbd1bc37f5b58?
    s=32&d=mm&r=g)
 2.  [Peter Westwood](http://westi.wordpress.com/)  9:11 am _on_ November 5, 2011
 3. I’m not sure that the i18nInternationalization Internationalization (sometimes 
    shortened to **I18N** , meaning “I - eighteen letters -N”) is the process of planning
    and implementing products and services so that they can easily be adapted to specific
    local languages and cultures, a process called localization. This is the process
    of making software translatable. Information about Internationalization for developers
    can be found in the [Developer’s handbooks](https://developer.wordpress.org/). 
    builds should be bundling lots of extra plugins.
 4. The character count fix should be in the zn_CN.php file until it makes it into 
    coreCore Core is the set of software required to run WordPress. The Core Development
    Team builds WordPress. (There is a tracTrac Trac is the place where contributors
    create issues for bugs or feature requests much like GitHub.[https://core.trac.wordpress.org/](https://core.trac.wordpress.org/).
    ticket for it right?) as should the style modifications (I assume these are to 
    pick a more appropriate font?)
 5. What is the video embedding change you are including?
 6.  * ![](https://secure.gravatar.com/avatar/1a7df76f4f6519a5618c32428b277a5c7a89798394965b67e50528ca57c1b5a8?
       s=32&d=mm&r=g)
     *  [Andrew Nacin](http://wpdevel.wordpress.com)  1:05 pm _on_ November 5, 2011
     * I agree with Peter. Ideally, the only files that are included in dist are po/
       moMO files MO, or Machine Object is a binary data file that contains object 
       data referenced by a program. It is typically used to translate program code,
       and may be loaded or imported into the GNU gettext program. This is the format
       used in a WordPress install. These files are normally located inside .../wp-
       content/languages/, $locale.php, setup-config, and config-sample. Let’s work
       to keep them limited rather than adding more.
        - ![](https://secure.gravatar.com/avatar/a65f734aa3961c5089f6dba21b3ce64362b3e6681e607ff55cc08fd91763edd9?
          s=32&d=mm&r=g)
        -  [jiehanzheng](http://jiehan.org)  4:56 pm _on_ November 5, 2011
        - Okay. Sure it works for me. But I see some conflicts in the suggestions I
          received from other team members and l10nLocalization Localization (sometimes
          shortened to "**l10n**") is the process of adapting a product or service 
          to a particular language, culture, and desired local "look-and-feel." site
          maintainers. [http://wppolyglots.wordpress.com/2011/10/15/regarding-the-word-count-problem/](http://wppolyglots.wordpress.com/2011/10/15/regarding-the-word-count-problem/)
        - To achieve the character count function, I need to include and register a
          new `word-count.js` file. Just to confirm: If the pluginPlugin A plugin is
          a piece of software containing a group of functions that can be added to 
          a WordPress website. They can extend functionality or add new features to
          your WordPress websites. WordPress plugins are written in the PHP programming
          language and integrate seamlessly with WordPress. These can be free in the
          WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
          or can be cost-based plugin from a third-party. solution is impossible, is
          it okay to put a `zh_CN-word-count.js` and `zh_CN-word-count.dev.js` under`
          languages/`?

### Leave a Reply 󠀁[Cancel reply](https://make.wordpress.org/polyglots/2011/11/05/make-the-l10n-plugins-enabled-by-default/?output_format=md#respond)󠁿

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fpolyglots%2F2011%2F11%2F05%2Fmake-the-l10n-plugins-enabled-by-default%2F&locale=en_US)
to post a comment.

# Post navigation

[← Quiero traducir algunas paginas de la Documentacion para…](https://make.wordpress.org/polyglots/2011/11/04/quiero-traducir-algunas-paginas-de-la-documentacion-para/)

[Hi Zé since wordpress for android is 100%… →](https://make.wordpress.org/polyglots/2011/11/05/hi-ze-since-wordpress-for-android-is-100/)