From 2e71b1977256f957519cad6cf61772e6fdace595 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 12 May 2009 01:04:16 +0000 Subject: [PATCH] Translate continent and city names for timezone picker. see #9794 git-svn-id: https://develop.svn.wordpress.org/trunk@11290 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/continents-cities.php | 493 ++++++++++++++++++++++++ wp-includes/functions.php | 7 +- 2 files changed, 497 insertions(+), 3 deletions(-) create mode 100644 wp-admin/includes/continents-cities.php diff --git a/wp-admin/includes/continents-cities.php b/wp-admin/includes/continents-cities.php new file mode 100644 index 0000000000..a2794e3249 --- /dev/null +++ b/wp-admin/includes/continents-cities.php @@ -0,0 +1,493 @@ +' . "\n"; // continent + $structure .= '' . "\n"; // continent } elseif ( !empty($selectcontinent) && $selectcontinent != $continent ) { $structure .= "\n"; $selectcontinent = ''; if ( !empty($city) ) { $selectcontinent = $continent; - $structure .= '' . "\n"; // continent + $structure .= '' . "\n"; // continent } } @@ -3148,11 +3148,12 @@ function wp_timezone_choice($selectedzone) { $city = $city . '/'. $subcity; } $display = str_replace('_',' ',$city); + $display = translate($display); if ( $continent == 'Etc' ) $display = strtr($display, '+-', '-+'); $structure .= "\t\n"; //Timezone } else { - $structure .= "\n"; //Timezone + $structure .= "\n"; //Timezone } }