|
@@ 1213-1215 (lines=3) @@
|
| 1210 |
|
// Cas du turc |
| 1211 |
|
if ($GLOBALS['spip_lang'] == 'tr') { |
| 1212 |
|
# remplacer hors des tags et des entites |
| 1213 |
|
if (preg_match_all(',<[^<>]+>|&[^;]+;,S', $texte, $regs, PREG_SET_ORDER)) { |
| 1214 |
|
foreach ($regs as $n => $match) { |
| 1215 |
|
$texte = str_replace($match[0], "@@SPIP_TURC$n@@", $texte); |
| 1216 |
|
} |
| 1217 |
|
} |
| 1218 |
|
|
|
@@ 1221-1223 (lines=3) @@
|
| 1218 |
|
|
| 1219 |
|
$texte = str_replace('i', 'İ', $texte); |
| 1220 |
|
|
| 1221 |
|
if ($regs) { |
| 1222 |
|
foreach ($regs as $n => $match) { |
| 1223 |
|
$texte = str_replace("@@SPIP_TURC$n@@", $match[0], $texte); |
| 1224 |
|
} |
| 1225 |
|
} |
| 1226 |
|
} |