Closed Bug 394164 Opened 17 years ago Closed 14 years ago

make download page localizable

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pascalc, Assigned: pascalc)

Details

The current transition page for downloads on mozilla.com giving steps on how to install firefox is all built client-side with javascript, which make it not localizable: http://svn.mozilla.org/projects/mozilla.com/trunk/en-US/products/download.html I wrote another version PHP based to replace the current on which will make it localizable: http://svn.mozilla.org/projects/mozilla.com/trunk/en-US/products/download2.html Translations would just be a text file like this one: http://svn.mozilla.org/projects/mozilla.com/trunk/fr/includes/l10n/download.lang If we don't have a translation in the /{locale}/l10n/ folder, the script falls back to English. Still a work in progress, feedback welcome.
I'm all for moving our crazy client-side javascript stuff over to PHP where possible. Is it possible to keep the english versions of the strings inline and mark them as translatable there, rather than pulling all of the strings out into an array at the top of the page?
the strings are not inline so as to allow a common template for XP/Mac, so we can put the strings inline but it means having separate templates in the switch cases.
Adding Kohei...
Assignee: nobody → pascalc
I have updated the page to fix the following issues: - uses the new javascript function for delayed downloading to be compatible with IE/Safari (taken from the current download page) - basic parameter check : if the download parameters, or the OS isn't a supported one, it redirects to the home page - it checks if the 'step1.png' image is in the /{locale}/img/... folder, if it is not it uses the en-US images instead, this way we don't have to have all the screenshots ready, we just have to add them when they are ready in the right folders The main remaining localization issue is I think the 1.2.3.4 image which will not work with RTL languages, so we would need to use real text instead or a second image with some clever CSS like htm[rtl] {background-image...}, Steven what do you prefer ?
Can we close this bug?
yes, we have transition pages set up.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.