apps/files/lib/Activity.php 1 location
|
@@ 149-164 (lines=16) @@
|
| 146 |
|
* @param string $languageCode |
| 147 |
|
* @return string|false |
| 148 |
|
*/ |
| 149 |
|
public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode) { |
| 150 |
|
if ($app !== self::APP_FILES) { |
| 151 |
|
return false; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$l = $this->getL10N($languageCode); |
| 155 |
|
|
| 156 |
|
if ($this->activityManager->isFormattingFilteredObject()) { |
| 157 |
|
$translation = $this->translateShort($text, $l, $params); |
| 158 |
|
if ($translation !== false) { |
| 159 |
|
return $translation; |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
return $this->translateLong($text, $l, $params); |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
/** |
| 167 |
|
* @param string $text |
apps/files_sharing/lib/Activity.php 1 location
|
@@ 171-186 (lines=16) @@
|
| 168 |
|
* @param string $languageCode |
| 169 |
|
* @return string|false |
| 170 |
|
*/ |
| 171 |
|
public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode) { |
| 172 |
|
if ($app !== self::FILES_SHARING_APP) { |
| 173 |
|
return false; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
$l = $this->getL10N($languageCode); |
| 177 |
|
|
| 178 |
|
if ($this->activityManager->isFormattingFilteredObject()) { |
| 179 |
|
$translation = $this->translateShort($text, $l, $params); |
| 180 |
|
if ($translation !== false) { |
| 181 |
|
return $translation; |
| 182 |
|
} |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
return $this->translateLong($text, $l, $params); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* @param string $text |
apps/systemtags/lib/Activity/Extension.php 1 location
|
@@ 119-134 (lines=16) @@
|
| 116 |
|
* @param string $languageCode |
| 117 |
|
* @return string|false |
| 118 |
|
*/ |
| 119 |
|
public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode) { |
| 120 |
|
if ($app !== self::APP_NAME) { |
| 121 |
|
return false; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
$l = $this->getL10N($languageCode); |
| 125 |
|
|
| 126 |
|
if ($this->activityManager->isFormattingFilteredObject()) { |
| 127 |
|
$translation = $this->translateShort($text, $l, $params); |
| 128 |
|
if ($translation !== false) { |
| 129 |
|
return $translation; |
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
return $this->translateLong($text, $l, $params); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
/** |
| 137 |
|
* @param string $text |
apps/comments/lib/Activity/Extension.php 1 location
|
@@ 131-146 (lines=16) @@
|
| 128 |
|
* @param string $languageCode |
| 129 |
|
* @return string|false |
| 130 |
|
*/ |
| 131 |
|
public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode) { |
| 132 |
|
if ($app !== self::APP_NAME) { |
| 133 |
|
return false; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
$l = $this->getL10N($languageCode); |
| 137 |
|
|
| 138 |
|
if ($this->activityManager->isFormattingFilteredObject()) { |
| 139 |
|
$translation = $this->translateShort($text, $l, $params); |
| 140 |
|
if ($translation !== false) { |
| 141 |
|
return $translation; |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
return $this->translateLong($text, $l, $params); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
/** |
| 149 |
|
* @param string $text |