Closed
Bug 653876
Opened 13 years ago
Closed 11 years ago
[bedrock] Figure out localizable images
Categories
(www.mozilla.org :: General, defect, P1)
www.mozilla.org
General
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?
Comment 1•12 years ago
|
||
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?
Comment 2•12 years ago
|
||
The main need for localized images are screenshots, usually the localizer provides them .
Updated•12 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Updated•12 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Updated•12 years ago
|
Blocks: bedrock-l10n
Updated•12 years ago
|
Priority: -- → P1
Whiteboard: u=user c=l10n p=
Comment 3•12 years ago
|
||
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 → --
Comment 4•12 years ago
|
||
This bug is not fixed, we can't have a template check if a localized image exists before it falls back to English
Updated•11 years ago
|
Priority: -- → P3
Updated•11 years ago
|
Priority: P3 → P1
Whiteboard: u=user c=l10n p=
Comment 5•11 years ago
|
||
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 → ---
Assignee | ||
Comment 6•11 years ago
|
||
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
Assignee | ||
Comment 7•11 years ago
|
||
Pointer to Github pull-request
Comment 8•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/36f1cd0c26fcd22397800e15736ee1e5aa86a5b7 Fix bug 653876: Add l10n helper for images.
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 9•11 years ago
|
||
Please add QA repro steps or mark as [qa-], thanks.
Assignee | ||
Comment 10•11 years ago
|
||
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-]
Comment 11•11 years ago
|
||
pmac, we do have localized screenshots on the Firefox OS work
Assignee | ||
Comment 12•11 years ago
|
||
(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?
Comment 13•11 years ago
|
||
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.
Description
•