Changeset 702 for trunk/forum/includes/acp/acp_language.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/acp/acp_language.php
r400 r702 3 3 * 4 4 * @package acp 5 * @version $Id : acp_language.php 8780 2008-08-22 12:52:48Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 767 767 } 768 768 769 $db->sql_query('DELETE FROM ' . LANG_TABLE . ' WHERE lang_id = ' . $lang_id); 770 771 $sql = 'UPDATE ' . USERS_TABLE . " 772 SET user_lang = '" . $db->sql_escape($config['default_lang']) . "' 773 WHERE user_lang = '" . $db->sql_escape($row['lang_iso']) . "'"; 774 $db->sql_query($sql); 775 776 // We also need to remove the translated entries for custom profile fields - we want clean tables, don't we? 777 $sql = 'DELETE FROM ' . PROFILE_LANG_TABLE . ' WHERE lang_id = ' . $lang_id; 778 $db->sql_query($sql); 779 780 $sql = 'DELETE FROM ' . PROFILE_FIELDS_LANG_TABLE . ' WHERE lang_id = ' . $lang_id; 781 $db->sql_query($sql); 782 783 $sql = 'DELETE FROM ' . STYLES_IMAGESET_DATA_TABLE . " WHERE image_lang = '" . $db->sql_escape($row['lang_iso']) . "'"; 784 $result = $db->sql_query($sql); 785 786 $cache->destroy('sql', STYLES_IMAGESET_DATA_TABLE); 787 788 add_log('admin', 'LOG_LANGUAGE_PACK_DELETED', $row['lang_english_name']); 789 790 trigger_error(sprintf($user->lang['LANGUAGE_PACK_DELETED'], $row['lang_english_name']) . adm_back_link($this->u_action)); 769 if (confirm_box(true)) 770 { 771 $db->sql_query('DELETE FROM ' . LANG_TABLE . ' WHERE lang_id = ' . $lang_id); 772 773 $sql = 'UPDATE ' . USERS_TABLE . " 774 SET user_lang = '" . $db->sql_escape($config['default_lang']) . "' 775 WHERE user_lang = '" . $db->sql_escape($row['lang_iso']) . "'"; 776 $db->sql_query($sql); 777 778 // We also need to remove the translated entries for custom profile fields - we want clean tables, don't we? 779 $sql = 'DELETE FROM ' . PROFILE_LANG_TABLE . ' WHERE lang_id = ' . $lang_id; 780 $db->sql_query($sql); 781 782 $sql = 'DELETE FROM ' . PROFILE_FIELDS_LANG_TABLE . ' WHERE lang_id = ' . $lang_id; 783 $db->sql_query($sql); 784 785 $sql = 'DELETE FROM ' . STYLES_IMAGESET_DATA_TABLE . " WHERE image_lang = '" . $db->sql_escape($row['lang_iso']) . "'"; 786 $result = $db->sql_query($sql); 787 788 $cache->destroy('sql', STYLES_IMAGESET_DATA_TABLE); 789 790 add_log('admin', 'LOG_LANGUAGE_PACK_DELETED', $row['lang_english_name']); 791 792 trigger_error(sprintf($user->lang['LANGUAGE_PACK_DELETED'], $row['lang_english_name']) . adm_back_link($this->u_action)); 793 } 794 else 795 { 796 $s_hidden_fields = array( 797 'i' => $id, 798 'mode' => $mode, 799 'action' => $action, 800 'id' => $lang_id, 801 ); 802 confirm_box(false, $user->lang['CONFIRM_OPERATION'], build_hidden_fields($s_hidden_fields)); 803 } 791 804 break; 792 805 … … 1108 1121 while (($file = readdir($dp)) !== false) 1109 1122 { 1123 if (!is_dir($phpbb_root_path . 'language/' . $file)) 1124 { 1125 continue; 1126 } 1127 1110 1128 if ($file[0] != '.' && file_exists("{$phpbb_root_path}language/$file/iso.txt")) 1111 1129 { … … 1255 1273 1256 1274 $non_static = array_shift($keys); 1257 $value = array_shift($keys);1275 $value = utf8_normalize_nfc(array_shift($keys)); 1258 1276 1259 1277 if (!$non_static)
Note:
See TracChangeset
for help on using the changeset viewer.