aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Traits
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-07-24 10:59:03 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-07-24 10:59:03 +0200
commit7067a0adc2e37168401e761c29e78392229ec168 (patch)
tree94cc913c94bc9ba8157f07fea88c6af9a1adccc8 /Zotlabs/Lib/Traits
parent1bd52867fb463a4b34cd2c4a9b9ace8b570e18b4 (diff)
downloadvolse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.tar.gz
volse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.tar.bz2
volse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.zip
Move language member to HelpHelperTrait.
Should have been there from the start, was just a miss.
Diffstat (limited to 'Zotlabs/Lib/Traits')
-rw-r--r--Zotlabs/Lib/Traits/HelpHelperTrait.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Traits/HelpHelperTrait.php b/Zotlabs/Lib/Traits/HelpHelperTrait.php
index 9e4fefa4b..2a54e2db2 100644
--- a/Zotlabs/Lib/Traits/HelpHelperTrait.php
+++ b/Zotlabs/Lib/Traits/HelpHelperTrait.php
@@ -15,6 +15,14 @@ trait HelpHelperTrait {
private string $file_type = '';
/**
+ * Associative array containing the detected language.
+ */
+ private array $lang = [
+ 'language' => 'en', //! Detected language, 2-letter ISO 639-1 code ("en")
+ 'from_url' => false, //! true if language from URL overrides browser default
+ ];
+
+ /**
* Determines help language.
*
* If the language was specified in the URL, override the language preference