Releases for sf 1.0
| Version |
License |
API |
Released |
|
1.0.5stable
|
MIT license |
1.0.0stable
|
14/01/2008 |
|
1.0.4stable
|
MIT license |
1.0.0stable
|
25/06/2007 |
|
1.0.3stable
|
MIT license |
1.0.0stable
|
25/06/2007 |
|
1.0.2stable
|
MIT license |
1.0.0stable
|
25/06/2007 |
|
1.0.1stable
|
MIT license |
1.0.0stable
|
25/06/2007 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
25/06/2007 |
Copyright (c) 2004-2006 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Changelog for release 1.0.5 - 14/01/2008
Not available
Other releases
Release 1.0.5 - 14/01/2008
Not available
Release 1.0.4 - 25/06/2007
Not available
Release 1.0.3 - 25/06/2007
Not available
Release 1.0.2 - 25/06/2007
Not available
Release 1.0.1 - 25/06/2007
Not available
Release 1.0.0 - 25/06/2007
Not available
Installation for sf 1.0
php symfony plugin-install http://plugins.symfony-project.org/sfI18nExtractPlugin
PEAR
Download the PEAR package
Repository
Go to the repository: http://svn.symfony-project.com/plugins/sfI18nExtractPlugin
sfI18nExtract plugin
The sfI18nExtract is a symfony plugin that provides i18n strings extraction.
This plugin is a backport of a symfony 1.1 native feature.
Installation
Usage
The i18n-extract task parses a symfony application to extract all the strings that need to be translated.
It takes an application and a culture as its arguments:
php symfony i18n-extract frontend en
By default, the task does not modify your dictionaries, it just outputs the number of new and old i18n strings. To append the new strings to your dictionary, you can pass the --auto-save option:
php symfony i18n-extract --auto-save frontend en
You can also delete old strings automatically by passing the --auto-delete option:
php symfony i18n-extract --auto-save --auto-delete frontend en
Known limitations
- Can only works with the default "messages" catalogue
- For file backends (XLIFF and gettext), it only saves/deletes strings in the
apps/myapp/i18n/messages.XX.xml file
Patch
The patches needed to convert the symfony 1.1 implementation to the one used in this plugin can be obtained with the 2 following commands:
svn diff http://svn.symfony-project.com/trunk/lib/i18n/extract/ http://svn.symfony-project.com/plugins/sfI18nExtractPlugin/lib
svn diff http://svn.symfony-project.com/trunk/data/tasks/sfPakeI18N.php http://svn.symfony-project.com/plugins/sfI18nExtractPlugin/data/tasks/sfPakeI18N.php