Merge pull request #262 from weizenspreu/master

Fixed translation and updated tags plugin
This commit is contained in:
Diego Najar 2016-06-07 02:21:06 +02:00
commit eb46014b35
4 changed files with 11 additions and 9 deletions

View File

@ -48,7 +48,7 @@ class dbLanguage extends dbJSON
return $this->db[$key];
}
return '';
return $string;
}
// Returns translation.

View File

@ -3,5 +3,9 @@
{
"name": "Anzeige aller Schlagwörter",
"description": "Anzeige aller Schlagwörter in der Seitenleiste (bei Themes mit Seitenleiste)."
}
},
"sort-the-tag-list-by": "Sortierung der Schlagwörter nach",
"alphabetical-order": "Alphabetische Reihenfolge",
"number-of-times-each-tag-has-been-used": "Anzahl der Verwendung",
"date-each-tag-was-first-used": "Datum der ersten Verwendung"
}

View File

@ -3,9 +3,5 @@
{
"name": "Tags list",
"description": "Shows all tags."
},
"tag-sort-order": "Sort the tag list by",
"tag-sort-alphabetical": "Alphabetical order",
"tag-sort-count": "Number of times each tag has been used",
"tag-sort-date": "Date each tag was first used"
}
}

View File

@ -20,9 +20,11 @@ class pluginTags extends Plugin {
$html .= '</div>';
$html .= '<div>';
$html .= $Language->get('tag-sort-order').': <select name="sort">';
$html .= $Language->get('Sort the tag list by').': <select name="sort">';
foreach(array('alpha'=>'tag-sort-alphabetical', 'count'=>'tag-sort-count', 'date'=>'tag-sort-date') as $key=>$value) {
foreach(array('alpha' => 'Alphabetical order',
'count' => 'Number of times each tag has been used',
'date' => 'Date each tag was first used') as $key=>$value) {
if ($key == $this->getDbField('sort')) {
$html .= '<option value="'.$key.'" selected>'.$Language->get($value).'</option>';
} else {