#!/usr/bin/php t('variable replacement'))); $c = t('Single qouted test string'); $d = t("Special\ncharacters"); $e = t('Special\ncharacters'); $f = t("Embedded $variable"); $g = t('Embedded $variable'); $h = t("more \$special characters"); $i = t('even more \$special characters'); $j = t("Mixed 'quote' \"marks\""); $k = t('Mixed "quote" \'marks\''); $l = t('Some repeating text'); $m = t("Some repeating text"); $n = t(embedded_function_call(3)); $o = format_plural($days, 'one day', '@count days'); $p = format_plural(embedded_function_call($count), 'one day', '@count days'); $q = t('Concatenated' . 'string.' . 'You should never do this.'); $r = t("Test string with @complex %variables !smile", array('@complex' => time(), '%variable' => t('variables'), '!smile' => ':)')); function embedded_function_call($dummy) { return 12; } function potxcli_perm() { return array("access potx data", 'administer potx data'); } function potxcli_help($section = 'default') { watchdog('help', t('Help called')); return t('This is some help'); }