From 319870b932dbc4f1d0a59b0bdf654af433edb697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Fri, 12 Jan 2024 10:27:58 +0100 Subject: [PATCH] feat(developer_manual): add vue l10n hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- developer_manual/basics/front-end/l10n.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/developer_manual/basics/front-end/l10n.rst b/developer_manual/basics/front-end/l10n.rst index 11df67891..70c9e9424 100644 --- a/developer_manual/basics/front-end/l10n.rst +++ b/developer_manual/basics/front-end/l10n.rst @@ -217,14 +217,20 @@ In case some translation strings may be translated wrongly because they have mul .. 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 + // TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appended with a number if it is the second+ copy var copyNameLocalized = t('files', 'copy'); **Vue** -Currently, commenting in Vue files is not possible. -Vue files are not read via gettext and synchronized with Transifex. -As a small help, the file in question as well as the line of code is written in the translation comment (``// TRANSLATORS``). +This covers vue html templates in vue sfc components. +For vue js code, see the javascript section. + +.. code-block:: html + + + + {{ t('forms', 'Required') }} + **C++ (Qt)**