Skip to content

Commit b0848db

Browse files
committed
Oops, forgot to use i18n in some places
1 parent f6aa847 commit b0848db

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

app/assets/javascripts/admin/models/staff_action_log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Discourse.StaffActionLog = Discourse.Model.extend({
1616
formattedDetails: function() {
1717
var formatted = "";
1818
if (this.get('email')) {
19-
formatted += "<b>Email:</b> " + this.get('email') + "<br/>";
19+
formatted += "<b>" + I18n.t("email") + ":</b> " + this.get('email') + "<br/>";
2020
}
2121
if (this.get('ip_address')) {
2222
formatted += "<b>IP:</b> " + this.get('ip_address') + "<br/>";

app/assets/javascripts/admin/templates/logs/blocked_emails.js.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
</tbody>
2525
</table>
2626
{{else}}
27-
No results.
27+
{{i18n search.no_results}}
2828
{{/if}}
2929
{{/if}}

app/assets/javascripts/admin/templates/logs/staff_action_logs.js.handlebars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
{{#if showFullDetails}}
3636
{{details}}
3737
<br/>
38-
<a {{action toggleFullDetails this}}>Less</a>
38+
<a {{action toggleFullDetails this}}>{{i18n less}}</a>
3939
{{else}}
40-
<a {{action toggleFullDetails this}}>More</a>
40+
<a {{action toggleFullDetails this}}>{{i18n more}}</a>
4141
{{/if}}
4242
</td>
4343
</tr>
4444
{{/each}}
4545
</tbody>
4646
</table>
4747
{{else}}
48-
No results.
48+
{{i18n search.no_results}}
4949
{{/if}}
5050
{{/if}}

config/locales/client.en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ en:
9898
or: "or"
9999
now: "just now"
100100
read_more: 'read more'
101+
more: "More"
102+
less: "Less"
101103

102104
in_n_seconds:
103105
one: "in 1 second"

0 commit comments

Comments
 (0)