Skip to content

Commit 9832ca5

Browse files
committed
Change legend related items
1 parent 8fe9dfe commit 9832ca5

26 files changed

Lines changed: 37 additions & 86 deletions

IsraelHiking.Web/src/application/components/dialogs/add-simple-poi-dialog.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<button mat-button mat-dialog-close class="w-full p-0! h-[unset]!" (click)="addSimplePoint('OpenGate')"
3636
analyticsOn="click" analyticsCategory="POI" analyticsLabel="Add open gate to OSM">
3737
<i class="fa icon-gate"></i><br />
38-
{{resources.legendGate}}
38+
{{resources.legendOpenEntrance}}
3939
</button>
4040
</div>
4141
</div>
@@ -45,14 +45,14 @@
4545
(click)="addSimplePoint('ClosedGate')" analyticsOn="click" analyticsCategory="POI"
4646
analyticsLabel="Add closed gate to OSM">
4747
<i class="fa icon-gate" [style.color]="'red'"></i><br />
48-
{{resources.legendClosedGate}}
48+
{{resources.legendNoEntry}}
4949
</button>
5050
</div>
5151
<div class="w-1/2">
5252
<button mat-button mat-dialog-close class="w-full p-0! h-[unset]!" (click)="addSimplePoint('Block')"
5353
analyticsOn="click" analyticsCategory="POI" analyticsLabel="Add block to OSM">
5454
<i class="fa icon-bollards"></i><br />
55-
{{resources.legendBlock}}
55+
{{resources.legendVehicleBlock}}
5656
</button>
5757
</div>
5858
</div>

IsraelHiking.Web/src/application/components/dialogs/legend-dialog.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export class LegendDialogComponent {
7373
remove(sections, sectionToRemove => sectionToRemove.title === this.resources.legendMarkedTrails);
7474
remove(sections, sectionToRemove => sectionToRemove.title === this.resources.legendRegionalTrails);
7575

76-
this.removeItemInSection(sections, this.resources.legendTrails, this.resources.legendDifficult4WD);
77-
this.removeItemInSection(sections, this.resources.legendTrails, this.resources.legendBicyclePath);
76+
this.removeItemInSection(sections, this.resources.legendTracksAndPaths, this.resources.legendChallenging4WDTrack);
77+
this.removeItemInSection(sections, this.resources.legendTracksAndPaths, this.resources.legendBicyclePath);
7878

7979
this.removeItemInSection(sections, this.resources.legendRoads, this.resources.legendMotorway);
8080
this.removeItemInSection(sections, this.resources.legendRoads, this.resources.legendTrunk);
@@ -96,7 +96,7 @@ export class LegendDialogComponent {
9696
}
9797

9898
private removeIhmUnwantedLegend(sections: LegendSection[]) {
99-
remove(sections, sectionToRemove => sectionToRemove.title === this.resources.legendSingles);
99+
remove(sections, sectionToRemove => sectionToRemove.title === this.resources.legendCyclingDifficulty);
100100

101101
this.removeItemInSection(sections, this.resources.legendWater, this.resources.legendRiver);
102102

@@ -116,7 +116,7 @@ export class LegendDialogComponent {
116116
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendConvenienceStore);
117117
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendLodging);
118118
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendToilettes);
119-
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendInformationCenter);
119+
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendTravelInformation);
120120
this.removeItemInSection(sections, this.resources.legendAmenities, this.resources.legendPlayground);
121121

122122
this.removeItemInSection(sections, this.resources.legendAreas, this.resources.legendVineyard);

IsraelHiking.Web/src/application/components/sidebar/privateroutes/private-routes-sidebar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ <h3 [style.color]="route.color">{{route.name}}</h3>
173173
</mat-slider>
174174
</div>
175175
<div class="flex flex-row relative">
176-
<img width="100%" height="50px" src="content/legend/hike_legendLight4WDVehicles.png">
176+
<img width="100%" height="50px" src="content/legend/hike_legend4WDTrack.png">
177177
<hr class="w-full border-0 border-solid absolute" [ngStyle]="{
178178
'height': route.weight + 'px',
179179
'background-color': route.color,

IsraelHiking.Web/src/application/services/resources.service.ts

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,12 @@ export class ResourcesService {
337337
public legendBlackMarkedTrail: string;
338338
public legendUnmarkedTrail: string;
339339
public legendIsraelTrail: string;
340-
public legendRegionalTrail: string;
341-
public legendTrails: string;
340+
public legendTracksAndPaths: string;
342341
public legendPavedRoad: string;
343342
public legendAllVehicles: string;
344-
public legendLight4WDVehicles: string;
345-
public legendStrong4WDVehicles: string;
346-
public legendDifficult4WD: string;
343+
public legend4WDTrack: string;
344+
public legendDifficult4WDTrack: string;
345+
public legendChallenging4WDTrack: string;
347346
public legendPath: string;
348347
public legendFootPath: string;
349348
public legendBicyclePath: string;
@@ -367,7 +366,6 @@ export class ResourcesService {
367366
public legendSecondary: string;
368367
public legendTertiary: string;
369368
public legendUnclassified: string;
370-
public legendLowSpeedStreet: string;
371369
public legendResidential: string;
372370
public legendBridge: string;
373371
public legendTunnel: string;
@@ -388,7 +386,7 @@ export class ResourcesService {
388386
public legendConvenienceStore: string;
389387
public legendLodging: string;
390388
public legendToilettes: string;
391-
public legendInformationCenter: string;
389+
public legendTravelInformation: string;
392390
public legendGuidepost: string;
393391
public legendConstructionSite: string;
394392
public legendViewpoint: string;
@@ -409,9 +407,9 @@ export class ResourcesService {
409407
public legendPowerLine: string;
410408
public legendPlayground: string;
411409
public legendBarriers: string;
412-
public legendGate: string;
413-
public legendClosedGate: string;
414-
public legendBlock: string;
410+
public legendOpenEntrance: string;
411+
public legendNoEntry: string;
412+
public legendVehicleBlock: string;
415413
public legendCattleGrid: string;
416414
public legendFence: string;
417415
public legendWall: string;
@@ -431,22 +429,18 @@ export class ResourcesService {
431429
public legendBikeShop: string;
432430
public legendFirstAid: string;
433431
public legendRegionalTrails: string;
434-
public legendJerusalemTrail: string;
435432
public legendGolanTrail: string;
436433
public legendKinneretTrail: string;
437434
public legendHaifaWadisTrail: string;
438-
public legendKinneretBicycleTrail: string;
439435
public legendPurpleRegionalTrail: string;
440436
public legendOrangeRegionalTrail: string;
441-
public legendSingles: string;
437+
public legendCyclingDifficulty: string;
442438
public legendUnknownScale: string;
443439
public legendEasyWithDirection: string;
444440
public legendModerate: string;
445441
public legendAdvanced: string;
446442
public legendChallengingWithDirection: string;
447443
public legendBicycleTrails: string;
448-
public legendLocalTrail: string;
449-
public legendNationalTrail: string;
450444
public legendAreas: string;
451445
public legendCitySettlement: string;
452446
public legendOrchard: string;
@@ -461,7 +455,6 @@ export class ResourcesService {
461455
public legendQuarry: string;
462456
public legendBench: string;
463457
public legendAlpinehut: string;
464-
public legendEmpty: string;
465458

466459
public async initialize() {
467460
await this.setLanguageInternal(this.store.selectSnapshot((s: ApplicationState) => s.configuration).language);
@@ -480,7 +473,7 @@ export class ResourcesService {
480473
}
481474

482475
private async setLanguageInternal(language: Language): Promise<void> {
483-
await this.gettextCatalog.loadRemote(Urls.translations + language.code + ".json?sign=1786485285267");
476+
await this.gettextCatalog.loadRemote(Urls.translations + language.code + ".json?sign=1786485692345");
484477
this.about = this.gettextCatalog.getString("About");
485478
this.legend = this.gettextCatalog.getString("Legend");
486479
this.clear = this.gettextCatalog.getString("Clear");
@@ -788,13 +781,12 @@ export class ResourcesService {
788781
this.legendBlackMarkedTrail = this.gettextCatalog.getString("Black Marked Trail");
789782
this.legendUnmarkedTrail = this.gettextCatalog.getString("Unmarked Trail");
790783
this.legendIsraelTrail = this.gettextCatalog.getString("Israel Trail");
791-
this.legendRegionalTrail = this.gettextCatalog.getString("Regional Trail");
792-
this.legendTrails = this.gettextCatalog.getString("Tracks and Paths");
784+
this.legendTracksAndPaths = this.gettextCatalog.getString("Tracks and Paths");
793785
this.legendPavedRoad = this.gettextCatalog.getString("Paved Road");
794786
this.legendAllVehicles = this.gettextCatalog.getString("All Vehicles");
795-
this.legendLight4WDVehicles = this.gettextCatalog.getString("4WD Track");
796-
this.legendStrong4WDVehicles = this.gettextCatalog.getString("Difficult 4WD Track");
797-
this.legendDifficult4WD = this.gettextCatalog.getString("Challenging 4WD Track");
787+
this.legend4WDTrack = this.gettextCatalog.getString("4WD Track");
788+
this.legendDifficult4WDTrack = this.gettextCatalog.getString("Difficult 4WD Track");
789+
this.legendChallenging4WDTrack = this.gettextCatalog.getString("Challenging 4WD Track");
798790
this.legendPath = this.gettextCatalog.getString("Path");
799791
this.legendFootPath = this.gettextCatalog.getString("Foot Path");
800792
this.legendBicyclePath = this.gettextCatalog.getString("Bicycle Path");
@@ -818,7 +810,6 @@ export class ResourcesService {
818810
this.legendSecondary = this.gettextCatalog.getString("Secondary");
819811
this.legendTertiary = this.gettextCatalog.getString("Tertiary");
820812
this.legendUnclassified = this.gettextCatalog.getString("Unclassified");
821-
this.legendLowSpeedStreet = this.gettextCatalog.getString("Low-Speed Street");
822813
this.legendResidential = this.gettextCatalog.getString("Residential");
823814
this.legendBridge = this.gettextCatalog.getString("Bridge");
824815
this.legendTunnel = this.gettextCatalog.getString("Tunnel");
@@ -839,7 +830,7 @@ export class ResourcesService {
839830
this.legendConvenienceStore = this.gettextCatalog.getString("Convenience Store");
840831
this.legendLodging = this.gettextCatalog.getString("Lodging");
841832
this.legendToilettes = this.gettextCatalog.getString("Toilettes");
842-
this.legendInformationCenter = this.gettextCatalog.getString("Travel Information");
833+
this.legendTravelInformation = this.gettextCatalog.getString("Travel Information");
843834
this.legendGuidepost = this.gettextCatalog.getString("Guidepost");
844835
this.legendViewpoint = this.gettextCatalog.getString("Viewpoint");
845836
this.legendPeak = this.gettextCatalog.getString("Peak");
@@ -859,9 +850,9 @@ export class ResourcesService {
859850
this.legendPowerLine = this.gettextCatalog.getString("Power Line");
860851
this.legendPlayground = this.gettextCatalog.getString("Playground");
861852
this.legendBarriers = this.gettextCatalog.getString("Barriers");
862-
this.legendGate = this.gettextCatalog.getString("Open Entrance");
863-
this.legendClosedGate = this.gettextCatalog.getString("No Entry");
864-
this.legendBlock = this.gettextCatalog.getString("Vehicle Block");
853+
this.legendOpenEntrance = this.gettextCatalog.getString("Open Entrance");
854+
this.legendNoEntry = this.gettextCatalog.getString("No Entry");
855+
this.legendVehicleBlock = this.gettextCatalog.getString("Vehicle Block");
865856
this.legendCattleGrid = this.gettextCatalog.getString("Cattle Grid");
866857
this.legendFence = this.gettextCatalog.getString("Fence");
867858
this.legendWall = this.gettextCatalog.getString("Wall");
@@ -881,22 +872,18 @@ export class ResourcesService {
881872
this.legendBikeShop = this.gettextCatalog.getString("Bike Shop");
882873
this.legendFirstAid = this.gettextCatalog.getString("First Aid");
883874
this.legendRegionalTrails = this.gettextCatalog.getString("Regional Trails");
884-
this.legendJerusalemTrail = this.gettextCatalog.getString("Jerusalem Trail");
885875
this.legendGolanTrail = this.gettextCatalog.getString("Golan Trail");
886876
this.legendKinneretTrail = this.gettextCatalog.getString("Kinneret Trail");
887877
this.legendHaifaWadisTrail = this.gettextCatalog.getString("Haifa Wadis Trail");
888-
this.legendKinneretBicycleTrail = this.gettextCatalog.getString("Kinneret Bicycle Trail");
889878
this.legendPurpleRegionalTrail = this.gettextCatalog.getString("Purple Regional Trail");
890879
this.legendOrangeRegionalTrail = this.gettextCatalog.getString("Orange Regional Trail");
891-
this.legendSingles = this.gettextCatalog.getString("Cycling technical difficulty");
880+
this.legendCyclingDifficulty = this.gettextCatalog.getString("Cycling technical difficulty");
892881
this.legendUnknownScale = this.gettextCatalog.getString("Unknown Scale");
893882
this.legendEasyWithDirection = this.gettextCatalog.getString("Easy");
894883
this.legendModerate = this.gettextCatalog.getString("Moderate");
895884
this.legendAdvanced = this.gettextCatalog.getString("Advanced");
896885
this.legendChallengingWithDirection = this.gettextCatalog.getString("Challenging");
897886
this.legendBicycleTrails = this.gettextCatalog.getString("Bicycle Trails");
898-
this.legendLocalTrail = this.gettextCatalog.getString("Local Trail");
899-
this.legendNationalTrail = this.gettextCatalog.getString("National Trail");
900887
this.legendAreas = this.gettextCatalog.getString("Areas");
901888
this.legendCitySettlement = this.gettextCatalog.getString("City, Settlement");
902889
this.legendOrchard = this.gettextCatalog.getString("Orchard");
@@ -912,7 +899,6 @@ export class ResourcesService {
912899
this.legendConstructionSite = this.gettextCatalog.getString("Construction Site");
913900
this.legendBench = this.gettextCatalog.getString("Bench");
914901
this.legendAlpinehut = this.gettextCatalog.getString("Alpine Hut");
915-
this.legendEmpty = this.gettextCatalog.getString("No legend for this map...");
916902

917903
this.setRtl(language.rtl);
918904
this.gettextCatalog.setCurrentLanguage(language.code);

IsraelHiking.Web/src/content/legend/bike_legendLight4WDVehicles.png renamed to IsraelHiking.Web/src/content/legend/bike_legend4WDTrack.png

File renamed without changes.

IsraelHiking.Web/src/content/legend/bike_legendBnech.png renamed to IsraelHiking.Web/src/content/legend/bike_legendBench.png

File renamed without changes.

IsraelHiking.Web/src/content/legend/bike_legendDifficult4WD.png renamed to IsraelHiking.Web/src/content/legend/bike_legendChallenging4WDTrack.png

File renamed without changes.

IsraelHiking.Web/src/content/legend/bike_legendStrong4WDVehicles.png renamed to IsraelHiking.Web/src/content/legend/bike_legendDifficult4WDTrack.png

File renamed without changes.

IsraelHiking.Web/src/content/legend/bike_legendClosedGate.png renamed to IsraelHiking.Web/src/content/legend/bike_legendNoEntry.png

File renamed without changes.

IsraelHiking.Web/src/content/legend/bike_legendGate.png renamed to IsraelHiking.Web/src/content/legend/bike_legendOpenEntrance.png

File renamed without changes.

0 commit comments

Comments
 (0)