Closed Bug 653876 Opened 13 years ago Closed 11 years ago

[bedrock] Figure out localizable images

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wenzel, Assigned: pmac)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

In the context of localizable content blocks, we need a way to allow image localization *without* the localizer needing to upload an image to the main media/ directory.

This could be as simple as having a bunch of symlinks underneath /media/img/l10n:
de/ -> /templates/l10n/de/media/img
fr/ -> ...

That'd allow Apache to serve these images without config changes, while keeping the localizers' work confined to their directory on SVN.

We'd need to add a helper though that returns the correct URL depending on if the image exists in the translation directory or not.

Whacha think?
Do we still need something like this? Pascal has never mentioned it. Although we haven't really localized a lot of bedrock yet. Seems like we could add a symlink at /media/img/l10n to /locale and be done with it. Do we want to allow people to host stuff on mozilla.org like that though?
The main need for localized images are screenshots, usually the localizer provides them .
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Priority: -- → P1
Whiteboard: u=user c=l10n p=
Hi Pascal-

Could you please let us know if we need still need to do something here for L10N or if we can resolve?

Thx,
Jen
Priority: P1 → --
This bug is not fixed, we can't have a template check if a localized image exists before it falls back to English
Priority: -- → P3
Blocks: 870469
Priority: P3 → P1
Whiteboard: u=user c=l10n p=
Notes from requirements mtg today. Please add or edit anything missing or misconstrued:

Don’t override current media helper functionality

*create l10n directory

*specify en-US folder, not default

*output path to localized image with media URL prepending it

*will we ever need l10n specific JS file or other? Not in scope
**should be image only and we can do workaround if need any other media type

*for screenshots/banners image text needs to match alt-text

*do we want this helper to spit out path or image tag?

*needs to work for locales and locations (countries)
**will need to do something for geo as well but not in scope for teaser page.

*will file separate bug for location-based images

*discussion and decided against doing this client side
Assignee: nobody → pmac
Target Milestone: Future → ---
There was also universal agreement that we do *not* want this to be done in a way that would allow images onto the site without a check from the team. Localized images will be checked into the bedrock repo. The localizers producing the screenshots would just need to attach them to a bug, or if they're familiar with github, submit a pull-request. One of the team would then ensure the image was sized correctly and optimized before merging it into bedrock.
Status: NEW → ASSIGNED
Pointer to Github pull-request
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Please add QA repro steps or mark as [qa-], thanks.
Marking [qa-] as there are no uses of this facility yet. It's just a tool for the devs that is now ready to use. QA will be appropriate when we actually deploy some localized images.
Whiteboard: [qa-]
pmac, we do have localized screenshots on the Firefox OS work
(In reply to Pascal Chevrel:pascalc from comment #11)

Hmm... I guess that'd be up on demo2 then? I haven't seen much of that, but it would be a good spot to test it. Is there a separate bug for that work that could be more specifically tested Pascal?
yes, that's on demo2, localized screenshots is tracked in bug 884803
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: