aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-08-24 20:13:11 +0200
committerGitHub <noreply@github.com>2017-08-24 20:13:11 +0200
commitdf2725a360f173d7521d8a552608014968763288 (patch)
tree4b21b79c07fd26125b60396a8326af58ea5917b3 /Zotlabs/Widget
parent9d5b6858ea627b5eb6115cacd870ef0277f87b2a (diff)
parent592cf893c006f24c652902fa4fae7d2d94496c3c (diff)
downloadvolse-hubzilla-df2725a360f173d7521d8a552608014968763288.tar.gz
volse-hubzilla-df2725a360f173d7521d8a552608014968763288.tar.bz2
volse-hubzilla-df2725a360f173d7521d8a552608014968763288.zip
Merge pull request #848 from anaqreon/doco
Repaired and extended support for help page translations including ta…
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Helpindex.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Helpindex.php b/Zotlabs/Widget/Helpindex.php
index f23e73e75..8299cf16a 100644
--- a/Zotlabs/Widget/Helpindex.php
+++ b/Zotlabs/Widget/Helpindex.php
@@ -9,14 +9,22 @@ class Helpindex {
$o .= '<div class="widget">';
$level_0 = get_help_content('sitetoc');
- if(! $level_0)
- $level_0 = get_help_content('toc');
+ if(! $level_0) {
+ $path = 'toc';
+ $x = determine_help_language();
+ $lang = $x['language'];
+ if($lang !== 'en') {
+ $path = $lang . '/toc';
+ }
+ $level_0 = get_help_content($path);
+ }
$level_0 = preg_replace('/\<ul(.*?)\>/','<ul class="nav nav-pills flex-column">',$level_0);
$levels = array();
+ // TODO: Implement support for translations in hierarchical table of content files
if(argc() > 2) {
$path = '';
for($x = 1; $x < argc(); $x ++) {