source: pmb4.2/trunk/fuentes/pmb/traduction.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 488 bytes
Line 
1<?php
2$filename="trad4_pmb_unicode_UTF8.txt";
3$fp=fopen($filename,"r");
4$fw=fopen("ar_AR.xml","w+");
5
6fwrite($fw,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
7fwrite($fw,"<!DOCTYPE XMLlist SYSTEM \"XMLlist.dtd\">\n");
8fwrite($fw,"<XMLlist>\n");
9
10$l=0;
11while (!feof($fp)) {
12        $line=fgets($fp,4096);
13        if ($l>0) {
14                $line=rtrim($line);
15       
16                $cols=explode("\t",$line);
17                fwrite($fw,"<entry code=\"".$cols[0]."\">".$cols[2]."</entry>\n");
18        }
19        $l++;
20}
21fwrite($fw,"</XMLlist>");
22fclose($fw);
23?>
Note: See TracBrowser for help on using the repository browser.