aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-24 18:50:04 -0700
committerzotlabs <mike@macgirvin.com>2017-08-24 18:50:04 -0700
commitcff5e360fd70832825ae7d6420602e573622d008 (patch)
tree0f23b56604a9309bd28345e83eb8e11bc0e95046 /Zotlabs/Widget
parent45c033b9aa461ade1e9041f919c317752d86a315 (diff)
parent383b7928cf41b750ec367abfc8cbfdc71e1a6291 (diff)
downloadvolse-hubzilla-cff5e360fd70832825ae7d6420602e573622d008.tar.gz
volse-hubzilla-cff5e360fd70832825ae7d6420602e573622d008.tar.bz2
volse-hubzilla-cff5e360fd70832825ae7d6420602e573622d008.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
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 ++) {