Przeglądaj źródła

Merge branch 'Translations'

Iñigo Valentin 9 lat temu
rodzic
commit
aa9975a45d
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4 5
      www/traducir/index.php

+ 4 - 5
www/traducir/index.php

@@ -178,9 +178,9 @@
 				table[<?=$i?>] = '<?=$r['tab']?>';
 				field[<?=$i?>] = '<?=$r['field']?>';
 				id[<?=$i?>] = '<?=$r['id']?>';
-				es[<?=$i?>] = '<?=$r['es']?>';
-				en[<?=$i?>] = '<?=$r['en']?>';
-				eu[<?=$i?>] = '<?=$r['eu']?>';
+				es[<?=$i?>] = '<?=str_replace("'", "´", $r['es'])?>';
+				en[<?=$i?>] = '<?=str_replace("'", "´", $r['en'])?>';
+				eu[<?=$i?>] = '<?=str_replace("'", "´", $r['eu'])?>';
 <?php
 				$i = $i + 1;
 			}
@@ -215,7 +215,7 @@
 					document.getElementById('t_translation').innerText = '';
 					document.getElementById('t_translation').value = '';
 					document.getElementById('t_translation').style.display = 'inline-block';
-					document.getElementById('type').value = 'i';
+					document.getElementById('type').value = 't';
 				}
 			}
 			
@@ -255,7 +255,6 @@
 					c = encodeURI(document.getElementById('t_translation').value);
 				}
 				var url = "<?=$server?>/traducir/load.php?t=" + t + "&f=" + f + "&i=" + i + "&c=" + c + "&l=" + l + "&n=" + n;
-				alert(url);
 				var xhttp = new XMLHttpRequest();
 				xhttp.onreadystatechange = function() {
 					// I won't notify  400 status code. I dont' want to be anoying.