From c0776792d04ddb5d66f356454cb5d42870d399a8 Mon Sep 17 00:00:00 2001 From: Adam Roses Wight Date: Thu, 1 May 2014 18:37:45 -0700 Subject: [PATCH] localize the case type schema migration --- CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl index 9fdfddd8ad..045846d643 100644 --- a/CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl @@ -313,8 +313,8 @@ COLLATE='utf8_general_ci'; CREATE TABLE IF NOT EXISTS `civicrm_case_type` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Autoincremented type id', `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Machine name for Case Type', - `title` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Natural language name for Case Type', - `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Description of the Case Type', + {localize field='title'}title varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Natural language name for Case Type'{/localize}, + {localize field='description'}description varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Description of the Case Type'{/localize}, `is_active` tinyint(4) DEFAULT NULL COMMENT 'Is this entry active?', `is_reserved` tinyint(4) DEFAULT NULL COMMENT 'Is this case type a predefined system type?', `weight` int(11) NOT NULL DEFAULT '1' COMMENT 'Ordering of the case types', @@ -325,11 +325,11 @@ CREATE TABLE IF NOT EXISTS `civicrm_case_type` ( SELECT @option_group_id_case_type := max(id) from civicrm_option_group where name = 'case_type'; INSERT IGNORE INTO civicrm_case_type - (name, title, description, is_active, is_reserved, weight) + (name, {localize field='title'}title{/localize}, {localize field='description'}description{/localize}, is_active, is_reserved, weight) SELECT name, - label, - description, + {localize field='label'}label{/localize}, + {localize field='description'}description{/localize}, is_active, is_reserved, weight -- 2.25.1