Index: Gruntfile.js
===================================================================
--- Gruntfile.js	(revision 5286)
+++ Gruntfile.js	(working copy)
@@ -213,6 +213,28 @@
 				args: ['-c', 'tests/phpunit/multisite.xml']
 			}
 		},
+		pot:{
+			options: {
+				text_domain: 'bbpress',
+				package_name: 'bbpress',
+				dest: BUILD_DIR,
+				keywords: [
+					'__',
+					'_e',
+					'esc_attr__',
+					'esc_attr_e',
+					'esc_attr_x',
+					'esc_html__',
+					'esc_html_e',
+					'esc_html_x',
+					'_nx_noop',
+				]
+			},
+			files: {
+				src:  SOURCE_DIR + '**/*.php' ,
+				expand: true
+			}
+		},
 		jsvalidate:{
 			options:{
 				globals: {},
@@ -262,8 +284,8 @@
 	grunt.registerTask('colors', ['sass:colors']);
 
 	// Build tasks.
-	grunt.registerTask( 'build',         [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build' ] );
-	grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'phpunit:all' ] );
+	grunt.registerTask( 'build',         [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'pot' ] );
+	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:all' ] );
 
 	// Testing tasks.
 	grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() {
Index: package.json
===================================================================
--- package.json	(revision 5286)
+++ package.json	(working copy)
@@ -16,6 +16,7 @@
     "grunt-sass": "~0.10.0",
     "grunt-phpunit": "~0.3.2",
     "grunt-jsvalidate": "~0.2.2",
+    "grunt-pot": "~0.1.1",
     "matchdep": "~0.3.0",
     "grunt-exec": "~0.4.3"
   },
