From c187702bfe2c2dbc9614175db5cfa060936159bf Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 24 Sep 2010 20:48:23 -0400 Subject: I18N for web Performing I18N completely on the server, to leverage the existing gettext architecture. Also, the browser does not have access to the Language header. Added the additional po files for a set of required languages conflict with install/static/ipa.js was resolved. Note that the addition of the .po files in this patch is necessary. In order to get Transifex support, we need to update the LINGUAS file with the languages for which we want support. If we don't add the .po files in, they get automatically generated by the rpmbuild process. Our implementation of gettext has a bug in it (It might be F13 thing) where the the Plurals line is not getting correctly transformed, which causes a build failure. However, since the RPM would have the .po files anyway, we should revision control the ones we have, even if they are empty. Fixed the Bug reporting url to the original value. Corrected the Chartype encoding for UK --- install/static/ipa.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/static/ipa.js') diff --git a/install/static/ipa.js b/install/static/ipa.js index b7f98e8d..6000fb73 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -37,6 +37,7 @@ var ipa_ajax_options = { var ipa_jsonrpc_id = 0; /* IPA objects data in JSON format */ +var ipa_messages = {}; var ipa_objs = {}; @@ -55,7 +56,8 @@ function ipa_init(url, use_static_files, on_win, on_error) ipa_cmd('json_metadata', [], {}, function(data, status, xhr) { - ipa_objs = data.result.result; + ipa_objs = data.result.metadata; + ipa_messages = data.result.messages; if (on_win) on_win(data, status, xhr); }, on_error -- cgit