From d8e15157cbab764e2d200012d0170033edfcb66f Mon Sep 17 00:00:00 2001 From: rakekniven Date: Thu, 19 Nov 2020 18:43:33 +0100 Subject: [PATCH] Added examples on how to add comments in different coding languages Signed-off-by: rakekniven --- developer_manual/basics/front-end/l10n.rst | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/developer_manual/basics/front-end/l10n.rst b/developer_manual/basics/front-end/l10n.rst index d1a929626..d3ad80f5e 100644 --- a/developer_manual/basics/front-end/l10n.rst +++ b/developer_manual/basics/front-end/l10n.rst @@ -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 +**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 + +**C++ (Qt)** + +.. code-block:: c++ + + //: Example text: "Syncing 'foo.txt', 'bar.txt'" + fileProgressString = tr("Syncing %1").arg(allFilenames); + +**Android Strings** + +.. code-block:: Android + + + Boards + +**iOS** + +.. code-block:: swift + + /* The title on the navigation bar of the Scanning screen. */ + "wescan.scanning.title" = "Scanning"; Adding translations -------------------