Changeset 108353 in spip-zone
- Timestamp:
- Jan 4, 2018, 1:50:14 PM (3 years ago)
- Location:
- _plugins_/multilingue/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/multilingue/trunk
- Property svn:ignore
-
old new 1 1 README.md 2 fonds 3 formulaires 2 4 .project
-
-
Property
svn:mergeinfo
set to
/_plugins_/multilingue/branches/0 merged eligible
- Property svn:ignore
-
_plugins_/multilingue/trunk/formulaires/inc-options-langues_multi.html
r107580 r108353 4 4 <BOUCLE_traductions(ARTICLES) {traduction} {par lang}> 5 5 <option 6 value='[(#URL_ACTION_AUTEUR{'converser',6 value='[(#URL_ACTION_AUTEUR{'converser', 7 7 '', 8 8 [(#URL_ARTICLE|parametre_url{lang,'','&'})]} … … 12 12 dir="[(#LANG|lang_dir{ltr,rtl})]"> 13 13 [(#LANG|traduire_nom_langue)] 14 </option> 14 </option> 15 15 </BOUCLE_traductions> 16 16 </BOUCLE_article> … … 27 27 dir="[(#LANG|lang_dir{ltr,rtl})]"> 28 28 [(#LANG|traduire_nom_langue)] 29 </option> 29 </option> 30 30 </BOUCLE_traductions_rub> 31 31 </BOUCLE_rubrique> … … 39 39 |parametre_url{arg,''} 40 40 |parametre_url{var_lang,#LANG})]' 41 [ (#LANG|=={#ENV{lang}}|oui)selected="selected"] 41 [ (#LANG|=={#ENV{lang}}|oui)selected="selected"] 42 42 dir="[(#LANG|lang_dir{ltr,rtl})]"> 43 43 [(#LANG|traduire_nom_langue)] 44 44 </option> 45 45 </BOUCLE_langue_possibles_trad> 46 </BOUCLE_langue_possibles> 46 </BOUCLE_langue_possibles> 47 47 <//B_rubrique> 48 48 <//B_article> -
_plugins_/multilingue/trunk/formulaires/menu_lang.html
r107580 r108353 4 4 <form method="post" action="#"><div> 5 5 <select onchange="window.open(this.options#VAL{[}this.selectedIndex#VAL{]}.value,'_top')" name="menu_lang" id="menu_lang"> 6 6 (#INCLURE{fond=formulaires/inc-options-langues#GET{multi},env}) 7 7 </select> 8 8 <noscript><p class="boutons"><input type="submit" class="submit" value=">>" /></p></noscript> 9 9 </div></form> 10 10 </div>] 11 12 -
_plugins_/multilingue/trunk/multilingue_fonctions.php
r104327 r108353 1 1 <?php 2 3 2 if (!defined('_ECRIRE_INC_VERSION')) 4 3 return; 5 4 6 5 include_spip('inc/config'); 7 6 8 7 if (!lire_config('multilingue/desactiver_traduction_logo_objet')) 9 10 if ( $traduire_logo == 'ok') {11 12 13 14 15 #attention au cas $id = '0' pour LOGO_SITE_SPIP : utiliser intval()8 $traduire_logo = 'ok'; 9 if (($traduire_logo == 'ok') and (!test_plugin_actif('logos_roles'))) { 10 // surcharge de https://code.spip.net/@inc_chercher_logo_dist pour ajouter 11 function inc_chercher_logo($id, $_id_objet, $mode = 'on') { 12 include_spip('inc/chercher_logo'); 13 global $formats_logos; 14 // attention au cas $id = '0' pour LOGO_SITE_SPIP : utiliser intval() 16 15 17 16 $type = type_du_logo($_id_objet); 18 17 19 20 21 18 $objet = str_replace('id_', '', $_id_objet); 19 $tables = lister_tables_objets_sql(); 20 $table = 'spip_' . $objet . 's'; 22 21 23 24 25 26 27 28 29 30 31 32 33 34 //si pas de logo on cherche si l'article d'origine en a un35 elseif ($tables[$table]['field']['id_trad'] AND $id_trad = sql_getfetsel('id_trad', $table, $_id_objet . '=' . intval($id)) AND_request('exec') != $objet) {36 37 38 39 40 41 42 43 44 45 }; 46 } 47 48 # coherence de type pour servir comme filtre (formulaire_login) 49 return array(); 50 } 51 22 foreach ($formats_logos as $format) { 23 $nom = $type . $mode . intval($id); 24 if (@file_exists($d = (_DIR_LOGOS . $nom . '.' . $format))) { 25 return array( 26 $d, 27 _DIR_LOGOS, 28 $nom, 29 $format, 30 @filemtime($d) 31 ); 32 } 33 // si pas de logo on cherche si l'article d'origine en a un 34 elseif ($tables[$table]['field']['id_trad'] and $id_trad = sql_getfetsel('id_trad', $table, $_id_objet . '=' . intval($id)) and _request('exec') != $objet) { 35 $nom = $type . $mode . intval($id_trad); 36 if (@file_exists($d = (_DIR_LOGOS . $nom . '.' . $format))) { 37 return array( 38 $d, 39 _DIR_LOGOS, 40 $nom, 41 $format, 42 @filemtime($d) 43 ); 44 } 45 ; 46 } 47 } 48 // coherence de type pour servir comme filtre (formulaire_login) 49 return array(); 50 } 52 51 } 53 -
_plugins_/multilingue/trunk/paquet.xml
r107186 r108353 2 2 prefix="multilingue" 3 3 categorie="edition" 4 version="1.0. 9"4 version="1.0.10" 5 5 etat="stable" 6 6 compatibilite="[2.0.0;3.2.*]" -
_plugins_/multilingue/trunk/plugin.xml
r107186 r108353 3 3 <slogan>Créer facilement un site multilingue</slogan> 4 4 <auteur>[Rainer Müller->http://websimple.be]</auteur> 5 <version>1.0. 9</version>5 <version>1.0.10</version> 6 6 <etat>stable</etat> 7 7 <description> -
_plugins_/multilingue/trunk/prive/themes/spip/images/multilingue-16.png
- Property svn:mime-type deleted
-
_plugins_/multilingue/trunk/prive/themes/spip/images/multilingue-24.png
- Property svn:mime-type deleted
Note: See TracChangeset
for help on using the changeset viewer.