Skip to content
Snippets Groups Projects
Commit 09e9bb13 authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: Fix javascript translations

And add translations for the draft mechanism
parent d464c1c7
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,11 @@ RedactorPlugins.draft = {
.css({'position':'absolute','top':'3em','right':'0.5em'})
.hide()
.append($('<span>')
.text('Draft Saved'));
.text(__('Draft Saved')));
// Float the [Draft Saved] box with the toolbar
this.$toolbar.append(this.$draft_saved);
if (this.opts.draftDelete) {
var trash = this.buttonAdd('deleteDraft', 'Delete Draft', this.deleteDraft);
var trash = this.buttonAdd('deleteDraft', __('Delete Draft'), this.deleteDraft);
this.buttonAwesome('deleteDraft', 'icon-trash');
trash.parent().addClass('pull-right');
trash.addClass('delete-draft');
......
......@@ -201,7 +201,7 @@ class i18n_Compiler extends Module {
// Add in translation of javascript strings
$phrases = array();
if ($mo && ($js = $this->__getAllJsPhrases())) {
$mo = unserialize($mo);
$mo = (eval (substr($mo, 5))); # Chop off <?php
foreach ($js as $c) {
foreach ($c['forms'] as $f) {
$phrases[$f] = @$mo[$f] ?: $f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment