Skip to content

Commit

Permalink
Add en translation strings for Load no-gos (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrenner committed Mar 16, 2019
1 parent 68823fe commit b810071
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<span data-i18n="navbar.load.title">Load</span>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" data-i18n="navbar.load.nogos" data-toggle="modal" data-target="#loadNogos" href="#">Nogos</a>
<a class="dropdown-item" data-i18n="navbar.load.nogos" data-toggle="modal" data-target="#loadNogos" href="#">No-go areas</a>
</div>
</div>
<div class="nav-item">
Expand Down Expand Up @@ -209,7 +209,7 @@ <h4 class="modal-title" data-i18n="about.title">About</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" data-i18n="loadNogos.title">Load nogos</h4>
<h4 class="modal-title" data-i18n="loadNogos.title">Load no-go areas</h4>
</div>
<div class="modal-body">
<p id="nogoError" style="display: none;"></p>
Expand All @@ -227,15 +227,15 @@ <h4 class="modal-title" data-i18n="loadNogos.title">Load nogos</h4>
<fieldset>
<legend data-i18n="loadNogos.defaultProperties">Default properties</legend>
<p>
<label for="nogoWeight" data-i18n="loadNogos.nogoWeight">Nogo weight: </label>
<label for="nogoWeight" data-i18n="loadNogos.nogoWeight">No-go weight: </label>
<input type="number" name="nogoWeight" id="nogoWeight" value="-1" />
</p>
<p>
<label for="nogoRadius" data-i18n="loadNogos.nogoRadius">Nogo radius (for points): </label>
<label for="nogoRadius" data-i18n="loadNogos.nogoRadius">No-go radius (for points): </label>
<input type="number" name="nogoRadius" id="nogoRadius" value="20" />
</p>
<p>
<label for="nogoBuffer" data-i18n="loadNogos.nogoBuffer">Buffer nogos areas (in meters): </label>
<label for="nogoBuffer" data-i18n="loadNogos.nogoBuffer">Buffer no-go areas (in meters): </label>
<input type="number" name="nogoBuffer" id="nogoBuffer" value="0" />
</p>
</fieldset>
Expand Down
15 changes: 15 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@
"placeholder-layer-url": "Custom layer URL. (ex: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png)",
"remove-selection": "Remove selection"
},
"loadNogos": {
"defaultProperties": "Default properties",
"file": "File: ",
"load": "Load",
"nogoBuffer": "Buffer no-go areas (in meters): ",
"nogoRadius": "No-go radius (for points): ",
"nogoWeight": "No-go weight: ",
"source": "Source",
"title": "Load no-go areas",
"url": "URL: "
},
"map": {
"attribution-osm-long": "OpenStreetMap contributors",
"attribution-osm-short": "OpenStreetMap",
Expand Down Expand Up @@ -108,6 +119,10 @@
"kml": "KML",
"title": "Download"
},
"load": {
"nogos": "No-go areas",
"title": "Load"
},
"profile": {
"car-eco": "Car (economic)",
"car-fast": "Car (fast)",
Expand Down

0 comments on commit b810071

Please sign in to comment.