Added examples on how to add comments in different coding languages

Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
This commit is contained in:
rakekniven
2020-11-19 18:43:33 +01:00
committed by GitHub
parent 6a47dd61aa
commit d8e15157cb

View File

@@ -174,6 +174,8 @@ 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:
**PHP**
.. code-block:: php
<ul id="translations">
@@ -185,11 +187,39 @@ In case some translation strings may be translated wrongly because they have mul
</li>
</ul>
**Javascript**
.. code-block:: javascript
// TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appened with a number if it is the second+ copy
var copyNameLocalized = t('files', 'copy');
**Vue**
.. code-block:: vue
<to be added>
**C++ (Qt)**
.. code-block:: c++
//: Example text: "Syncing 'foo.txt', 'bar.txt'"
fileProgressString = tr("Syncing %1").arg(allFilenames);
**Android Strings**
.. code-block:: Android
<!-- Context comment for translator -->
<string name="simple_boards">Boards</string>
**iOS**
.. code-block:: swift
/* The title on the navigation bar of the Scanning screen. */
"wescan.scanning.title" = "Scanning";
Adding translations
-------------------