Skip to content
Snippets Groups Projects
Commit 9fb99099 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added more localization

parent e422a60a
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
}
......
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
......@@ -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 :
<?php
// style.ini values
$lang['__background_site__'] = 'Color for the very background (behind the content box)';
$lang['__link__'] = 'The general link color';
$lang['__existing__'] = 'The color for links to existing pages';
$lang['__missing__'] = 'The color for links to non-existing pages';
$lang['__site_width__'] = 'The width of the full site (can also be a percentage)';
$lang['__sidebar_width__'] = 'The width of the sitebar if any (can also be a percentage)';
$lang['__tablet_width__'] = 'Below screensizes of this width, the site switches to tablet mode';
$lang['__phone_width__'] = 'Below screensizes of this width, the site switches to phone mode';
If you want to adjust the logo, simply use the Media Manager to upload a ''logo.png'' in the ''wiki'' namespace and it
will be automaticaly be used. You can also upload a ''favicon.ico'' there. If you use a closed
wiki it is recommended to make the ''wiki'' namespace world readable in the ACL settings or
your logo is not shown to not logged in users.
\ No newline at end of file
<?php
$plg = plugin_load('action', 'feedback');
if($plg) $plg->tpl();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment