symfony API

sfI18nExtract Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

@package symfony

Inheritence

sfI18nModuleExtract, sfI18nApplicationExtract  <  sfI18nExtract

Method Summary

Method Details

  • configure () Browse code

    Configures the current extract object.

  • deleteOldMessages () Browse code

    Deletes old messages.


    Current limitations:
    - For file backends (XLIFF and gettext), it only deletes in the "most global" file

  • extract () Browse code

    Extracts i18n strings.


    This class must be implemented by subclasses.

  • extractFromPhpFiles ($dir) Browse code

    $dir The PHP full path name

    Extracts i18n strings from PHP files.

  • (array) getAllSeenMessages () Browse code

    Gets all i18n strings seen during the extraction process.

    returns An array of i18n strings

  • (array) getCurrentMessages () Browse code

    Gets the current i18n strings.

    returns An array of i18n strings

  • (array) getNewMessages () Browse code

    Gets the new i18n strings.

    returns An array of i18n strings

  • (array) getOldMessages () Browse code

    Gets old i18n strings.


    This returns all strings that weren't seen during the extraction process
    and are in the current messages.

    returns An array of i18n strings

  • initialize ($i18n, $culture, $parameters) Browse code

    $i18n A sfI18N instance
    $culture The culture
    $parameters An array of parameters

    Initializes the current extract object.

  • loadCurrentMessages () Browse code

    Loads messages already saved in the message sources.

  • loadMessageSources () Browse code

    Loads message sources objects and sets the culture.

  • saveNewMessages () Browse code

    Saves the new messages.


    Current limitations:
    - For file backends (XLIFF and gettext), it only saves in the "most global" file

  • updateMessages ($messages) Browse code

    $messages An array of new i18n strings

    Updates the internal arrays with new messages.

  • __construct () Browse code

    Class constructor.