Changeset 6795 for extensions
- Timestamp:
- Aug 24, 2010, 3:42:34 AM (14 years ago)
- Location:
- extensions/ContestResults
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/language/en_UK/plugin.lang.php
r6782 r6795 52 52 $lang['CR_menubar_block_number'] = 'Quantity of contests to display in the block'; 53 53 54 $lang['CR_help_lang'] = ( $ED['state']== 'active') ? "<b>You can use HTML and multilanguage descriptions.</b>" : "<b>You can use HTML.</b>";54 $lang['CR_help_lang'] = (CR_ED_state == 'active') ? "<b>You can use HTML and multilanguage descriptions.</b>" : "<b>You can use HTML.</b>"; 55 55 // <span style='font-size:0.8em;'><br/><br/> 56 56 // Multilanguage descriptions are placed between [lang=xx] and [/lang] tags, where xx is the language code (for example en, es, fr). There is also 2 special languages : [lang=default] and [lang=all]. -
extensions/ContestResults/language/fr_FR/plugin.lang.php
r6782 r6795 52 52 $lang['CR_menubar_block_number'] = 'Nombre de concours à afficher dans le bloc'; 53 53 54 $lang['CR_help_lang'] = ( $ED['state']== 'active') ? "<b>Vous pouvez utiliser du HTML et les descriptions multilingues.</b>" : "<b>Vous pouvez utiliser du HTML.</b>";54 $lang['CR_help_lang'] = (CR_ED_state == 'active') ? "<b>Vous pouvez utiliser du HTML et les descriptions multilingues.</b>" : "<b>Vous pouvez utiliser du HTML.</b>"; 55 55 // <span style='font-size:0.8em;'><br/><br/> 56 56 // Les descriptions multilingues se font entre les balises [lang=xx] et [/lang], ou xx est le code de la langue (par exemple fr, en, es, it, etc....) Il existe également 2 balises spéciales: [lang=default] et [lang=all]. -
extensions/ContestResults/main.inc.php
r6782 r6795 25 25 define('CR_PUBLIC', make_index_url(array('section' => 'contests')) . '/'); 26 26 27 $ED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 28 define('CR_ED_state', $ED['state']); 29 27 30 28 31 // +-----------------------------------------------------------------------+ … … 34 37 add_event_handler('loc_end_picture', 'CR_comment_picture', 10); // Commentaire sur la page image 35 38 36 $ED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 37 if($ED['state'] == 'active') add_event_handler('render_CR_content', 'get_user_language_desc'); // Textes multilangues 39 if(CR_ED_state == 'active') add_event_handler('render_CR_content', 'get_user_language_desc'); // Textes multilangues 38 40 39 41 // Langues
Note: See TracChangeset
for help on using the changeset viewer.