@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Nexendrie\Translation\Bridges\NetteApplication; |
| 3 | 3 | |
| 4 | -use Nexendrie\Translation\Resolvers\ILocaleResolver, |
|
| 5 | - Nette\Application\Application, |
|
| 6 | - Nette\Application\Request; |
|
| 4 | +use Nexendrie\Translation\Resolvers\ILocaleResolver; |
|
| 5 | +use Nette\Application\Application; |
|
| 6 | +use Nette\Application\Request; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * IAppRequestAwareLocaleResolver |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Bridges\NetteApplication; |
| 5 | 5 | |
| 6 | -use Nette\Application\Application, |
|
| 7 | - Nette\Application\Request; |
|
| 6 | +use Nette\Application\Application; |
|
| 7 | +use Nette\Application\Request; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * ParamLocaleResolver |
@@ -3,37 +3,37 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Bridges\NetteDI; |
| 5 | 5 | |
| 6 | -use Nette\DI\CompilerExtension, |
|
| 7 | - Nette\PhpGenerator\ClassType, |
|
| 8 | - Nette\Utils\Validators, |
|
| 9 | - Nexendrie\Translation\Resolvers\ILocaleResolver, |
|
| 10 | - Nexendrie\Translation\Bridges\NetteApplication\IAppRequestAwareLocaleResolver, |
|
| 11 | - Nexendrie\Translation\Resolvers\EnvironmentLocaleResolver, |
|
| 12 | - Nexendrie\Translation\Resolvers\ManualLocaleResolver, |
|
| 13 | - Nexendrie\Translation\Resolvers\FallbackLocaleResolver, |
|
| 14 | - Nexendrie\Translation\Resolvers\ChainLocaleResolver, |
|
| 15 | - Nexendrie\Translation\Resolvers\SessionLocaleResolver, |
|
| 16 | - Nexendrie\Translation\Resolvers\HeaderLocaleResolver, |
|
| 17 | - Nexendrie\Translation\Bridges\NetteApplication\ParamLocaleResolver, |
|
| 18 | - Nexendrie\Translation\Translator, |
|
| 19 | - Nexendrie\Translation\Loaders\ILoader, |
|
| 20 | - Nexendrie\Translation\Loaders\FileLoader, |
|
| 21 | - Nexendrie\Translation\Loaders\NeonLoader, |
|
| 22 | - Nexendrie\Translation\Loaders\IniLoader, |
|
| 23 | - Nexendrie\Translation\Loaders\JsonLoader, |
|
| 24 | - Nexendrie\Translation\Loaders\YamlLoader, |
|
| 25 | - Nexendrie\Translation\Loaders\PhpLoader, |
|
| 26 | - Nexendrie\Translation\Loaders\MessagesCatalogue, |
|
| 27 | - Nexendrie\Translation\InvalidLocaleResolverException, |
|
| 28 | - Nexendrie\Translation\InvalidFolderException, |
|
| 29 | - Nexendrie\Translation\InvalidLoaderException, |
|
| 30 | - Nexendrie\Translation\Bridges\Tracy\TranslationPanel, |
|
| 31 | - Nexendrie\Translation\CatalogueCompiler, |
|
| 32 | - Nette\Utils\Arrays, |
|
| 33 | - Nette\Application\Application, |
|
| 34 | - Nette\Bridges\ApplicationLatte\ILatteFactory, |
|
| 35 | - Nette\Utils\AssertionException, |
|
| 36 | - Nexendrie\Translation\Resolvers\ILoaderAwareLocaleResolver; |
|
| 6 | +use Nette\DI\CompilerExtension; |
|
| 7 | +use Nette\PhpGenerator\ClassType; |
|
| 8 | +use Nette\Utils\Validators; |
|
| 9 | +use Nexendrie\Translation\Resolvers\ILocaleResolver; |
|
| 10 | +use Nexendrie\Translation\Bridges\NetteApplication\IAppRequestAwareLocaleResolver; |
|
| 11 | +use Nexendrie\Translation\Resolvers\EnvironmentLocaleResolver; |
|
| 12 | +use Nexendrie\Translation\Resolvers\ManualLocaleResolver; |
|
| 13 | +use Nexendrie\Translation\Resolvers\FallbackLocaleResolver; |
|
| 14 | +use Nexendrie\Translation\Resolvers\ChainLocaleResolver; |
|
| 15 | +use Nexendrie\Translation\Resolvers\SessionLocaleResolver; |
|
| 16 | +use Nexendrie\Translation\Resolvers\HeaderLocaleResolver; |
|
| 17 | +use Nexendrie\Translation\Bridges\NetteApplication\ParamLocaleResolver; |
|
| 18 | +use Nexendrie\Translation\Translator; |
|
| 19 | +use Nexendrie\Translation\Loaders\ILoader; |
|
| 20 | +use Nexendrie\Translation\Loaders\FileLoader; |
|
| 21 | +use Nexendrie\Translation\Loaders\NeonLoader; |
|
| 22 | +use Nexendrie\Translation\Loaders\IniLoader; |
|
| 23 | +use Nexendrie\Translation\Loaders\JsonLoader; |
|
| 24 | +use Nexendrie\Translation\Loaders\YamlLoader; |
|
| 25 | +use Nexendrie\Translation\Loaders\PhpLoader; |
|
| 26 | +use Nexendrie\Translation\Loaders\MessagesCatalogue; |
|
| 27 | +use Nexendrie\Translation\InvalidLocaleResolverException; |
|
| 28 | +use Nexendrie\Translation\InvalidFolderException; |
|
| 29 | +use Nexendrie\Translation\InvalidLoaderException; |
|
| 30 | +use Nexendrie\Translation\Bridges\Tracy\TranslationPanel; |
|
| 31 | +use Nexendrie\Translation\CatalogueCompiler; |
|
| 32 | +use Nette\Utils\Arrays; |
|
| 33 | +use Nette\Application\Application; |
|
| 34 | +use Nette\Bridges\ApplicationLatte\ILatteFactory; |
|
| 35 | +use Nette\Utils\AssertionException; |
|
| 36 | +use Nexendrie\Translation\Resolvers\ILoaderAwareLocaleResolver; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * TranslationExtension for Nette DI Container |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Bridges\Tracy; |
| 5 | 5 | |
| 6 | -use Nexendrie\Translation\Loaders\ILoader, |
|
| 7 | - Nexendrie\Translation\Translator, |
|
| 8 | - Tracy\IBarPanel; |
|
| 6 | +use Nexendrie\Translation\Loaders\ILoader; |
|
| 7 | +use Nexendrie\Translation\Translator; |
|
| 8 | +use Tracy\IBarPanel; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Debugger panel for Tracy |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation; |
| 5 | 5 | |
| 6 | -use Nexendrie\Translation\Loaders\ILoader, |
|
| 7 | - Nette\PhpGenerator\Helpers, |
|
| 8 | - Nette\Utils\FileSystem; |
|
| 6 | +use Nexendrie\Translation\Loaders\ILoader; |
|
| 7 | +use Nette\PhpGenerator\Helpers; |
|
| 8 | +use Nette\Utils\FileSystem; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * CatalogueCompiler |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Loaders; |
| 5 | 5 | |
| 6 | -use Nette\Utils\Finder, |
|
| 7 | - Nette\Utils\Strings, |
|
| 8 | - Nexendrie\Translation\Resolvers\ILocaleResolver, |
|
| 9 | - Nexendrie\Translation\Resolvers\ManualLocaleResolver, |
|
| 10 | - Nexendrie\Translation\InvalidFolderException, |
|
| 11 | - Nexendrie\Translation\FolderNotSetException; |
|
| 6 | +use Nette\Utils\Finder; |
|
| 7 | +use Nette\Utils\Strings; |
|
| 8 | +use Nexendrie\Translation\Resolvers\ILocaleResolver; |
|
| 9 | +use Nexendrie\Translation\Resolvers\ManualLocaleResolver; |
|
| 10 | +use Nexendrie\Translation\InvalidFolderException; |
|
| 11 | +use Nexendrie\Translation\FolderNotSetException; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Generic file translations loader |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Loaders; |
| 5 | 5 | |
| 6 | -use Nette\Utils\Finder, |
|
| 7 | - Nexendrie\Translation\FolderNotSetException; |
|
| 6 | +use Nette\Utils\Finder; |
|
| 7 | +use Nexendrie\Translation\FolderNotSetException; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * MessagesCatalogue |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
| 6 | -use Nexendrie\Translation\Loaders\ILoader, |
|
| 7 | - Nette\Http\IRequest, |
|
| 8 | - Nexendrie\Translation\LoaderNotSetException, |
|
| 9 | - Nette\Http\RequestFactory; |
|
| 6 | +use Nexendrie\Translation\Loaders\ILoader; |
|
| 7 | +use Nette\Http\IRequest; |
|
| 8 | +use Nexendrie\Translation\LoaderNotSetException; |
|
| 9 | +use Nette\Http\RequestFactory; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * HeaderLocaleResolver |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
| 6 | -use Nette\Http\Session, |
|
| 7 | - Nette\Http\SessionSection, |
|
| 8 | - Nette\Http\RequestFactory, |
|
| 9 | - Nette\Http\Response; |
|
| 6 | +use Nette\Http\Session; |
|
| 7 | +use Nette\Http\SessionSection; |
|
| 8 | +use Nette\Http\RequestFactory; |
|
| 9 | +use Nette\Http\Response; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * SessionLocaleResolver |