Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35499 closed enhancement (fixed)

Add the ability to parse a whole directory with add-textdomain.php

Reported by: iamntz Owned by: ocean90
Priority: normal Milestone: WordPress.org
Component: I18N Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Just like the title says: currently the add-textdomain.php tool doesn't allows anything but single files. This patch will detect if the passed argument is either a file or a directory and it will act accordingly.

Attachments (1)

add-textdomain.php.patch​ (677 bytes ) - added by iamntz 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @johnbillion
11 years ago

  • Component I18N → Build/Test Tools
  • Keywords has-patch needs-testing added
  • Milestone Awaiting Review → Future Release
  • Version trunk

#2 @jorbin
11 years ago

@nbachiyski and @ocean90 as the resident Internationalization specialists, can you take a look at this?

#3 @ocean90
11 years ago

  • Owner set to ocean90
  • Resolution → fixed
  • Status new → closed

In 36600:

i18n-tools: Add the ability to parse a whole directory with add-textdomain.php.

Props iamntz.
Fixes #35499.

#4 @ocean90
11 years ago

  • Keywords needs-testing removed
  • Milestone Future Release → WordPress.org

Thanks @iamntz. Adjusted the code a bit because SplFileInfo (​http://php.net/manual/en/class.splfileinfo.php) includes the extension already. Take also a look at our ​coding standards.

#5 @ocean90
11 years ago

  • Component Build/Test Tools → I18N
Note: See TracTickets for help on using tickets.