summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-08 05:00:12 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-08 05:00:12 +0000
commit28b2f098beb2dcf1e3b6745c65c1194d45da0691 (patch)
tree799076def12eb7e551b6e0825a0924dd0fb9630c /update.php
parentece9032afd035bbe4ca55b6fd671df03b96b4e35 (diff)
downloadbrdo-28b2f098beb2dcf1e3b6745c65c1194d45da0691.tar.gz
brdo-28b2f098beb2dcf1e3b6745c65c1194d45da0691.tar.bz2
- Patch #334283 by Damien Tournoud, andypost, Freso et al: add context to t() to help deal with ambigious strings (and improved the locale APIs a bit). Example: May is both a short month name as a long month name in English, but not necessarily in other languages.
Diffstat (limited to 'update.php')
-rw-r--r--update.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/update.php b/update.php
index 95ff18d51..9facd3f51 100644
--- a/update.php
+++ b/update.php
@@ -648,9 +648,12 @@ function update_fix_d7_requirements() {
// Add the cache_path table.
$schema['cache_path'] = drupal_get_schema_unprocessed('system', 'cache');
- $schema['cache_path']['description'] = t('Cache table used for path alias lookups.');
+ $schema['cache_path']['description'] = 'Cache table used for path alias lookups.';
db_create_table($ret, 'cache_path', $schema['cache_path']);
variable_set('update_d7_requirements', TRUE);
+
+ // Add column for locale context.
+ db_add_field($ret, 'locales_source', 'context', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'The context this string applies to.'));
}
return $ret;