Skip to:
Content

bbPress.org

Changeset 5290


Ignore:
Timestamp:
02/19/2014 05:45:11 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Experiment with grunt-pot:

  • Add grunt-pot to package.json
  • Adds grunt task pot to grunt build and grunt build-release
  • Creates bbpress.pot in /build & removes bbpress.pot from /src
  • Checks for the following keywords: __, _e, _x, _n, _ex, _nx, esc_attr__, esc_attr_e, esc_attr_x, esc_html__, esc_html_e, esc_html_x, _nx_noop
  • Props netweb. See #2542.
Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r5287 r5290  
    214214            }
    215215        },
     216        pot:{
     217            options: {
     218                text_domain: 'bbpress',
     219                package_name: 'bbpress',
     220                dest: BUILD_DIR,
     221                keywords: [
     222                    '__',
     223                    '_e',
     224                    '_x',
     225                    '_n',
     226                    '_ex',
     227                    '_nx',
     228                    'esc_attr__',
     229                    'esc_attr_e',
     230                    'esc_attr_x',
     231                    'esc_html__',
     232                    'esc_html_e',
     233                    'esc_html_x',
     234                    '_nx_noop'
     235                ]
     236            },
     237            files: {
     238                src:  SOURCE_DIR + '**/*.php' ,
     239                expand: true
     240            }
     241        },
    216242        jsvalidate:{
    217243            options:{
     
    263289
    264290    // Build tasks.
    265     grunt.registerTask( 'build',         [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build' ] );
    266     grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'phpunit' ] );
     291    grunt.registerTask( 'build',         [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'pot' ] );
     292    grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'pot', 'phpunit' ] );
    267293
    268294    // Testing tasks.
  • trunk/package.json

    r5285 r5290  
    1717    "grunt-phpunit": "~0.3.2",
    1818    "grunt-jsvalidate": "~0.2.2",
     19    "grunt-pot": "~0.1.2",
    1920    "matchdep": "~0.3.0",
    2021    "grunt-exec": "~0.4.3"
Note: See TracChangeset for help on using the changeset viewer.