Skip to content

Commit

Permalink
Merge pull request #946 from lokonli/pubTrans
Browse files Browse the repository at this point in the history
Public transport: lang and show_direction
  • Loading branch information
lokonli authored Feb 26, 2022
2 parents 8ecc138 + 34790a0 commit 931453c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
5 changes: 5 additions & 0 deletions docs/blocks/specials/publictransport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ Parameters
| ``'3,4'`` (comma seperated)
* - show_via
- ``false`` , ``true``. Hide the via-part.
* - show_direction
- ``false`` , ``true``. Show the line direction (only for ``ovapi`` and ``delijnbe``).
* - lang
- | ``'nl'``, ``'fr'``, ``'en'``, ``'de'`` : Set the language for search results (only for ``irailbe``)
| Default value is derived from the Dashticz language setting.
* - icon
- | The font-awesome icon (including ``fas fa-``)
| ``'fas fa-bus'``, ``'fas fa-tram'``, ``'fas fa-train'``, ``'fas fa-ship'``, ``'fas fa-subway'``, ...
Expand Down
2 changes: 2 additions & 0 deletions docs/releasenotes/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Enhancements
~~~~~~~~~~~~

* Garbage: Added Maashorst (Uden, Volkel, Odiliapeel, Reek, Schaijk en Zeeland)
* Public transport: New block parameter ``show_direction`` to show bus line direction.
* Public transport: New block parameter ``lang`` to set language for search results (for ``irailbe`` only).

Fixes
~~~~~~
Expand Down
27 changes: 20 additions & 7 deletions js/components/publictransport.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lang/nl_NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"spotify_select_playlist": "Selecteer afspeellijst",
"value": "Waarde",
"enter_pincode": "Voer de pincode in",
"wrong_code": "Verkeerde pincode"
"wrong_code": "Verkeerde pincode",
"platform": "spoor"
},
"settings": {
"about": {
Expand Down
2 changes: 1 addition & 1 deletion tpl/pubtrans_treinen.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</td>
<td class="platform">
{{#if this.platform}}
spoor {{this.platform}}
{{../lang.misc.platform}} {{this.platform}}
{{/if}}
</td>
</tr>
Expand Down

0 comments on commit 931453c

Please # to comment.