From 3d9c551205e0a87404a40c128dac392515abd108 Mon Sep 17 00:00:00 2001 From: Edric Chan Date: Wed, 7 Mar 2018 22:30:34 +0800 Subject: [PATCH] refactor(strings): change naming of strings - `pref_title_my_settings` -> `pref_my_settings_title` - `pref_desc_settings_two` -> `pref_settings_two_desc` - Everything is now sorted properly for maintainence and easier readability - Add todos --- app/src/main/AndroidManifest.xml | 2 +- .../studybuddy/SettingsActivity.java | 37 +---- app/src/main/res/values/strings.xml | 147 ++++++++---------- app/src/main/res/xml/pref_data_sync.xml | 4 +- app/src/main/res/xml/pref_experimental.xml | 14 +- app/src/main/res/xml/pref_headers.xml | 2 +- app/src/main/res/xml/pref_versions.xml | 16 +- 7 files changed, 91 insertions(+), 131 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6606b8e05..aa3c86459 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,7 +47,7 @@ - - 713563449638-sc1up855asm687s55f8qi4bdrh0u18tc.apps.googleusercontent.com + Study Buddy - Settings + + + Settings + Sign in + App Intro + + + 713563449638-sc1up855asm687s55f8qi4bdrh0u18tc.apps.googleusercontent.com + + + + Checking for updates… + + + Share this app via… + Check out yet another open-source app by @EdricChan03! Source code available at https://github.com/Chan4077/StudyBuddy + + + This app officially started in 2017. However, not much work has been going on until fairly recently.\n---\nExpect an official release by April! + + Note: Please separate your labels with a comma (,). Task Project Task Title Task Content Select Date - Settings + Due date + Selected due date shows here Todo is disabled Create a new todo New todo - - + + Experimental - - Experimental UI - Shows a new interface for those who would like to beta test new features. - Experimental Features - Enables features that may or may not be eventually released to the public. - Experimental Calendar - Enables the experimental calendar that is currently a Work In Progress and will be eventually be released to the public. - + Experimental Features + Enables features that are in development. + Experimental UI + Shows a new and improved user interface. Requires a restart to take effect. + Experimental Calendar + Enables a wip calendar which shows all your events. Requires a restart to take effect. + Data & sync - - Sync frequency + Sync frequency 15 minutes 30 minutes @@ -45,77 +63,51 @@ 360 -1 - - - When a task is due/ overdue - Weekly agenda - Product tips and others - - - + System sync settings + + Notifications + Silent + All notification channels + + Enable all notification channels + Enable more options + Enables extra configuration options for notifications\nRequires a restart of the app to take effect. + + Versions & About + Select update channel + Current app version + Source code + View source code on Github + App Author + View the app\'s author on Github + App intro + 1 2 3 - - 1 - 2 + + Stable + Beta + Canary - - - System sync settings - - - Notifications - - New message notifications - - Ringtone - Silent - - Vibrate - Enable notifications when something happens (This can be configured in the \'Notification Categories\' setting) + 1 About Share this app + Settings - - Share this app via… - Check out yet another open-source app by @EdricChan03! Source code available at https://github.com/Chan4077/StudyBuddy - This app started due to my excellent coding skills leading to developing this app which is meant for those who would like a study calendar. However, at the moment, there are not many features available. - Notification categories - Tick list items that you want to receive notifications for. - Select update channel - Current app version - Source code - View source code on Github - Versions & About - App Author - View the app\'s author on Github + Send Feedback - Checking for updates… - App Intro - Shows the app intro - App intro - TODOs - Calendar - Notifications Help Show pre-Oreo UI - - 1 - 2 - 3 - - - Stable - Beta - Canary - - 1 - Sign in + + + TODOs + Calendar + Notifications Email @@ -133,11 +125,7 @@ The password that you entered is too short, please enter a minimum of 6 characters! Authentication failed, check your email and password to ensure they are correct or sign up if you haven\'t created an account. Register for an account - Due date - Selected due date shows here - - All notification channels Todo updates Shows updates on the status of todos @@ -157,9 +145,4 @@ Uncategorised All other notifications that don\'t fit in any of the previous channels uncategorised - - - Enable all notification channels - Enable more options - Enables extra configuration options for notifications\nRequires a restart of the app to take effect. diff --git a/app/src/main/res/xml/pref_data_sync.xml b/app/src/main/res/xml/pref_data_sync.xml index 815ff9d5d..6c24aeafb 100644 --- a/app/src/main/res/xml/pref_data_sync.xml +++ b/app/src/main/res/xml/pref_data_sync.xml @@ -5,11 +5,11 @@ android:entries="@array/pref_sync_frequency_titles" android:entryValues="@array/pref_sync_frequency_values" android:key="sync_frequency" - android:title="@string/pref_title_sync_frequency" /> + android:title="@string/pref_sync_frequency_title" /> - + diff --git a/app/src/main/res/xml/pref_experimental.xml b/app/src/main/res/xml/pref_experimental.xml index 77dd54421..16fe1abcf 100644 --- a/app/src/main/res/xml/pref_experimental.xml +++ b/app/src/main/res/xml/pref_experimental.xml @@ -3,21 +3,21 @@ + android:icon="@drawable/ic_view_quilt_white_24dp"/> diff --git a/app/src/main/res/xml/pref_headers.xml b/app/src/main/res/xml/pref_headers.xml index eca3731b0..341176f5c 100644 --- a/app/src/main/res/xml/pref_headers.xml +++ b/app/src/main/res/xml/pref_headers.xml @@ -18,6 +18,6 @@ android:title="@string/pref_header_data_sync" />
diff --git a/app/src/main/res/xml/pref_versions.xml b/app/src/main/res/xml/pref_versions.xml index 5425fa001..8032b6040 100644 --- a/app/src/main/res/xml/pref_versions.xml +++ b/app/src/main/res/xml/pref_versions.xml @@ -4,7 +4,7 @@ @@ -14,20 +14,18 @@ + android:title="@string/pref_app_version_title" /> + android:summary="@string/pref_source_code_desc" + android:title="@string/pref_source_code_title" /> + android:title="@string/pref_author_title" /> + android:title="@string/pref_app_intro_title" /> \ No newline at end of file