Fixed #4853
This commit is contained in:
parent
637e2987f3
commit
4cab748d25
4 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue