From 53a11e14e18a2d79888ba9ade0505522ef559f8f Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Thu, 26 Nov 2026 19:58:19 +0100 Subject: [PATCH] feat(options): scope-dependent translatable help text under the upload widget Row 141: the help text under the upload facility in the Top-of-page tab now depends on where the options page is shown (bInherit = sid/gsid present): - global theme settings: "Upload here the files for logos and background. You are in global settings now, so files that you upload here are available for all surveys. If you want a file to be available only for your specific survey, upload it at the theme settings options page for that specific survey." - survey / survey-group settings: "Upload here the files for logos and background. You are in the settings for your specific survey now, so files that you upload here are available for this survey only. If you want a file to be available for all surveys, upload it at the global theme settings options page." Both variants go through gT() (translatable via the message catalogs / DB message tables). Typos in the request were corrected ("Your are" -> "You are", "you specific" -> "your specific", "only for surveys" -> "for all surveys"). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- options/options.twig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/options/options.twig b/options/options.twig index 8773f04..06454a0 100644 --- a/options/options.twig +++ b/options/options.twig @@ -512,10 +512,12 @@ - {# row 140: translatable help text under the upload option #} + {# row 140/141: translatable help text under the upload option, + depending on where this page is shown: bInherit is true on + survey / survey-group level, false on the global page #}
-
{{ gT("Here you can upload logo images for use in your surveys.") }}
+
{% if bInherit %}{{ gT("Upload here the files for logos and background. You are in the settings for your specific survey now, so files that you upload here are available for this survey only. If you want a file to be available for all surveys, upload it at the global theme settings options page.") }}{% else %}{{ gT("Upload here the files for logos and background. You are in global settings now, so files that you upload here are available for all surveys. If you want a file to be available only for your specific survey, upload it at the theme settings options page for that specific survey.") }}{% endif %}