symfony API

sfI18nExtract Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 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 ()

    Configures the current extract object.

  • deleteOldMessages ()

    Deletes old messages.


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

  • extract ()

    Extracts i18n strings.


    This class must be implemented by subclasses.

  • extractFromPhpFiles ($dir)

    $dir The PHP full path name

    Extracts i18n strings from PHP files.

  • (array) getAllSeenMessages ()

    Gets all i18n strings seen during the extraction process.

    returns An array of i18n strings

  • (array) getCurrentMessages ()

    Gets the current i18n strings.

    returns An array of i18n strings

  • (array) getNewMessages ()

    Gets the new i18n strings.

    returns An array of i18n strings

  • (array) getOldMessages ()

    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)

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

    Initializes the current extract object.

  • loadCurrentMessages ()

    Loads messages already saved in the message sources.

  • loadMessageSources ()

    Loads message sources objects and sets the culture.

  • saveNewMessages ()

    Saves the new messages.


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

  • updateMessages ($messages)

    $messages An array of new i18n strings

    Updates the internal arrays with new messages.

  • __construct ()

    Class constructor.