diff options
author | Adam Young <ayoung@redhat.com> | 2010-09-24 20:48:23 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-09-27 13:30:55 -0400 |
commit | c187702bfe2c2dbc9614175db5cfa060936159bf (patch) | |
tree | e6e8bdf9de5bae7c58ad403d18e18ec2df3a7366 /install/static/ipa.js | |
parent | 65b455edf97742a922e51a5d81001ce106ec0043 (diff) | |
download | freeipa.git-c187702bfe2c2dbc9614175db5cfa060936159bf.tar.gz freeipa.git-c187702bfe2c2dbc9614175db5cfa060936159bf.tar.xz freeipa.git-c187702bfe2c2dbc9614175db5cfa060936159bf.zip |
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
Diffstat (limited to 'install/static/ipa.js')
-rw-r--r-- | install/static/ipa.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 |