From a961e7203a288be0bd1bc3e5063c9f63aa0f6143 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 21 Aug 2012 01:09:48 +0200 Subject: Add a nice "what to do" screen if no VPN has been added yet --- missingtranslations.txt | 14 +++- res/layout/file_dialog_main.xml | 2 +- res/layout/vpn_profile_list.xml | 49 +++++++++++++ res/values-de/strings.xml | 8 ++- res/values/strings.xml | 4 ++ src/de/blinkt/openvpn/VPNProfileList.java | 111 +++++++++++++++++++++--------- 6 files changed, 153 insertions(+), 35 deletions(-) create mode 100644 res/layout/vpn_profile_list.xml diff --git a/missingtranslations.txt b/missingtranslations.txt index bd63ad6..ca4bfb9 100644 --- a/missingtranslations.txt +++ b/missingtranslations.txt @@ -259,4 +259,16 @@ res/values/strings.xml:252: Error: "faq_duplicate_notification_title" is not tra res/values/strings.xml:253: Error: "faq_duplicate_notification" is not translated in es, ko, zh [MissingTranslation] If Android is under system memory (RAM) pressure app and service which are not needed at the moment are removed from active memory. This terminates an ongoing VPN connection. To ensure that the connection/Openvpn survices the service runs with higher priority. To run with higher priority the application must display a notification. The key notification icon is imposed by the system as described in the previous FAQ entry. It does not count as app notification for purpose of running with higher priority. ^ -86 errors, 0 warnings +res/values/strings.xml:254: Error: "no_vpn_profiles_defined" is not translated in es, ko, zh [MissingTranslation] + No VPN profiles defined. + ^ +res/values/strings.xml:255: Error: "add_new_vpn_hint" is not translated in es, ko, zh [MissingTranslation] + Use the <img src=\"ic_menu_add\"/> icon to add a new VPN + ^ +res/values/strings.xml:256: Error: "vpn_import_hint" is not translated in es, ko, zh [MissingTranslation] + Use the <img src=\"ic_menu_archive\"/> icon to import an existing (.ovpn or .conf) profile from your sdcard. + ^ +res/values/strings.xml:257: Error: "faq_hint" is not translated in es, ko, zh [MissingTranslation] + Be sure to also check out the FAQ. There is a quick start guide. + ^ +90 errors, 0 warnings diff --git a/res/layout/file_dialog_main.xml b/res/layout/file_dialog_main.xml index 2a623dc..db79166 100644 --- a/res/layout/file_dialog_main.xml +++ b/res/layout/file_dialog_main.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content" android:text="@string/select_file" > - +