Search for trans

  1. Search 7.x for trans
  2. Search 9.5.x for trans
  3. Search 10.3.x for trans
  4. Search 11.x for trans
  5. Other projects
Title Object type File name Summary
TranslatorInterface.php file core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php
TranslatorInterface.php file core/lib/Drupal/Core/Validation/TranslatorInterface.php
TranslatorInterface::getStringTranslation function core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php Retrieves English string to given language.
TranslatorInterface::reset function core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php Resets translation cache.
TranslatorInterface::trans function core/lib/Drupal/Core/Validation/TranslatorInterface.php Translates the given message.
transliteration service core/core.services.yml Drupal\Core\Transliteration\PhpTransliteration
Transliteration group core/lib/Drupal/Core/Language/language.api.php Transliterate from Unicode to US-ASCII
TransliterationInterface interface core/lib/Drupal/Component/Transliteration/TransliterationInterface.php Defines an interface for classes providing transliteration.
TransliterationInterface.php file core/lib/Drupal/Component/Transliteration/TransliterationInterface.php
TransliterationInterface::removeDiacritics function core/lib/Drupal/Component/Transliteration/TransliterationInterface.php Removes diacritics (accents) from certain letters.
TransliterationInterface::transliterate function core/lib/Drupal/Component/Transliteration/TransliterationInterface.php Transliterates text from Unicode to US-ASCII.
transliteration_data.php.txt file core/scripts/transliteration_data.php.txt Unifies formats of transliteration data from various sources.
TwigMarkupInterfaceTest::testEmptyTranslation function core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php Tests behavior if a string is translated to become an empty string.
TwigNodeTrans class core/lib/Drupal/Core/Template/TwigNodeTrans.php A class that defines the Twig 'trans' tag for Drupal.
TwigNodeTrans.php file core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigNodeTrans::compile function core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigNodeTrans::compileString function core/lib/Drupal/Core/Template/TwigNodeTrans.php Extracts the text and tokens for the "trans" tag.
TwigNodeTrans::__construct function core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigThemeTestController::placeholderOutsideTransRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller for testing the twig placeholder filter outside of {% trans %}
TwigThemeTestController::transBlockRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing translation blocks in a Twig template.
TwigTransTest class core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests Twig "trans" tags.
TwigTransTest.php file core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::$adminUser property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php An administrative user for testing.
TwigTransTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php The theme to install as the default for testing.
TwigTransTest::$languages property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Custom languages.
TwigTransTest::$modules property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Modules to enable.
TwigTransTest::assertTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Asserts Twig trans tags.
TwigTransTest::installLanguages function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Helper function: install languages.
TwigTransTest::poFileContents function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Generate a custom .po file for a specific test language.
TwigTransTest::setUp function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::testEmptyTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Test empty Twig "trans" tags.
TwigTransTest::testTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Test Twig "trans" tags.
TwigTransTokenParser class core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.
TwigTransTokenParser.php file core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
TwigTransTokenParser::decideForEnd function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect the end of a 'trans' tag.
TwigTransTokenParser::decideForFork function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect a 'plural' switch or the end of a 'trans' tag.
TwigTransTokenParser::getTag function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::parse function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
twig_theme_test.placeholder_outside_trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig Placeholder outside trans: {{ var | placeholder }}

{% trans %}
Placeholder inside trans: {{ var | placeholder }}
{% endtrans %}
twig_theme_test.trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.trans.html.twig {# Test trans tag with string argument. #}
<div>
{% trans 'Hello sun.' %}
</div>

{# Test trans tag with string argument and context #}
<div>
{% trans 'Hello sun.' with {'context':…
UnitTestCase::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.
UnmetDependenciesException::getTranslatedMessage function core/lib/Drupal/Core/Config/UnmetDependenciesException.php Gets a translated message from the exception.
UpdaterFileTransferException class core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php Defines a child class of Drupal\Core\Updater\UpdaterException that indicates
a Drupal\Core\FileTransfer\FileTransfer exception.
UpdaterFileTransferException.php file core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php
update_manager_local_transfers_allowed function core/modules/update/update.manager.inc Determines if file transfers will be performed locally.
update_test_filetransfer_info function core/modules/update/tests/modules/update_test/update_test.module Implements hook_filetransfer_info().
UriDependentTestImageEffect::transformDimensions function core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/UriDependentTestImageEffect.php Determines the dimensions of the styled image.
UrlAliasLanguage::transform function core/modules/path/src/Plugin/migrate/process/d6/UrlAliasLanguage.php Performs the associated process.
UrlEncode::transform function core/modules/migrate/src/Plugin/migrate/process/UrlEncode.php Performs the associated process.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.