mirror of
https://github.com/nextcloud/server.git
synced 2024-07-30 08:15:57 +02:00
Add a unit test for translation with trailing colon
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8a3f8b07a8
commit
a4cd9fd37c
@ -35,6 +35,13 @@ class L10nTest extends TestCase {
|
||||
return new Factory($config, $request, $userSession, \OC::$SERVERROOT);
|
||||
}
|
||||
|
||||
public function testSimpleTranslationWithTrailingColon(): void {
|
||||
$transFile = \OC::$SERVERROOT.'/tests/data/l10n/de.json';
|
||||
$l = new L10N($this->getFactory(), 'test', 'de', 'de_AT', [$transFile]);
|
||||
|
||||
$this->assertEquals('Files:', $l->t('Files:'));
|
||||
}
|
||||
|
||||
public function testGermanPluralTranslations() {
|
||||
$transFile = \OC::$SERVERROOT.'/tests/data/l10n/de.json';
|
||||
$l = new L10N($this->getFactory(), 'test', 'de', 'de_AT', [$transFile]);
|
||||
|
Loading…
Reference in New Issue
Block a user