From 28b2f098beb2dcf1e3b6745c65c1194d45da0691 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 8 Jun 2009 05:00:12 +0000 Subject: - 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. --- update.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'update.php') 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; -- cgit v1.2.3