Mercurial > defr > drupal > core
comparison includes/locale.inc @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | fff6d4c8c043 |
children | 4347c45bb494 |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: locale.inc,v 1.174.2.1 2008/07/09 21:48:28 goba Exp $ | 2 // $Id: locale.inc,v 1.174.2.4 2008/09/17 08:47:04 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Administration functions for locale.module. | 6 * Administration functions for locale.module. |
7 */ | 7 */ |
265 '#default_value' => @$language->prefix, | 265 '#default_value' => @$language->prefix, |
266 '#description' => t('Language code or other custom string for pattern matching within the path. With language negotiation set to <em>Path prefix only</em> or <em>Path prefix with language fallback</em>, this site is presented in this language when the Path prefix value matches an element in the path. For the default language, this value may be left blank. <strong>Modifying this value will break existing URLs and should be used with caution in a production environment.</strong> <em>Example: Specifying "deutsch" as the path prefix for German results in URLs in the form "www.example.com/deutsch/node".</em>') | 266 '#description' => t('Language code or other custom string for pattern matching within the path. With language negotiation set to <em>Path prefix only</em> or <em>Path prefix with language fallback</em>, this site is presented in this language when the Path prefix value matches an element in the path. For the default language, this value may be left blank. <strong>Modifying this value will break existing URLs and should be used with caution in a production environment.</strong> <em>Example: Specifying "deutsch" as the path prefix for German results in URLs in the form "www.example.com/deutsch/node".</em>') |
267 ); | 267 ); |
268 $form['domain'] = array('#type' => 'textfield', | 268 $form['domain'] = array('#type' => 'textfield', |
269 '#title' => t('Language domain'), | 269 '#title' => t('Language domain'), |
270 '#maxlength' => 64, | 270 '#maxlength' => 128, |
271 '#default_value' => @$language->domain, | 271 '#default_value' => @$language->domain, |
272 '#description' => t('Language-specific URL, with protocol. With language negotiation set to <em>Domain name only</em>, the site is presented in this language when the URL accessing the site references this domain. For the default language, this value may be left blank. <strong>This value must include a protocol as part of the string.</strong> <em>Example: Specifying "http://example.de" or "http://de.example.com" as language domains for German results in URLs in the forms "http://example.de/node" and "http://de.example.com/node", respectively.</em>'), | 272 '#description' => t('Language-specific URL, with protocol. With language negotiation set to <em>Domain name only</em>, the site is presented in this language when the URL accessing the site references this domain. For the default language, this value may be left blank. <strong>This value must include a protocol as part of the string.</strong> <em>Example: Specifying "http://example.de" or "http://de.example.com" as language domains for German results in URLs in the forms "http://example.de/node" and "http://de.example.com/node", respectively.</em>'), |
273 ); | 273 ); |
274 $form['direction'] = array('#type' => 'radios', | 274 $form['direction'] = array('#type' => 'radios', |
275 '#title' => t('Direction'), | 275 '#title' => t('Direction'), |
851 } | 851 } |
852 | 852 |
853 drupal_set_message(t('The string has been saved.')); | 853 drupal_set_message(t('The string has been saved.')); |
854 | 854 |
855 // Clear locale cache. | 855 // Clear locale cache. |
856 _locale_invalidate_js(); | |
856 cache_clear_all('locale:', 'cache', TRUE); | 857 cache_clear_all('locale:', 'cache', TRUE); |
857 | 858 |
858 $form_state['redirect'] = 'admin/build/translate/search'; | 859 $form_state['redirect'] = 'admin/build/translate/search'; |
859 return; | 860 return; |
860 } | 861 } |
2374 "os" => array("Ossetian"), | 2375 "os" => array("Ossetian"), |
2375 "pa" => array("Punjabi"), | 2376 "pa" => array("Punjabi"), |
2376 "pi" => array("Pali"), | 2377 "pi" => array("Pali"), |
2377 "pl" => array("Polish", "Polski"), | 2378 "pl" => array("Polish", "Polski"), |
2378 "ps" => array("Pashto", /* Left-to-right marker "" */ "پښتو", LANGUAGE_RTL), | 2379 "ps" => array("Pashto", /* Left-to-right marker "" */ "پښتو", LANGUAGE_RTL), |
2379 "pt" => array("Portuguese, Portugal", "Português"), | 2380 "pt-pt" => array("Portuguese, Portugal", "Português"), |
2380 "pt-br" => array("Portuguese, Brazil", "Português"), | 2381 "pt-br" => array("Portuguese, Brazil", "Português"), |
2381 "qu" => array("Quechua"), | 2382 "qu" => array("Quechua"), |
2382 "rm" => array("Rhaeto-Romance"), | 2383 "rm" => array("Rhaeto-Romance"), |
2383 "rn" => array("Kirundi"), | 2384 "rn" => array("Kirundi"), |
2384 "ro" => array("Romanian", "Română"), | 2385 "ro" => array("Romanian", "Română"), |