Skip to content

Commit

Permalink
Fixed issue #16729: Message has no translation (#1656)
Browse files Browse the repository at this point in the history
Add dummy file for storing translatable literals only present in twig files
  • Loading branch information
gabrieljenik committed Nov 27, 2020
1 parent e75813e commit 3b1850f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions application/helpers/twig_translation_helper.php
@@ -0,0 +1,27 @@
<?php
/*
* LimeSurvey
* Copyright (C) 2007-2020 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/


/**
* Dummy helper intended to facilitate "twig only" strings to be picked by Translations Bot.
*
* Since twig files are not scanned by the bot, translatable strings that only appear in twig
* files can be placed here in order to be scanned.
*/


function dummy_twig_translation_helper() {
return;

gT("Your survey responses have not been recorded. This survey is not yet active."); // From themes/survey/vanilla/views/subviews/content/submit_preview.twig:23 (2020/11/16)
}

0 comments on commit 3b1850f

Please sign in to comment.