Closed Bug 879114 Opened 13 years ago Closed 13 years ago

Can not view API/ DOM list in Bahasa Indonesia

Categories

(Developer Documentation Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pieteru_insekai, Assigned: sheppy)

Details

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

What did you do? ================ 1. Edit the web page 2. Save edited page 3. But can not view list of API What happened? ============== I do not know, i think it's because {{APIListAlpha(1)}} has a broken link. What should have happened? ========================== Check the link of {{APIListAlpha(1)}} Is there anything else we should know? ======================================
Sheppy, is this a content issue?
Assignee: nobody → eshepherd
Group: websites-security
Flags: needinfo?(eshepherd)
Product: Mozilla Developer Network → Developer Documentation
I don't know what page he's referring to. pieteru_insekai: Where are you using the {{APIListAlpha}} macro? Got a URL for me? You will only see a list of links if there are subpages to the page you use it on.
Flags: needinfo?(eshepherd)
It would be probably here. https://developer.mozilla.org/id/docs/Web/API You must either modify the template or use instead a static HTML.
(In reply to ghost@ethertank.jp from comment #3) > It would be probably here. > > https://developer.mozilla.org/id/docs/Web/API > > You must either modify the template or use instead a static HTML. I still don't understand the problem. As long as the content is put into position it ought to just work.
(In reply to pieteru_insekai from comment #5) > Here is the link that I > mean...https://developer.mozilla.org/en-US/docs/Web/API?menu Are you trying to duplicate that page into the /id/ locale? That page itself is working fine as far as I can see...
@Seppy: No...I translated it into bahasa indonesia but I can not see the API list in Bahasa Indonesia page.
OK, the problem is that you're not specifying a backup locale when calling APIListAlpha, so since there are no subpages to the id/docs/Web/API page, there's no output. (There was also a small bug in the macro, which I've now fixed). I've changed the APIListAlpha invocation to: {{APIListAlpha(1, "", "", "en-US")}} This causes it to use the English pages when there are none translated into Bahasa Indonesia. Also, on a personal note, I'm excited to see action on a Bahasa translation! I lived in Sumatra for five years as a child, so I've always had a special place in my heart for Indonesia. :)
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Ooo...that's so cool. I'm glat to know you Mr. Sheppy.
Mr. Sheppy, what can I do so that problem never happen again? Is I do must backup into locale?
All you need to do is be sure to specify a backup locale when calling APIListAlpha, as shown in c#8. That will sub in links to that locale (usually English) if the pages are missing from your locale.
Today I check that page, but APIListAlpha still missing.
Oops. I made a later change to that page to fix a bug happening on English pages and broke the fix I'd made for you. Fixed again. :)
Great...thanks. I will translate another page....Yeeeay :)
You need to log in before you can comment on or make changes to this bug.