Guest Posted April 30, 2010 Share Posted April 30, 2010 First af all: congratulations for a great distribution. It's fantastic in a single language shop. The problem I face is the following: I have a 3 languages shop. All language modules work fine. Databases for multiple prices for different customers, and discount coupons works right, And then after testing PD Invoice with just english, i copied the language folders to their respective places. Chmod files to 755, and tried it.: English: works fine. Pretty, just need a little hack as i need the place occupied by included_tax Columns. That should be not difficult. I, copy the files to the 2 other languages. Well let's see how pretty is in the following language: Spanish. Opps: Error message: Warning: require(includes/languages/espanol/pdfinvoice.php) [function.require]: failed to open stream: No such file or directory in /home/rodrigu6/public_html/magyarorszag/catalog/pdfinvoice.php on line 50 Let's see what is at line 50 of catalog/pefinvoice.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CUSTOMER_PDF); Let's see in Hungarian language: Error Message: Fatal error: Cannot redeclare html2rgb() (previously declared in /home/rodrigu6/public_html/magyarorszag/bolt/pdfinvoice.php:54) in /home/rodrigu6/public_html/magyarorszag/bolt/includes/languages/hungarian/pdfinvoice.php on line 70 Hummm. What's at line 70?: it starts really at line 52 (the final of this is line 70) // function to return rgb value for fpdf from supplied hex (#abcdef) function html2rgb($color){ if ($color[0] == '#') $color = substr($color, 1); if (strlen($color) == 6) list($r, $g, $B) = array($color[0].$color[1], $color[2].$color[3], $color[4].$color[5]); elseif (strlen($color) == 3) list($r, $g, $B) = array($color[0], $color[1], $color[2]); else return false; $r = hexdec($r); $g = hexdec($g); $b = hexdec($B); return array($r,$g,$B); } //this is line 70. What is after this line: starts at line 72 // function to return rgb value for fpdf from supplied hex (#abcdef) function html2rgb($color){ if ($color[0] == '#') $color = substr($color, 1); if (strlen($color) == 6) list($r, $g, $B) = array($color[0].$color[1], $color[2].$color[3], $color[4].$color[5]); elseif (strlen($color) == 3) list($r, $g, $B) = array($color[0], $color[1], $color[2]); else return false; $r = hexdec($r); $g = hexdec($g); $b = hexdec($B); return array($r,$g,$B); } --------- Well, Let's try english language (the one worked pretty fine before installing in other languages). The same than above : error in line 70. Now In much more lost then the screenplay writers of "LOST" and nearly as much as "FLASHFORWARD" ones as well. May any of you, great thinking heads, help a deseperate househusband learning autodidactally some skills of informatic science.?? Thank you very much. Full of greetings. Armando C. Maus. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2010 Share Posted April 30, 2010 Eh... What are doing those emoticons in the middle of the codes?? Sorry... First af all: congratulations for a great distribution. It's fantastic in a single language shop. The problem I face is the following: I have a 3 languages shop. All language modules work fine. Databases for multiple prices for different customers, and discount coupons works right, And then after testing PD Invoice with just english, i copied the language folders to their respective places. Chmod files to 755, and tried it.: English: works fine. Pretty, just need a little hack as i need the place occupied by included_tax Columns. That should be not difficult. I, copy the files to the 2 other languages. Well let's see how pretty is in the following language: Spanish. Opps: Error message: Warning: require(includes/languages/espanol/pdfinvoice.php) [function.require]: failed to open stream: No such file or directory in /home/rodrigu6/public_html/magyarorszag/catalog/pdfinvoice.php on line 50 Let's see what is at line 50 of catalog/pefinvoice.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CUSTOMER_PDF); Let's see in Hungarian language: Error Message: Fatal error: Cannot redeclare html2rgb() (previously declared in /home/rodrigu6/public_html/magyarorszag/bolt/pdfinvoice.php:54) in /home/rodrigu6/public_html/magyarorszag/bolt/includes/languages/hungarian/pdfinvoice.php on line 70 Hummm. What's at line 70?: it starts really at line 52 (the final of this is line 70) // function to return rgb value for fpdf from supplied hex (#abcdef) function html2rgb($color){ if ($color[0] == '#') $color = substr($color, 1); if (strlen($color) == 6) list($r, $g, $B) = array($color[0].$color[1], $color[2].$color[3], $color[4].$color[5]); elseif (strlen($color) == 3) list($r, $g, $B) = array($color[0], $color[1], $color[2]); else return false; $r = hexdec($r); $g = hexdec($g); $b = hexdec($B); return array($r,$g,$B); } //this is line 70. What is after this line: starts at line 72 // function to return rgb value for fpdf from supplied hex (#abcdef) function html2rgb($color){ if ($color[0] == '#') $color = substr($color, 1); if (strlen($color) == 6) list($r, $g, $B) = array($color[0].$color[1], $color[2].$color[3], $color[4].$color[5]); elseif (strlen($color) == 3) list($r, $g, $B) = array($color[0], $color[1], $color[2]); else return false; $r = hexdec($r); $g = hexdec($g); $b = hexdec($B); return array($r,$g,$B); } --------- Well, Let's try english language (the one worked pretty fine before installing in other languages). The same than above : error in line 70. Now In much more lost then the screenplay writers of "LOST" and nearly as much as "FLASHFORWARD" ones as well. May any of you, great thinking heads, help a deseperate househusband learning autodidactally some skills of informatic science.?? Thank you very much. Full of greetings. Armando C. Maus. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.