From 05bc63b102c3d2fa3e7265a2220aa21e4a5c6a9e Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Wed, 8 May 2013 09:13:10 +0200 Subject: [PATCH] Localize admin API section --- .../javascripts/admin/templates/api.js.handlebars | 14 ++++++-------- config/locales/client.en.yml | 7 +++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/admin/templates/api.js.handlebars b/app/assets/javascripts/admin/templates/api.js.handlebars index fb264b6602f..df5c724e9d5 100644 --- a/app/assets/javascripts/admin/templates/api.js.handlebars +++ b/app/assets/javascripts/admin/templates/api.js.handlebars @@ -1,11 +1,9 @@ - -

API Information

+

{{i18n admin.api.long_title}}

{{#if content.keyExists}} - Key: {{content.key}} -

Keep this key secret, all users that have it may create arbirary posts on the forum as any user.

+ {{i18n admin.api.key}}: {{content.key}} + +

{{{i18n admin.api.note_html}}}

{{else}} -

Your API key will allow you to create and update topics using JSON calls.

- +

{{{i18n admin.api.info_html}}}

+ {{/if}} -

- diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index f7ba5a66e78..c0dbe6ae233 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -903,6 +903,13 @@ en: api: title: "API" + long_title: "API Information" + key: "Key" + generate: "Generate API Key" + regenerate: "Regenerate API Key" + info_html: "Your API key will allow you to create and update topics using JSON calls." + note_html: "Keep this key secret, all users that have it may create arbitrary posts on the forum as any user." + customize: title: "Customize" long_title: "Site Customizations"