-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from learningequality/cheeky_strings
Update strings in Android App
- Loading branch information
Showing
10 changed files
with
156 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 6 additions & 11 deletions
17
python-for-android/dists/kolibri/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Kolibri</string> | ||
<string name="task_worker_process">:task_worker</string> | ||
<string name="private_version">65f6c4c9631cdfd89ef2e450b4769e2df67a0a8f</string> | ||
<string name="presplash_color">#FFFFFF</string> | ||
<string name="notification_service_channel_id">background_notifications</string> | ||
<string name="notification_service_channel_title">Background Notifications</string> | ||
<string name="notification_service_channel_content">Background tasks</string> | ||
<string name="notification_service_channel_ticker">A persistent notification of Kolibri\'s background processing</string> | ||
<string name="notification_service_channel_action">Manage</string> | ||
<string name="notification_default_channel_id">task_notifications</string> | ||
<string name="notification_default_channel_title">Task Notifications</string> | ||
<string name="notification_default_channel_ticker">A progress notification of Kolibri\'s background processing</string> | ||
<string name="task_worker_process" translatable="false">:task_worker</string> | ||
<string name="notification_channel_ticker">Task started…</string> | ||
<string name="notification_service_channel_title">Important Tasks Running</string> | ||
<string name="notification_service_channel_content">In progress</string> | ||
<string name="notification_service_channel_action">View task manager</string> | ||
<string name="notification_default_channel_title">Tasks</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
try: | ||
from strings import i18n_strings | ||
except ImportError: | ||
i18n_strings = {} | ||
|
||
|
||
def get_string(name, language): | ||
try: | ||
return i18n_strings[language][name] | ||
except KeyError: | ||
return name |