From 7067a0adc2e37168401e761c29e78392229ec168 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 24 Jul 2024 10:59:03 +0200 Subject: Move language member to HelpHelperTrait. Should have been there from the start, was just a miss. --- Zotlabs/Lib/Traits/HelpHelperTrait.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Zotlabs/Lib/Traits') 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 @@ -14,6 +14,14 @@ trait HelpHelperTrait { private string $file_name = ''; 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. * -- cgit v1.2.3