make translation easier

This commit is contained in:
Milos Kozak 2019-07-15 12:33:03 +02:00
parent f5640eec92
commit 7ddf5dd5f6
2 changed files with 8 additions and 8 deletions

View file

@ -223,13 +223,13 @@ public class DateUtil {
t = t / 60;
if (t != 1) unit = MainApp.gs(R.string.unit_hours);
if (t > 24) {
unit = MainApp.gs(R.string.unit_day);
unit = MainApp.gs(R.string.unit_day) + "\"";
t = t / 24;
if (t != 1) unit = MainApp.gs(R.string.unit_days);
if (t != 1) unit = MainApp.gs(R.string.unit_days) + "\"";
if (t > 28) {
unit = MainApp.gs(R.string.unit_week);
unit = MainApp.gs(R.string.unit_week) + "\"";
t = t / 7;
if (t != 1) unit = MainApp.gs(R.string.unit_weeks);
if (t != 1) unit = MainApp.gs(R.string.unit_weeks) + "\"";
}
}
}

View file

@ -1320,13 +1320,13 @@
<string name="unit_second">second</string>
<string name="unit_minute">minute</string>
<string name="unit_hour">hour</string>
<string name="unit_day">day"</string>
<string name="unit_week">week"</string>
<string name="unit_day">day</string>
<string name="unit_week">week</string>
<string name="unit_seconds">seconds</string>
<string name="unit_minutes">minutes</string>
<string name="unit_hours">hours</string>
<string name="unit_days">days"</string>
<string name="unit_weeks">weeks"</string>
<string name="unit_days">days</string>
<string name="unit_weeks">weeks</string>
<string name="key_tidepool_username" translatable="false">tidepool_username</string>
<string name="key_tidepool_password" translatable="false">tidepool_password</string>
<string name="key_tidepool_dev_servers" translatable="false">tidepool_dev_servers</string>