Closed Bug 858205 Opened 13 years ago Closed 13 years ago

Accidently added <p> tags to template

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tuxboy, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1. I accidentally added <p> tags to the JavaScript template for bn-BD locale. What happened? ============== Doesn't work What should have happened? ========================== Shoud've rendered Bangla! Is there anything else we should know? ====================================== https://developer.mozilla.org/bn-BD/docs/Template:JSGChapters
This template page is in the bn-BD locale, but templates cannot be translated in that way. All templates live under the en-US locale and require conditional branching code on the current locale in order to select translations: https://developer.mozilla.org/en-US/docs/Project:Introduction_to_KumaScript#Localizing_template_content
Templates currently only run via KumaScript when in the en-US language, so you'll want to create your template there. I see there's one there already, so it may be best to make this template a function that accepts the current locale and builds an array of strings that way. I'm going to add our head writer and template creator, Sheppy, to the thread to see what he thinks.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks! But, I cannot edit the templates. It gives me a permission error.
(In reply to Aniruddha Adhikary from comment #3) > Thanks! But, I cannot edit the templates. It gives me a permission error. Only a small group of users can edit templates. If you haven't been granted the permission to do so, you will get that error.
This kind of comes back to the issue of needing a way to have localizable strings for templates without requiring that localizers be able to edit templates. We have a bug open for this, although I don't have the number handy and a quick search didn't turn it up.
The translated documents without the sidebar looks quite odd and developers are missing stuff, can't they be fixed by someone privilleged if I provide the strings?
(In reply to Aniruddha Adhikary from comment #6) > The translated documents without the sidebar looks quite odd and developers > are missing stuff, can't they be fixed by someone privilleged if I provide > the strings? Yes, if you send me the strings and let me know which templates they're for, I'll insert them for you. Sorry, meant to offer to do that earlier and forgot!
Here goes the stuff for locale bn-BD - বাংলা (বাংলাদেশ) https://developer.mozilla.org/en-US/docs/Template:AppsLandingRightSide Localized template: http://pastebin.com/ytq0nLR2
(In reply to Aniruddha Adhikary from comment #8) > Here goes the stuff for locale bn-BD - বাংলা (বাংলাদেশ) > > https://developer.mozilla.org/en-US/docs/Template:AppsLandingRightSide > > Localized template: http://pastebin.com/ytq0nLR2 This one is done.
Feel free to email me any others, or file new bugs for them, as needed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.