diff options
-rw-r--r-- | res/values-cs/strings.xml | 17 | ||||
-rw-r--r-- | res/values-de/strings.xml | 17 | ||||
-rw-r--r-- | res/values-es/strings.xml | 17 | ||||
-rw-r--r-- | res/values-fr/strings.xml | 17 | ||||
-rw-r--r-- | res/values-it/strings.xml | 19 | ||||
-rw-r--r-- | res/values-ja/strings.xml | 21 | ||||
-rw-r--r-- | res/values-ko/strings.xml | 17 | ||||
-rw-r--r-- | res/values-nb/strings.xml | 17 | ||||
-rw-r--r-- | res/values-nl/strings.xml | 17 | ||||
-rw-r--r-- | res/values-pl/strings.xml | 17 | ||||
-rw-r--r-- | res/values-ru/strings.xml | 17 | ||||
-rw-r--r-- | res/values-zh-rCN/strings.xml | 17 | ||||
-rw-r--r-- | res/values-zh-rTW/strings.xml | 17 | ||||
-rw-r--r-- | res/values/strings.xml | 33 | ||||
-rw-r--r-- | src/com/android/browser/BrowserProvider.java | 45 | ||||
-rw-r--r-- | src/com/android/browser/TabControl.java | 2 |
16 files changed, 67 insertions, 240 deletions
diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 5f6677e..ee576d6 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Všechna data prohlížeče budou vymazána a bude použito výchozí nastavení."</string> <string name="pref_extras_reset_default_dlg_title">"Obnovit výchozí"</string> <string name="pref_development_title">"Ladit"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Běžné vykreslování"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Nastavení kódování textu"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index ec0ae34..89b46b9 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Alle Browserdaten werden gelöscht. Alle Einstellungen werden auf die Standardeinstellung zurückgesetzt."</string> <string name="pref_extras_reset_default_dlg_title">"Auf Standardeinstellung zurücksetzen"</string> <string name="pref_development_title">"Debuggen"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Such-URL einstellen"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Google Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Textcodierung einstellen"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index cbef856..321faf5 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Se borrarán todos los datos del navegador y se restablecerá la configuración predeterminada."</string> <string name="pref_extras_reset_default_dlg_title">"Restablecer valores predeterminados"</string> <string name="pref_development_title">"Depurar"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Representación en una columna"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Establecer URL de búsqueda"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Establecer codificación de texto"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latín-1 (ISO-8859-1)"</item> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 56f865a..375583e 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Toutes les données du navigateur seront effacées et les paramètres par défaut rétablis."</string> <string name="pref_extras_reset_default_dlg_title">"Rétablir les valeurs par défaut"</string> <string name="pref_development_title">"Débogage"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Activer le suivi"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Définir le codage du texte"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index dd3b6ee..c44ed3e 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -72,7 +72,7 @@ <string name="empty_bookmark">"Impossibile creare un segnalibro vuoto."</string> <string name="bookmark_url_not_valid">"URL non valido."</string> <string name="delete_bookmark">"Elimina"</string> - <string name="bookmark_page">"Aggiungi ultima pagina visualizzata in segnalibri"</string> + <string name="bookmark_page">"Aggiungi ultima pagina visualizzata ai segnalibri"</string> <string name="current_page">"da "</string> <string name="delete_bookmark_warning">"Il segnalibro \"<xliff:g id="BOOKMARK">%s</xliff:g>\" verrà eliminato."</string> <string name="open_in_new_window">"Apri in nuova finestra"</string> @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Verranno cancellati tutti i dati del browser e ripristinate le impostazioni predefinite."</string> <string name="pref_extras_reset_default_dlg_title">"Ripristina valori predefiniti"</string> <string name="pref_development_title">"Debug"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Imposta codifica testo"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index bd19f84..f14953b 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -114,7 +114,7 @@ <string name="pref_content_load_images">"画像のロード"</string> <string name="pref_content_load_images_summary">"ウェブページに画像を表示"</string> <string name="pref_content_block_popups">"ポップアップウィンドウをブロック"</string> - <string name="pref_content_javascript">"JavaScript有効"</string> + <string name="pref_content_javascript">"JavaScriptを有効にする"</string> <string name="pref_content_open_in_background">"バックグラウンドで開く"</string> <string name="pref_content_open_in_background_summary">"新しいウィンドウを現在のウィンドウの後ろに開きます"</string> <string name="pref_content_homepage">"ホームページ設定"</string> @@ -155,7 +155,7 @@ </string-array> <string name="pref_text_size_dialogtitle">"文字サイズ"</string> <string name="pref_extras_title">"詳細な設定"</string> - <string name="pref_extras_gears_enable">"Gears有効"</string> + <string name="pref_extras_gears_enable">"Gearsを有効にする"</string> <string name="pref_extras_gears_enable_summary">"ブラウザの機能を拡張するアプリケーションです"</string> <string name="pref_extras_gears_settings">"Gears設定"</string> <string name="pref_plugin_installed">"プラグインリスト"</string> @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"ブラウザデータをすべて消去して初期設定に戻します。"</string> <string name="pref_extras_reset_default_dlg_title">"初期設定にリセット"</string> <string name="pref_development_title">"デバッグ"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"テキストエンコードを設定"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index d85caee..bba2bf8 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"모든 브라우저 데이터가 지워지고 설정이 기본값으로 돌아갑니다."</string> <string name="pref_extras_reset_default_dlg_title">"기본값으로 재설정"</string> <string name="pref_development_title">"디버그"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"검색 URL 설정"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"텍스트 인코딩 설정"</string> <string-array name="pref_default_text_encoding_choices"> <item>"라틴어-1(ISO-8859-1)"</item> diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml index 3c149fb..4fb4d4d 100644 --- a/res/values-nb/strings.xml +++ b/res/values-nb/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Alle data vil bli fjernet fra nettleseren, og alle innstillinger vil bli nullstilt."</string> <string name="pref_extras_reset_default_dlg_title">"Nullstill"</string> <string name="pref_development_title">"Avlusing"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Velg tekstkoding"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml index 58b6a97..7fccab8 100644 --- a/res/values-nl/strings.xml +++ b/res/values-nl/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Alle browsergegevens worden gewist en de standaardinstellingen worden hersteld."</string> <string name="pref_extras_reset_default_dlg_title">"Standaardinstellingen herstellen"</string> <string name="pref_development_title">"Foutopsporing"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normaal gerenderd"</string> - <string name="pref_development_trace">"Traceren inschakelen"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Tekstcodering instellen"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latijn-1 (ISO-8859-1)"</item> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index 186128b..9d1130f 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Wszystkie dane przeglądarki zostaną wyczyszczone, a ustawienia powrócą do wartości domyślnych."</string> <string name="pref_extras_reset_default_dlg_title">"Przywróć wartości domyślne"</string> <string name="pref_development_title">"Debugowanie"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Ustaw adres URL wyszukiwania"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Ustaw kodowanie tekstu"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index eedcbb0..32af560 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"Все данные бразуера будут удалены, а для настроек будут восстановлены значения по умолчанию."</string> <string name="pref_extras_reset_default_dlg_title">"Восстановить значения по умолчанию"</string> <string name="pref_development_title">"Отладка"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"Single column rendering"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"Set search URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"Desktop"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"Выбрать кодировку текста"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Латиница-1 (ISO-8859-1)"</item> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 6cc0db8..2ee80c2 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"会清除所有浏览器数据并且设置会恢复为默认值。"</string> <string name="pref_extras_reset_default_dlg_title">"重置为默认值"</string> <string name="pref_development_title">"调试"</string> - <string name="pref_development_viewport">"使用宽视口"</string> - <string name="pref_development_single_column_rendering">"单列呈现"</string> - <string name="pref_development_normal_rendering">"正常呈现"</string> - <string name="pref_development_trace">"启用跟踪"</string> - <string name="pref_development_nav_dump">"启用导航缓存转储"</string> - <string name="pref_development_search_url">"设置搜索网址"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"桌面"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"设置文字编码"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 45241be..9b6c675 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -166,23 +166,6 @@ <string name="pref_extras_reset_default_dlg">"瀏覽器所有資料會被清除, 並回復初始設定。"</string> <string name="pref_extras_reset_default_dlg_title">"回復初始設定"</string> <string name="pref_development_title">"除錯"</string> - <string name="pref_development_viewport">"Use wide viewport"</string> - <string name="pref_development_single_column_rendering">"單欄模式"</string> - <string name="pref_development_normal_rendering">"Normal rendering"</string> - <string name="pref_development_trace">"Enable tracing"</string> - <string name="pref_development_nav_dump">"Enable nav cache dump"</string> - <string name="pref_development_search_url">"設定搜尋 URL"</string> - <string name="pref_development_uastring">"UAString"</string> - <string-array name="pref_development_ua_choices"> - <item>"Android"</item> - <item>"桌面"</item> - <item>"iPhone"</item> - </string-array> - <string-array name="pref_development_ua_values"> - <item>"0"</item> - <item>"1"</item> - <item>"2"</item> - </string-array> <string name="pref_default_text_encoding">"設定文字編碼"</string> <string-array name="pref_default_text_encoding_choices"> <item>"Latin-1 (ISO-8859-1)"</item> diff --git a/res/values/strings.xml b/res/values/strings.xml index 83cc639..0dcf1f2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -340,7 +340,7 @@ <!-- Title of dialog for setting the text size --> <string name="pref_text_size_dialogtitle">Text size</string> <!-- Do not translate --> - <string-array name="pref_text_size_values"> + <string-array name="pref_text_size_values" translatable="false"> <item><xliff:g>SMALLEST</xliff:g></item> <item><xliff:g>SMALLER</xliff:g></item> <item><xliff:g>NORMAL</xliff:g></item> @@ -371,27 +371,27 @@ <!-- Title for a group of settings --> <string name="pref_development_title">Debug</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_viewport">Use wide viewport</string> + <string name="pref_development_viewport" translatable="false">Use wide viewport</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_single_column_rendering">Single column rendering</string> + <string name="pref_development_single_column_rendering" translatable="false">Single column rendering</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_normal_rendering">Normal rendering</string> + <string name="pref_development_normal_rendering" translatable="false">Normal rendering</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_trace">Enable tracing</string> + <string name="pref_development_trace" translatable="false">Enable tracing</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_nav_dump">Enable nav cache dump</string> + <string name="pref_development_nav_dump" translatable="false">Enable nav cache dump</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_search_url">Set search URL</string> + <string name="pref_development_search_url" translatable="false">Set search URL</string> <!-- Do not tranlsate. Development option --> - <string name="pref_development_uastring">UAString</string> + <string name="pref_development_uastring" translatable="false">UAString</string> <!-- Do not tranlsate. Development option --> - <string-array name="pref_development_ua_choices"> + <string-array name="pref_development_ua_choices" translatable="false"> <item>Android</item> <item>Desktop</item> <item>iPhone</item> </string-array> <!-- Do not tranlsate. Development option --> - <string-array name="pref_development_ua_values"> + <string-array name="pref_development_ua_values" translatable="false"> <item>0</item> <item>1</item> <item>2</item> @@ -410,7 +410,7 @@ <!-- Dialog box title --> <string name="pref_default_text_encoding_dialogtitle">Text encoding</string> <!-- Do not translate. Actual encoding values. Must be valid text encodings understandable from WebKit. --> - <string-array name="pref_default_text_encoding_values"> + <string-array name="pref_default_text_encoding_values" translatable="false"> <item>Latin-1</item> <item>UTF-8</item> <item>ISO-2022-JP</item> @@ -450,7 +450,7 @@ <!-- This string is for the browser "Go To" UI. --> <!-- Do not translate. This string is not displayed in UI (no badge is selected for go to). --> - <string name="search_label">Browser</string> + <string name="search_label" translatable="false">Browser</string> <!-- This string is for the browser "Go To" UI. --> <!-- This is the hint text shown in the Go To widget, before text is entered. --> <string name="search_hint">Type Web address</string> @@ -573,15 +573,15 @@ <string name="activity_instrumentation_test_runner">Browser Test Runner</string> <!-- Do not translate. Testing only --> - <string name="activity_instrumentation_functional_test_runner">Browser Functional Test Runner</string> + <string name="activity_instrumentation_functional_test_runner" translatable="false">Browser Functional Test Runner</string> <!-- Do not translate. Testing only --> - <string name="dump_nav">Dump navigation cache</string> + <string name="dump_nav" translatable="false">Dump navigation cache</string> <!-- Bookmarks --> <string-array name="bookmarks" translatable="false"> <item>Google</item> <item>http://www.google.com/</item> - <item>Picasa Web Albums</item> + <item>Picasa</item> <item>http://picasaweb.google.com/m/viewer?source=androidclient</item> <item>Yahoo!</item> <item>http://www.yahoo.com/</item> @@ -609,6 +609,9 @@ <item>http://www.bbc.co.uk/</item> </string-array> + <!-- Bookmark name for Picasa website --> + <string name="picasa" translatable="false">Picasa</string> + <!-- Note that this is the standard search url. It uses the current locale for language --> <!-- (%1$s) and country (%2$s) and shouldn't need to be replaced by locale or mcc selected --> <!-- resources. --> diff --git a/src/com/android/browser/BrowserProvider.java b/src/com/android/browser/BrowserProvider.java index 0c930c6..14d4650 100644 --- a/src/com/android/browser/BrowserProvider.java +++ b/src/com/android/browser/BrowserProvider.java @@ -16,6 +16,8 @@ package com.android.browser; +import java.util.Date; + import android.app.ISearchManager; import android.app.SearchManager; import android.content.ComponentName; @@ -24,7 +26,9 @@ import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.content.Intent; +import android.content.SharedPreferences; import android.content.UriMatcher; +import android.content.SharedPreferences.Editor; import android.database.AbstractCursor; import android.database.Cursor; import android.database.sqlite.SQLiteOpenHelper; @@ -33,6 +37,7 @@ import android.net.Uri; import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; +import android.preference.PreferenceManager; import android.provider.Browser; import android.util.Log; import android.server.search.SearchableInfo; @@ -45,6 +50,9 @@ public class BrowserProvider extends ContentProvider { private static final String TAG = "BrowserProvider"; private static final String ORDER_BY = "visits DESC, date DESC"; + private static final String PICASA_URL = "http://picasaweb.google.com/m/" + + "viewer?source=androidclient"; + private static final String[] TABLE_NAMES = new String[] { "bookmarks", "searches" }; @@ -223,10 +231,45 @@ public class BrowserProvider extends ContentProvider { @Override public boolean onCreate() { - mOpenHelper = new DatabaseHelper(getContext()); + final Context context = getContext(); + mOpenHelper = new DatabaseHelper(context); + // we added "picasa web album" into default bookmarks for version 19. + // To avoid erasing the bookmark table, we added it explicitly for + // version 18 and 19 as in the other cases, we will erase the table. + if (DATABASE_VERSION == 18 || DATABASE_VERSION == 19) { + SharedPreferences p = PreferenceManager + .getDefaultSharedPreferences(context); + boolean fix = p.getBoolean("fix_picasa", true); + if (fix) { + fixPicasaBookmark(); + Editor ed = p.edit(); + ed.putBoolean("fix_picasa", false); + ed.commit(); + } + } return true; } + private void fixPicasaBookmark() { + SQLiteDatabase db = mOpenHelper.getWritableDatabase(); + Cursor cursor = db.rawQuery("SELECT _id FROM bookmarks WHERE " + + "bookmark = 1 AND url = ?", new String[] { PICASA_URL }); + try { + if (!cursor.moveToFirst()) { + // set "created" so that it will be on the top of the list + db.execSQL("INSERT INTO bookmarks (title, url, visits, " + + "date, created, bookmark)" + " VALUES('" + + getContext().getString(R.string.picasa) + "', '" + + PICASA_URL + "', 0, 0, " + new Date().getTime() + + ", 1);"); + } + } finally { + if (cursor != null) { + cursor.close(); + } + } + } + /* * Subclass AbstractCursor so we can combine multiple Cursors and add * "Google Search". diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index d58ee22..ee63f2c 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -807,6 +807,8 @@ class TabControl { // Create a new WebView WebView w = new WebView(mActivity); w.setMapTrackballToArrowKeys(false); // use trackball directly + // Enable the built-in zoom + w.getSettings().setBuiltInZoomControls(true); // Add this WebView to the settings observer list and update the // settings final BrowserSettings s = BrowserSettings.getInstance(); |