summaryrefslogtreecommitdiff
path: root/core/js/l10n_client.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/l10n_client.js')
-rw-r--r--core/js/l10n_client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/l10n_client.js b/core/js/l10n_client.js
index 7d2ca5e3..f43671f1 100644
--- a/core/js/l10n_client.js
+++ b/core/js/l10n_client.js
@@ -128,6 +128,7 @@ Gallery.behaviors.l10nClient = function(context) {
var index = $('#l10n-client-string-select li').index(this);
$('#l10n-client-string-editor .source-text').text(Gallery.l10nClient.getString(index, 'source'));
+ $("#gL10nClientSaveForm input[name='l10n-message-source']").val(Gallery.l10nClient.getString(index, 'source'));
$('#gL10nClientSaveForm #l10n-edit-target').val(Gallery.l10nClient.getString(index, 'translation'));
Gallery.l10nClient.selected = index;
@@ -173,6 +174,7 @@ Gallery.behaviors.l10nClient = function(context) {
// Empty input fields.
$('#l10n-client-string-editor .source-text').html('');
$('#gL10nClientSaveForm #l10n-edit-target').val('');
+ $("#gL10nClientSaveForm input[name='l10n-message-source']").val('');
},
error: function(xmlhttp) {
// TODO: Localize this message