Reference - Parms functions - trans


App: regression/framework - Page: functions/trans_finds_a_key_that_is_a_number_in_the_catalog
PHP
functions/trans_finds_a_key_that_is_a_number_in_the_catalog.php
HTML
functions/trans_finds_a_key_that_is_a_number_in_the_catalog.pad
Result
<?php $padLocale = "en_150"; ?>
[{trans '404'}][{trans 404}][{echo '2024' | trans}][{trans 'cart.title'}][{trans 'cart.items', count=1}]


App: regression/framework - Page: functions/trans_looks_a_key_up_in_the_catalog_of_the_locale
PHP
HTML
functions/trans_looks_a_key_up_in_the_catalog_of_the_locale.pad
Result
[{trans 'cart.title'}][{trans 'unknown.key'}][{echo 'cart.title' | trans}]


App: regression/framework - Page: functions/trans_picks_the_plural_form_by_count
PHP
functions/trans_picks_the_plural_form_by_count.php
HTML
functions/trans_picks_the_plural_form_by_count.pad
Result
<?php $n = 3; ?>
[{trans 'cart.items', count=1}][{trans 'cart.items', count=$n}][{trans 'cart.stock', count=0}][{trans 'cart.stock', count=1}][{echo 'cart.items' | trans($n)}]