Skip to content

Commit 3fcec0f

Browse files
committed
added _() to the list of default functions to scan
1 parent af1d1cf commit 3fcec0f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
Previous releases are documented in [github releases](https://github.com/oscarotero/Gettext/releases)
99

10+
## [5.4.0] - Unreleased
11+
### Added
12+
- Added `_` function to the list of functions scanned by default
13+
1014
## [5.3.0] - 2020-02-18
1115
### Added
1216
- `Comments::delete()` and `Flags::delete()` methods [#247]

src/Scanner/CodeScanner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ abstract class CodeScanner extends Scanner
1818

1919
protected $functions = [
2020
'gettext' => 'gettext',
21+
'_' => 'gettext',
2122
'__' => 'gettext',
2223
'ngettext' => 'ngettext',
2324
'n__' => 'ngettext',

0 commit comments

Comments
 (0)