From 34cf2120ab7b744c3d05693153b22dec2000fd95 Mon Sep 17 00:00:00 2001 From: Volkan Gezer Date: Sun, 25 May 2014 14:36:39 +0200 Subject: [PATCH] replace echo with p --- developer_manual/core/translation.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/developer_manual/core/translation.rst b/developer_manual/core/translation.rst index eaa4657c9..5520b39ce 100644 --- a/developer_manual/core/translation.rst +++ b/developer_manual/core/translation.rst @@ -4,9 +4,9 @@ Translation Make text translatable ---------------------- -In HTML or PHP wrap it like this t('This is some text');?> -For the right date format use l('date', time());?>. Change the way dates are shown by editing /core/l10n/l10n-[lang].php -To translate text in javascript use: t('appname','text to translate'); +In HTML or PHP wrap it like this ``t('This is some text'));?>`` or this ``t('This is some text'));?>`` +For the right date format use ``l('date', time()));?>``. Change the way dates are shown by editing /core/l10n/l10n-[lang].php +To translate text in javascript use: ``t('appname','text to translate');`` You shall never split sentences! -------------------------------- @@ -21,7 +21,7 @@ Example: .. code-block:: php - t('Select file from') . ' '; ?>t('local filesystem');?>t(' or '); ?>t('cloud');?> + t('Select file from')) . ' '; ?>t('local filesystem'));?>t(' or ')); ?>t('cloud'));?> Translators will translate: ~~~~~~~~~~~~~~~~~~~~~~~~~~~