From dce6548431c4d61ab6c532375a0f030d8de72fd1 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Mon, 9 Feb 2009 08:42:13 +0000 Subject: 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. --- core/js/l10n_client.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/js/l10n_client.js') 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 -- cgit v1.2.3