- Timestamp:
- May 9, 2013, 2:37:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
en/no-translation.php
r287 r390 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 4 <head><!--#set var="title" value="No English version available" 5 --><!--#set var="location" value="" 6 --><!--#set var="url_de" value="" 7 --><!--#set var="prev" value="" 8 --><!--#set var="prev_title" value="" 9 --><!--#set var="next" value="" 10 --><!--#set var="next_title" value="" 11 --> 12 <title>technikum29 - <!--#echo var="title" --></title> 13 <!--#include virtual="/en/inc/head.inc.shtm" --> 14 <meta name="DC.title" content="technikum29 - <!--#echo var="title" -->" /> 15 <meta name="DC.subject" content="Special page for pages that don't have a translation" /> 16 <meta name="t29.germanoriginal" content="no original" /> 17 <meta name="robots" content="noindex" /> 18 </head> 19 <body> 20 <!--#echo encoding="none" var="heading" --> 21 <div id="content"> 1 <?php 2 $seiten_id = 'no-translation'; // befindet sich nicht in navi 3 $lang = 'en'; // force language 4 $version = '$Id$'; 5 $titel = 'No English translation available'; 6 $dynamischer_inhalt = true; 7 8 // see usage below 9 $how = isset($_GET['how']) ? $_GET['how'] : 'no'; 10 $backurl = isset($_GET['backurl']) ? $_GET['backurl'] : null; 11 $backtitle = isset($_GET['backtitle']) ? $_GET['backtitle'] : null; 12 13 $template_callback = function($template) use($backurl,$backtitle) { 14 if($backurl) { 15 $template->set_page_relation("prev", $backurl, $backtitle ? $backtitle : "German version of page"); 16 $template->current_link_classes = array('show-rel-prev'); 17 } 18 19 $template->interlang_links = array( 20 'de' => $backurl ? t29Menu::dom_new_link($backurl, $backtitle) : t29Menu::dom_new_link('#', 'unknown'), 21 'en' => t29Menu::dom_new_link('#', 'This "no translation available" page'), 22 ); 23 }; 24 25 require "../lib/technikum29.php"; 26 ?> 22 27 <!-- 23 28 "Not yet translated"-Page Usage … … 32 37 --> 33 38 39 <? /* 34 40 <!--#if expr="$QUERY_STRING = /how=([^,&]+)/" --><!--#set var="how" value="$1" --><!--#endif --> 35 41 <!--#if expr="$QUERY_STRING = /backurl=([^,&]+)/" --><!--#set var="url_de" value="$1" --><!--#endif --> 36 42 <!--#if expr="$QUERY_STRING = /backtitle=([^,&]+)/" --><!--#set var="backtitle" value="$1" --><!--#endif --> 43 */ ?> 37 44 38 <!--#if expr="$how = yet" --> 39 <h2>The page <!--#if expr="($backtitle)" -->»<!--#echo var="backtitle" -->«<!--#else --><!--#endif --> has not been translated yet</h2> 40 <!--#else --> 41 <h2>There is no translation for <!--#if expr="($backtitle)" -->»<!--#echo var="backtitle" -->«<!--#else -->the page you requested<!--#endif --> </h2> 42 <!--#endif --> 45 <?php 43 46 44 <!--#if expr="($url_de)" --> 45 <p>Please <a href="/de/<!--#echo var="url_de" -->">go back to the german page</a>.</p> 46 <p>You can also use automatically generated translations from <a href="http://www.google.com">Google</a> or <a href="http://babelfish.altavista.com">Altavista Babelfish</a> 47 (but don't expect too much):</p> 48 <ul> 49 <li><a href="http://translate.google.com/translate?hl=en&sl=de&u=http://www.technikum29.de/de/<!--#echo var="url_de" -->&prev=/search%3Fq%3Dtechnikum29%26hl%3Den%26lr%3D%26sa%3DN">Read the google translation</a></li> 50 <li><a href="http://babelfish.altavista.com/babelfish/tr?doit=done&url=http://www.technikum29.de/de/<!--#echo var="url_de" -->&lp=de_en">Read the Altavista bablefish translation</a> 51 </ul> 52 <!--#else --> 53 <p>There is no english translation for the requested page.</p> 54 <p><a class="go" href="javascript:history.go();">Back to the german page</a></p> 55 <!--#endif --> 56 57 </div> 58 59 <!-- end of content --> 60 <!--#include virtual="/en/inc/menu.inc.shtm" --> 61 </body> 62 </html> 47 48 if($how == 'yet') 49 $h2 = "The page »$backtitle« has not been translated yet"; 50 else 51 $h2 = "There is no translation for ".($backtitle ? " »$backtitle«" : "the page you requested"); 52 53 print "<h2>$h2</h2>"; 54 55 //$url_de = "/de/"... 56 //$backurl = "/de/".$url_de; 57 58 if($backurl) { 59 ?><p class="panel-hide">Please <a href="<?=$backurl; ?>">go back to the german page</a>.</p> 60 <p>You can also use automatically generated translations from <a href="http://www.google.com">Google</a> or <a href="http://babelfish.altavista.com">Altavista Babelfish</a> 61 (but don't expect too much):</p> 62 <ul> 63 <li><a href="http://translate.google.com/translate?hl=en&sl=de&u=http://www.technikum29.de/<?=$backurl; ?>&prev=/search%3Fq%3Dtechnikum29%26hl%3Den%26lr%3D%26sa%3DN">Read the google translation</a></li> 64 <!--<li><a href="http://babelfish.altavista.com/babelfish/tr?doit=done&url=http://www.technikum29.de/<?=$backurl; ?>&lp=de_en">Read the Altavista bablefish translation</a>--> 65 <li><a href="http://www.microsofttranslator.com/bv.aspx?from=de&to=en&a=http://www.technikum29.de/<?=$backurl; ?>">Read the Microsoft translator (Babelfish/Bing)</a></li> 66 </ul><?php 67 } else { 68 ?> 69 <p>There is no english translation for the requested page.</p> 70 <p><a class="go" href="javascript:history.go();">Back to the german page</a></p> 71 <?php 72 }
Note: See TracChangeset
for help on using the changeset viewer.