Closed Bug 400667 Opened 17 years ago Closed 16 years ago

Static page titles are not localizable

Categories

(addons.mozilla.org Graveyard :: Localization, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: fiotakis, Assigned: wenzel)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; el-GR; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; el-GR; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8

Allthough there is a localized string for "Credits" in all languages (footer_credits string, messages.po file), AMO uses the english word for all valid and supported locales as a page title.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.


Expected Results:  
The page title should use the localized string instead.
This applies to all page views (that's appversions, credits, submissionhelp etc.) because as you can see in site/app/controllers/pages_controller.php:61 it uses a generic display function to set the title to the pagename with the first letter capitalized (so there's no localization at all).

site/app/controllers/pages_controller.php:86
$title = ucfirst($path[$count - 1]);

Maybe something like using the pagename as part of the msgid would be a good workaround (credits_pagetitle, appversions_pagetitle etc.)? Would have to update all of the po files too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: trivial → minor
Hardware: PC → All
Summary: The localized string for "Credits" is not displayed as the page title → Static page titles are not localizable
Blocks: 462481
I'll fix it for the 4.0.3 milestone. Will probably make a switch statement for the page title, defaulting to the current behavior.
Assignee: nobody → fwenzel
No longer blocks: 462481
Target Milestone: --- → 4.0.3
Blocks: 462481
Status: NEW → ASSIGNED
Comment on attachment 346289 [details] [diff] [review]
Possibility to localize page titles, incl. titles for the existing pages

I'd rather have the title in the .thtml files somehow but I can't think of a clean way to do it.  Them's the breaks I guess.
Attachment #346289 - Flags: review?(clouserw) → review+
Committed to r19531. l10n merged out to all locales in r19533.
Keywords: push-needed
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Fred: ok to verify this as fixed since it was used to fix bug 462481, right?
Yes, since that bug was verifiable, this one is fixed by definition too. :)
Thanks Fred; verified fixed.
Status: RESOLVED → VERIFIED
Has been pushed live last night.
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: