Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more strings for translation in crowdin #3589

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/src/main/java/com/eveningoutpost/dexdrip/AlertList.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class AlertList extends ActivityWithMenu {

String stringTimeFromAlert(AlertType alert) {
if (alert.all_day) {
return "all day";
return getString(R.string.all_day);
}
String start = timeFormatString(AlertType.time2Hours(alert.start_time_minutes), AlertType.time2Minutes(alert.start_time_minutes));
String end = timeFormatString(AlertType.time2Hours(alert.end_time_minutes), AlertType.time2Minutes(alert.end_time_minutes));
Expand All @@ -61,9 +61,9 @@ String stringTimeFromAlert(AlertType alert) {

HashMap<String, String> createAlertMap(AlertType alert) {
HashMap<String, String> map = new HashMap<String, String>();
String overrideSilentMode = "Override Silent Mode";
String overrideSilentMode = getString(R.string.override_silent_mode);
if (alert.override_silent_mode == false) {
overrideSilentMode = "No Alert in Silent Mode";
overrideSilentMode = getString(R.string.no_alert_in_silent_mode);
}
// We use a - sign to tell that this text should be stiked through
String extra = "-";
Expand Down Expand Up @@ -190,8 +190,8 @@ public void run() {

if (!isFinishing()) {
new AlertDialog.Builder(AlertList.this)
.setTitle("Warning !")
.setMessage("No active Low Alert exists, without this there will be no alert on low glucose! Please add or enable a low alert.")
.setTitle(getString(R.string.warning))
.setMessage(getString(R.string.no_active_low_alert_exist))
.setCancelable(false)
.setPositiveButton(
"Ok",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public void onClick(View v) {
buttonalertMp3.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setTitle("What type of Alert?")
builder.setTitle(getString(R.string.what_type_of_alert))
.setItems(R.array.alertType, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
if (which == 0) {
Expand Down Expand Up @@ -783,7 +783,7 @@ static String shortPath(final String path) {
return "";
}
if (path.length() == 0) {
return "xDrip Default";
return gs(R.string.xdrip_default);
}
if (path.startsWith("content:")) {
val result = getDisplayNameFromURI(Uri.parse(path));
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/eveningoutpost/dexdrip/Home.java
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ private void updateCurrentBgInfo(final String source) {
updateCurrentBgInfoCommon(collector, notificationText);
}
if (collector.equals(DexCollectionType.Disabled)) {
notificationText.append("\n DATA SOURCE DISABLED");
notificationText.append(getString(R.string.__data_source_disabled));
if (!Experience.gotData()) {
// TODO should this move to Experience::processSteps ?
final Activity activity = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public static void switchToAndEnable(final Activity activity) {
private static void enableNotificationService(final Activity activity) {
if (!isNotificationServiceEnabled()) {
JoH.show_ok_dialog(activity, gs(R.string.please_allow_permission),
"Permission is needed to receive data from other applications. xDrip does not do anything beyond this scope. Please enable xDrip on the next screen",
gs(R.string.permission_is_needed_to_recieve_data),
() -> activity.startActivity(new Intent(ACTION_NOTIFICATION_LISTENER_SETTINGS)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_home_shelf_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
android:checked="@{safeUnbox(vs.included[`graphic_trend_arrow`])}"
android:onCheckedChanged="@{(v, result) -> home.showArrowConfigurator(v, false, true)}"
android:onClick="@{() -> vs.ptoggle(`graphic_trend_arrow`)}"
android:text="Show Graphical Trend Arrow" />
android:text="@string/show_graphical_trend_arrow" />



Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/reminder_new_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
android:layout_below="@+id/weekEndsCheckbox"
android:layout_alignParentStart="true"
android:checked="false"
android:text="Graph Note"/>
android:text="@string/graph_note"/>

<CheckBox
android:id="@+id/speakCheckbox"
Expand All @@ -202,7 +202,7 @@
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/GraphIconCheckbox"
android:checked="false"
android:text="Speak" />
android:text="@string/speak" />

<CheckBox
android:id="@+id/homeOnlyCheckbox"
Expand All @@ -212,7 +212,7 @@
android:layout_marginLeft="10dp"
android:layout_marginTop="3dp"
android:checked="false"
android:text="At Home Only" />
android:text="@string/at_home_only" />

<CheckBox
android:id="@+id/highPriorityCheckbox"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/menu_reminders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<item
android:id="@+id/reminders_home_network"
android:title="Set Home Network"
android:title="@string/set_home_network"
android:visible="true"
android:onClick="onRemindersHomeNetworkClick"
/>
Expand Down
55 changes: 26 additions & 29 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
<item>5</item>
</string-array>


<string-array name="PebbleTrendPeriods">
<item>1hr</item>
<item>2hr</item>
Expand All @@ -120,9 +119,9 @@
</string-array>

<string-array name="UpdateChannelDetail">
<item>Stable - tried and tested versions</item>
<item>Beta - new features but not fully tested </item>
<item>Alpha - versions for early testing</item>
<item>@string/update_channel_stable</item>
<item>@string/update_channel_beta</item>
<item>@string/update_channel_alpha</item>
</string-array>

<string-array name="UpdateChannelE">
Expand All @@ -133,10 +132,10 @@
</string-array>

<string-array name="UpdateChannelDetailE">
<item>Stable - tried and tested versions</item>
<item>Beta - new features but not fully tested </item>
<item>Alpha - versions for early testing</item>
<item>Nightly - untested raw code - experts only!</item>
<item>@string/update_channel_stable</item>
<item>@string/update_channel_beta</item>
<item>@string/update_channel_alpha</item>
<item>@string/update_channel_nightly</item>
</string-array>

<string-array name="TreatmentCalibrationChoice">
Expand All @@ -153,7 +152,6 @@
<item>Always use them</item>
</string-array>


<string-array name="bgUnitEntries">
<item>mg/dL</item>
<item>mmol/L</item>
Expand All @@ -166,11 +164,11 @@

<!-- make sure to keep this values in sync with AlertPlayer.getAlertProfile -->
<string-array name="BgAlertProfileEntries">
<item>High</item>
<item>Medium</item>
<item>Ascending volume</item>
<item>Vibrate only</item>
<item>Silent</item>
<item>@string/alert_volume_profile_high</item>
<item>@string/alert_volume_profile_medium</item>
<item>@string/alert_volume_profile_ascending_volume</item>
<item>@string/alert_volume_vibrate_only</item>
<item>@string/alert_volume_silent</item>
</string-array>

<string-array name="BgAlertProfileValues">
Expand All @@ -194,23 +192,23 @@
</string-array>

<string-array name="alertType">
<item>System Sound/Alarm</item>
<item>Custom Sound/Alarm</item>
<item>Default xDrip sound</item>
<item>@string/system_sound_alarm</item>
<item>@string/custom_sound_alarm</item>
<item>@string/default_xdrip_sound</item>
</string-array>

<string-array name="reminderAlertType">
<item>Android Ringtone/Alarm</item>
<item>Custom Audio file</item>
<item>Default xDrip+ reminder sound</item>
<item>@string/android_ringtone_alarm</item>
<item>@string/custom_audio_file</item>
<item>@string/default_xdrip_reminder_sound</item>
</string-array>

<!-- TODO abstract noise values to single source -->
<string-array name="NoiseLevelBlock">
<item>Send even Extremely noisy signals</item>
<item>Only block noise level Extreme</item>
<item>Block Very High noise and worse</item>
<item>Block High noise and worse</item>
<item>@string/send_even_extremely_noisy_signals</item>
<item>@string/only_block_noise_level_extreme</item>
<item>@string/block_very_high_noise_and_worse</item>
<item>@string/block_high_noise_and_worse</item>
</string-array>
<string-array name="NoiseLevelBlockValues">
<item>100000</item>
Expand All @@ -219,12 +217,11 @@
<item>10</item>
</string-array>


<string-array name="TrendArrows">
<item>Jam Expressive Arrow 1</item>
<item>Jam Simple White Arrow 1</item>
<item>Jam Simple Color Arrow 1</item>
<item>Candy Cane</item>
<item>@string/jam_expressive_arrow_1</item>
<item>@string/jam_simple_white_arrow_1</item>
<item>@string/jam_simple_color_arrow_1</item>
<item>@string/candy_cane</item>
</string-array>
<string-array name="TrendArrowValues">
<item>JamTrendArrowImpl</item>
Expand Down
87 changes: 87 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1903,4 +1903,91 @@
<string name="use_camera_light">Use Camera Light</string>
<string name="use_camera_light_summary">Flash camera light during alerts when connected to a charger</string>
<string name="g7_should_start_automatically">G7 should start automatically</string>
<string name="no_alert_in_silent_mode">No Alert in Silent Mode</string>
<string name="warning">Warning !</string>
<string name="no_active_low_alert_exist">No active Low Alert exists, without this there will be no alert on low glucose! Please add or enable a low alert.</string>
<string name="graph_note">Graph Note</string>
<string name="speak">Speak</string>
<string name="at_home_only">At Home Only</string>
<string name="set_home_network">Set Home Network</string>
<string name="show_graphical_trend_arrow">Show Graphical Trend Arrow</string>
<string name="alert_volume_profile_high">High</string>
<string name="alert_volume_profile_medium">Medium</string>
<string name="alert_volume_profile_ascending_volume">Ascending volume</string>
<string name="alert_volume_vibrate_only">Vibrate only</string>
<string name="alert_volume_silent">Silent</string>
<string name="jam_expressive_arrow_1">Jam Expressive Arrow 1</string>
<string name="jam_simple_white_arrow_1">Jam Simple White Arrow 1</string>
<string name="jam_simple_color_arrow_1">Jam Simple Color Arrow 1</string>
<string name="candy_cane">Candy Cane</string>
<string name="send_even_extremely_noisy_signals">Send even Extremely noisy signals</string>
<string name="only_block_noise_level_extreme">Only block noise level Extreme</string>
<string name="block_very_high_noise_and_worse">Block Very High noise and worse</string>
<string name="block_high_noise_and_worse">Block High noise and worse</string>
<string name="system_sound_alarm">System Sound/Alarm</string>
<string name="custom_sound_alarm">Custom Sound/Alarm</string>
<string name="default_xdrip_sound">Default xDrip+ sound</string>
<string name="android_ringtone_alarm">Android Ringtone/Alarm</string>
<string name="custom_audio_file">Custom Audio file</string>
<string name="default_xdrip_reminder_sound">Default xDrip+ reminder sound</string>
<string name="update_channel_stable">Stable - tried and tested versions</string>
<string name="update_channel_beta">Beta - new features but not fully tested</string>
<string name="update_channel_alpha">Alpha - versions for early testing</string>
<string name="update_channel_nightly">Nightly - untested raw code - experts only!</string>
<string name="permission_is_needed_to_recieve_data">Permission is needed to receive data from other applications. xDrip does not do anything beyond this scope. Please enable xDrip on the next screen</string>
<string name="xdrip_default">xDrip Default</string>
<string name="wake_screen">Wake Screen</string>
<string name="wake_screen_summary">Wake up screen during alerts. Might unlock devices that don\'t have screen lock enabled.</string>
<string name="summary_tidepool_while_charging">Upload data only when charging</string>
<string name="title_tidepool_while_charging">Only when charging</string>
<string name="summary_tidepool_while_wifi">Upload data only when connected to an unmetered network like Wifi</string>
<string name="title_tidepool_while_wifi">Only on Wifi</string>
<string name="summary_tidepool_no_treatments">Upload only CGM data to avoid duplicates with manual pump upload</string>
<string name="title_tidepool_no_treatments">Don\'t upload treatments</string>
<string name="summary_tidepool_new_auth">2023 openid authentication method.</string>
<string name="title_tidepool_new_auth">Use new Auth</string>
<string name="summary_nfc_meter_enabled">Download glucose records from NFC meter when xDrip is open</string>
<string name="title_nfc_meter_enabled">Use NFC Meter</string>
<string name="title_bluejay_watch">BlueJay Watch</string>
<string name="title_bluejay_collector_enabled">Run Collector</string>
<string name="summary_bluejay_local_alarms">Watch can alarm for high/low when not connected to phone.</string>
<string name="title_bluejay_local_alarms">Local Alarms</string>
<string name="summary_bluejay_send_alarms">Send xDrip generated alarms to the watch</string>
<string name="title_bluejay_send_alarms">Send Alarms</string>
<string name="summary_bluejay_option_call_notifications">Send call notifications to the band (Android 6+)</string>
<string name="title_bluejay_option_call_notifications">Send Calls</string>
<string name="summary_bluejay_send_readings">Send glucose values received on the Phone to the Watch</string>
<string name="title_bluejay_send_readings">Send Readings</string>
<string name="summary_bluejay_option_24_hour_clock">Show 24 hour clock on display</string>
<string name="title_bluejay_option_24_hour_clock">24 Hour Clock</string>
<string name="title_bluejay_screen_timeout">Screen Timeout</string>
<string name="summary_bluejay_use_motion_wake">Use a shake of the wrist to wake BlueJay. Adjust sensitivity below.</string>
<string name="title_bluejay_use_motion_wake">Wake with motion</string>
<string name="title_bluejay_wake_velocity">Wake up velocity</string>
<string name="title_launch_bluejay_control">Launch BlueJay Panel</string>
<string name="title_bluejay_preference_screen">BlueJay Advanced Settings</string>
<string name="title_bluejay_mac">BlueJay Mac</string>
<string name="summary_bluejay_run_phone_collector">Also run the standard collector on this phone. Only turn this off if you don\'t want this phone itself to be connecting to the transmitter.</string>
<string name="title_bluejay_run_phone_collector">Run Phone Collector</string>
<string name="summary_bluejay_run_as_phone_collector">This allows the BlueJay to occupy the phone slot on the transmitter. Select this if you want another non-phone device to be able to connect to the transmitter and you are not using a phone to connect to the transmitter.</string>
<string name="title_bluejay_run_as_phone_collector">BlueJay uses Phone Slot</string>
<string name="summary_bluejay_use_broadcast_api">Accept commands from other apps</string>
<string name="title_bluejay_use_broadcast_api">Enable remote API</string>
<string name="summary_bluejay_send_status_line">Show xDrip extra status line on X2 display</string>
<string name="title_bluejay_send_status_line">Send Status Line</string>
<string name="summary_bluejay_beep_on_connect">Play a sound when the bluejay connects</string>
<string name="title_bluejay_beep_on_connect">Debug sound</string>
<string name="summary_bluejay_delta_trend">Try to calculate xDrip style delta trend arrow instead of using transmitter estimate arrow.</string>
<string name="title_bluejay_delta_trend">Attempt Delta Trend</string>
<string name="title_bluejay_backfill_hours">Backfill Hours</string>
<string name="summary_bluejay_backfill_hours">Larger backfill scope can reduce battery life</string>
<string name="summary_bluejay_timing_failsafe">Scan for longer periods of time if readings are missed. Uses more battery but can recover if watch gets out of sync</string>
<string name="title_bluejay_timing_failsafe">Timing fail-safe</string>
<string name="summary_bluejay_button1_vibrate">Vibrate watch when a button long press is sent to the phone</string>
<string name="title_bluejay_button1_vibrate">Vibrate button</string>
<string name="summary_bluejay_send_to_another_xdrip">If you have multiple xDrip instances on your phone you can send data to another one that has a BlueJay here</string>
<string name="title_bluejay_send_to_another_xdrip">Send to another xDrip</string>
<string name="summary_lefun_option_call_notifications">Send call notifications to the band (Android 6+)</string>
<string name="title_lefun_option_call_notifications">Send Calls</string>
<string name="what_type_of_alert">What type of Alert?</string>
</resources>
Loading