View Single Post
Old 11-04-2012, 06:19 PM   PM User | #539
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
I have tried so

index.php
PHP Code:

<?php 
$lang 
$_GET["lang"]; 
if(
$lang == ""
 {  
  
$lang "de";   
 } 
include(
"language/lang_".$lang.".php"); 

...

?>
<?php 
echo '<?xml version="1.1" encoding="iso-8859-1"?>'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title><?php echo $Titel ?></title>

...
lang_de.php
PHP Code:
<?php 
$Titel 
"Video2MP3.eu - Youtube und Dailymotion Videos Online umwandeln";
$Convert "Video wird umgewandelt. . .";
$Success "Abgeschlossen";
$Download_File "Datei runterladen";
$Create_Ringtone "Klingelton erstellen";
$Error_gen_file "Fehler beim erzeugen der Convertierten Datei";
$Wait_Convert "...Bitte warten, das Video wird umgewandelt:";
$Video_Download "Video runterladen. . .";
$Error_Download "Fehler beim Download, bitte versuche es erneut!";
$Wrong_url "Falsche video URL oder dateityp! Bitte versuche es nochmal.";
$Vaild_url "Gib eine g&uuml;ltige YouTube.com oder Dailymotion.com Video URL ein";
$Choose_file_type "In welches Format soll das Video umgewandelt werden?";
$Convert_Video_Button "Video Umwandeln";
$Format "Format";
$Codec "Codec";
$Bitrate "Bitrate";
$Type "Typ";
$HD "* = 2000 kbit/s nur wenn das Video in HD vorliegt.";
$iOS_Support "² = iPhone, iPad, iPod geeignet.";

$Footer_text "evtl. Darstellungsprobleme mit dem Internet Explorer.";

$Twitter_Tweet "Twittern";
$Twitter_lang "de";

?>
lang_en.php
PHP Code:
<?php 
$Titel 
"Video2MP3.eu - Convert Youtube und Dailymotion Videos Online";
$Convert "Converting video. . .";
$Success "Success";
$Download_File "Download your converted file";
$Create_Ringtone "Create Ringtone";
$Error_gen_file "Error generating converted file!";
$Wait_Convert "...Please wait while I try to convert:";
$Video_Download "Downloading video. . .";
$Error_Download "Error downloading video, please, try again!";
$Wrong_url "Invalid video URL or file type! Please, try again.";
$Vaild_url "Enter valid Youtube.com or Dailymotion.com video URL";
$Choose_file_type "Choose file type to convert video to:";
$Convert_Video_Button "Convert Video";
$Format "Format";
$Codec "Codec";
$Bitrate "Bitrate";
$Type "Type";
$HD "* = 2000 kbit/s only when the video is in HD.";
$iOS_Support "² = iPhone, iPad, iPod support.";

$Footer_text "possibly display issues with Internet Explorer.";

$Twitter_Tweet "Tweet";
$Twitter_lang "en";
?>
the translation also works great, but when I choose English and then convert a video , it automatically jumps to the default language (German) .



you can test it here: http://video2mp3.eu/test/?lang=en

Last edited by chump2877; 11-04-2012 at 06:54 PM.. Reason: just editing out some code from paid version
Luckyplaya is offline   Reply With Quote