「使用者:Shyangs」修訂間的差異
出自 MozTW Wiki
小 (→編碼) |
(→中文化) |
||
行 9: | 行 9: | ||
|} | |} | ||
*[[用戶:Shyangs/沙盒]]-這裡是個人實驗室,及放一些亂七八糟的東西。 | *[[用戶:Shyangs/沙盒]]-這裡是個人實驗室,及放一些亂七八糟的東西。 | ||
− | + | ==中文化== | |
*[http://forum.moztw.org/viewtopic.php?t=17709 中文化詞彙搜尋] | *[http://forum.moztw.org/viewtopic.php?t=17709 中文化詞彙搜尋] | ||
*[http://forum.moztw.org/viewtopic.php?t=12955 擴充套件中文化資源蒐集] | *[http://forum.moztw.org/viewtopic.php?t=12955 擴充套件中文化資源蒐集] | ||
*[[中文化專案主頁]] | *[[中文化專案主頁]] | ||
*[[翻譯詞彙表]] | *[[翻譯詞彙表]] | ||
+ | *[http://www.mozdev.org/notes/l10n/howto-zh.html Mozilla 擴充套件中文化的小教學] | ||
+ | *[http://forums.mozine.cn/index.php?showtopic=556 Mozilla 擴展中文化的小教學] | ||
+ | *[http://forums.mozine.cn/index.php?showtopic=6490 Firefox 擴展中文化實例 教程] | ||
+ | ===關於.dtd檔=== | ||
+ | *.dtd檔,一定要是 UTF8 編碼格式儲存,且不得有[http://en.wikipedia.org/wiki/Byte_Order_Mark BOM開頭字元] | ||
+ | ===關於.properties檔=== | ||
+ | *兩種編碼格式可以選擇 UTF-8 或 ANSI | ||
+ | ====UTF-8==== | ||
+ | *必須是 NO [http://en.wikipedia.org/wiki/Byte_Order_Mark BOM] 的 UTF8 編碼格式儲存。 | ||
+ | ====ANSI==== | ||
+ | #一行一敘述,按 [Enter] 換行。 | ||
+ | #翻譯的字符串必須是 UTF-16BE 格式。 | ||
+ | #:例如: | ||
+ | #::敘述 '''upload_center.done=''<big>Done</big>''''' 譯成 '''upload_center.done=''<big>完成</big>''''' ,還必須替換字符串為 '''upload_center.done=''<big>\u5b8c\u6210</big>''''' | ||
+ | #以 ANSI 編碼格式儲存。 | ||
+ | ====編碼之選擇==== | ||
+ | *Q: 將.properties檔存成ANSI編碼格式 好像比較麻煩? | ||
+ | ::A: 是的,存成 UTF-8 編碼格式 比較方便,也不會像天書一樣讓人看不懂;但極少數的擴充套件,對UTF-8的.properties檔 似乎消化不良,會出現錯誤,存成ANSI編碼格式 則可正常運作。例如:[http://pimpsofpain.com/imagebot.html ImageBot v3.3.5]的套件敘述,UTF-8 編碼格式會讓extensions description無法正常顯現。 | ||
+ | ====.properties檔 中文化實例==== | ||
+ | =====ImageBot v3.3.5===== | ||
+ | *檔案imgbot.properties | ||
+ | ======en-US:ANSI編碼格式====== | ||
+ | <pre> | ||
+ | extensions.{55009080-176f-11da-8cd6-0800200c9a66}.description= An Image Uploader | ||
+ | upload_center.loginTo = Login to %S | ||
+ | upload_center.loggedInAs= Log %S out of %S | ||
+ | upload_center.clickToLogin= Click to Login | ||
+ | upload_center.clickToLogout= Click to Logout | ||
+ | upload_center.loading= Loading | ||
+ | upload_center.done= Done | ||
+ | upload_center.errorType= Error: File Type | ||
+ | upload_center.errorSize= Error: File Size | ||
+ | upload_center.errorIntegrity= Error: File Integrity | ||
+ | upload_center.errorDupe= Error: Duplicate Image | ||
+ | upload_center.errorMisc= Error: Miscellaneous | ||
+ | upload_center.selectFiles= Select Files to Upload | ||
+ | upload_center.supportedTypes= %S Supported Types | ||
+ | upload_center.initialized= ImageBot [Upload Center] initialized on %S | ||
+ | upload_center.imagesAdded= %S image(s) added | ||
+ | upload_center.imagesSelected= %S image(s) selected | ||
+ | upload_center.imagesCopied= %S image(s) copied | ||
+ | upload_center.imagesViewed= %S image(s) viewed | ||
+ | upload_center.imagesDeleted= %S image(s) deleted | ||
+ | upload_center.confirmDelete= Are you sure you want to delete %S image(s)? | ||
+ | upload_center.imagesCopiedWithTemplate= %S image(s) copied with Template -> %S | ||
+ | upload_center.filterDeactivated= Filter Deactivated | ||
+ | upload_center.filterActivated= Filter Activated: %S | ||
+ | upload_center.requiresLogin= Error! %S requires you to be logged in if uploading images. | ||
+ | template_editor.initialized= ImageBot [Template Editor] initialized on %S | ||
+ | template_editor.selected= Template selected -> %S | ||
+ | template_editor.movedUp= Template moved up | ||
+ | template_editor.movedDown= Template moved down | ||
+ | template_editor.created= New Template created | ||
+ | template_editor.saved= Template saved | ||
+ | template_editor.deleted= Template deleted -> %S | ||
+ | patcher.done= Done! | ||
+ | host0.incorrectUsernameOrPassword= Username and password you've entered do not match | ||
+ | host0.name= ImageShack | ||
+ | host0.syncNotLoggedIn= Error! You must be logged into %S to synchronize your images! | ||
+ | host0.syncing= Synchronizing %S's %S Images | ||
+ | host1.incorrectUsernameOrPassword= Incorrect Username or Password | ||
+ | host1.tooManyFailedLogins= Too many failed login attempts | ||
+ | host1.requiredFieldMissing= Required field missing | ||
+ | host1.unknownError= Unknown Error | ||
+ | </pre> | ||
+ | ======zh-TW:UTF-8編碼格式====== | ||
+ | ======zh-TW:ANSI編碼格式====== | ||
+ | |||
===編碼=== | ===編碼=== | ||
*[http://tongwen.mozdev.org/text2uni.html Unicode 編碼查詢] | *[http://tongwen.mozdev.org/text2uni.html Unicode 編碼查詢] |
於 2007年4月6日 (五) 20:38 的修訂
內容大綱
我所創建的條目
工具
類別 | 頁面分類 | 所有條目 |
- 用戶:Shyangs/沙盒-這裡是個人實驗室,及放一些亂七八糟的東西。
中文化
關於.dtd檔
- .dtd檔,一定要是 UTF8 編碼格式儲存,且不得有BOM開頭字元
關於.properties檔
- 兩種編碼格式可以選擇 UTF-8 或 ANSI
UTF-8
- 必須是 NO BOM 的 UTF8 編碼格式儲存。
ANSI
- 一行一敘述,按 [Enter] 換行。
- 翻譯的字符串必須是 UTF-16BE 格式。
- 例如:
- 敘述 upload_center.done=Done 譯成 upload_center.done=完成 ,還必須替換字符串為 upload_center.done=\u5b8c\u6210
- 例如:
- 以 ANSI 編碼格式儲存。
編碼之選擇
- Q: 將.properties檔存成ANSI編碼格式 好像比較麻煩?
- A: 是的,存成 UTF-8 編碼格式 比較方便,也不會像天書一樣讓人看不懂;但極少數的擴充套件,對UTF-8的.properties檔 似乎消化不良,會出現錯誤,存成ANSI編碼格式 則可正常運作。例如:ImageBot v3.3.5的套件敘述,UTF-8 編碼格式會讓extensions description無法正常顯現。
.properties檔 中文化實例
ImageBot v3.3.5
- 檔案imgbot.properties
en-US:ANSI編碼格式
extensions.{55009080-176f-11da-8cd6-0800200c9a66}.description= An Image Uploader upload_center.loginTo = Login to %S upload_center.loggedInAs= Log %S out of %S upload_center.clickToLogin= Click to Login upload_center.clickToLogout= Click to Logout upload_center.loading= Loading upload_center.done= Done upload_center.errorType= Error: File Type upload_center.errorSize= Error: File Size upload_center.errorIntegrity= Error: File Integrity upload_center.errorDupe= Error: Duplicate Image upload_center.errorMisc= Error: Miscellaneous upload_center.selectFiles= Select Files to Upload upload_center.supportedTypes= %S Supported Types upload_center.initialized= ImageBot [Upload Center] initialized on %S upload_center.imagesAdded= %S image(s) added upload_center.imagesSelected= %S image(s) selected upload_center.imagesCopied= %S image(s) copied upload_center.imagesViewed= %S image(s) viewed upload_center.imagesDeleted= %S image(s) deleted upload_center.confirmDelete= Are you sure you want to delete %S image(s)? upload_center.imagesCopiedWithTemplate= %S image(s) copied with Template -> %S upload_center.filterDeactivated= Filter Deactivated upload_center.filterActivated= Filter Activated: %S upload_center.requiresLogin= Error! %S requires you to be logged in if uploading images. template_editor.initialized= ImageBot [Template Editor] initialized on %S template_editor.selected= Template selected -> %S template_editor.movedUp= Template moved up template_editor.movedDown= Template moved down template_editor.created= New Template created template_editor.saved= Template saved template_editor.deleted= Template deleted -> %S patcher.done= Done! host0.incorrectUsernameOrPassword= Username and password you've entered do not match host0.name= ImageShack host0.syncNotLoggedIn= Error! You must be logged into %S to synchronize your images! host0.syncing= Synchronizing %S's %S Images host1.incorrectUsernameOrPassword= Incorrect Username or Password host1.tooManyFailedLogins= Too many failed login attempts host1.requiredFieldMissing= Required field missing host1.unknownError= Unknown Error
zh-TW:UTF-8編碼格式
zh-TW:ANSI編碼格式
編碼
逸出萬國碼(escaped Unicode)(UTF-16BE)(UTF-16 Big Endian)
關注
短條目 | 待撰頁面 | 孤立頁面 | 未使用圖像 |