Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
3f981d56
Commit
3f981d56
authored
Oct 01, 2013
by
Julio Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating translation file path
parent
5ee043a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
doc/cookbook/translating_validation_messages.rst
doc/cookbook/translating_validation_messages.rst
+1
-1
No files found.
doc/cookbook/translating_validation_messages.rst
View file @
3f981d56
...
@@ -14,7 +14,7 @@ translated resources::
...
@@ -14,7 +14,7 @@ translated resources::
$app->before(function () use ($app) {
$app->before(function () use ($app) {
$app['translator']->addLoader('xlf', new Symfony\Component\Translation\Loader\XliffFileLoader());
$app['translator']->addLoader('xlf', new Symfony\Component\Translation\Loader\XliffFileLoader());
$app['translator']->addResource('xlf', __DIR__.'/vendor/symfony/
src/Symfony/Bundle/FrameworkBundle/Resources/translation
s/validators.sr_Latn.xlf', 'sr_Latn', 'validators');
$app['translator']->addResource('xlf', __DIR__.'/vendor/symfony/
validator/Symfony/Component/Validator/Resources/translations/validator
s/validators.sr_Latn.xlf', 'sr_Latn', 'validators');
});
});
And that's all you need to load translations from Symfony2 ``xlf`` files.
And that's all you need to load translations from Symfony2 ``xlf`` files.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment