'. t("This page allows you to import a translation provided in the gettext Portable Object (.po) format. The easiest way to get your site translated is to obtain an existing Drupal translation and to import it. You can find existing translations on the Drupal translation page. Note that importing a translation file might take a while.", array('@url' => 'http://drupal.org/project/translations')) .'
'; case 'admin/build/locale/language/export': return ''. t("This page allows you to export Drupal strings. The first option is to export a translation so it can be shared. The second option generates a translation template, which contains all Drupal strings, but without their translations. You can use this template to start a new translation using various software packages designed for this task.") .'
'; + case 'admin/build/locale/string': case 'admin/build/locale/string/search': return ''. t("It is often convenient to get the strings from your setup on the export page, and use a desktop Gettext translation editor to edit the translations. On this page you can search in the translated and untranslated strings, and the default English texts provided by Drupal.", array("@export" => url("admin/build/locale/language/export"))) .'
'; case 'admin/build/locale/language/configure': @@ -315,11 +316,19 @@ function locale_language_name($lang) { * @param $field * 'name' => names in current language, localized * 'native' => native names + * @param $all + * Boolean to return all languages or only enabled ones */ -function locale_language_list($field = 'name') { - $languages = language_list('enabled'); +function locale_language_list($field = 'name', $all = FALSE) { + if ($all) { + $languages = language_list(); + } + else { + $languages = language_list('enabled'); + $languages = $languages[1]; + } $list = array(); - foreach($languages[1] as $language) { + foreach($languages as $language) { $list[$language->language] = ($field == 'name') ? t($language->name) : $language->$field; } return $list; Index: sites/default/settings.php =================================================================== RCS file: /cvs/drupal/drupal/sites/default/settings.php,v retrieving revision 1.53 diff -u -p -r1.53 settings.php --- sites/default/settings.php 26 Mar 2007 06:43:12 -0000 1.53 +++ sites/default/settings.php 28 Mar 2007 08:56:39 -0000 @@ -112,7 +112,7 @@ $db_prefix = ''; * It is not allowed to have a trailing slash; Drupal will add it * for you. */ -//$base_url = 'http://localhost'; // NO trailing slash! +# $base_url = 'http://www.example.com'; // NO trailing slash! /** * PHP settings: @@ -135,7 +135,6 @@ ini_set('session.save_handler', 'use ini_set('session.use_only_cookies', 1); ini_set('session.use_trans_sid', 0); ini_set('url_rewriter.tags', ''); -ini_set('safe_mode', 1); // because my scripts actually take longer! /** * We try to set the correct cookie domain. Index: themes/garland/page.tpl.php =================================================================== RCS file: /cvs/drupal/drupal/themes/garland/page.tpl.php,v retrieving revision 1.5 diff -u -p -r1.5 page.tpl.php --- themes/garland/page.tpl.php 14 Dec 2006 00:37:00 -0000 1.5 +++ themes/garland/page.tpl.php 28 Mar 2007 08:56:39 -0000 @@ -1,6 +1,6 @@ - +