summaryrefslogtreecommitdiff
path: root/core/js
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-02-09 08:42:13 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-02-09 08:42:13 +0000
commitdce6548431c4d61ab6c532375a0f030d8de72fd1 (patch)
tree2f39eda105cc270f80580452ab36fac72b6a1375 /core/js
parentfa1f49d99a30a029d1a4e09b820c639d639f6283 (diff)
Add local localization functionality. Local = no means to upload / download translations to a translation server yet.
- Added an outgoing_translations table to store translations from the local translation UI. - I18n class is checking incoming_ and outgoing_translations for translations, giving the latter priority. - Not handling plural strings in the translations UI yet.
Diffstat (limited to 'core/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