From a673c12300c962a351dec2aba443e02d7d41bbbc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 29 Oct 2013 00:09:27 -0700 Subject: [PATCH] Web: add code for language selection --- doc/index.php | 51 ++--------------- html/inc/language_names.inc | 108 ++++++++++++++++++++++++------------ 2 files changed, 79 insertions(+), 80 deletions(-) diff --git a/doc/index.php b/doc/index.php index 1db1213dce..d15bf092a8 100644 --- a/doc/index.php +++ b/doc/index.php @@ -13,6 +13,7 @@ if ($host == "bolt.berkeley.edu") { require_once("docutil.php"); require_once("../html/inc/translation.inc"); +require_once("../html/inc/language_names.inc"); function show_participant() { $i = rand(0, 99); @@ -90,15 +91,11 @@ function show_participate() {

- ".sprintf( - tra(" Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research. It's safe, secure, and easy: %sChoose%s projects %sDownload%s and run BOINC software %sEnter%s an email address and password. "), - "

  1. ", - "", - "
  2. ", - "", - "
  3. ", - "" - )." + ".tra("Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research. It's safe, secure, and easy:")." +
      +
    1. ".tra("Choose projects")." +
    2. ".tra("Download BOINC software")." +
    3. ".tra("Enter an email address and password.")."

    ".sprintf( @@ -200,42 +197,6 @@ function show_nsf() { "; } -require_once("../html/inc/language_names.inc"); - -function language_select() { - global $language_names; - $supported_languages = getSupportedLanguages(); - $bd = tra("Browser default"); - echo " -