WHERE option_group_id = @option_group_id_notePrivacy AND value = 1;
--These labels were never translated so just copy them over as names
-UPDATE civicrm_option_value v, civicrm_option_group g
-SET v.name = {localize field='label'}v.label{/localize}
-WHERE g.id = v.option_group_id AND g.name IN
-('group_type', 'safe_file_extension', 'wysiwyg_editor');
+{if $multilingual}
+ {foreach from=$locales item=locale}
+ UPDATE civicrm_option_value v, civicrm_option_group g
+ SET v.name = v.label_{$locale}
+ WHERE g.id = v.option_group_id AND g.name IN
+ ('group_type', 'safe_file_extension', 'wysiwyg_editor');
+ {/foreach}
+{else}
+ UPDATE civicrm_option_value v, civicrm_option_group g
+ SET v.name = v.label
+ WHERE g.id = v.option_group_id AND g.name IN
+ ('group_type', 'safe_file_extension', 'wysiwyg_editor');
+{/if}
--This one is wierd. What the heck is this anyway?
UPDATE civicrm_option_value v, civicrm_option_group g
SET v.name = v.value
-WHERE g.id = v.option_group_id AND g.name = 'redaction_rule';
\ No newline at end of file
+WHERE g.id = v.option_group_id AND g.name = 'redaction_rule';