Changeset 120876 in spip-zone for _plugins_/trad-lang/trunk
- Timestamp:
- Jan 29, 2020, 2:29:06 PM (15 months ago)
- Location:
- _plugins_/trad-lang/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/trad-lang/trunk
- Property subgit:lock:30c22604142630630a48cc8c38d6ea6b2d96a06e deleted
-
Property
subgit:lock:7250de8a8177762610a67a2406007eaf9a906dce
set to
2020-01-29T18:00:33.170
-
_plugins_/trad-lang/trunk/formulaires/tradlang_selecteur_module.html
r71070 r120876 6 6 [(#GET{optgroup}|=={oui}|oui) </optgroup>][(#SET{optgroup,oui})] 7 7 <optgroup label="#PRIORITE"> 8 ] <option value="#ID_TRADLANG_MODULE"[(#ID_TRADLANG_MODULE|=={#ENV{id_tradlang_module}}|oui)selected="selected"]> #NOM_MOD</option>8 ] <option value="#ID_TRADLANG_MODULE"[(#ID_TRADLANG_MODULE|=={#ENV{id_tradlang_module}}|oui)selected="selected"]>[(#NOM_MOD|tradlang_module_jolinom)]</option> 9 9 </BOUCLE_modules>[(#GET{optgroup}|=={oui}|oui)</optgroup>] 10 10 </select> -
_plugins_/trad-lang/trunk/tradlang_fonctions.php
r120873 r120876 251 251 return false; 252 252 } 253 254 function tradlang_module_jolinom($nom_mod) { 255 if (strpos($nom_mod, '[') !== false) { 256 $nom_mod = str_replace(array('[', ']'), array('<small class=\'text-muted\'>[', ']</small>'), $nom_mod); 257 if (strpos($nom_mod, ']') === false) { 258 $nom_mod .= "</small>"; 259 } 260 } 261 if (strpos($nom_mod, '(') !== false and strpos($nom_mod, ')') !== false) { 262 $nom_mod = str_replace("(", "<small class='text-muted'>(", $nom_mod); 263 $nom_mod = str_replace(")", ")</small>", $nom_mod); 264 } 265 return $nom_mod; 266 } -
_plugins_/trad-lang/trunk/tradlang_options.php
r120875 r120876 53 53 54 54 function calculer_nom_module($module, $dir_module) { 55 $s = dir_module_to_basename($dir_module); 55 56 $nom = $module; 56 if (!$s = dir_module_to_basename($dir_module)) { 57 $s = '?'; 57 if (strpos($nom, 'paquet-') === 0) { 58 $nom = substr($nom, 7) . " (paquet.xml)"; 59 if ($s and $s !== $module) { 60 $nom .= " [$s]"; 61 } 58 62 } 59 $nom .= " [$s]"; 63 else { 64 $nom .= " [" . ($s ? $s : '?') . "]"; 65 } 60 66 return $nom; 61 67 }
Note: See TracChangeset
for help on using the changeset viewer.