This commit is contained in:
PaulStets 2018-01-23 13:18:12 +02:00
parent 637e2987f3
commit 4cab748d25
4 changed files with 6 additions and 0 deletions

View file

@ -2809,4 +2809,5 @@
<string name="shared_string_marker">Маркер</string>
<string name="shared_string_without_name">Без имени</string>
<string name="lang_lo">Лаосский</string>
<string name="day_off_label">Выходной</string>
</resources>

View file

@ -3157,4 +3157,5 @@
<string name="osm_recipient_stat">Редагувань %1$s, сума %2$s mBTC</string>
<string name="osm_recipients_label">OSM-одержувачі</string>
<string name="total_donations">Всього пожертвувань</string>
<string name="day_off_label">Вихідний</string>
</resources>

View file

@ -2841,4 +2841,5 @@
<string name="add_segment_to_the_track">Add to a GPX track</string>
<string name="osm_recipients_label">OSM recipients</string>
<string name="total_donations">Total donations</string>
<string name="day_off_label">off</string>
</resources>

View file

@ -381,6 +381,9 @@ public class AmenityMenuBuilder extends MenuBuilder {
OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours());
if (rs != null) {
vl = rs.toLocalString();
if (!preferredLang.equals("en")) {
vl = vl.replaceAll("off", view.getContext().getString(R.string.day_off_label));
}
Calendar inst = Calendar.getInstance();
inst.setTimeInMillis(System.currentTimeMillis());
boolean opened = rs.isOpenedForTime(inst);