-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from briedis/multiple-domain-scan
Multiple domain scan
- Loading branch information
Showing
18 changed files
with
524 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
language: php | ||
sudo: false | ||
dist: trusty | ||
|
||
env: | ||
- COMPOSER_DISABLE_XDEBUG_WARN=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Gettext\Extractors; | ||
|
||
use Gettext\Translations; | ||
|
||
interface ExtractorMultiInterface | ||
{ | ||
/** | ||
* Parses a string and append the translations found in the Translations instance. | ||
* Allows scanning for multiple domains at a time (each Translation has to have a different domain) | ||
* | ||
* @param string $string | ||
* @param Translations[] $translations | ||
* @param array $options | ||
*/ | ||
public static function fromStringMultiple($string, array $translations, array $options = []); | ||
|
||
/** | ||
* Parses a string and append the translations found in the Translations instance. | ||
* Allows scanning for multiple domains at a time (each Translation has to have a different domain) | ||
* | ||
* @param $file | ||
* @param Translations[] $translations | ||
* @param array $options | ||
*/ | ||
public static function fromFileMultiple($file, array $translations, array $options = []); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.