Skip to content

Commit

Permalink
Begin multi-language support
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonyea committed Jan 20, 2021
1 parent 0560f6d commit 9630842
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# v2.1.9
## 01/20/2021

1. [](#new)
* Adding a languages.yaml file to begin work on multi-language support.
2. [](#improved)

3. [](#bugfix)
* Multilanguage fixes for RSS feeds.

# v2.1.8
## 01/20/2021

Expand Down
6 changes: 3 additions & 3 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Podcast
version: 2.1.8
version: 2.1.9
description: Creates Podcast page types and related podcast RSS feeds
icon: microphone
author:
Expand Down Expand Up @@ -31,6 +31,6 @@ form:
type: bool
max_upload:
type: text
label: Max Podcast Filesize (MB)
help: 'Make sure to set "upload_max_filesize" and "post_max_size" in your php.ini as well.'
label: PLUGIN_PODCAST.CONFIG.MAX_UPLOAD_LABEL
help: PLUGIN_PODCAST.CONFIG.MAX_UPLOAD_HELP
default: 50
7 changes: 7 additions & 0 deletions languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
en:
PLUGIN_PODCAST:
CONFIG:
MAX_UPLOAD_LABEL: Max Podcast Filesize (MB)
MAX_UPLOAD_HELP: 'Set "upload_max_filesize" and "post_max_size" in php.ini to at least this value or higher.'
PODCAST: Podcast
SERIES: Series
2 changes: 1 addition & 1 deletion templates/podcast-channel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<p class = "description">{{page.header.podcast.description}}</p>
</div>
<div class="channel-links">
<a href="{{base_url_simple}}{{page.route}}.rss"><i class="fa fa-rss" aria-hidden="true"></i> {{page.title}} Podcast</a>
<a href="{{base_url}}{{page.route}}.rss"><i class="fa fa-rss" aria-hidden="true"></i> {{page.title}} {{ 'PLUGIN_PODCAST.PODCAST'|t }}</a>

</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/podcast-series.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<p class = "description">{{ description }}</p>
</div>
<div class="channel-links">
<a href="{{base_url_simple}}{{page.route}}.rss"><i class="fa fa-rss" aria-hidden="true"></i> {{page.title}} Podcast</a>
<a href="{{base_url}}{{page.route}}.rss"><i class="fa fa-rss" aria-hidden="true"></i> {{page.title}} {{ 'PLUGIN_PODCAST.PODCAST'|t }}</a>

</div>

Expand Down

0 comments on commit 9630842

Please sign in to comment.