Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Allow l10n of footer dynamic items #5404

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/routes/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import Route from '@ember/routing/route';

@classic
export default class PagesRoute extends Route {
// Enumerate possible page names for extraction for localization
pages() {
return [this.l10n.t('Terms'), this.l10n.t('Contact'), this.l10n.t('Refund Policy'), this.l10n.t('Privacy')];
}

titleToken(model) {
return model?.name || this.l10n.t('Pages');
return this.l10n.tVar(model?.name) || this.l10n.t('Pages');
}

model(params) {
Expand Down
9 changes: 8 additions & 1 deletion app/templates/components/footer-main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,16 @@
<div class="thirteen wide computer twelve wide tablet column left aligned">
<div class="ui horizontal inverted small divided link list no top margin">
<span class="item">{{t 'Copyright'}} &copy; {{moment-format (now) 'YYYY'}} {{this.settings.appName}} </span>
<span class="hidden-item">
{{!-- Possible Page Values --}}
{{t 'Terms'}}
{{t 'Contact'}}
{{t 'Refund Policy'}}
{{t 'Privacy'}}
</span>
{{#each this.footerPages as |page|}}
<LinkTo @route="pages" @model={{page.url}} class="item">
{{page.name}}
{{t-var page.name}}
</LinkTo>
{{/each}}
</div>
Expand Down
41 changes: 26 additions & 15 deletions translations/bn.po
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ msgstr ""
#: app/templates/components/ui-table/cell/cell-buttons.hbs:3:22
#: app/templates/components/ui-table/cell/cell-event-general.hbs:16:22
#: app/templates/components/ui-table/cell/cell-event.hbs:7:22
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:5:22
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:4:20
msgid "View"
msgstr ""

Expand Down Expand Up @@ -1095,7 +1095,7 @@ msgstr ""
#: app/templates/components/ui-table/cell/cell-event-general.hbs:21:22
#: app/templates/components/ui-table/cell/cell-event.hbs:12:22
#: app/templates/components/ui-table/cell/cell-sponsor-options.hbs:2:20
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:10:22
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:7:20
#: app/templates/components/ui-table/cell/events/view/tickets/access-codes/cell-actions.hbs:2:20
#: app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-actions.hbs:2:20
msgid "Edit"
Expand All @@ -1118,7 +1118,7 @@ msgstr ""
#: app/templates/components/ui-table/cell/cell-code-buttons.hbs:8:20
#: app/templates/components/ui-table/cell/cell-event.hbs:21:22
#: app/templates/components/ui-table/cell/cell-sponsor-options.hbs:5:20
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:14:20
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:10:20
#: app/templates/components/ui-table/cell/events/view/tickets/access-codes/cell-actions.hbs:16:20
#: app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-actions.hbs:16:20
msgid "Delete"
Expand Down Expand Up @@ -1902,7 +1902,7 @@ msgstr ""
msgid "Social Links"
msgstr ""

#: app/routes/admin/content/pages.js:7:11 app/routes/pages.js:7:26
#: app/routes/admin/content/pages.js:7:11 app/routes/pages.js:12:42
#: app/templates/admin/content.hbs:9:10
#: app/templates/admin/content/pages.hbs:6:32
msgid "Pages"
Expand Down Expand Up @@ -2415,6 +2415,25 @@ msgstr ""
msgid "Placed Order"
msgstr ""

#: app/routes/pages.js:8:12 app/templates/components/footer-main.hbs:103:10
msgid "Terms"
msgstr ""

#: app/routes/pages.js:8:34 app/templates/components/footer-main.hbs:104:10
msgid "Contact"
msgstr ""

#: app/routes/pages.js:8:58 app/templates/components/footer-main.hbs:105:10
#: app/templates/components/forms/wizard/other-details-step.hbs:34:33
#: app/templates/components/public/ticket-list.hbs:195:12
msgid "Refund Policy"
msgstr ""

#: app/routes/pages.js:8:88 app/templates/components/footer-main.hbs:106:10
#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:168:29
msgid "Privacy"
msgstr ""

#: app/routes/public/cfs.js:7:11 app/routes/public/cfs/index.js:11:11
#: app/templates/components/public/call-for-speakers.hbs:3:2
#: app/templates/components/public/side-menu.hbs:44:8
Expand All @@ -2432,6 +2451,7 @@ msgstr ""
#: app/routes/public/cfs/edit-speaker.js:7:11
#: app/templates/events/view/speakers/edit.hbs:4:6
#: app/templates/public/cfs/edit-speaker.hbs:4:6
#: app/templates/public/speaker/view.hbs:8:83
msgid "Edit Speaker"
msgstr ""

Expand Down Expand Up @@ -5333,11 +5353,6 @@ msgstr ""
msgid "Website"
msgstr ""

#: app/templates/components/forms/wizard/other-details-step.hbs:34:33
#: app/templates/components/public/ticket-list.hbs:195:12
msgid "Refund Policy"
msgstr ""

#: app/templates/components/forms/wizard/other-details-step.hbs:36:8
msgid "Refunds to be processed by the organizer through payment provider. Refund payments to attendees cannot be made on the eventyay platform. Please go to your payment provider, make a refund and mark the ticket as refunded in the eventyay platform."
msgstr ""
Expand Down Expand Up @@ -5415,10 +5430,6 @@ msgstr ""
msgid "Share this link to get private submission independently of open/closed Call for Speakers at any time. (the link will be active once the event is saved)"
msgstr ""

#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:168:29
msgid "Privacy"
msgstr ""

#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:173:22
msgid "Public"
msgstr "জনসাধারণ"
Expand All @@ -5436,7 +5447,7 @@ msgid "Do not display this publicly. Proposals can be submitted only using the p
msgstr ""

#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:193:8
msgid "Customize registration form"
msgid "Customize submission forms"
msgstr ""

#: app/templates/components/forms/wizard/sponsors-step.hbs:26:8
Expand Down Expand Up @@ -6279,7 +6290,7 @@ msgstr ""
msgid "Lock Session"
msgstr ""

#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:14:60
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:10:60
msgid "Are you sure you would like to delete this Speaker?"
msgstr ""

Expand Down
Loading