-
Configures the current extract object.
-
Deletes old messages.
Current limitations:
-
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 = array())
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.
-
Loads message sources objects and sets the culture.
-
Saves the new messages.
Current limitations:
-
updateMessages ($messages)
Browse code
| $messages |
An array of new i18n strings
|
Updates the internal arrays with new messages.
-
__construct ($i18n, $culture, $parameters = array())
Browse code
| $i18n |
|
| $culture |
|
| $parameters |
|
Class constructor.