language strings updates

This commit is contained in:
Čarodej
2022-03-20 12:12:09 +01:00
parent 98d9f3ab0d
commit 881facc867
121 changed files with 1729 additions and 1400 deletions

View File

@@ -34,7 +34,7 @@ class AdminLanguageTranslatorTest extends TestCase
]);
$this->assertDatabaseHas('language_translations', [
'key' => 'actions.close',
'key' => 'close',
'value' => 'Close',
'lang' => 'sk',
]);
@@ -93,7 +93,7 @@ class AdminLanguageTranslatorTest extends TestCase
]);
$this->assertDatabaseMissing('language_translations', [
'key' => 'actions.close',
'key' => 'close',
'value' => 'Close',
'lang' => 'sk',
]);
@@ -133,7 +133,7 @@ class AdminLanguageTranslatorTest extends TestCase
->assertStatus(200)
->assertJsonFragment([
'locale' => 'en',
'actions.close' => 'Close',
'close' => 'Close',
]);
}
@@ -152,12 +152,12 @@ class AdminLanguageTranslatorTest extends TestCase
$this
->actingAs($admin)
->patchJson("/api/admin/languages/$language->id/strings", [
'name' => 'actions.close',
'name' => 'close',
'value' => 'Close It, now!',
]);
$this->assertDatabaseHas('language_translations', [
'key' => 'actions.close',
'key' => 'close',
'value' => 'Close It, now!',
'lang' => 'en',
]);
@@ -180,7 +180,7 @@ class AdminLanguageTranslatorTest extends TestCase
->getJson("/api/admin/languages/$language->id")
->assertStatus(200)
->assertJsonFragment([
'actions.close' => 'Close',
'close' => 'Close',
'locale' => 'en',
]);
}

View File

@@ -17,7 +17,7 @@ class TranslationsAccessTest extends TestCase
$this->getJson('/translations/en')
->assertStatus(200)
->assertJsonFragment([
'actions.close' => 'Close',
'close' => 'Close',
]);
}
@@ -52,7 +52,7 @@ class TranslationsAccessTest extends TestCase
$this->assertEquals(
'Close',
__t('actions.close')
__t('close')
);
$this->assertEquals(
@@ -72,7 +72,7 @@ class TranslationsAccessTest extends TestCase
public function it_get_translated_string_from_t_helper_without_database_connection()
{
$this->assertEquals(
__t('actions.close'),
__t('close'),
'Close'
);
}