[Pkg-owncloud-commits] [owncloud-doc] 15/25: Add information how to add hints

David Prévot taffit at moszumanska.debian.org
Thu Oct 30 19:52:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 090d87bceec243aa16377886968ffe3070030d88
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Mon Oct 27 18:05:42 2014 +0100

    Add information how to add hints
---
 developer_manual/app/l10n.rst | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/developer_manual/app/l10n.rst b/developer_manual/app/l10n.rst
index 259293a..ebb58f5 100644
--- a/developer_manual/app/l10n.rst
+++ b/developer_manual/app/l10n.rst
@@ -109,6 +109,21 @@ There is currently no good way to translate JavaScript strings. One way to still
 
     var addNewTranslation = $('#add-new').text();
 
+Hints
+=====
+In case some translation strings may be translated wrongly because they have multiple meanings, you can add hints which will be shown in the Transifex web-interface:
+
+.. code-block:: php
+
+    <ul id="translations">
+        <li id="add-new">
+            <?php
+                // TRANSLATORS Will be shown inside a popup and asks the user to add a new file
+                p($l->t('Add new file')); 
+            ?>
+        </li>
+    </ul>
+
 Creating your own translatable files
 ====================================
 If Transifex is not the right choice or the app is not accepted for translation, generate the gettext strings by yourself by creating an **l10n/** directory in the app folder and executing::

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list