Localize admin API section
This commit is contained in:
parent
6b536dcde5
commit
05bc63b102
|
@ -1,11 +1,9 @@
|
|||
<!-- Hold off on localizing for a few days while I finalize this page -->
|
||||
<h3>API Information</h3>
|
||||
<h3>{{i18n admin.api.long_title}}</h3>
|
||||
{{#if content.keyExists}}
|
||||
<strong>Key:</strong> {{content.key}} <button {{action regenerateKey target="content"}}>Regenerate API Key</button>
|
||||
<p>Keep this key <strong>secret</strong>, all users that have it may create arbirary posts on the forum as any user.</p>
|
||||
<strong>{{i18n admin.api.key}}:</strong> {{content.key}}
|
||||
<button {{action regenerateKey target="content"}}>{{i18n admin.api.regenerate}}</button>
|
||||
<p>{{{i18n admin.api.note_html}}}</p>
|
||||
{{else}}
|
||||
<p>Your API key will allow you to create and update topics using JSON calls.</p>
|
||||
<button {{action generateKey target="content"}}>Generate API Key</button>
|
||||
<p>{{{i18n admin.api.info_html}}}</p>
|
||||
<button {{action generateKey target="content"}}>{{i18n admin.api.generate}}</button>
|
||||
{{/if}}
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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 <strong>secret</strong>, all users that have it may create arbitrary posts on the forum as any user."
|
||||
|
||||
customize:
|
||||
title: "Customize"
|
||||
long_title: "Site Customizations"
|
||||
|
|
Loading…
Reference in New Issue