function PoItemTest::providerStrings
Return value
array
- Source string
- Context (optional)
- Translated string (optional)
- Expected value
File
-
core/
tests/ Drupal/ Tests/ Component/ Gettext/ PoItemTest.php, line 27
Class
Namespace
Drupal\Tests\Component\GettextCode
public static function providerStrings() : array {
// cSpell:disable
return [
[
'',
NULL,
NULL,
'msgid ""' . "\n" . 'msgstr ""' . "\n\n",
],
// Translated String without contesxt.
[
'Next',
NULL,
'Suivant',
'msgid "Next"' . "\n" . 'msgstr "Suivant"' . "\n\n",
],
// Translated string with context.
[
'Apr',
'Abbreviated month name',
'Avr',
'msgctxt "Abbreviated month name"' . "\n" . 'msgid "Apr"' . "\n" . 'msgstr "Avr"' . "\n\n",
],
// Translated string with placeholder.
[
'%email is not a valid email address.',
NULL,
'%email n\'est pas une adresse de courriel valide.',
'msgid "%email is not a valid email address."' . "\n" . 'msgstr "%email n\'est pas une adresse de courriel valide."' . "\n\n",
],
// Translated Plural String without context.
[
[
'Installed theme',
'Installed themes',
],
NULL,
[
'Thème installé',
'Thèmes installés',
],
'msgid "Installed theme"' . "\n" . 'msgid_plural "Installed themes"' . "\n" . 'msgstr[0] "Thème installé"' . "\n" . 'msgstr[1] "Thèmes installés"' . "\n\n",
],
];
// cSpell:enable
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.