sfI18nExtractPlugin - 1.0.0

i18n string extractor plugin.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

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

  • Install the plugin

    symfony plugin-install http://plugins.symfony-project.com/sfI18nExtract
    
  • Clear you cache

    symfony cc
    

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