1: <?php
2:
3: /**
4: * Extend this class to create different translation objects
5: * @author Ago Luberg
6: *
7: */
8: interface QTranslationBase {
9: /**
10: * Used to initialize translation
11: * Should return initiated translation object
12: * @abstract
13: * @return QTranslationBase
14: */
15: static function Initialize();
16:
17: /**
18: * Used to load translation instance
19: * @param string[optional] $strLanguageCode Language code
20: * @param string[optional] $strCountryCode Country code
21: * @return QTranslationBase
22: * @abstract
23: */
24: static function Load($strLanguageCode = null, $strCountryCode = null);
25:
26: /**
27: * Translates given token to given translation language
28: * @param string $strToken
29: * @return string
30: */
31: function TranslateToken($strToken);
32: }
33: