protected function InstallerTranslationTest::getPo in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationTest::getPo()
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationTest::getPo()
Returns the string for the test .po file.
Parameters
string $langcode: The language code.
Return value
string Contents for the test .po file.
1 call to InstallerTranslationTest::getPo()
- InstallerTranslationTest::setUpLanguage in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationTest.php - Installer step: Select language.
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationTest.php, line 156
Class
- InstallerTranslationTest
- Installs Drupal in German and checks resulting site.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function getPo($langcode) {
return <<<ENDPO
msgid ""
msgstr ""
msgid "Save and continue"
msgstr "Save and continue {<span class="php-variable">$langcode</span>}"
msgid "Anonymous"
msgstr "Anonymous {<span class="php-variable">$langcode</span>}"
msgid "Resolve all issues below to continue the installation. For help configuring your database server, see the <a href="https://www.drupal.org/docs/installing-drupal">installation handbook</a>, or contact your hosting provider."
msgstr "Beheben Sie alle Probleme unten, um die Installation fortzusetzen. Informationen zur Konfiguration der Datenbankserver finden Sie in der <a href="https://www.drupal.org/docs/installing-drupal">Installationshandbuch</a>, oder kontaktieren Sie Ihren Hosting-Anbieter."
msgid "Failed to <strong>CREATE</strong> a test table on your database server with the command %query. The server reports the following message: %error.<p>Are you sure the configured username has the necessary permissions to create tables in the database?</p>"
msgstr "<strong>CREATE</strong> ein Test-Tabelle auf Ihrem Datenbankserver mit dem Befehl %query fehlgeschlagen."
ENDPO;
}