[support] t() with non-english string
John Fletcher
net at twoedged.org
Mon Feb 9 21:16:43 UTC 2009
Hi Earnie,
Have you ever done this? I had a look at the API page and it indicated to me
that translation will only run for non-English languages. In particular
this bit of code:
elseif (function_exists('locale') && $langcode != 'en') {
$string = locale($string, $langcode);
}
Also if I go to admin/build/translate/search, anything I find is not
available to be translated into English; English is marked as the "built-in
language".
Regards,
John
-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Earnie Boyd
> Does anyone know the status on this? Can I use Spanish as input to the t()
> function?
>
See http://api.drupal.org/api/function/t
t('siempre te esperamos');
and a translator translates to 'you are welcome' for the English version.
More information about the support
mailing list