Skip to content

Commit

Permalink
make-translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchauhan2889 committed Nov 20, 2020
1 parent 52a5796 commit 4f1edd9
Show file tree
Hide file tree
Showing 21 changed files with 105 additions and 105 deletions.
4 changes: 2 additions & 2 deletions app/components/forms/wizard/custom-forms/table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<tr class="{{if field.isIncluded 'positive'}}">
<td class="{{if this.device.isMobile 'center' 'right'}} aligned">
<label class="{{if field.isFixed 'required'}}">
{{field.name}}
{{t-var field.name}}
{{#if field.isComplex}}
<div class="ui icon d-inline" data-tooltip="Custom Field">
<i class="info icon"></i>
Expand All @@ -47,7 +47,7 @@
</label>
</td>
<td class="center aligned">
{{field.type}}
{{t-var field.type}}
</td>
<td class="center aligned">
<UiCheckbox
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/wizard/wizard-footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
<div class="sixteen wide column right aligned">
{{#if @event.identifier}}
{{#if (eq @event.state 'draft')}}
<p>This event is currently not published. It is in draft mode and it is not visible publicly.</p>
<p>{{t 'This event is currently not published. It is in draft mode and it is not visible publicly.'}}</p>
{{else}}
<p>This event is published. Any changes you make will appear on your live event.</p>
<p>{{t 'This event is published. Any changes you make will appear on your live event.'}}</p>
{{/if}}
{{else}}
<p>You can preview the event after you have saved it as a draft. You can publish the event after filling in the required fields.</p>
<p>{{t 'You can preview the event after you have saved it as a draft. You can publish the event after filling in the required fields.'}}</p>
{{/if}}
</div>
</div>
Expand Down
20 changes: 10 additions & 10 deletions app/controllers/admin/events/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
get columns() {
return [
{
name : 'Name',
name : this.l10n.t('Name'),
valuePath : 'name',
extraValuePaths : ['logoUrl', 'identifier', 'deletedAt', 'name'],
isSortable : true,
Expand All @@ -28,7 +28,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
}
},
{
name : 'Starts At',
name : this.l10n.t('Starts At'),
valuePath : 'startsAt',
isSortable : true,
headerComponent : 'tables/headers/sort',
Expand All @@ -37,7 +37,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
width : 75
},
{
name : 'Ends At',
name : this.l10n.t('Ends At'),
valuePath : 'endsAt',
isSortable : true,
extraValuePaths : ['timezone'],
Expand All @@ -46,40 +46,40 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
width : 75
},
{
name : 'State',
name : this.l10n.t('State'),
valuePath : 'state',
isSortable : true,
headerComponent : 'tables/headers/sort',
width : 80
},
{
name : 'Roles',
name : this.l10n.t('Roles'),
valuePath : 'owner',
extraValuePaths : ['organizers', 'coorganizers', 'trackOrganizers', 'registrars', 'moderators'],
cellComponent : 'ui-table/cell/cell-roles',
width : 185
},
{
name : 'Sessions',
name : this.l10n.t('Sessions'),
valuePath : 'generalStatistics',
cellComponent : 'ui-table/cell/cell-sessions',
width : 90

},
{
name : 'Speakers',
name : this.l10n.t('Speakers'),
valuePath : 'generalStatistics',
cellComponent : 'ui-table/cell/cell-speakers-dashboard',
width : 90
},
{
name : 'Public URL',
name : this.l10n.t('Public URL'),
valuePath : 'url',
cellComponent : 'ui-table/cell/cell-link',
width : 220
},
{
name : 'Featured Event',
name : this.l10n.t('Featured Event'),
valuePath : 'id',
isSortable : true,
extraValuePaths : ['isFeatured'],
Expand All @@ -91,7 +91,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
}
},
{
name : 'Promoted Event',
name : this.l10n.t('Promoted Event'),
valuePath : 'id',
isSortable : true,
extraValuePaths : ['isPromoted'],
Expand Down
12 changes: 6 additions & 6 deletions app/controllers/admin/messages/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ sort_dir = 'ASC';
get columns() {
return [
{
name : 'Recipients',
name : this.l10n.t('Recipients'),
valuePath : 'recipient',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Trigger',
name : this.l10n.t('Trigger'),
valuePath : 'action'
},
{
name : 'Email Message',
name : this.l10n.t('Email Message'),
valuePath : 'emailMessage',

cellComponent : 'ui-table/cell/cell-title-message',
Expand All @@ -32,7 +32,7 @@ get columns() {
}
},
{
name : 'Notification Message',
name : this.l10n.t('Notification Message'),
valuePath : 'notificationMessage',
cellComponent : 'ui-table/cell/cell-title-message',
extraValuePaths : ['notificationTitle'],
Expand All @@ -42,13 +42,13 @@ get columns() {
}
},
{
name : 'Options',
name : this.l10n.t('Options'),
valuePath : 'option',
extraValuePaths : ['mailStatus', 'notificationStatus', 'userControlStatus'],
cellComponent : 'ui-table/cell/admin/messages/cell-options'
},
{
name : 'Time/Date Sent Out',
name : this.l10n.t('Time/Date Sent Out'),
valuePath : 'sentAt',
headerComponent : 'tables/headers/sort',
isSortable : true,
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/admin/reports/system-logs/activity-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
get columns() {
return [
{
name : 'Actor',
name : this.l10n.t('Actor'),
valuePath : 'actor',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Time',
name : this.l10n.t('Time'),
valuePath : 'time',
cellComponent : 'ui-table/cell/admin/reports/system-logs/activity-logs/cell-time',
headerComponent : 'tables/headers/sort',
isSortable : true

},
{
name : 'Actions',
name : this.l10n.t('Actions'),
valuePath : 'action'
}];
}
Expand Down
8 changes: 4 additions & 4 deletions app/controllers/admin/reports/system-logs/mail-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
get columns() {
return [
{
name : 'To',
name : this.l10n.t('To'),
valuePath : 'recipient',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Time',
name : this.l10n.t('Time'),
valuePath : 'time',
cellComponent : 'ui-table/cell/admin/reports/system-logs/activity-logs/cell-time',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Actions',
name : this.l10n.t('Actions'),
valuePath : 'action',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Message',
name : this.l10n.t('Message'),
valuePath : 'message',
extraValuePaths : ['subject'],
cellComponent : 'ui-table/cell/admin/reports/system-logs/mail-logs/cell-mail-message'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
get columns() {
return [
{
name : 'For',
name : this.l10n.t('For'),
valuePath : 'user',
cellComponent : 'ui-table/cell/admin/reports/system-logs/notification-logs/cell-for'
},
{
name : 'Time',
name : this.l10n.t('Time'),
valuePath : 'receivedAt',
cellComponent : 'ui-table/cell/admin/reports/system-logs/notification-logs/cell-time',
headerComponent : 'tables/headers/sort',
isSortable : true
},
{
name : 'Actions',
name : this.l10n.t('Actions'),
valuePath : 'title'
},
{
name : 'Message',
name : this.l10n.t('Message'),
valuePath : 'message',
cellComponent : 'ui-table/cell/admin/reports/system-logs/notification-logs/cell-sanitize'
}
Expand Down
22 changes: 11 additions & 11 deletions app/controllers/admin/sales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,67 +10,67 @@ export default class IndexController extends Controller.extend(AdminSalesMixin,
get columns() {
return [
{
name : 'Events',
name : this.l10n.t('Events'),
valuePath : 'name',
isSortable : true,
headerComponent : 'tables/headers/sort'
},
{
name : 'Event Date',
name : this.l10n.t('Event Date'),
valuePath : 'startsAt',
isSortable : true,
headerComponent : 'tables/headers/sort',
extraValuePaths : ['timezone'],
cellComponent : 'ui-table/cell/cell-simple-date'
},
{
name : 'Completed Orders',
name : this.l10n.t('Completed Orders'),
headerComponent : 'tables/headers/sort',
color : 'green',
subcolumns : [
{
name : 'Tickets',
name : this.l10n.t('Tickets'),
valuePath : 'sales.completed.ticket_count',
width : 30
},
{
name : 'Sales',
name : this.l10n.t('Sales'),
valuePath : 'sales.completed.sales_total',
extraValuePaths : ['paymentCurrency'],
cellComponent : 'ui-table/cell/admin/sales/cell-amount'
}
]
},
{
name : 'Placed Orders',
name : this.l10n.t('Placed Orders'),
color : 'blue',
headerComponent : 'tables/headers/sort',
subcolumns : [
{
name : 'Tickets',
name : this.l10n.t('Tickets'),
valuePath : 'sales.placed.ticket_count',
width : 30
},
{
name : 'Sales',
name : this.l10n.t('Sales'),
valuePath : 'sales.placed.sales_total',
extraValuePaths : ['paymentCurrency'],
cellComponent : 'ui-table/cell/admin/sales/cell-amount'
}
]
},
{
name : 'Pending Orders',
name : this.l10n.t('Pending Orders'),
color : 'yellow',
headerComponent : 'tables/headers/sort',
subcolumns : [
{
name : 'Tickets',
name : this.l10n.t('Tickets'),
valuePath : 'sales.pending.ticket_count',
width : 30
},
{
name : 'Sales',
name : this.l10n.t('Sales'),
valuePath : 'sales.pending.sales_total',
extraValuePaths : ['paymentCurrency'],
cellComponent : 'ui-table/cell/admin/sales/cell-amount'
Expand Down
16 changes: 8 additions & 8 deletions app/controllers/admin/sales/invoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
get columns() {
return [
{
name : 'Invoice #',
name : this.l10n.t('Invoice #'),
headerComponent : 'tables/headers/sort',
isSortable : true,
valuePath : 'identifier',
extraValuePaths : ['invoicePdfUrl'],
cellComponent : 'ui-table/cell/events/cell-download-invoice'
},
{
name : 'Event',
name : this.l10n.t('Event'),
valuePath : 'event.name',
isSortable : true,
headerComponent : 'tables/headers/sort'
},
{
name : 'Invoice Date',
name : this.l10n.t('Invoice Date'),
valuePath : 'issuedAt',
isSortable : true,
headerComponent : 'tables/headers/sort',
Expand All @@ -31,7 +31,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
}
},
{
name : 'Due Date',
name : this.l10n.t('Due Date'),
valuePath : 'dueAt',
cellComponent : 'ui-table/cell/cell-date',
options : {
Expand All @@ -40,26 +40,26 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
}
},
{
name : 'Amount',
name : this.l10n.t('Amount'),
valuePath : 'amount',
extraValuePaths : ['event'],
cellComponent : 'ui-table/cell/events/cell-amount',
isSortable : true,
headerComponent : 'tables/headers/sort'
},
{
name : 'Sent To',
name : this.l10n.t('Sent To'),
valuePath : 'user',
cellComponent : 'ui-table/cell/admin/sales/invoice-user'
},
{
name : 'Status',
name : this.l10n.t('Status'),
valuePath : 'status',
isSortable : true,
headerComponent : 'tables/headers/sort'
},
{
name : 'Action',
name : this.l10n.t('Action'),
valuePath : 'identifier',
extraValuePaths : ['status'],
cellComponent : 'ui-table/cell/events/cell-action'
Expand Down
Loading

0 comments on commit 4f1edd9

Please sign in to comment.