summaryrefslogtreecommitdiffstats
path: root/lib/public/Translation/ITranslationManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Translation/ITranslationManager.php')
-rw-r--r--lib/public/Translation/ITranslationManager.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/public/Translation/ITranslationManager.php b/lib/public/Translation/ITranslationManager.php
index c6b67462152..4450f19c424 100644
--- a/lib/public/Translation/ITranslationManager.php
+++ b/lib/public/Translation/ITranslationManager.php
@@ -28,7 +28,6 @@ namespace OCP\Translation;
use InvalidArgumentException;
use OCP\PreConditionNotMetException;
-use RuntimeException;
/**
* @since 26.0.0
@@ -54,7 +53,7 @@ interface ITranslationManager {
* @since 26.0.0
* @throws PreConditionNotMetException If no provider was registered but this method was still called
* @throws InvalidArgumentException If no matching provider was found that can detect a language
- * @throws RuntimeException If the translation failed for other reasons
+ * @throws CouldNotTranslateException If the translation failed for other reasons
*/
- public function translate(string $text, ?string $fromLanguage, string $toLanguage): string;
+ public function translate(string $text, ?string &$fromLanguage, string $toLanguage): string;
}