مرحبا يا شباب

عندي اسكريبت و الطريقة الوحيدة لتعريبه ارسلوها لي المبرمجين و كتبوا فيها:


Output Buffer Interception and Modification

The method described here is not the recommended method to change the system language, but is presented as a work-around solution until the official language release becomes available. Following the steps below will allow you to change the text of the system to another language or to simply change what is displayed.

Create a directory in the ad server root directory named: ob_mod
Inside the directory, create a file named: ob_intercept.php
Place the following lines of code into the file created above:
<?php
//INTERMEDIATE HACK TO ALLOW LANGUAGE MODIFICATION
function language_processor($buffer)
{
//TEXT WITHIN THE PUBLISHER ACCOUNT
if($_SESSION['inclick_user_level'] == "pub")
{
$buffer = str_replace("Revenue Summary", "Revenue Report", $buffer);
}

//TEXT WITHIN THE ADVERTISER ACCOUNT
if($_SESSION['inclick_user_level'] == "adv")
{
$buffer = str_replace("CPC Ads Summary", "CPC Ads Summary", $buffer);
}

//TEXT WITHIN THE NEW ADVERTISER AND NEW PUBLISHER SIGN UP PROCESS
if($_SERVER["SCRIPT_NAME"]== "/signup.php")
{
$buffer = str_replace("Step 1", "Step 1", $buffer);
}

//TEXT FOR LOGIN PAGE
$buffer = str_replace("Login information", "Login Information", $buffer);

//TEXT FOR LOST PASSWORD WORKFLOW
$buffer = str_replace("forgotten username or password", "Lost Password and Account Locator", $buffer);

return $buffer;
}
if($_SERVER['SCRIPT_FILENAME'] == INCLICK_BASE_DIR . "/html/cpc_suggest.php" or $_SERVER['SCRIPT_FILENAME'] == INCLICK_BASE_DIR . "/client.php" or $_SERVER['SCRIPT_FILENAME'] == INCLICK_BASE_DIR . "/index_client.php" or $_SERVER['SCRIPT_FILENAME'] == INCLICK_BASE_DIR . "/signup.php" )
{
ob_start('language_processor');
}
?>
Inside the PHP content tag in the /globals/globals_custom.php file, add the following towards the top of the file:
include_once(INCLICK_BASE_DIR . "/ob_mod/ob_intercept.php");
Changing Text

The above ob_intercept.php code is divided into sections for easy maintenance - Publisher, Advertiser, Signup (both Advertiser and Publisher), login, and lost password. For each segment, a sample text change has been made. The format is simply
$buffer = str_replace("Original Text", "New Text", $buffer);
Repeating the line for each segment of text

For example, to change the "Welcome New User" text for the signup process to a Italian translation, you would create
$buffer = str_replace("Welcome New User", "Benvenuto nuovo utente", $buffer);
In this example, this should be placed inside the sign up segment.



ممكن حدا يشرحلي كيف اعمل هل خطوات بعد اذنكم