Closed Bug 462500 Opened 17 years ago Closed 16 years ago

value, alt, and title values won't be translated when interactive translation is on

Categories

(support.mozilla.org :: Localization, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: djst, Assigned: ecooper)

References

()

Details

(Whiteboard: tiki_bug, tiki_upstreamed)

Attachments

(3 files)

As the attached screenshot is showing, the string "Edit language table" is actually already translated into fy-NL as "Bewurkje taaltabel", but the button still says "Edit language table". In other words, the string for that button text is not being localized for some reason. There are other examples of this, e.g. buttons for "Add", "Search", etc. All on that same page.
Target Milestone: 0.8 → 0.9
Target Milestone: 0.9 → 1.0
It seems like this only occurs on buttons when the interactive UI translation mode is on.
After a bit of investigation, I found that strings inside alt, title, or value attributes (<input type="submit" value="{tr}Save{/tr}"/>) won't be translated unless interactive param is used in the tr block when the interactive translation mode is on. We should be able to fix this with some sed magic.
Summary: Some localized strings aren't used in the templates → value, alt, and title values won't be translated when interactive translation is on
I should emphasize that this only occurs when interactive translation mode is on, and is typically only visible on buttons.
This will only "fix" buttons. alt and title attributes will remain untranslated for the time being as a different approach needs to be taken with them...most likely changing the {tr} blocks in the templates.
Attachment #367437 - Flags: review?(laura)
Attachment #367437 - Flags: review?(laura) → review+
r23472/r23473 It can be verified using David's example, or visiting any page with 'submit buttons' while interactive translation mode is on. We should make extra sure no regressions are caused by this. Thankfully, I haven't seen any locally.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Verified FIXED
Status: RESOLVED → VERIFIED
Whiteboard: tiki_bug
Value was already resolved, added title and alt.
Whiteboard: tiki_bug → tiki_bug, tiki_upstreamed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: