1 | <?php |
||
18 | class TranslateUtility |
||
19 | { |
||
20 | /** |
||
21 | * Assure the translation for the given key. |
||
22 | * If not exists create the label in the xml/xlf file. |
||
23 | * Returns the localization. |
||
24 | * |
||
25 | * Use the Slot to handle the label |
||
26 | * |
||
27 | * @see LocalizationUtility::translate |
||
28 | * |
||
29 | * @param string $key key in the localization file |
||
30 | * @param string $extensionName |
||
31 | * @param string $default default value of the label |
||
32 | * @param array $arguments arguments are being passed over to vsprintf |
||
33 | * @param string $tableName |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public static function assureLabel($key, $extensionName, $default = null, $arguments = null, $tableName = null) |
||
50 | |||
51 | /** |
||
52 | * Get the given LLL String or render a help message for the user. |
||
53 | * |
||
54 | * @param string $key |
||
55 | * @param string $extensionKey |
||
56 | * @param string $tableName |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public static function getLllOrHelpMessage($key, $extensionKey, $tableName = null) |
||
80 | |||
81 | /** |
||
82 | * Get the correct LLL string for the given key and extension. |
||
83 | * |
||
84 | * @param string $key |
||
85 | * @param $extensionKey |
||
86 | * @param string $file |
||
87 | * @param string $tableName |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public static function getLllString($key, $extensionKey, $file = null, $tableName = null) |
||
102 | |||
103 | /** |
||
104 | * Get the translation for the given key. |
||
105 | * |
||
106 | * @param string $key |
||
107 | * @param string $extensionKey |
||
108 | * @param string $tableName |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public static function getLll($key, $extensionKey, $tableName = null) |
||
118 | |||
119 | /** |
||
120 | * Check if table name file base is used. |
||
121 | * |
||
122 | * @return bool |
||
123 | */ |
||
124 | protected static function useTableNameFileBase() |
||
130 | } |
||
131 |
This method has been deprecated.