sh 本地化WordPress主题和插件(https://github.com/Phoenix2k/wp-theme-localization)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 本地化WordPress主题和插件(https://github.com/Phoenix2k/wp-theme-localization)相关的知识,希望对你有一定的参考价值。

// To start Grunt, open a new terminal window and type the following in the project folder:
//
$ grunt

// After the theme-name.pot file has been generated, 
// you can start creating copies and rename them as {lang}.po or {lang}_{COUNTRY}.po. 
// Avoid using .pot as the extension.
// Open Gruntfile.js and configure the paths to your theme folder:

data: {
    config: {
        theme: {
            php_files   : 'path-to-your-theme',
            lang_files  : 'path-to-your-theme/languages',
            text_domain : 'theme-name'
        }
    }
},

// <?php _ex( 'Posted on %s', 'Post date', 'theme-name' ); ?>
#To create a local copy of the project, go to a preferred location and type:
#
$ git clone https://github.com/Phoenix2k/wp-theme-localization.git

#To install all the required node modules, go to the project folder and type:
#
$ npm install

以上是关于sh 本地化WordPress主题和插件(https://github.com/Phoenix2k/wp-theme-localization)的主要内容,如果未能解决你的问题,请参考以下文章

wordpress主题无法安装怎么办

WordPress精美主题与强大功能插件推荐

WordPress精美主题与强大功能插件推荐

wordpress 插件适用于本地主机,但不适用于远程服务器

WP安装后,添加插件和主题都不能正常安装——无法创建目录,请问是啥原因,要如何解决?

wordpress主题无法安装怎么办