From e997036cf53180404457df98e5e0154a2d67d0df Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 19 Oct 2018 11:28:24 +0200 Subject: [PATCH] Add section about .l10nignore Signed-off-by: Morris Jobke --- 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 9f4d16ea6..f26a97acd 100644 --- a/developer_manual/app/l10n.rst +++ b/developer_manual/app/l10n.rst @@ -124,6 +124,21 @@ In case some translation strings may be translated wrongly because they have mul +Ignoring files from translation tool +------------------------------------ + +The translation tool scrapes the source code for method calls to **t()** +or **n()** to extract the strings that should be translated. If you check +in minified JS code for example then those method names are also quite +common and could cause wrong extractions. For this reason we allow to +specify a list of files that the translation tool will not scrape for +strings. You simply need to add a file named :file:`.l10nignore` into +the root folder of your app and specify the files one per line:: + + # compiled vue templates + js/bruteforcesettings.js + + Creating your own translatable files ------------------------------------