PHP - Translation
Hey guys I'm after a English to Arabic translation script...although I have Googled it but as you can imagine there's no script of that.
Would I have to create a array of English words and then give them the value in Arabic? :/...just wondering if I have any other options...thank you Similar TutorialsI'm having some trouble working on a site that i started a few years ago. I'm basically relearning how it was working, or not working. I've been able to figure out most, but I've come across something that I'm not finding online. What is the purpose of this $i here? Code: [Select] $catSQL = "SELECT * from category"; $stSQL = mysql_query($catSQL) or die ("<br><font color='red'><b>There was a problem!</b></font><br><br>" . mysql_error()); while ($i < mysql_num_rows($stSQL)) { $catname=mysql_result($stSQL,$i,"name"); $catid=mysql_result($stSQL,$i,"id"); $categoryDropdown .= "<option value=".$catid.">".$catname."</option>"; ++$i; } I don't get it...every other day but Sunday is shows up correct? $VDOP = "2011-12-04"; $exp = explode("-", $VDOP); echo "$VDOP is on a " .date("l", mktime(0, 0, 0, $exp[2], $exp[1], $exp[0])); Any thoughts on this (besides Jesus doesn't like PHP ). I hope someone can help me with this one. I have tried all sorts of different methods and I can't seem to get the syntax correct. The application is calling a program called ZP4, a database used for address scrubbing, using COM. From their documentation: Quote ZP4IPCOM exposes a simple interface of four different calls: Input, Correct, Output, and Reset. "Input" is used to pass address input to ZP4... "Correct" is used to make ZP4 search the ZIP+4 database for the previously specified input address. "Output" retrieves a ZP4 output field. The COM example they give in the documentation uses VB. The VB code executes as it should without problems but everything I try with PHP issues an error: Here is the VB code straight from their documentation, which executes correctly. Code: [Select] Set zp4 = CreateObject("ZP4IPCom.ZP4Com") zp4.input "Company", "xyz corp" zp4.input "Address", "box 1920" zp4.input "City", "rio del mar" zp4.correct MsgBox zp4.output("ZIP (final)") Set zp4 = Nothing Here is my attempt at the translation to PHP, which issues an error (Method not found for 3 of the 4 methods) Code: [Select] $zp4 = new COM('ZP4IPCom.ZP4Com'); $zp4->reset; $zp4->input("Company", "xyz corp"); $zp4->input("Address", "box 1920"); $zp4->input("City", "rio del mar"); $zp4->correct; $output = $zp4->output("ZIP (final)"); echo $output; $zp4 = null; It's strange because the output method is found, because the results will be displayed on the program's server log window, but the other 3 methods are not found (input, reset, and correct). Any help with this would be greatly appreciated! Hello, For months I'm looking for a weather script for my modest blog I finally have a php script that displays yahoo weather (5 days) in English (TUE, WEN, THU, ...) It would be nice if someone can tell me if there is a way, function or script, to translate these days in French Yahoo team says that it is not possible :http://developer.yahoo.com/forum/General-Discussion-at-YDN/Can-Yahoo-Weather-API-show-by/1275022713000-d78748d9-0247-313b-ad9e-3503b8ea3d07 Cordially, Kim. Hi, I am trying to translate a page in PHP using Google API. There is 5000 chars limit on data that you can send to Google at a time. So I am trying to break the page into pieces of 5000 chars. But as you know while doing this we have to keep in mind the HTML formatting that it should not be disturbed otherwise you will not get desired results. For example you have to send this: <a href="#" class="myclass">Link</a> Instead of this: <a href="#" class="myclas I am able to solve it somehow (although not perfectly I guess) by checking if "<" sign is coming after ">" sign or not. If "<" sign is coming after ">" then I go back to the point where I found ">" and cut string from there. Anyway the point is I am still having some problems regarding HTML formatting and want to know how to do it efficiently. Is there any parser available that will solve this problem!? Thanks I am having problems being able to find the data that needs to be posted in various translation websites. I think this is because the translation tools they have are using some kind of flash script to translate? So the new page isn't being loaded using the post data string?? I am not completely sure, anyways... I am using live http headers on firefox to try and get the content for the post data string. The sites I have tried to get the post data from are these: http://www.freetranslation.com/ http://www.free-translator.com/ I can get cURL to visit the page and do everything, I just cant find the post data string. or maybe I am way off here.. Thanks for any help |