aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/Traits/HelpHelperTrait.php7
-rw-r--r--tests/unit/Module/HelpTest.php2
2 files changed, 7 insertions, 2 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.")
);
}
}
diff --git a/tests/unit/Module/HelpTest.php b/tests/unit/Module/HelpTest.php
index 81d2e9287..2c1d31570 100644
--- a/tests/unit/Module/HelpTest.php
+++ b/tests/unit/Module/HelpTest.php
@@ -110,7 +110,7 @@ class HelpTest extends \Zotlabs\Tests\Unit\Module\TestCase {
$this->get('help/about/help_topic');
$this->assertPageContains('Hubzilla Documentation: About');
- $this->assertPageContains('This page is not yet available in your preferred language');
+ $this->assertPageContains('This page is not yet available in norsk bokmål');
}
public function test_includes(): void {