ChainsDD / Superuser

Android superuser permissions app (from Zinx)
http://cyanogenmod.com
567 stars 362 forks source link

App name format issue in Traditional Chinese resource #41

Closed boypt closed 12 years ago

boypt commented 12 years ago

When set to Traditional Chinese, the notification text when an app asked for root permission, shows "%s 已被授予超級用戶權限", the "%s" is not formatted into the actual app name because the unicode character "%" won't be recognized to be a string format.

I reviewed the resource file : res/values-zh-rTW/strings.xml , there are 3 in"%" existed, i suggest this patch:

--- strings.orig.xml    2012-01-08 17:17:03.355563806 +0800
+++ strings.xml 2012-01-08 17:19:31.021993707 +0800
@@ -38,7 +38,7 @@
   <string name="toggled">已切換</string>
   <string name="empty_apps">在清單中沒有應用程式</string>
   <string name="empty_logs">沒有記錄資訊</string>
-  <string name="log_count">顯示%d個項目</string>
+  <string name="log_count">顯示%d個項目</string>
   <string name="detail_package">包封</string>
   <string name="detail_app_uid">應用程序的UID</string>
   <string name="detail_request">請求的 UID</string>
@@ -151,8 +151,8 @@
   <string name="updater_bad_install_location">su 二進位目前安裝於 /sbin 中。此更新程式無法對其進行更新。請尋找適用於您裝置的新的 ROM。</string>
   <string name="updater_bad_install_location_explained">This updater is incapable of updating your su binary since it is installed in /sbin. This is not an error in the updater, it is an error on the behalf of your ROM or kernel developer. You can continue to use Superuser with your outdated binary.</string>
   <string name="updater_failed_remount">This updater cannot update the su binary on phones that have some kind of write protection on the system partition like S-ON. You can continue to use Superuser with your outdated binary, or update su with ROM Manager.</string>
-  <string name="notification_text_allow">%s 已被授予超級用戶權限</string>
-  <string name="notification_text_deny">%s 已被拒絕超級用戶權限</string>
+  <string name="notification_text_allow">%s 已被授予超級用戶權限</string>
+  <string name="notification_text_deny">%s 已被拒絕超級用戶權限</string>
   <string name="notif_outdated_ticker">你的su二進制文件已過時</string>
   <string name="notif_outdated_title">su二進制文件過時</string>
   <string name="notif_outdated_text">點擊以更新su二進制文件</string>
dove0rz commented 12 years ago

% is 2 bytes, change to one byte % plz.

x43x61x69 commented 12 years ago

I made a batter translation which also fixed the above problem:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">超級使用者</string>
    <string name="app_name_request">超級使用者要求</string>
    <string name="description_home">首頁</string>
    <string name="description_log">記錄</string>
    <string name="description_preferences">偏好設定</string>
    <string name="description_extras">附加</string>
    <string name="menu_extras">附加</string>
    <string name="menu_preferences">偏好設定</string>
    <string name="menu_clear">清除</string>
    <string name="menu_clear_log">清除記錄</string>
    <string name="permgrouplab_superuser">超級使用者權限</string>
    <string name="permgroupdesc_superuser">與超級使用者有關的權限</string>
    <string name="permlab_respond">回應超級使用者的請求</string>
    <string name="permdesc_respond">允許應用程式回應超級使用者的存取請求</string>
    <string name="permlab_provider_read">讀取超級使用者資料</string>
    <string name="permdesc_provider_read">允許應用程式從超級使用者的內容提供者讀取資料</string>
    <string name="permlab_provider_write">寫入超級使用者資料</string>
    <string name="permdesc_provider_write">允許應用程式向超級使用者的內容提供者寫入資料</string>
    <string name="recent_activity">最近的活動</string>
    <string name="yes">是</string>
    <string name="no">否</string>
    <string name="ok">確定</string>
    <string name="loading">載入中...</string>
    <string name="allow">允許</string>
    <string name="cancel">取消</string>
    <string name="deny">拒絕</string>
    <string name="set">設定</string>
    <string name="remember">記住</string>
    <string name="remember_disabled">直到 su 更新前,記住停用</string>
    <string name="request">%1$s 作為 %2$s (uid: %3$d)</string>
    <string name="unknown">未知的名稱</string>
    <string name="allowed">已允許</string>
    <string name="denied">已拒絕</string>
    <string name="created">已建立</string>
    <string name="toggled">已切換</string>
    <string name="empty_apps">在清單中沒有應用程式</string>
    <string name="empty_logs">沒有記錄資訊</string>
    <string name="log_count">顯示 %d 個項目</string>
    <string name="detail_package">包封</string>
    <string name="detail_app_uid">應用程序的 UID</string>
    <string name="detail_request">請求的 UID</string>
    <string name="detail_command">命令</string>
    <string name="detail_status">狀態</string>
    <string name="request_app_name">應用程式</string>
    <string name="pref_title">偏好設定</string>
    <string name="pref_category_security">安全性</string>
    <string name="pref_pin_title">使用 PIN</string>
    <string name="pref_change_pin_title">更改 PIN</string>
    <string name="pref_timeout_title">訪問超時</string>
    <string name="pref_automatic_action_title">自動回應</string>
    <string name="pref_automatic_action_summary">設置超級用戶處理新請求的方式</string>
    <string name="pref_ghost_mode_title">幽靈模式</string>
    <string name="pref_ghost_mode_summary_off">幽靈模式停用</string>
    <string name="pref_secret_code_title">密碼</string>
    <string name="pref_secret_code_summary">密碼是 *#*#%1$s#*#*</string>
    <string name="pref_category_applist_title">應用程式清單</string>
    <string name="pref_show_status_icons_title">顯示狀態圖標</string>
    <string name="pref_show_status_icons_summary_on">顯示每個應用程式狀態的圖標</string>
    <string name="pref_show_status_icons_summary_off">不顯示每個應用程式狀態的圖標</string>
    <string name="pref_status_icon_type_title">狀態圖標類型</string>
    <string name="pref_status_icon_type_summary">狀態圖示以顯示的樣式</string>
    <string name="pref_applist_show_log_data_title">顯示記錄資料</string>
    <string name="pref_applist_show_log_data_summary_on">在應用程式清單中顯示記錄資料</string>
    <string name="pref_applist_show_log_data_summary_off">不要在應用程式清單中顯示記錄資料</string>
    <string name="pref_category_log_title">記錄</string>
    <string name="pref_enable_logging_title">啟用記錄</string>
    <string name="pref_enable_logging_summary_on">建立或存取權限將被記錄</string>
    <string name="pref_enable_logging_summary_off">建立或存取權限將不被記錄</string>
    <string name="pref_delete_old_logs_title">刪除舊記錄項目</string>
    <string name="pref_delete_old_logs_summary_on">當到達限制時,刪除舊的記錄項目</string>
    <string name="pref_delete_old_logs_summary_off">當到達限制時,不刪除舊的記錄項目</string>
    <string name="pref_log_entry_limit_title">記錄項目限制</string>
    <string name="pref_log_entry_limit_summary">%1$d 個記錄項目</string>
    <string name="pref_log_entries_to_save">設定要儲存的記錄項目數量</string>
    <string name="pref_24_hour_title">使用 24 小時制</string>
    <string name="pref_24_hour_summary_on">記錄的時間將以 24 小時制顯示</string>
    <string name="pref_24_hour_summary_off">記錄的時間將以 12 小時制顯示</string>
    <string name="pref_show_seconds_title">顯示秒數</string>
    <string name="pref_show_seconds_summary_on">記錄的時間將包含秒數</string>
    <string name="pref_show_seconds_summary_off">記錄的時間將不包含秒數</string>
    <string name="pref_date_format_title">選取日期格式</string>
    <string name="pref_date_format_summary">在所有記錄中用於顯示日期的格式</string>
    <string name="pref_clear_log_title">清除記錄</string>
    <string name="pref_clearing_log_title">正在清除記錄</string>
    <string name="pref_clearing_log_summary">請稍候</string>
    <string name="pref_category_notification_title">通知</string>
    <string name="pref_notifications_title">通知</string>
    <string name="pref_notifications_summary_on">當應用程式取得 su 權限時顯示通知</string>
    <string name="pref_notifications_summary_off">當應用程式取得 su 權限時不顯示通知</string>
    <string name="pref_notifications_type_title">通知類型</string>
    <string name="pref_notifications_type_summary">當應用程式取得 su 權限時所顯示的通知類型</string>
    <string name="pref_toast_location_title">吐司通知位置</string>
    <string name="pref_toast_location_summary">通知訊息在螢幕上顯示的位置</string>
    <string name="pref_category_nfc_title">NFC</string>
    <string name="pref_use_allow_tag_title">使用 NFC 標記方可允許</string>
    <string name="pref_use_allow_tag_summary_on">輸入 PIN 或掃描標記方可允許</string>
    <string name="pref_use_allow_tag_summary_off">只有輸入 PIN 方可允許</string>
    <string name="pref_write_allow_tag_title">寫入新允許標記</string>
    <string name="pref_write_allow_tag_summary">寫入用於允許的新標記</string>
    <string name="pref_category_backup_restore_title">備份/還原</string>
    <string name="pref_backup_title">備份應用程式 / 偏好設定</string>
    <string name="backup_complete">備份至記憶卡</string>
    <string name="pref_restore_title">還原應用程式 / 偏好設定</string>
    <string name="restore_complete_prefs_only">偏好設定已還原</string>
    <string name="pref_category_info_title">一般</string>
    <string name="pref_version_title">超級用戶 v%1$s (%2$d)</string>
    <string name="pref_version_summary">資料庫版本 %s</string>
    <string name="pref_bin_version_title_loading">正在載入二進制文件版本...</string>
    <string name="pref_bin_version_title">su 二進制文件 v%s</string>
    <string name="pref_bin_version_summary">點擊以檢查新版本</string>
    <string name="pref_outdated_notification_title">二進制文件更新通知</string>
    <string name="pref_outdated_notification_summary_on">當有新版本的二進制文件時顯示通知</string>
    <string name="pref_outdated_notification_summary_off">當有新版本的二進制文件時不顯示通知</string>
    <string name="pref_advanced_prompt_title">使用進階存取請求</string>
    <string name="pref_advanced_prompt_summary_on">於進階存取請求時不顯示警告</string>
    <string name="pref_advanced_prompt_summary_off">於進階存取請求時顯示警告</string>
    <string name="pref_changelog_title">變更日誌</string>
    <string name="pref_changelog_summary">顯示變更日誌</string>
    <string name="pref_get_elite_title">菁英版!</string>
    <string name="pref_get_elite_summary">購買菁英版以解鎖所有選項</string>
    <string name="updater_title">二進制文件更新</string>
    <string name="updater_new_su_found">發現新版本的二進制文件,要更新嗎?</string>
    <string name="updater_current_installed">目前已安裝最新版本,不需要更新。</string>
    <string name="updater_update">更新</string>
    <string name="updater_cool">不錯喔!再更新一次。</string>
    <string name="updater_working">執行中...</string>
    <string name="updater_ok">完成!</string>
    <string name="updater_fail">失敗!</string>
    <string name="updater_update_failed">更新失敗。再試一次?</string>
    <string name="updater_try_again">再試一次</string>
    <string name="updater_su_updated">su 二進制更新成功</string>
    <string name="updater_step_latest_version">"最新版本:"</string>
    <string name="updater_step_check_installed_version">"檢查以安裝的版本= "</string>
    <string name="updater_step_fix_db">"修復資料庫 ...  "</string>
    <string name="updater_step_download_busybox">"下載自訂 busybox... "</string>
    <string name="updater_step_check_md5sum">"檢查 md5sum... "</string>
    <string name="updater_step_check_installed_path">"正在檢查目前安裝路徑... "</string>
    <string name="updater_step_download_su">"正在下載新的二進制文件... "</string>
    <string name="updater_step_get_root">"獲得 root 權限 ...  "</string>
    <string name="updater_step_remount_rw">"重新掛載 /system 為可讀寫...  "</string>
    <string name="updater_step_cp">"複製 su 到/system ...  "</string>
    <string name="updater_step_chmod">"變更 su 檔案權限為 06755... "</string>
    <string name="updater_step_mv">"正在將 su 移至其最終位置... "</string>
    <string name="updater_step_remount_ro">"重新掛載 /system 為唯讀... "</string>
    <string name="updater_step_clean_up">"清理中...  "</string>
    <string name="updater_remount_ro_failed">重新將系統掛載為唯讀失敗,請重新開機以便完成更新</string>
    <string name="updater_find_su_failed">無法找到目前已安裝的 su 二進制文件,更新無法繼續</string>
    <string name="updater_bad_install_location">su 二進位目前安裝於 /sbin 中,此更新程式無法對其進行更新。請尋找適用於您裝置的新的 ROM。</string>
    <string name="updater_bad_install_location_explained">su 二進位目前安裝於 /sbin 中,此更新程式無法對其進行更新。這並非更新程式錯誤,此錯誤是由您所使用的 ROM 或 kernel 開發者所造成。您可以繼續使用使用舊版的二進制文件。</string>
    <string name="updater_failed_remount">此更新程式無法更新受磁區寫入保護(如 S-ON)的 su 二進制文件。您可以繼續使用使用舊版的二進制文件,或使用 ROM Manager 來更新 su。</string>
    <string name="notification_text_allow">%s 已被授予超級用戶權限</string>
    <string name="notification_text_deny">%s 已被拒絕超級用戶權限</string>
    <string name="notif_outdated_ticker">有新版本的 su 二進制文件可供更新</string>
    <string name="notif_outdated_title">su 二進制文件過時</string>
    <string name="notif_outdated_text">點擊以更新 su 二進制文件</string>
    <string name="pin_enter_pin">輸入 PIN</string>
    <string name="pin_new_pin">輸入新的 PIN</string>
    <string name="pin_confirm_pin">確認 PIN</string>
    <string name="pin_mismatch">"兩次輸入的 PIN 不符,請再試一次"</string>
    <string name="pin_enter_secret_code">請輸入密碼</string>
    <string name="malicious_apps_title">警告</string>
    <string name="malicious_apps_uninstall">解除安裝</string>
    <string name="malicious_apps_ignore">忽略</string>
    <string name="malicious_app_notification_ticker">偵測到潛在的惡意程式</string>
    <string name="malicious_app_notification_text">%s 可能為潛在的惡意程式。點擊以解除安裝它。</string>
    <string name="malicious_app_uid">與超級使用者共用 UID</string>
    <string name="malicious_app_respond">請求回應權限</string>
    <string name="malicious_app_write">請求可寫入權限提供者的權限</string>
    <string name="changelog_full_title">變更</string>
    <string name="changelog_title">更新內容</string>
</resources>
boypt commented 12 years ago

The issue is fixed on commit #cba93cb , close issue.