Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

doku_button [2009/08/25 11:55]
suitable créée
doku_button [2009/08/25 12:16] (Version actuelle)
suitable
Ligne 19: Ligne 19:
 ^ $method='get' :|  | ^ $method='get' :|  |
 ^ %%$tooltip=''%% :| skip, to remain language independent? | ^ %%$tooltip=''%% :| skip, to remain language independent? |
 +
  
 ==== What I Did ==== ==== What I Did ====
  
-  - Added the following statement to the list of buttons in my template sidebar: +  - Added the following statement to the list of buttons in my template sidebar:  %% <li> <?php print html_btn('legal','mentions_legales','b',array('do' => 'show')); ?></li>
-  %% <li> <?php print html_btn('legal','mentions_legales','b',array('do' => 'show')); ?></li>+
 %% %%
   - Added key/value entries to ''lang.php'' for each of the languages I (might) use: EN, FR:   - Added key/value entries to ''lang.php'' for each of the languages I (might) use: EN, FR:
     * EN : ''$lang['btn_legal']  = 'Legal';''     * EN : ''$lang['btn_legal']  = 'Legal';''
     * FR : ''$lang['btn_legal']  = 'Mentions Legales';''     * FR : ''$lang['btn_legal']  = 'Mentions Legales';''
 +
 +=== Problem! ===
 +
 +The labels added to ''lang.php'' will be lost when the file is overwritten at the next version change! It seems there are few options for "fixing" this:
 +  - Lobby DokuWiki to include this ''btn_legal'' as a standard label in all language files
 +  - Leave it as it is, and remember to re-enter the labels at each upgrade
 +  - Make a ''plugin'' for this button, so the label can be separately maintained (seems like the wrong thing to do: overkill)
 +  - Add a button_maker function and language files to the template: probably worth considering, if (1) fails.
  
  
 
doku_button.txt · Dernière modification: 2009/08/25 12:16 par suitable
 
Sauf mention contraire, le contenu de ce wiki est placé sous la licence suivante :CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki