diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 17:58:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 17:58:50 +0200 |
commit | 9fb9909916c8ce7fbca17d536942c0166afe487c (patch) | |
tree | 899d3cca3773ec8729645cb074fbe1c23b8f1204 /lib/plugins/styler | |
parent | e422a60a9672c993b6872e856b9172dbd8135b56 (diff) | |
download | rpg-9fb9909916c8ce7fbca17d536942c0166afe487c.tar.gz rpg-9fb9909916c8ce7fbca17d536942c0166afe487c.tar.bz2 |
added more localization
Diffstat (limited to 'lib/plugins/styler')
-rw-r--r-- | lib/plugins/styler/admin.php | 8 | ||||
-rw-r--r-- | lib/plugins/styler/lang/en/intro.txt | 4 | ||||
-rw-r--r-- | lib/plugins/styler/lang/en/lang.php | 11 |
3 files changed, 20 insertions, 3 deletions
diff --git a/lib/plugins/styler/admin.php b/lib/plugins/styler/admin.php index 8d44ac6f5..4269a0ee7 100644 --- a/lib/plugins/styler/admin.php +++ b/lib/plugins/styler/admin.php @@ -82,8 +82,12 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { echo '<table>'; foreach($replacements as $key => $value) { + $name = tpl_getLang($key); + if(empty($name)) $name = $this->getLang($key); + if(empty($name)) $name = $key; + echo '<tr>'; - echo '<td>'.$key.'</td>'; + echo '<td>'.$name.'</td>'; echo '<td><input name="tpl['.hsc($key).']" value="'.hsc($value).'" '.$this->colorClass($key).' />'; echo '</tr>'; } @@ -104,6 +108,8 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { echo '</form>'; + echo tpl_locale_xhtml('style'); + } } diff --git a/lib/plugins/styler/lang/en/intro.txt b/lib/plugins/styler/lang/en/intro.txt index bb9e3ff33..4ea55172f 100644 --- a/lib/plugins/styler/lang/en/intro.txt +++ b/lib/plugins/styler/lang/en/intro.txt @@ -1,2 +1,2 @@ -This tool allows you to change certain style settings of your currently selected template -all changes are stored in a local configuration file and are upgrade safe.
\ No newline at end of file +This tool allows you to change certain style settings of your currently selected template. +All changes are stored in a local configuration file and are upgrade safe.
\ No newline at end of file diff --git a/lib/plugins/styler/lang/en/lang.php b/lib/plugins/styler/lang/en/lang.php index 2dd7921b0..1bf8efa2c 100644 --- a/lib/plugins/styler/lang/en/lang.php +++ b/lib/plugins/styler/lang/en/lang.php @@ -16,6 +16,17 @@ $lang['btn_save'] = 'Save your changes'; $lang['btn_reset'] = 'Reset your current changes'; $lang['btn_revert'] = 'Revert all styles back to the template\'s default'; +// default guaranteed placeholders +$lang['__text__'] = 'Main text color'; +$lang['__background__'] = 'Main text background color'; +$lang['__text_alt__'] = 'Alternative text color'; +$lang['__background_alt__'] = 'Alternative text background color'; +$lang['__text_neu__'] = 'Neutral text color'; +$lang['__background_neu__'] = 'Neutral text background color'; +$lang['__border__'] = 'Border color'; +$lang['__highlight__'] = 'Highlight color (for search results mainly)'; + + //Setup VIM: ex: et ts=4 : |