mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
ea8b5c18db
Admins can now edit translations in different languages without having to change their locale. We display a warning when there's a fallback language set.
24 lines
718 B
Handlebars
24 lines
718 B
Handlebars
<div class="edit-site-text">
|
|
<div class="title">
|
|
<h3>{{siteText.id}}</h3>
|
|
</div>
|
|
|
|
<div class="title">
|
|
<h4>{{i18n "admin.site_text.locale"}} {{localeFullName}}</h4>
|
|
</div>
|
|
|
|
{{expanding-text-area value=buffered.value rows="1" class="site-text-value"}}
|
|
|
|
{{#save-controls model=siteText action=(action "saveChanges") saved=saved saveDisabled=saveDisabled}}
|
|
{{#if siteText.can_revert}}
|
|
{{d-button action=(action "revertChanges") label="admin.site_text.revert" class="revert-site-text"}}
|
|
{{/if}}
|
|
{{/save-controls}}
|
|
|
|
{{#link-to "adminSiteText.index" (query-params locale=locale) class="go-back"}}
|
|
{{d-icon "arrow-left"}}
|
|
{{i18n "admin.site_text.go_back"}}
|
|
{{/link-to}}
|
|
|
|
</div>
|