aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-07-24 11:57:41 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-07-24 11:57:41 +0200
commitd3093dce1bfd4685d5e11f828689630862f77bda (patch)
tree81f99a0c0f29ccc6c1a1bdd6615b1f93556b2028 /Zotlabs
parent61f9ad8274d662a056aff05407771fb450a2ab35 (diff)
downloadvolse-hubzilla-d3093dce1bfd4685d5e11f828689630862f77bda.tar.gz
volse-hubzilla-d3093dce1bfd4685d5e11f828689630862f77bda.tar.bz2
volse-hubzilla-d3093dce1bfd4685d5e11f828689630862f77bda.zip
Improve translation message for help pages.
Display the target language instead of "your preferred language". Makes it a bit more explicit.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Traits/HelpHelperTrait.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Traits/HelpHelperTrait.php b/Zotlabs/Lib/Traits/HelpHelperTrait.php
index 0ce586d08..63b0eb22e 100644
--- a/Zotlabs/Lib/Traits/HelpHelperTrait.php
+++ b/Zotlabs/Lib/Traits/HelpHelperTrait.php
@@ -83,8 +83,13 @@ trait HelpHelperTrait {
}
public function missing_translation_message(): string {
+ $prefered_language_name = get_language_name(
+ $this->lang['language'],
+ $this->lang['language']
+ );
+
return bbcode(
- t("This page is not yet available in your preferred language. See [observer.baseurl]/help/developer/developer_guide#Translations for information about how to help.")
+ t("This page is not yet available in {$prefered_language_name}. See [observer.baseurl]/help/developer/developer_guide#Translations for information about how to help.")
);
}
}