- Updated the node-wp-i18n dependency to 1.2.2 to fix an issue with
updateTimestamp: false
. See #76
- Updated the node-wp-i18n dependency to version 1.0.5 to prevent deprecated notices in PHP 7.2+. See #75
- Updated npm dependencies.
- Abstracted the core functionality into node-wp-i18n and simplified the Grunt tasks.
- Dropped support for using a custom path for the WP i18n PHP tools.
- Updated PHP4-style constructors in the PHP library. Props @andyreg
- Updated peer dependencies to support Grunt 1.0. See #65
- Fixed the
--dry-run
option when running theaddtextdomain
task. See #54 - Updated
msgid-bugs-address
URLs to HTTPS. Props @ntwp - Fixed regex to update multiple
X-Poedit-SearchPath
andX-Poedit-SearchPathExcluded
headers. Props @walbo
- Stopped the PHP script from scanning files in excluded directories when running the makepot task. See #52
- Merged upstream changes to provide better support for multiline translators comments. Props @ntwp
- Added tasks descriptions. Props @shivapoudel
- Made POT header keys case-insenstive.
- Added msgmerge support to the makepot task for updating PO files. Props @atimmer
- Pulled in upstream changes to WP i18n tools.
- Allow
updateDomains: true
in the addtextdomain task to update all text domains in a project. - Simplified makepot task output.
- Fixed a bug causing the
addtextdomain
task to finish early.
- Introduced the
potHeaders.poedit
andpotHeaders['x-poedit-keywordslist']
options to include common Poedit headers. Props @defries & @GaryJones. - Fixed capitalization of the
X-Poedit-SearchPathExcluded-0
header. Props @GaryJones. - Added a
--dry-run
switch to theaddtextdomain
task to view replacements in stdout instead of updating files.
- Added an
includes
option for themakepot
task to specify which files should be scanned. Props @claudiosmweb. - Added an
updateDomains
option for theaddtextdomain
task to allow a list of specified text domains to be replaced with a new text domain.
- Fixed an issue with replacing comment headers when using external i18n tools.
- Introduced the
potHeaders
option for defining headers without using theprocessPot
callback. - Added an X-Generator header.
- Added a method to fix case-sensitive Poedit headers.
- Changed
date()
calls togmdate()
in the PHP tools to prevent error messages when date.timezone isn't set in php.ini.
- Added the
potComments
option to change the copyright message. - Added the
updateTimestamp
option to prevent thePOT-Creation-Header
from being updated if there aren't any other changes in the POT file. - Updated the addtextdomain task to adhere to the WordPress coding standards when inserting a text domain. Props @GaryJones.
- Re-tag updates from 0.4.2 that didn't get added to the release.
- Added the
processPot
option to specify a callback for advanced manipulation of the POT file after it's been generated.
- Cleaned up strict errors and applied basic coding standards to the WP i18n tools. Props @grappler.
- Incorporated upstream improvements for finding the main plugin file.
- Added an
exclude
option to ignore strings in specified directories or files. - Set the current working directory based on the
cwd
option. All options should be relative tocwd
. - Fixed the searching process in
wordpress.getMainFile()
if the standard main file can't be found. - Attempt to prevent an error in the CLI tools if the main plugin file name doesn't match the guessed slug.
- Added some basic tests.
- Fixed a bug where the text domain wasn't properly guessed in subdirectories if the Text Domain header didn't exist.
- Moved all the makepot functionality into a single task.
- Added the
addtextdomain
task.
- Forked and bundled the WordPress i18n tools so they no longer need to be downloaded separately.
- Removed the gettext dependency by relying on the gettext-parser package to remove duplicate strings in POT files.
- Fixed the wp.slugify() method to properly guess the project slug when in an SVN repo.
- Initial release.