This class provides methods for loading Translations Resources.
The file can be of two kinds.
First is PHP File formatted like this:
- <?php
- // a comment
- $LANG['foo'] = 'bar';
- ...
- ?>
Second one is a INI file like this:
- ; a comment
- foo = bar
To load a ResourceBunlde type something like this:
Fetches the Bundle with the given basename.
If none Translation File could be found with this name it returns null.
This method should be accessed static!
TODO not implemented yet!
Return the Translation String with the given Key.
If this translation could not be found and
- $fallback != null
- $fallback
- '???' . $key . '???'
Returns the internal translation Object.
This tries to load the Translations from the given File into the current ResourceBundle by appending them to the internal List.
Documentation generated by phpDocumentor 1.3.1