summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml22
-rw-r--r--res/xml/bandwidth_preferences.xml8
2 files changed, 30 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2de5e58..6afe4d5 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -664,6 +664,28 @@
<string name="pref_data_preload_summary">Allow browser to preload high confidence search results in the background</string>
<!-- Title of dialog for search preloading [CHAR LIMIT=40] -->
<string name="pref_data_preload_dialogtitle">Search result preloading</string>
+ <!-- Title for link prefetching [CHAR LIMIT=40] -->
+ <string name="pref_link_prefetch_title">Web page preloading</string>
+ <!-- Link prefetching options [CHAR LIMIT=20] -->
+ <string-array name="pref_link_prefetch_choices">
+ <item>Never</item>
+ <item>Only on Wi-Fi</item>
+ <item>Always</item>
+ </string-array>
+ <!-- Do not translate -->
+ <string name="pref_link_prefetch_value_never" translatable="false">NEVER</string>
+ <string name="pref_link_prefetch_value_wifi_only" translatable="false">WIFI_ONLY</string>
+ <string name="pref_link_prefetch_value_always" translatable="false">ALWAYS</string>
+ <string name="pref_link_prefetch_default_value" translatable="false">@string/pref_link_prefetch_value_wifi_only</string>
+ <string-array name="pref_link_prefetch_values" translatable="false">
+ <item><xliff:g>@string/pref_link_prefetch_value_never</xliff:g></item>
+ <item><xliff:g>@string/pref_link_prefetch_value_wifi_only</xliff:g></item>
+ <item><xliff:g>@string/pref_link_prefetch_value_always</xliff:g></item>
+ </string-array>
+ <!-- Summary for link prefetching [CHAR LIMIT=80] -->
+ <string name="pref_link_prefetch_summary">Allow browser to preload linked web pages in the background</string>
+ <!-- Title of dialog for link prefetching [CHAR LIMIT=40] -->
+ <string name="pref_link_prefetch_dialogtitle">Web page preloading</string>
<!-- Title for a dialog displayed when the browser has a data connectivity
problem -->
<string name="browserFrameNetworkErrorLabel">Connection problem</string>
diff --git a/res/xml/bandwidth_preferences.xml b/res/xml/bandwidth_preferences.xml
index bb1688e..9946b48 100644
--- a/res/xml/bandwidth_preferences.xml
+++ b/res/xml/bandwidth_preferences.xml
@@ -24,6 +24,14 @@
android:entryValues="@array/pref_data_preload_values"
android:dialogTitle="@string/pref_data_preload_dialogtitle" />
+ <ListPreference
+ android:key="link_prefetch_when"
+ android:title="@string/pref_link_prefetch_title"
+ android:summary="@string/pref_link_prefetch_summary"
+ android:entries="@array/pref_link_prefetch_choices"
+ android:entryValues="@array/pref_link_prefetch_values"
+ android:dialogTitle="@string/pref_link_prefetch_dialogtitle" />
+
<CheckBoxPreference
android:key="load_images"
android:defaultValue="true"