#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)
Change History (6)
#1
@
11 years ago
- Component I18N → Build/Test Tools
- Keywords has-patch needs-testing added
- Milestone Awaiting Review → Future Release
- Version trunk
#4
@
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@nbachiyski and @ocean90 as the resident Internationalization specialists, can you take a look at this?