make download page localizable

RESOLVED FIXED

Status

RESOLVED FIXED
12 years ago
6 years ago

People

(Reporter: pascalc, Assigned: pascalc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

12 years ago
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?
(Assignee)

Comment 2

12 years ago
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.

Comment 3

12 years ago
Adding Kohei...
Assignee: nobody → pascalc
(Assignee)

Comment 4

11 years ago
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?
(Assignee)

Comment 6

8 years ago
yes, we have transition pages set up.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Component: www.mozilla.org/firefox → www.mozilla.org
Product: Websites → Websites
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.