Location: PHPKode > projects > News Manager - RSS aggregator > newsmanager/translate.php
<?php
	/*******************************************************************************
     **  File          :  translate.php                                           **
     **  Author        :  G.Ramkumar                                              **
     **  Description   :  Translations for all langugaes						  **
  	 **  Date          :  14/07/2005                                              **
     **  Last Modified :  02/08/2005                                              **
     **  PHP Version   :  5.0.3                                                   **
     **                                                                           **
     *******************************************************************************/

//**************Translations**********
//for Intro text

$sel_intro ="select * from intro";
$sel_int_res=$pg_sql->query_pass($sel_intro,"4");

$length__=$sel_int_res[0]['spotlight_text_chars'];
$height__=$sel_int_res[0]['image_height'];
$width__=$sel_int_res[0]['image_width'];
$search_length__=$sel_int_res[0]['search_results_text_chars'];
$image_position__=$sel_int_res[0]['image_position'];
$time_delay__=$sel_int_res[0]['time_delay'];
$allnews_item_home__=$sel_int_res[0]['allnews_item_home'];
$allnews_item__=$sel_int_res[0]['allnews_item'];
$spotlight_item__=$sel_int_res[0]['spotlight_item'];
$display_spotlight__=$sel_int_res[0]['display_spotlight'];
$display_allnews__=$sel_int_res[0]['display_allnews'];
$display_style_=$sel_int_res[0]['style'];

if($display_style_==1)
	$itemsplitter='itemspliter.gif';
if($display_style_==2)
	$itemsplitter='itemspliter2.jpg';
if($display_style_==3)
	$itemsplitter='itemspliter3.jpg';

//*******For Static Text***
$sel="select * from text where language='$lang'";
$sel_res=$pg_sql->query_pass($sel,"4");

$your_=$sel_res[0]['your'];
$advsearch_=$sel_res[0]['advanced_search'];
$search_results_=$sel_res[0]['search_results'];
$allnews_=$sel_res[0]['allnews'];
$copy_=$sel_res[0]['copyright'];
$home_=$sel_res[0]['home'];
$yesterday_=$sel_res[0]['yesterday'];
$today_=$sel_res[0]['today'];
$no_news_avail=$sel_res[0]['no_news_available'];



//**** For Spotlight && Readalso

$center_top ="select * from category where language='$lang' and position='Center'";
$center_top_res=$pg_sql->query_pass($center_top,"4");

$right_top ="select * from category where language='$lang' and position='Right'";
$right_top_res=$pg_sql->query_pass($right_top,"4");

$spotlight_=$center_top_res[0]['category_name'];
$readalso_=$right_top_res[0]['category_name'];

if($lang=='en')
{
 $advsearch_="Advanced Search";
 $search_="Search";
 $citizen_="citi.jpg";
 $business_="busin.jpg";
 $civil_="civil1.jpg";
 $citizenalt_="Citizen";
 $businessalt_="Business";
 $civilalt_="Civil Servants";
 $belogo_="logo_final_en.jpg";
 $news_="News";
 $news_image_="news_new.jpg";
 $rss_services_="RSS Services";
 $top__="top_en.gif";
 $top_alt__="Top of page";
 if($display_style_==1){
	 $previous__="previous.jpg";
	 $next__="next.jpg";
	 $new_search__="new_search.jpg";
	 $search_logo="search-en.jpg";
	 $reset_logo="reset.jpg";
	 $submit_logo="submit-en.jpg";
 }
if($display_style_==2){
	 $previous__="previous2.jpg";
	 $next__="next2.jpg";
	 $new_search__="new_search2.jpg";
	 $search_logo="search-en2.jpg";
	 $reset_logo="reset2.jpg";
	 $submit_logo="submit-en2.jpg";
 }
if($display_style_==3){
	 $previous__="previous3.jpg";
	 $next__="next3.jpg";
	 $new_search__="new_search3.jpg";
	 $search_logo="search-en3.jpg";
	 $reset_logo="reset3.jpg";
	 $submit_logo="submit-en3.jpg";
 }

 $consult_="Consult our archives";
 $noresults__="No results found for ";
 $adv_noresults__="No results";
 $search_foundto__="to";
 $search_foundwith__="with in a total of";
 $search_foundres__="results of";
 $search_foundnews__="newsitems";

 $adv_title__="Title";
 $adv_keyword__="Keyword in text";
 $adv_pubdate__="Publication Date";
 $adv_allwords__="All of the words";
 $adv_anywords__="Any of the words";
 $adv_olddate__="Oldest date";
 $adv_themes__="Themes";
 $adv_sort__="Sort on ";
 $adv_relevance__="Relevance";
 $adv_sort_pub__="Publication Date";
 $adv_any__="Any";
 $adv_one__="One day ago";
 $adv_week__="One week ago";
 $adv_month__="One month ago";
 $adv_sixmon__="6 months ago";
 $avail_feeds__="Available feeds";
 $avail_feeds_for__="Available feeds for";
 $feed_form_='Feed Form';
 $add_feed_text='Would you like to add a feed to this website?';

}
if($lang=='nl')
{
 $advsearch_="Geavanceerd zoeken";
 $search_="Zoeken";
 $news_="nieuws";
 $citizen_="citi_nl.jpg";
 $business_="busin_nl.jpg";
 $civil_="civil_nl.jpg";
 $citizenalt_="Burgers";
 $businessalt_="Bedrijven";
 $civilalt_="Ambtenaren";
 $belogo_="logo_final_en.jpg";
 $news_="Nieuws";
 $news_image_="news_new_nl.jpg";
 $rss_services_="RSS Diensten";
 $top__="top_nl.gif";
 $top_alt__="top van deze pagina";
 if($display_style_==1){
	 $previous__="previous_nl.jpg";
	 $next__="next_nl.jpg";
	 $new_search__="new_search_nl.jpg";
	 $search_logo="search-nl.jpg";
	 $reset_logo="reset.jpg";
	 $submit_logo="submit-en.jpg";
 }
 if($display_style_==2){
	 $previous__="previous2_nl.jpg";
	 $next__="next2_nl.jpg";
	 $new_search__="new_search2_nl.jpg";
	 $search_logo="search2-nl.jpg";
	 $reset_logo="reset2.jpg";
	 $submit_logo="submit-en2.jpg";
 }
 if($display_style_==3){
	 $previous__="previous3_nl.jpg";
	 $next__="next3_nl.jpg";
	 $new_search__="new_search3_nl.jpg";
	 $search_logo="search3-nl.jpg";
	 $reset_logo="reset3.jpg";
	 $submit_logo="submit-en3.jpg";
 }

 $consult_="Consulteer onze archieven";
 $noresults__="Geen resultaten gevonden voor ";
 $adv_noresults__="Geen resultaten";
 $search_foundto__="tot";
 $search_foundwith__="uit een totaal van";
 $search_foundres__="resultaten van";
 $search_foundnews__="nieuwsberichten";

 $adv_title__="Titel";
 $adv_keyword__="Kernwoord in de tekst";
 $adv_pubdate__="Publicatiedatum";
 $adv_allwords__="Alle woorden";
 $adv_anywords__="Elk woord";
 $adv_olddate__="Oudste datum";
 $adv_themes__="Thema’s";
 $adv_sort__="Sorteren op";
 $adv_relevance__="Relevantie";
 $adv_sort_pub__="publicatiedatum";
 $adv_any__="Alle";
 $adv_one__="1 dag geleden";
 $adv_week__="1 week geleden";
 $adv_month__="1 maand geleden";
 $adv_sixmon__="6 maand geleden";
 $avail_feeds__="Feeds beschikbaar";
 $avail_feeds_for__="Feeds beschikbaar voor";
 $feed_form_='Feed Form';
 $add_feed_text='Zou je een feed willen toevoegen aan deze site?';

}
if($lang=='fr')
{
  $advsearch_="Recherche avancée";
  $search_="Chercher";
  $news_="nouvelles";
  $consult_="Consult our archives";
  $themes_="Themes";
  $citizen_="citi_fr.jpg";
  $business_="busin_fr.jpg";
  $civil_="civil_fr.jpg";
  $citizenalt_="Citioyens";
  $businessalt_="Entreprises";
  $civilalt_="Fonctionnaires";
  $belogo_="logo_final_en.jpg";
  $news_="Actualités";
  $news_image_="news_new_fr.jpg";
  $rss_services_="Services RSS";
  $top__="top_fr.gif";
  $top_alt__="Haut de la page";
 if($display_style_==1){
	  $previous__="previous_fr.jpg";
	  $next__="next_fr.jpg";
	  $new_search__="new_search_fr.jpg";
	  $search_logo="search-fr.jpg";
	  $reset_logo="reset.jpg";
	  $submit_logo="submit-en.jpg";
 }
 if($display_style_==2){
	  $previous__="previous2_fr.jpg";
	  $next__="next2_fr.jpg";
	  $new_search__="new_search2_fr.jpg";
	  $search_logo="search2-fr.jpg";
	  $reset_logo="reset2.jpg";
	  $submit_logo="submit-en2.jpg";
 } 
 if($display_style_==3){
	  $previous__="previous3_fr.jpg";
	  $next__="next3_fr.jpg";
	  $new_search__="new_search3_fr.jpg";
	  $search_logo="search3-fr.jpg";
	  $reset_logo="reset3.jpg";
	  $submit_logo="submit-en3.jpg";
 } 

  $noresults__="Il n’y a pas de résultats trouvés pour ";
  $adv_noresults__="Il n’y a pas de résultats";
  $search_foundto__="à";
  $search_foundwith__="dans un total de";
  $search_foundres__="résultats de";
  $search_foundnews__="nouvelles";


  $adv_title__="Titre";
  $adv_keyword__="Mot clé dans le texte";
  $adv_pubdate__="Date de publication";
  $adv_allwords__="Tous les mots";
  $adv_anywords__="Mots séparés";
  $adv_olddate__="Date plus ancienne";
  $adv_themes__="Thèmes";
  $adv_sort__="Trier sur";
  $adv_relevance__="Pertinence ";
  $adv_sort_pub__="date de publication";
  $adv_any__="Tous";
  $adv_one__="Il y a un jour";
  $adv_week__="Il y a une semaine";
  $adv_month__="Il y a un mois";
  $adv_sixmon__="Il y a six mois";
  $avail_feeds__="Feeds disponibles";
  $avail_feeds_for__="Feeds disponibles pour";
  $feed_form_='Feed Form';
  $add_feed_text='Voulez-vous ajouter un feed à ce site web?';

}
if($lang=='de')
{
  $advsearch_="Erweiterte Suche";
  $search_="Suche";
  $citizen_="citi_de.jpg";
  $business_="busin_de.jpg";
  $civil_="civil_de.jpg";
  $citizenalt_="";
  $businessalt_="";
  $civilalt_="";
  $belogo_="logo_final_en.jpg";
  $news_="Nachbericht";
  $news_image_="news_new_de.jpg";
  $rss_services_="RSS Diensten";
  $top__="top_de.gif";
  $top_alt__="Zum Anfang der Seite";
  if($display_style_==1){
	  $previous__="previous_de.jpg";
	  $next__="next_de.jpg";
	  $new_search__="new_search_de.jpg";
	  $search_logo="search-de.jpg";
	  $reset_logo="reset.jpg";
	  $submit_logo="submit-en.jpg";
  }
  if($display_style_==2){
	  $previous__="previous2_de.jpg";
	  $next__="next2_de.jpg";
	  $new_search__="new_search2_de.jpg";
	  $search_logo="search2-de.jpg";
	  $reset_logo="reset2.jpg";
	  $submit_logo="submit-en2.jpg";
  }
  if($display_style_==3){
	  $previous__="previous3_de.jpg";
	  $next__="next3_de.jpg";
	  $new_search__="new_search3_de.jpg";
	  $search_logo="search3-de.jpg";
	  $reset_logo="reset3.jpg";
	  $submit_logo="submit-en3.jpg";
  } 
  $consult_="Consult our archives";
  $noresults__="Keine Resultate gefunden für ";
  $adv_noresults__="Keine Resultate";

  $search_foundto__="bis";
  $search_foundwith__="in einer Gesamtmenge von";
  $search_foundres__="Resultate Von";
  $search_foundnews__="Nachrichten";

  $adv_title__="Titel";
  $adv_keyword__="Schlüsselword im Text";
  $adv_pubdate__="Publikation Datum";
  $adv_allwords__="Alle Wörter";
  $adv_anywords__="Irgendwelche der Wörter";
  $adv_olddate__="Ältestes Datum";
  $adv_themes__="Themen";
  $adv_sort__="Art auf";
  $adv_relevance__="Bedeutung";
  $adv_sort_pub__="Publikation Datum";
  $adv_any__="Alle";
  $adv_one__="Vor 1 Tag";
  $adv_week__="Vor 1 Woche";
  $adv_month__="Vor 1 Monat";
  $adv_sixmon__="Vor 6 Monaten";
  $avail_feeds__="Vorhandene Zufuhren";
  $avail_feeds_for__="Vorhandene Zufuhren für";
  $feed_form_='Feed Form';
  $add_feed_text='Would you like to add a feed to this website?';

}

?>
Return current item: News Manager - RSS aggregator