diff options
-rw-r--r-- | res/layout-port/autofill_settings_fragment.xml | 157 | ||||
-rw-r--r-- | res/layout/autofill_settings_fragment.xml | 148 | ||||
-rw-r--r-- | res/menu/autofill_profile_editor.xml | 5 | ||||
-rw-r--r-- | res/values-de/strings.xml | 14 | ||||
-rw-r--r-- | res/values-fa/strings.xml | 2 | ||||
-rw-r--r-- | res/values-fr/strings.xml | 12 | ||||
-rw-r--r-- | res/values-ja/strings.xml | 2 | ||||
-rw-r--r-- | res/values-pl/strings.xml | 36 | ||||
-rw-r--r-- | res/values-ru/strings.xml | 2 | ||||
-rw-r--r-- | res/values-th/strings.xml | 10 | ||||
-rw-r--r-- | res/values-zh-rCN/strings.xml | 32 | ||||
-rw-r--r-- | res/values/styles.xml | 13 | ||||
-rw-r--r-- | src/com/android/browser/AutoFillSettingsFragment.java | 81 |
13 files changed, 184 insertions, 330 deletions
diff --git a/res/layout-port/autofill_settings_fragment.xml b/res/layout-port/autofill_settings_fragment.xml index 63dba4d..16f674d 100644 --- a/res/layout-port/autofill_settings_fragment.xml +++ b/res/layout-port/autofill_settings_fragment.xml @@ -43,35 +43,19 @@ android:layout_width="match_parent" /> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_name" /> <EditText android:id="@+id/autofill_profile_editor_name_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textPersonName|textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textPersonName|textCapWords" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_company_name" /> <EditText android:id="@+id/autofill_profile_editor_company_name_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -91,13 +75,9 @@ android:text="@string/autofill_profile_editor_address_line_1_hint" /> </LinearLayout> <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -117,115 +97,50 @@ android:text="@string/autofill_profile_editor_address_line_2_hint" /> </LinearLayout> <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="bottom" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_city" /> <EditText android:id="@+id/autofill_profile_editor_city_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_state" /> <EditText android:id="@+id/autofill_profile_editor_state_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_zip_code" /> <EditText android:id="@+id/autofill_profile_editor_zip_code_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapCharacters" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapCharacters" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_country" /> <EditText android:id="@+id/autofill_profile_editor_country_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_phone_number" /> <EditText android:id="@+id/autofill_profile_editor_phone_number_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" + style="@style/AutofillProfileEditText" android:phoneNumber="true" /> + <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_email_address" /> <EditText android:id="@+id/autofill_profile_editor_email_address_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textEmailAddress" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textEmailAddress" /> </LinearLayout> </ScrollView> - - <View - android:layout_height="12dip" - android:layout_width="match_parent" /> - - <Button - android:id="@+id/autofill_profile_editor_save_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/autofill_profile_editor_save_profile" - android:textAppearance="?android:attr/textAppearanceMedium" /> - </LinearLayout> diff --git a/res/layout/autofill_settings_fragment.xml b/res/layout/autofill_settings_fragment.xml index 8c90dd7..ab23ffb 100644 --- a/res/layout/autofill_settings_fragment.xml +++ b/res/layout/autofill_settings_fragment.xml @@ -49,37 +49,19 @@ android:stretchColumns="1"> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_name" /> <EditText android:id="@+id/autofill_profile_editor_name_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textPersonName|textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textPersonName|textCapWords" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_company_name" /> <EditText android:id="@+id/autofill_profile_editor_company_name_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" @@ -101,13 +83,8 @@ android:text="@string/autofill_profile_editor_address_line_1_hint" /> </LinearLayout> <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" @@ -129,130 +106,59 @@ android:text="@string/autofill_profile_editor_address_line_2_hint" /> </LinearLayout> <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="bottom" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textCapWords" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_city" /> <EditText android:id="@+id/autofill_profile_editor_city_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_state" /> <EditText android:id="@+id/autofill_profile_editor_state_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_zip_code" /> <EditText android:id="@+id/autofill_profile_editor_zip_code_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapCharacters" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapCharacters" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_country" /> <EditText android:id="@+id/autofill_profile_editor_country_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:inputType="textCapWords" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textCapWords" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_phone_number" /> <EditText android:id="@+id/autofill_profile_editor_phone_number_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:singleLine="true" + style="@style/AutofillProfileEditText" android:phoneNumber="true" /> </TableRow> <TableRow> <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" + style="@style/AutofillProfileTextView" android:text="@string/autofill_profile_editor_email_address" /> <EditText android:id="@+id/autofill_profile_editor_email_address_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:layout_margin="2dip" - android:textAppearance="?android:attr/textAppearanceMedium" - android:inputType="textEmailAddress" - android:singleLine="true" /> + style="@style/AutofillProfileEditText" + android:inputType="textEmailAddress" /> </TableRow> </TableLayout> </LinearLayout> </ScrollView> - - <View - android:layout_height="12dip" - android:layout_width="match_parent" /> - - <Button - android:id="@+id/autofill_profile_editor_save_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/autofill_profile_editor_save_profile" - android:textAppearance="?android:attr/textAppearanceMedium" /> - </LinearLayout> diff --git a/res/menu/autofill_profile_editor.xml b/res/menu/autofill_profile_editor.xml index 4e746e5..9dab635 100644 --- a/res/menu/autofill_profile_editor.xml +++ b/res/menu/autofill_profile_editor.xml @@ -15,6 +15,11 @@ --> <menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/autofill_profile_editor_save_profile_menu_id" + android:title="@string/autofill_profile_editor_save_profile" + android:icon="@android:drawable/ic_menu_save" + android:showAsAction="ifRoom|withText" /> + <item android:id="@+id/autofill_profile_editor_delete_profile_menu_id" android:title="@string/autofill_profile_editor_delete_profile" android:icon="@android:drawable/ic_menu_delete" diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 84e8bb9..8da1fd3 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -153,7 +153,7 @@ <string name="pref_general_title" msgid="1946872771219249323">"Allgemein"</string> <string name="pref_general_sync_title" msgid="3138637035975860324">"Synchronisierung"</string> <string name="pref_general_autofill_title" msgid="547881256865816858">"AutoFill"</string> - <string name="pref_autofill_enabled" msgid="1015751713312396713">"Formular autom. ausf."</string> + <string name="pref_autofill_enabled" msgid="1015751713312396713">"Formular automatisch ausfüllen"</string> <string name="pref_autofill_enabled_summary" msgid="7659954073892471496">"Webformulare mit einer einzigen Berührung ausfüllen"</string> <string name="pref_autofill_profile_editor" msgid="8934844472922113166">"AutoFill-Text"</string> <string name="pref_autofill_profile_editor_summary" msgid="4864447251676856190">"AutoFill-Text für Webformulare einrichten"</string> @@ -230,8 +230,8 @@ <string name="pref_zoom_on_double_tap" msgid="902786475250741795">"Zoomen mit zweimaligem Tippen"</string> <string name="pref_force_userscalable" msgid="5641500562399892621">"Zoom zwingend aktivieren"</string> <string name="pref_force_userscalable_summary" msgid="3613242300617172230">"Anfrage zur Steuerung des Zoomverhaltens überschreiben"</string> - <string name="pref_inverted_category" msgid="1280639705117152207">"Negativkontrast"</string> - <string name="pref_inverted" msgid="7613556986776824112">"Negativkontrast"</string> + <string name="pref_inverted_category" msgid="1280639705117152207">"Umgekehrte Bildschirmanzeige"</string> + <string name="pref_inverted" msgid="7613556986776824112">"Umgekehrte Anzeige"</string> <string name="pref_inverted_summary" msgid="7357225897413923085">"Schwarz wird zu Weiß und umgekehrt"</string> <string name="pref_inverted_contrast" msgid="8527441236225288169">"Kontrast"</string> <string name="pref_default_zoom" msgid="8076142259097187395">"Standard-Zoom"</string> @@ -263,7 +263,7 @@ <item msgid="2193955365569270096">"Koreanisch (EUC-KR)"</item> </string-array> <string name="pref_default_text_encoding_dialogtitle" msgid="5508255018084978547">"Textcodierung"</string> - <string name="pref_accessibility_title" msgid="5127836981587423215">"Bedienungshilfen"</string> + <string name="pref_accessibility_title" msgid="5127836981587423215">"Eingabehilfen"</string> <string name="pref_font_size_category" msgid="6683754355084218254">"Textgröße"</string> <string name="pref_lab_title" msgid="5571091610359629423">"Labs"</string> <string name="pref_lab_quick_controls" msgid="3267606522082281367">"Schnellsteuerung"</string> @@ -273,14 +273,14 @@ <string name="pref_lab_fullscreen" msgid="8173609016657987973">"Vollbild"</string> <string name="pref_lab_fullscreen_summary" msgid="7694738112219376740">"Vollbildmodus zum Ausblenden der Statusleiste verwenden"</string> <string name="pref_data_title" msgid="7255058703417796578">"Bandbreitenverwaltung"</string> - <string name="pref_data_preload_title" msgid="4479320472980292873">"Suchergebnisse vorabladen"</string> + <string name="pref_data_preload_title" msgid="4479320472980292873">"Vorabladen von Suchergebnissen"</string> <string-array name="pref_data_preload_choices"> <item msgid="5180466923190095508">"Nie"</item> <item msgid="1791664748778640002">"Nur bei WLAN"</item> <item msgid="3944061253437827617">"Immer"</item> </string-array> <string name="pref_data_preload_summary" msgid="3809168910751382727">"Browser kann vertrauenswürdige Suchergebnisse vorab im Hintergrund laden"</string> - <string name="pref_data_preload_dialogtitle" msgid="8421297746110796536">"Suchergebnisse vorabladen"</string> + <string name="pref_data_preload_dialogtitle" msgid="8421297746110796536">"Vorabladen von Suchergebnissen"</string> <string name="browserFrameNetworkErrorLabel" msgid="8102515020625680714">"Verbindungsproblem"</string> <string name="browserFrameFileErrorLabel" msgid="4703792279852977350">"Dateifehler"</string> <string name="browserFrameFormResubmitLabel" msgid="2385512101948178841"></string> @@ -361,7 +361,7 @@ <string name="instant_search_label" msgid="8769284297650716935">"Google mit dynamischer Suche (Labs)"</string> <string name="preview" msgid="6450823514561689038">"Vorschau"</string> <string name="local_bookmarks" msgid="533816851415228520">"Lokal"</string> - <string name="ua_switcher_desktop" msgid="220097077327558435">"Desktop-Version"</string> + <string name="ua_switcher_desktop" msgid="220097077327558435">"Desktop-Version anfordern"</string> <string name="permission_preload_label" msgid="4856971662337877316">"Ergebnisse vorab laden"</string> <string name="empty_snapshots_folder" msgid="7675378008107026013">"Keine gespeicherten Seiten"</string> <string name="remove_snapshot" msgid="1624447424544976849">"Gespeicherte Seite löschen"</string> diff --git a/res/values-fa/strings.xml b/res/values-fa/strings.xml index cc7872a..ab330b7 100644 --- a/res/values-fa/strings.xml +++ b/res/values-fa/strings.xml @@ -378,7 +378,7 @@ <string name="accessibility_button_newtab" msgid="4116986240706315748">"باز کردن برگه جدید"</string> <string name="accessibility_button_newincognitotab" msgid="5254901889040012964">"باز کردن برگه حالت ناشناس جدید"</string> <string name="accessibility_button_clear" msgid="6943152307986161598">"پاک کردن ورودی"</string> - <string name="accessibility_button_uaswitch" msgid="6286804719724282339">"تغییر نماینده کاربر"</string> + <string name="accessibility_button_uaswitch" msgid="6286804719724282339">"تغییر عامل کاربر"</string> <string name="accessibility_button_go" msgid="1182818872083055958">"رفتن"</string> <string name="accessibility_button_navscreen" msgid="9142904748728713075">"مدیر صفحه"</string> <string name="accessibility_button_more" msgid="3054251446394224216">"گزینههای بیشتر"</string> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 6b6717d..a904978 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -127,7 +127,7 @@ <string name="pref_content_title" msgid="3834107397725342174">"Contenu de la page"</string> <string name="pref_content_load_images" msgid="2125616852957377561">"Charger les images"</string> <string name="pref_content_load_images_summary" msgid="5055874125248398584">"Afficher les images des pages Web"</string> - <string name="pref_content_block_popups" msgid="4158524847764470895">"Bloquer les pop-up"</string> + <string name="pref_content_block_popups" msgid="4158524847764470895">"Bloquer les fenêtres pop-up"</string> <string name="pref_content_javascript" msgid="4570972030299516843">"Activer JavaScript"</string> <string name="pref_content_open_in_background" msgid="824123779725118663">"Ouvrir en arrière-plan"</string> <string name="pref_content_plugins" msgid="7231944644794301582">"Activer les plug-ins"</string> @@ -148,12 +148,12 @@ <item msgid="6092441301001006473">"Sites les plus visités"</item> <item msgid="6569304572171444894">"Autre"</item> </string-array> - <string name="pref_content_autofit" msgid="8260474534053660809">"Ajust. auto des pages"</string> + <string name="pref_content_autofit" msgid="8260474534053660809">"Ajustement auto des pages"</string> <string name="pref_content_autofit_summary" msgid="324810555822572112">"Configurer les pages Web pour qu\'elles s\'ajustent à l\'écran"</string> <string name="pref_general_title" msgid="1946872771219249323">"Général"</string> <string name="pref_general_sync_title" msgid="3138637035975860324">"Synchronisation"</string> <string name="pref_general_autofill_title" msgid="547881256865816858">"Saisie automatique"</string> - <string name="pref_autofill_enabled" msgid="1015751713312396713">"Saisie auto du formulaire"</string> + <string name="pref_autofill_enabled" msgid="1015751713312396713">"Saisie automatique du formulaire"</string> <string name="pref_autofill_enabled_summary" msgid="7659954073892471496">"Remplir les formulaires Web en un seul geste"</string> <string name="pref_autofill_profile_editor" msgid="8934844472922113166">"Texte de saisie automatique"</string> <string name="pref_autofill_profile_editor_summary" msgid="4864447251676856190">"Définir le texte à saisir automatiquement dans les formulaires Web"</string> @@ -199,7 +199,7 @@ <string name="pref_privacy_clear_form_data" msgid="4232668196344383987">"Eff. données formulaires"</string> <string name="pref_privacy_clear_form_data_summary" msgid="7702091143640546200">"Effacer toutes les données de formulaire enregistrées"</string> <string name="pref_privacy_clear_form_data_dlg" msgid="8205626042241338983">"Supprimer toutes les données de formulaire enregistrées ?"</string> - <string name="pref_privacy_clear_passwords" msgid="4750234112289277480">"Effacer mots de passe"</string> + <string name="pref_privacy_clear_passwords" msgid="4750234112289277480">"Eff. les mots de passe"</string> <string name="pref_privacy_clear_passwords_summary" msgid="8856782718942903335">"Effacer tous les mots de passe enregistrés"</string> <string name="pref_privacy_clear_passwords_dlg" msgid="5836576259947160045">"Supprimer tous les mots de passe enregistrés ?"</string> <string name="pref_privacy_location_title" msgid="7458378016606081067">"Lieu"</string> @@ -209,7 +209,7 @@ <string name="pref_privacy_clear_geolocation_access_summary" msgid="7750143359497314679">"Supprimer l\'accès aux données de localisation pour tous les sites Web"</string> <string name="pref_privacy_clear_geolocation_access_dlg" msgid="3190928760598034346">"Supprimer l\'accès du site Web aux données de localisation ?"</string> <string name="pref_security_passwords_title" msgid="5734190542383756711">"Mots de passe"</string> - <string name="pref_security_remember_passwords" msgid="6492957683454529549">"Mémoriser mots de passe"</string> + <string name="pref_security_remember_passwords" msgid="6492957683454529549">"Mém. mots de passe"</string> <string name="pref_security_remember_passwords_summary" msgid="256388703356349137">"Enregistrer les noms d\'utilisateur et les mots de passe pour les sites Web"</string> <string name="pref_security_save_form_data" msgid="1213669802810198893">"Données de formulaires"</string> <string name="pref_security_save_form_data_summary" msgid="4994074685153708026">"Mémoriser les données saisies dans les formulaires pour les réutiliser"</string> @@ -273,7 +273,7 @@ <string name="pref_lab_fullscreen" msgid="8173609016657987973">"Plein écran"</string> <string name="pref_lab_fullscreen_summary" msgid="7694738112219376740">"Utiliser le mode plein écran pour masquer la barre d\'état"</string> <string name="pref_data_title" msgid="7255058703417796578">"Gestion bande passante"</string> - <string name="pref_data_preload_title" msgid="4479320472980292873">"Préchargement résultats recherche"</string> + <string name="pref_data_preload_title" msgid="4479320472980292873">"Préchargement résultats de recherche…"</string> <string-array name="pref_data_preload_choices"> <item msgid="5180466923190095508">"Jamais"</item> <item msgid="1791664748778640002">"Wi-Fi uniquement"</item> diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index 111784d..83dc119 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -279,7 +279,7 @@ <item msgid="1791664748778640002">"Wi-Fi使用時のみ"</item> <item msgid="3944061253437827617">"常時"</item> </string-array> - <string name="pref_data_preload_summary" msgid="3809168910751382727">"ブラウザが信頼度の高い検索結果をバックグラウンドでプリロードできるようにする"</string> + <string name="pref_data_preload_summary" msgid="3809168910751382727">"ブラウザが信頼度の高い検索結果をバックグラウンドでプリロードできるようにします"</string> <string name="pref_data_preload_dialogtitle" msgid="8421297746110796536">"検索結果のプリロード"</string> <string name="browserFrameNetworkErrorLabel" msgid="8102515020625680714">"接続エラー"</string> <string name="browserFrameFileErrorLabel" msgid="4703792279852977350">"ファイルの問題"</string> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index cda7a11..72bdc32 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -73,7 +73,7 @@ <string name="bookmark_this_page" msgid="7530739804320811054">"Dodaj tę stronę do zakładek"</string> <string name="remove" msgid="7820112494467011374">"Usuń"</string> <string name="edit_bookmark" msgid="5024089053490231905">"Edytuj zakładkę"</string> - <string name="create_shortcut_bookmark" msgid="1995095662095484289">"Dodaj skrót do strony głównej"</string> + <string name="create_shortcut_bookmark" msgid="1995095662095484289">"Dodaj skrót do ekranu głównego"</string> <string name="open_bookmark" msgid="8473581305759935790">"Otwórz"</string> <string name="remove_bookmark" msgid="8407495852801410891">"Usuń zakładkę"</string> <string name="remove_from_bookmarks" msgid="4374080666576982775">"Usuń z zakładek"</string> @@ -127,7 +127,7 @@ <string name="pref_content_title" msgid="3834107397725342174">"Treść strony"</string> <string name="pref_content_load_images" msgid="2125616852957377561">"Wczytuj obrazy"</string> <string name="pref_content_load_images_summary" msgid="5055874125248398584">"Wyświetlaj obrazy na stronach internetowych"</string> - <string name="pref_content_block_popups" msgid="4158524847764470895">"Blokuj wyskakujące okna"</string> + <string name="pref_content_block_popups" msgid="4158524847764470895">"Blokuj wyskakujące okienka"</string> <string name="pref_content_javascript" msgid="4570972030299516843">"Włącz skrypty JavaScript"</string> <string name="pref_content_open_in_background" msgid="824123779725118663">"Otwieraj w tle"</string> <string name="pref_content_plugins" msgid="7231944644794301582">"Obsługa wtyczek"</string> @@ -145,7 +145,7 @@ <item msgid="844041670142910837">"Bieżąca strona"</item> <item msgid="4430498748295169195">"Pusta strona"</item> <item msgid="5747608191946904074">"Strona domyślna"</item> - <item msgid="6092441301001006473">"Najczęstsze strony"</item> + <item msgid="6092441301001006473">"Najczęściej odwiedzane witryny"</item> <item msgid="6569304572171444894">"Inna"</item> </string-array> <string name="pref_content_autofit" msgid="8260474534053660809">"Autodopasowanie stron"</string> @@ -153,7 +153,7 @@ <string name="pref_general_title" msgid="1946872771219249323">"Ogólne"</string> <string name="pref_general_sync_title" msgid="3138637035975860324">"Synchronizacja"</string> <string name="pref_general_autofill_title" msgid="547881256865816858">"Autouzupełnianie"</string> - <string name="pref_autofill_enabled" msgid="1015751713312396713">"Uzupełniaj formularze"</string> + <string name="pref_autofill_enabled" msgid="1015751713312396713">"Autouzupełnianie formularzy"</string> <string name="pref_autofill_enabled_summary" msgid="7659954073892471496">"Wypełniaj formularze internetowe za pomocą jednego dotknięcia."</string> <string name="pref_autofill_profile_editor" msgid="8934844472922113166">"Autouzupełniany tekst"</string> <string name="pref_autofill_profile_editor_summary" msgid="4864447251676856190">"Skonfiguruj tekst autouzupełniany w formularzach internetowych"</string> @@ -205,8 +205,8 @@ <string name="pref_privacy_location_title" msgid="7458378016606081067">"Lokalizacja"</string> <string name="pref_privacy_enable_geolocation" msgid="1395040170290765686">"Włącz obsługę lokalizacji"</string> <string name="pref_privacy_enable_geolocation_summary" msgid="8437020934664306205">"Zezwalaj witrynom na żądanie dostępu do informacji o lokalizacji"</string> - <string name="pref_privacy_clear_geolocation_access" msgid="6649680770030042980">"Anuluj dostęp do lokalizacji"</string> - <string name="pref_privacy_clear_geolocation_access_summary" msgid="7750143359497314679">"Wyczyść bieżące ustawienia dostępu do lokalizacji dla witryn"</string> + <string name="pref_privacy_clear_geolocation_access" msgid="6649680770030042980">"Wyczyść dostęp do lokalizacji"</string> + <string name="pref_privacy_clear_geolocation_access_summary" msgid="7750143359497314679">"Anuluj ustawienia dostępu do lokalizacji dla witryn"</string> <string name="pref_privacy_clear_geolocation_access_dlg" msgid="3190928760598034346">"Anulować dostęp witryny do informacji o lokalizacji?"</string> <string name="pref_security_passwords_title" msgid="5734190542383756711">"Hasła"</string> <string name="pref_security_remember_passwords" msgid="6492957683454529549">"Pamiętaj hasła"</string> @@ -228,7 +228,7 @@ <string name="pref_min_font_size_value" msgid="2924708480509060209">"<xliff:g id="FONT_SIZE">%d</xliff:g> pkt"</string> <string name="pref_text_zoom" msgid="5171056101805125497">"Skalowanie tekstu"</string> <string name="pref_zoom_on_double_tap" msgid="902786475250741795">"Powiększ po dwukrotnym dotknięciu"</string> - <string name="pref_force_userscalable" msgid="5641500562399892621">"Wymuś powiększenie"</string> + <string name="pref_force_userscalable" msgid="5641500562399892621">"Wymuś włączenie powiększenia"</string> <string name="pref_force_userscalable_summary" msgid="3613242300617172230">"Nie zezwalaj witrynie sterować powiększeniem"</string> <string name="pref_inverted_category" msgid="1280639705117152207">"Negatyw ekranu"</string> <string name="pref_inverted" msgid="7613556986776824112">"Negatyw"</string> @@ -248,7 +248,7 @@ <string name="pref_extras_website_settings_summary" msgid="1656771443223494406">"Ustawienia zaawansowane dla poszczególnych witryn"</string> <string name="pref_extras_reset_default_title" msgid="3579760449455761762">"Ustawienia domyślne"</string> <string name="pref_extras_reset_default" msgid="8904000515846202110">"Przywróć wartości domyślne"</string> - <string name="pref_extras_reset_default_summary" msgid="4247870778270414501">"Przywróć domyślne"</string> + <string name="pref_extras_reset_default_summary" msgid="4247870778270414501">"Przywróć ustawienia domyślne"</string> <string name="pref_extras_reset_default_dlg" msgid="7922814420184322450">"Przywrócić domyślne wartości ustawień?"</string> <string name="pref_development_title" msgid="3263854204533056480">"Debugowanie"</string> <string name="pref_default_text_encoding" msgid="5742965543955558478">"Kodowanie tekstu"</string> @@ -272,15 +272,15 @@ <string name="pref_use_instant_search_summary" msgid="839320474961917522">"Użyj wyszukiwania dynamicznego Google, aby uzyskiwać wyniki podczas pisania (może być pobierana większa ilość danych)."</string> <string name="pref_lab_fullscreen" msgid="8173609016657987973">"Pełny ekran"</string> <string name="pref_lab_fullscreen_summary" msgid="7694738112219376740">"Użyj trybu pełnoekranowego, aby ukryć pasek stanu"</string> - <string name="pref_data_title" msgid="7255058703417796578">"Zarządzanie transferem"</string> - <string name="pref_data_preload_title" msgid="4479320472980292873">"Wstępne wczytywanie wyników"</string> + <string name="pref_data_title" msgid="7255058703417796578">"Zarządzanie przepustowością"</string> + <string name="pref_data_preload_title" msgid="4479320472980292873">"Wstępne wczytywanie wyników wyszukiwania"</string> <string-array name="pref_data_preload_choices"> <item msgid="5180466923190095508">"Nigdy"</item> <item msgid="1791664748778640002">"Tylko przy Wi-Fi"</item> <item msgid="3944061253437827617">"Zawsze"</item> </string-array> - <string name="pref_data_preload_summary" msgid="3809168910751382727">"Zezwalaj przeglądarce na wstępne wczytywanie wyników wyszukiwania w tle"</string> - <string name="pref_data_preload_dialogtitle" msgid="8421297746110796536">"Wstępne wczytywanie wyników"</string> + <string name="pref_data_preload_summary" msgid="3809168910751382727">"Zezwalaj przeglądarce na wstępne wczytywanie w tle trafnych wyników wyszukiwania"</string> + <string name="pref_data_preload_dialogtitle" msgid="8421297746110796536">"Wstępne wczytywanie wyników wyszukiwania"</string> <string name="browserFrameNetworkErrorLabel" msgid="8102515020625680714">"Problem z połączeniem"</string> <string name="browserFrameFileErrorLabel" msgid="4703792279852977350">"Problem z plikiem"</string> <string name="browserFrameFormResubmitLabel" msgid="2385512101948178841"></string> @@ -322,15 +322,15 @@ <string name="webstorage_clear_data_dialog_cancel_button" msgid="2028867751958942762">"Anuluj"</string> <string name="webstorage_origin_summary_mb_stored" msgid="1985885826292236210">"Liczba MB danych zapisanych w telefonie"</string> <string name="loading_video" msgid="7886324933131962321">"Wczytywanie filmu…"</string> - <string name="geolocation_permissions_prompt_message" msgid="356796102004052471">"<xliff:g id="WEBSITE_ORIGIN">%s</xliff:g> chce znać Twoją lokalizację"</string> - <string name="geolocation_permissions_prompt_share" msgid="9084486342048347976">"Udostępnij lokalizację"</string> + <string name="geolocation_permissions_prompt_message" msgid="356796102004052471">"Witryna <xliff:g id="WEBSITE_ORIGIN">%s</xliff:g> chce uzyskać informacje o Twojej lokalizacji"</string> + <string name="geolocation_permissions_prompt_share" msgid="9084486342048347976">"Udostępnij informacje o lokalizacji"</string> <string name="geolocation_permissions_prompt_dont_share" msgid="6303025160237860300">"Odrzuć"</string> <string name="geolocation_permissions_prompt_remember" msgid="3118526300707348308">"Zapamiętaj ustawienie"</string> <string name="geolocation_permissions_prompt_toast_allowed" msgid="7201417941112726112">"Ta witryna może uzyskać dostęp do informacji o Twojej lokalizacji. Zmień to ustawienie na ekranie Ustawienia > Zaawansowane > Witryna."</string> <string name="geolocation_permissions_prompt_toast_disallowed" msgid="156443445797377409">"Ta witryna nie może uzyskać dostępu do informacji o Twojej lokalizacji. Zmień to ustawienie w menu Ustawienia > Zaawansowane > Witryna."</string> - <string name="geolocation_settings_page_title" msgid="1745477985097536528">"Anuluj dostęp do lokalizacji"</string> - <string name="geolocation_settings_page_summary_allowed" msgid="9180251524290811398">"Witryna ma dostęp do Twojej lokalizacji"</string> - <string name="geolocation_settings_page_summary_not_allowed" msgid="7941769772784366199">"Witryna nie ma dostępu do Twojej lokalizacji"</string> + <string name="geolocation_settings_page_title" msgid="1745477985097536528">"Wyczyść dostęp do lokalizacji"</string> + <string name="geolocation_settings_page_summary_allowed" msgid="9180251524290811398">"Ta witryna ma obecnie dostęp do informacji o Twojej lokalizacji"</string> + <string name="geolocation_settings_page_summary_not_allowed" msgid="7941769772784366199">"Ta witryna nie ma obecnie dostępu do informacji o Twojej lokalizacji."</string> <string name="geolocation_settings_page_dialog_message" msgid="8772923416296868537">"Anulować dostęp tej witryny do informacji o lokalizacji?"</string> <string name="geolocation_settings_page_dialog_ok_button" msgid="2113465477131017852">"OK"</string> <string name="geolocation_settings_page_dialog_cancel_button" msgid="7941036504673409747">"Anuluj"</string> @@ -361,7 +361,7 @@ <string name="instant_search_label" msgid="8769284297650716935">"Google z wyszukiwaniem dynamicznym (Laboratorium)"</string> <string name="preview" msgid="6450823514561689038">"Podgląd"</string> <string name="local_bookmarks" msgid="533816851415228520">"Lokalne"</string> - <string name="ua_switcher_desktop" msgid="220097077327558435">"Wersja komputerowa"</string> + <string name="ua_switcher_desktop" msgid="220097077327558435">"Wybierz wersję dla komputerów"</string> <string name="permission_preload_label" msgid="4856971662337877316">"Wstępnie wczytaj wyniki"</string> <string name="empty_snapshots_folder" msgid="7675378008107026013">"Brak zapisanych stron"</string> <string name="remove_snapshot" msgid="1624447424544976849">"Usuń zapisaną stronę"</string> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index e2f84d3..8ce10dc 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -95,7 +95,7 @@ <string name="goto_dot" msgid="3895839050522602723">"Поиск"</string> <string name="select_dot" msgid="6299170761900561967">"Выбрать текст"</string> <string name="bookmarks" msgid="1961279134885867815">"Закладки"</string> - <string name="shortcut_bookmark" msgid="3974876480401135895">"Закладка"</string> + <string name="shortcut_bookmark" msgid="3974876480401135895">"Добавить в закладки"</string> <string name="shortcut_bookmark_title" msgid="7570786275916681296">"Выберите закладку"</string> <string name="history" msgid="2451240511251410032">"История"</string> <string name="menu_view_download" msgid="2124570321712995120">"Загрузки"</string> diff --git a/res/values-th/strings.xml b/res/values-th/strings.xml index 1c17b1c..fa0b59e 100644 --- a/res/values-th/strings.xml +++ b/res/values-th/strings.xml @@ -101,8 +101,8 @@ <string name="menu_view_download" msgid="2124570321712995120">"สิ่งที่ดาวน์โหลด"</string> <string name="copy_page_url" msgid="1188679152608889555">"คัดลอก URL ของหน้าเว็บ"</string> <string name="share_page" msgid="593756995297268343">"แบ่งปันหน้าเว็บ"</string> - <string name="menu_save_snapshot" msgid="6935080344031126139">"บันทึกไว้อ่านออฟไลน์"</string> - <string name="snapshot_failed" msgid="4584580873565876033">"ไม่สามารถบันทึกไว้อ่านแบบออฟไลน์ได้"</string> + <string name="menu_save_snapshot" msgid="6935080344031126139">"บันทึกเพื่ออ่านแบบออฟไลน์"</string> + <string name="snapshot_failed" msgid="4584580873565876033">"ไม่สามารถบันทึกสำหรับการอ่านแบบออฟไลน์"</string> <string name="contextheader_folder_bookmarkcount" msgid="353987136645619089">"บุ๊กมาร์ก <xliff:g id="BOOKMARK_COUNT">%d</xliff:g> รายการ"</string> <string name="contextheader_folder_empty" msgid="974171637803391651">"โฟลเดอร์ว่าง"</string> <string name="contextmenu_openlink" msgid="7237961252214188935">"เปิด"</string> @@ -119,7 +119,7 @@ <string name="contextmenu_add_contact" msgid="3183511922223645716">"เพิ่มรายการในสมุดที่อยู่"</string> <string name="contextmenu_send_mail" msgid="1014513374828775660">"ส่งอีเมล"</string> <string name="contextmenu_map" msgid="7471390435434034912">"แผนที่"</string> - <string name="choosertitle_sharevia" msgid="4600490613341909086">"แบ่งปันผ่าน"</string> + <string name="choosertitle_sharevia" msgid="4600490613341909086">"แบ่งปันทาง"</string> <string name="clear" msgid="7070043081700011461">"ล้าง"</string> <string name="replace" msgid="4843033491070384047">"แทนที่"</string> <string name="browser_bookmarks_page_bookmarks_text" msgid="6787605028726162673">"บุ๊กมาร์ก"</string> @@ -265,7 +265,7 @@ <string name="pref_default_text_encoding_dialogtitle" msgid="5508255018084978547">"การเข้ารหัสข้อความ"</string> <string name="pref_accessibility_title" msgid="5127836981587423215">"การเข้าถึง"</string> <string name="pref_font_size_category" msgid="6683754355084218254">"ขนาดข้อความ"</string> - <string name="pref_lab_title" msgid="5571091610359629423">"ห้องทดลอง"</string> + <string name="pref_lab_title" msgid="5571091610359629423">"Labs"</string> <string name="pref_lab_quick_controls" msgid="3267606522082281367">"การควบคุมอย่างรวดเร็ว"</string> <string name="pref_lab_quick_controls_summary" msgid="3149664132600968775">"เลื่อนนิ้วจากขอบซ้ายหรือขวาเพื่อเปิดการควบคุมอย่างรวดเร็วและซ่อนแถบแอปฯ และ URL"</string> <string name="pref_use_instant_search" msgid="1119176077760723740">"Google ค้นหาทันใจ"</string> @@ -361,7 +361,7 @@ <string name="instant_search_label" msgid="8769284297650716935">"Google พร้อมการค้นหาทันใจ (Labs)"</string> <string name="preview" msgid="6450823514561689038">"แสดงตัวอย่าง"</string> <string name="local_bookmarks" msgid="533816851415228520">"ในตัวเครื่อง"</string> - <string name="ua_switcher_desktop" msgid="220097077327558435">"ขอหน้าเว็บแบบเดสก์ท็อป"</string> + <string name="ua_switcher_desktop" msgid="220097077327558435">"ขอเว็บไซต์รุ่นสำหรับเดสก์ท็อป"</string> <string name="permission_preload_label" msgid="4856971662337877316">"โหลดผลลัพธ์ล่วงหน้า"</string> <string name="empty_snapshots_folder" msgid="7675378008107026013">"ไม่มีหน้าเว็บที่บันทึกไว้"</string> <string name="remove_snapshot" msgid="1624447424544976849">"ลบหน้าที่บันทึกไว้"</string> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 604431d..a013500 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -37,7 +37,7 @@ <string name="title_bar_loading" msgid="7438217780834640678">"正在载入..."</string> <string name="page_info" msgid="4048529256302257195">"网页信息"</string> <string name="page_info_view" msgid="5303490449842635158">"查看网页信息"</string> - <string name="page_info_address" msgid="2222306609532903254">"网址:"</string> + <string name="page_info_address" msgid="2222306609532903254">"地址:"</string> <string name="ssl_warnings_header" msgid="79744901983636370">"该网站的安全证书有问题。"</string> <string name="ssl_continue" msgid="8031515015829358457">"继续"</string> <string name="security_warning" msgid="6607795404322797541">"安全警告"</string> @@ -57,7 +57,7 @@ <string name="forward" msgid="4288210890526641577">"前进"</string> <string name="save" msgid="5922311934992468496">"确定"</string> <string name="do_not_save" msgid="6777633870113477714">"取消"</string> - <string name="location" msgid="3411848697912600125">"网址"</string> + <string name="location" msgid="3411848697912600125">"地址"</string> <string name="account" msgid="5179824606448077042">"帐户"</string> <string name="containing_folder" msgid="6771180232953030479">"添加到"</string> <string name="new_folder" msgid="7743540149088867917">"新建文件夹"</string> @@ -132,9 +132,9 @@ <string name="pref_content_open_in_background" msgid="824123779725118663">"在后方打开"</string> <string name="pref_content_plugins" msgid="7231944644794301582">"启用插件"</string> <string-array name="pref_content_plugins_choices"> - <item msgid="6745108155096660725">"始终启用(打开)"</item> + <item msgid="6745108155096660725">"始终打开"</item> <item msgid="2484126708670016519">"在需要时打开"</item> - <item msgid="8547442717307793863">"关闭"</item> + <item msgid="8547442717307793863">"关"</item> </string-array> <string name="pref_content_open_in_background_summary" msgid="955411158407739504">"在当前标签后方打开新标签"</string> <string name="pref_content_homepage" msgid="3324574611613105696">"设置主页"</string> @@ -204,10 +204,10 @@ <string name="pref_privacy_clear_passwords_dlg" msgid="5836576259947160045">"要删除所有保存的密码吗?"</string> <string name="pref_privacy_location_title" msgid="7458378016606081067">"位置"</string> <string name="pref_privacy_enable_geolocation" msgid="1395040170290765686">"启用位置信息功能"</string> - <string name="pref_privacy_enable_geolocation_summary" msgid="8437020934664306205">"允许网站请求获取您的位置信息"</string> - <string name="pref_privacy_clear_geolocation_access" msgid="6649680770030042980">"取消获取位置信息的权限"</string> - <string name="pref_privacy_clear_geolocation_access_summary" msgid="7750143359497314679">"取消所有网站获取您位置信息的权限"</string> - <string name="pref_privacy_clear_geolocation_access_dlg" msgid="3190928760598034346">"要清除网站获取位置信息的权限吗?"</string> + <string name="pref_privacy_enable_geolocation_summary" msgid="8437020934664306205">"允许网站访问您的位置信息"</string> + <string name="pref_privacy_clear_geolocation_access" msgid="6649680770030042980">"取消位置信息访问权限"</string> + <string name="pref_privacy_clear_geolocation_access_summary" msgid="7750143359497314679">"取消所有网站访问位置信息的权限"</string> + <string name="pref_privacy_clear_geolocation_access_dlg" msgid="3190928760598034346">"要清除网站位置信息访问权限吗?"</string> <string name="pref_security_passwords_title" msgid="5734190542383756711">"密码"</string> <string name="pref_security_remember_passwords" msgid="6492957683454529549">"记住密码"</string> <string name="pref_security_remember_passwords_summary" msgid="256388703356349137">"保存网站的用户名和密码"</string> @@ -293,7 +293,7 @@ <string name="go_home" msgid="109129207276086793">"首页"</string> <string name="add_new_bookmark" msgid="3158497555612337238">"添加书签"</string> <string name="add_bookmark_short" msgid="3783984330998103735">"添加"</string> - <string name="search_hint" msgid="4647356319916631820">"搜索或输入网址"</string> + <string name="search_hint" msgid="4647356319916631820">"搜索或键入网址"</string> <string name="search_button_text" msgid="5235226933877634410">"开始"</string> <string name="search_settings_description" msgid="1422401062529014107">"书签和网络历史记录"</string> <string name="popup_window_attempt" msgid="31565781154067629">"要允许此网站打开一个弹出式窗口吗?"</string> @@ -326,16 +326,16 @@ <string name="geolocation_permissions_prompt_share" msgid="9084486342048347976">"共享位置信息"</string> <string name="geolocation_permissions_prompt_dont_share" msgid="6303025160237860300">"拒绝"</string> <string name="geolocation_permissions_prompt_remember" msgid="3118526300707348308">"记住偏好设置"</string> - <string name="geolocation_permissions_prompt_toast_allowed" msgid="7201417941112726112">"此网站可以获取您的位置信息。您可以在“设置”>“高级”>“网站设置”屏幕中更改此设置。"</string> - <string name="geolocation_permissions_prompt_toast_disallowed" msgid="156443445797377409">"此网站无法获取您的位置信息。您可以在“设置”>“高级”>“网站设置”屏幕中更改此设置。"</string> - <string name="geolocation_settings_page_title" msgid="1745477985097536528">"取消获取位置信息的权限"</string> - <string name="geolocation_settings_page_summary_allowed" msgid="9180251524290811398">"此网站目前可获取您的位置信息"</string> - <string name="geolocation_settings_page_summary_not_allowed" msgid="7941769772784366199">"此网站目前不能获取您的位置信息"</string> - <string name="geolocation_settings_page_dialog_message" msgid="8772923416296868537">"要取消此网站获取位置信息的权限吗?"</string> + <string name="geolocation_permissions_prompt_toast_allowed" msgid="7201417941112726112">"此网站可以访问您的位置信息。您可以在“设置”>“高级”>“网站设置”屏幕中更改此设置。"</string> + <string name="geolocation_permissions_prompt_toast_disallowed" msgid="156443445797377409">"此网站无法访问您的位置信息。您可以在“设置”>“高级”>“网站设置”屏幕中更改此设置。"</string> + <string name="geolocation_settings_page_title" msgid="1745477985097536528">"取消位置信息访问权限"</string> + <string name="geolocation_settings_page_summary_allowed" msgid="9180251524290811398">"此网站目前可访问您的位置信息"</string> + <string name="geolocation_settings_page_summary_not_allowed" msgid="7941769772784366199">"此网站目前不能访问您的位置信息"</string> + <string name="geolocation_settings_page_dialog_message" msgid="8772923416296868537">"要清除此网站的位置信息访问权限吗?"</string> <string name="geolocation_settings_page_dialog_ok_button" msgid="2113465477131017852">"确定"</string> <string name="geolocation_settings_page_dialog_cancel_button" msgid="7941036504673409747">"取消"</string> <string name="website_settings_clear_all" msgid="8739804325997655980">"全部清除"</string> - <string name="website_settings_clear_all_dialog_message" msgid="1551164275687475061">"要取消所有网站对数据和位置信息的权限?"</string> + <string name="website_settings_clear_all_dialog_message" msgid="1551164275687475061">"要删除所有网站数据和位置信息权限吗?"</string> <string name="website_settings_clear_all_dialog_ok_button" msgid="7858504776529106243">"确定"</string> <string name="website_settings_clear_all_dialog_cancel_button" msgid="1896757051856611674">"取消"</string> <string name="progress_dialog_setting_wallpaper" msgid="2031391201442335889">"正在设置壁纸..."</string> diff --git a/res/values/styles.xml b/res/values/styles.xml index 361702e..3c87e22 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -80,4 +80,17 @@ <item name="android:textColor">?android:attr/textColorSecondary</item> <item name="android:textStyle">normal</item> </style> + + <style name="AutofillProfileTextView"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:gravity">center_vertical</item> + <item name="android:layout_margin">2dip</item> + <item name="android:textAppearance">?android:attr/textAppearanceMedium</item> + </style> + <style name="AutofillProfileEditText" parent="@style/AutofillProfileTextView"> + <item name="android:layout_width">match_parent</item> + <item name="android:imeOptions">flagNoExtractUi</item> + <item name="android:singleLine">true</item> + </style> </resources> diff --git a/src/com/android/browser/AutoFillSettingsFragment.java b/src/com/android/browser/AutoFillSettingsFragment.java index 04f45b5..7be657d 100644 --- a/src/com/android/browser/AutoFillSettingsFragment.java +++ b/src/com/android/browser/AutoFillSettingsFragment.java @@ -52,7 +52,9 @@ public class AutoFillSettingsFragment extends Fragment { private EditText mCountryEdit; private EditText mPhoneEdit; - private Button mSaveButton; + private MenuItem mSaveMenuItem; + + private boolean mInitialised; // Used to display toast after DB interactions complete. private Handler mHandler; @@ -87,7 +89,7 @@ public class AutoFillSettingsFragment extends Fragment { mPhoneEdit.setError(null); } - updateButtonState(); + updateSaveMenuItemState(); } public void beforeTextChanged(CharSequence s, int start, int count, int after) { @@ -99,7 +101,7 @@ public class AutoFillSettingsFragment extends Fragment { private class FieldChangedListener implements TextWatcher { public void afterTextChanged(Editable s) { - updateButtonState(); + updateSaveMenuItemState(); } public void beforeTextChanged(CharSequence s, int start, int count, int after) { @@ -147,11 +149,14 @@ public class AutoFillSettingsFragment extends Fragment { @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.autofill_profile_editor, menu); + mSaveMenuItem = menu.findItem(R.id.autofill_profile_editor_save_profile_menu_id); + updateSaveMenuItemState(); } @Override public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == R.id.autofill_profile_editor_delete_profile_menu_id) { + switch (item.getItemId()) { + case R.id.autofill_profile_editor_delete_profile_menu_id: // Clear the UI. mFullNameEdit.setText(""); mEmailEdit.setText(""); @@ -168,10 +173,30 @@ public class AutoFillSettingsFragment extends Fragment { // trigger the current profile to get deleted from the DB. mSettings.setAutoFillProfile(null, mHandler.obtainMessage(PROFILE_DELETED_MSG)); - updateButtonState(); + updateSaveMenuItemState(); + return true; + + case R.id.autofill_profile_editor_save_profile_menu_id: + AutoFillProfile newProfile = new AutoFillProfile( + mUniqueId, + mFullNameEdit.getText().toString(), + mEmailEdit.getText().toString(), + mCompanyEdit.getText().toString(), + mAddressLine1Edit.getText().toString(), + mAddressLine2Edit.getText().toString(), + mCityEdit.getText().toString(), + mStateEdit.getText().toString(), + mZipEdit.getText().toString(), + mCountryEdit.getText().toString(), + mPhoneEdit.getText().toString()); + + mSettings.setAutoFillProfile(newProfile, + mHandler.obtainMessage(PROFILE_SAVED_MSG)); return true; + + default: + return false; } - return false; } @Override @@ -203,27 +228,6 @@ public class AutoFillSettingsFragment extends Fragment { mCountryEdit.addTextChangedListener(mFieldChangedListener); mPhoneEdit.addTextChangedListener(new PhoneNumberValidator()); - mSaveButton = (Button)v.findViewById(R.id.autofill_profile_editor_save_button); - mSaveButton.setOnClickListener(new OnClickListener() { - public void onClick(View button) { - AutoFillProfile newProfile = new AutoFillProfile( - mUniqueId, - mFullNameEdit.getText().toString(), - mEmailEdit.getText().toString(), - mCompanyEdit.getText().toString(), - mAddressLine1Edit.getText().toString(), - mAddressLine2Edit.getText().toString(), - mCityEdit.getText().toString(), - mStateEdit.getText().toString(), - mZipEdit.getText().toString(), - mCountryEdit.getText().toString(), - mPhoneEdit.getText().toString()); - - mSettings.setAutoFillProfile(newProfile, - mHandler.obtainMessage(PROFILE_SAVED_MSG)); - } - }); - // Populate the text boxes with any pre existing AutoFill data. AutoFillProfile activeProfile = mSettings.getAutoFillProfile(); if (activeProfile != null) { @@ -239,14 +243,25 @@ public class AutoFillSettingsFragment extends Fragment { mPhoneEdit.setText(activeProfile.getPhoneNumber()); } - updateButtonState(); + mInitialised = true; + + updateSaveMenuItemState(); return v; } - public void updateButtonState() { + private void updateSaveMenuItemState() { + if (mSaveMenuItem == null) { + return; + } - boolean valid = (mFullNameEdit.getText().toString().length() > 0 || + if (!mInitialised) { + mSaveMenuItem.setEnabled(false); + return; + } + + boolean currentState = mSaveMenuItem.isEnabled(); + boolean newState = (mFullNameEdit.getText().toString().length() > 0 || mEmailEdit.getText().toString().length() > 0 || mCompanyEdit.getText().toString().length() > 0 || mAddressLine1Edit.getText().toString().length() > 0 || @@ -257,9 +272,9 @@ public class AutoFillSettingsFragment extends Fragment { mCountryEdit.getText().toString().length() > 0) && mPhoneEdit.getError() == null; - // Only enable the save buttons if we have at least one field completed - // and the phone number (if present is valid). - mSaveButton.setEnabled(valid); + if (currentState != newState) { + mSaveMenuItem.setEnabled(newState); + } } private void closeEditor() { |