Skip to content

Commit ca454e7

Browse files
chore: Allow l10n of footer dynamic items (#5404)
1 parent cba0117 commit ca454e7

File tree

18 files changed

+537
-544
lines changed

18 files changed

+537
-544
lines changed

app/routes/pages.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ import Route from '@ember/routing/route';
33

44
@classic
55
export default class PagesRoute extends Route {
6+
// Enumerate possible page names for extraction for localization
7+
pages() {
8+
return [this.l10n.t('Terms'), this.l10n.t('Contact'), this.l10n.t('Refund Policy'), this.l10n.t('Privacy')];
9+
}
10+
611
titleToken(model) {
7-
return model?.name || this.l10n.t('Pages');
12+
return this.l10n.tVar(model?.name) || this.l10n.t('Pages');
813
}
914

1015
model(params) {

app/templates/components/footer-main.hbs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,16 @@
9898
<div class="thirteen wide computer twelve wide tablet column left aligned">
9999
<div class="ui horizontal inverted small divided link list no top margin">
100100
<span class="item">{{t 'Copyright'}} &copy; {{moment-format (now) 'YYYY'}} {{this.settings.appName}} </span>
101+
<span class="hidden-item">
102+
{{!-- Possible Page Values --}}
103+
{{t 'Terms'}}
104+
{{t 'Contact'}}
105+
{{t 'Refund Policy'}}
106+
{{t 'Privacy'}}
107+
</span>
101108
{{#each this.footerPages as |page|}}
102109
<LinkTo @route="pages" @model={{page.url}} class="item">
103-
{{page.name}}
110+
{{t-var page.name}}
104111
</LinkTo>
105112
{{/each}}
106113
</div>

translations/bn.po

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ msgstr ""
217217
#: app/templates/components/ui-table/cell/cell-buttons.hbs:3:22
218218
#: app/templates/components/ui-table/cell/cell-event-general.hbs:16:22
219219
#: app/templates/components/ui-table/cell/cell-event.hbs:7:22
220-
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:5:22
220+
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:4:20
221221
msgid "View"
222222
msgstr ""
223223

@@ -1095,7 +1095,7 @@ msgstr ""
10951095
#: app/templates/components/ui-table/cell/cell-event-general.hbs:21:22
10961096
#: app/templates/components/ui-table/cell/cell-event.hbs:12:22
10971097
#: app/templates/components/ui-table/cell/cell-sponsor-options.hbs:2:20
1098-
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:10:22
1098+
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:7:20
10991099
#: app/templates/components/ui-table/cell/events/view/tickets/access-codes/cell-actions.hbs:2:20
11001100
#: app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-actions.hbs:2:20
11011101
msgid "Edit"
@@ -1118,7 +1118,7 @@ msgstr ""
11181118
#: app/templates/components/ui-table/cell/cell-code-buttons.hbs:8:20
11191119
#: app/templates/components/ui-table/cell/cell-event.hbs:21:22
11201120
#: app/templates/components/ui-table/cell/cell-sponsor-options.hbs:5:20
1121-
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:14:20
1121+
#: app/templates/components/ui-table/cell/events/view/speakers/cell-buttons.hbs:10:20
11221122
#: app/templates/components/ui-table/cell/events/view/tickets/access-codes/cell-actions.hbs:16:20
11231123
#: app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-actions.hbs:16:20
11241124
msgid "Delete"
@@ -1902,7 +1902,7 @@ msgstr ""
19021902
msgid "Social Links"
19031903
msgstr ""
19041904

1905-
#: app/routes/admin/content/pages.js:7:11 app/routes/pages.js:7:26
1905+
#: app/routes/admin/content/pages.js:7:11 app/routes/pages.js:12:42
19061906
#: app/templates/admin/content.hbs:9:10
19071907
#: app/templates/admin/content/pages.hbs:6:32
19081908
msgid "Pages"
@@ -2415,6 +2415,25 @@ msgstr ""
24152415
msgid "Placed Order"
24162416
msgstr ""
24172417

2418+
#: app/routes/pages.js:8:12 app/templates/components/footer-main.hbs:103:10
2419+
msgid "Terms"
2420+
msgstr ""
2421+
2422+
#: app/routes/pages.js:8:34 app/templates/components/footer-main.hbs:104:10
2423+
msgid "Contact"
2424+
msgstr ""
2425+
2426+
#: app/routes/pages.js:8:58 app/templates/components/footer-main.hbs:105:10
2427+
#: app/templates/components/forms/wizard/other-details-step.hbs:34:33
2428+
#: app/templates/components/public/ticket-list.hbs:195:12
2429+
msgid "Refund Policy"
2430+
msgstr ""
2431+
2432+
#: app/routes/pages.js:8:88 app/templates/components/footer-main.hbs:106:10
2433+
#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:168:29
2434+
msgid "Privacy"
2435+
msgstr ""
2436+
24182437
#: app/routes/public/cfs.js:7:11 app/routes/public/cfs/index.js:11:11
24192438
#: app/templates/components/public/call-for-speakers.hbs:3:2
24202439
#: app/templates/components/public/side-menu.hbs:44:8
@@ -2432,6 +2451,7 @@ msgstr ""
24322451
#: app/routes/public/cfs/edit-speaker.js:7:11
24332452
#: app/templates/events/view/speakers/edit.hbs:4:6
24342453
#: app/templates/public/cfs/edit-speaker.hbs:4:6
2454+
#: app/templates/public/speaker/view.hbs:8:83
24352455
msgid "Edit Speaker"
24362456
msgstr ""
24372457

@@ -5333,11 +5353,6 @@ msgstr ""
53335353
msgid "Website"
53345354
msgstr ""
53355355

5336-
#: app/templates/components/forms/wizard/other-details-step.hbs:34:33
5337-
#: app/templates/components/public/ticket-list.hbs:195:12
5338-
msgid "Refund Policy"
5339-
msgstr ""
5340-
53415356
#: app/templates/components/forms/wizard/other-details-step.hbs:36:8
53425357
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."
53435358
msgstr ""
@@ -5415,10 +5430,6 @@ msgstr ""
54155430
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)"
54165431
msgstr ""
54175432

5418-
#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:168:29
5419-
msgid "Privacy"
5420-
msgstr ""
5421-
54225433
#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:173:22
54235434
msgid "Public"
54245435
msgstr "জনসাধারণ"
@@ -5436,7 +5447,7 @@ msgid "Do not display this publicly. Proposals can be submitted only using the p
54365447
msgstr ""
54375448

54385449
#: app/templates/components/forms/wizard/sessions-speakers-step.hbs:193:8
5439-
msgid "Customize registration form"
5450+
msgid "Customize submission forms"
54405451
msgstr ""
54415452

54425453
#: app/templates/components/forms/wizard/sponsors-step.hbs:26:8
@@ -6279,7 +6290,7 @@ msgstr ""
62796290
msgid "Lock Session"
62806291
msgstr ""
62816292

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

0 commit comments

Comments
 (0)