mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 09:49:33 +07:00
Added examples on how to add comments in different coding languages
Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
This commit is contained in:
@@ -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
|
||||
-------------------
|
||||
|
||||
Reference in New Issue
Block a user