|
@@ -12,14 +12,14 @@ |
|
|
block discarded – undo |
|
12
|
12
|
use Efabrica\TranslationsAutomatization\TokenModifier\PrefixTranslationKeyTokenModifier; |
|
13
|
13
|
use Efabrica\TranslationsAutomatization\TranslationFinder; |
|
14
|
14
|
|
|
15
|
|
-require_once __DIR__ . '/../vendor/autoload.php'; |
|
|
15
|
+require_once __DIR__.'/../vendor/autoload.php'; |
|
16
|
16
|
|
|
17
|
17
|
$basePath = rtrim($argv[1] ?? __DIR__, '/'); |
|
18
|
18
|
|
|
19
|
|
-$saver = new OneFileTranslationSaver($basePath . '/app/lang/dictionary.sk_SK.neon'); |
|
|
19
|
+$saver = new OneFileTranslationSaver($basePath.'/app/lang/dictionary.sk_SK.neon'); |
|
20
|
20
|
$translationFinder = new TranslationFinder($saver); |
|
21
|
21
|
|
|
22
|
|
-$fileFinder = new FileFinder([$basePath . '/app'], ['latte']); |
|
|
22
|
+$fileFinder = new FileFinder([$basePath.'/app'], ['latte']); |
|
23
|
23
|
|
|
24
|
24
|
$textFinder = new RegexTextFinder(); |
|
25
|
25
|
$textFinder->addPattern('/\>([\p{L}\s\.\,\!\?\/\_\-]+)\</siu'); |
Please login to merge, or discard this patch.