MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2025-06-27, 05:46

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 2 篇文章 ] 
發表人 內容
文章發表於 : 2005-09-11, 03:27 
離線

註冊時間: 2002-10-20, 02:29
文章: 1497
Searchbar Autoresizer 可以使搜尋列隨著輸入的字串改變長度.

第一次嘗試中文化, 看了wiki 和mozdev 的教學資料, 還是遇到了錯誤, 而且天真的沒有備份profile, 現在profile 要從來一次. :cry:

一. 安裝英文版後, 直接將語言檔複製到local 資料夾的en-US 中, 沒有問題.
二. 若用xpi 安裝, 就會失敗, 嘗試開啟Firefox 時, 跳出的視窗是
<window id="main-window"
^
圖檔

當我用localite 再弄一次後, 就可以正常安裝.
所以請問我是哪一個步驟出錯了? 謝謝.

我的步驟:
使用UniRed 編輯en-US 內的檔案
1. 將autosizer.dtd 內的訊息中文化, 存檔時選utf-8
圖檔
2. 將contents.rdf 中的en-US 取代為zh-TW
3. 將autosizer.properties 中文化, 存檔時選utf-8, \uXXXX
圖檔
4. 在autosizer 的local 中新增資料夾zh-TW, 將這三個檔案複製過去.
5. 將autosizer.jar複製到Searchbar Autosizer 1.0.xpi 的chrome 中.
6. 在install.rdf 的<em:file>中加入<em:locale>locale/zh-TW/</em:locale>, 直接存檔.
7. 安裝修改後的xpi.
8. 重新開啟Firefox, 遇到錯誤訊息.


附加檔案:
autosizer.jar [26.12 KiB]
被下載 327 次
檔案註釋: 失敗作品, 請勿安裝.
Searchbar Autosizer 1.0.xpi [11.46 KiB]
被下載 345 次
回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.10) Gecko/20050721 Firefox/1.0.6 (pigfoot)
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2005-09-11, 04:26 
離線

註冊時間: 2002-10-20, 02:29
文章: 1497
這是用localite 做出的安裝套件, 紅色是我不太確定的地方, 請看看用詞有沒有不恰當的地方.

適用版本 1.0 - 1.5 Beta
設定選項
圖檔
未使用的搜尋列
圖檔
使用中的搜尋列
圖檔
說明文件
圖檔

"Autosizer Options"
Autosizer 設定

"Searchbar width"
搜尋列寬度

"to"
最大至

"From"
最小從


"(in pixels)"
(以像素計)

"Offset"
不會翻.


"Space to keep:"
保留空間:

"Define the minimum width in the first field and the maximum in the second. Insert 0 if you don't want to limit it - however there are other restrictions that might affect the minimum and maximum width. The width is computed from the leftmost to the rightmost part. This is not exactly the border or the searchbar but some pixels to the left and right. It may vary depending on your skin."
在第一格輸入最小寬度,第二格輸入最大寬度。如果您不想設限,請輸入0-但仍有其他因素會影響最小與最大寬度。最左邊的部份至最右邊的寬度,並非以搜尋列或框線之間的距離來計算,而會比它要小幾個像素。不同的佈景主題會有不同的結果。">

The offset is added to the width that is needed to display the text. This way you can add additional space to easily reach the end of the search string by clicking into this free space. "
Offset 是字串後的額外空間。如此只要點它,游標就會到搜尋字串之後。

"However, the maximum width is superior to the offset. This means that the offset will shrink and be removed completely if the search string is wider than the maximum width. When this is the case, the searchbar will behave like normal when it's too narrow for the text."
但是最大寬度的設定優先於Offset。如果搜尋字串大於最大寬度,Offset會被全部擠掉。在這個情況,搜尋列的行為,就如同一般對字串長度太窄時一樣。

Searchbar doesn't resize?
搜尋列不會改變大小?

"Then you probably went into the customization dialog (Right click -> Customize...) which stops Searchbar Autosizer from working. To solve this issue, simply restart by closing all open windows (or use File -> Exit)."
您可能進入了自訂的對話框(右鍵>自訂…),這會停止Searchbar Autosizer。解法是重新開啟Firefox 的所有視窗(或 檔案>離開)

expand the searchbox as you type
使搜尋列隨輸入的字串而延長


附加檔案:
檔案註釋: 這是用localite 做出的安裝套件, 試試看有沒有意見.
Searchbar Autosizer 1.0.xpi [13.16 KiB]
被下載 325 次
回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.10) Gecko/20050721 Firefox/1.0.6 (pigfoot)
 個人資料  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 2 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 24 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
cron
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群