JDK-6699667 : deployJava.js locale needs to default to the browser locale, not just 'en'
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-05-09
  • Updated: 2010-05-11
  • Resolved: 2009-01-11
Related Reports
Duplicate :  
Description
deployJava.js has some URL to java.com but they are a link to 'en' locale only.
java.com has already been localized so deployJava.js needs be localized as well.
At least there is the ja deploymentToolkit page.

Comments
EVALUATION with some minor changes (ie, maintaining the locale variable so web page can set it), the suggested fix should be implement in 6u14
07-01-2009

SUGGESTED FIX % diff deployJava.js l10ndeployJava.js 53c53 < locale: 'en', --- > //locale: 'en', 70a71,79 > // default locale > getLocale: function() { > var html = document.getElementsByTagName('html')[0]; > if (html) { > var locale = html.getAttribute('xml:lang') || html.getAttribute('lang'); > if (!locale) locale = 'en' > } > return locale; > }, 230c239 < '&locale=' + deployJava.locale + --- > '&locale=' + deployJava.getLocale() + 718c727 < '&locale=' + deployJava.locale + --- > '&locale=' + deployJava.getLocale() + 735c744 < '&locale=' + deployJava.locale + --- > '&locale=' + deployJava.getLocale() +
09-05-2008