Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to display Hacks blog on our language(ko) on main page of MDN on our language(ko)

7 views
Skip to first unread message

hoo...@gmail.com

unread,
Apr 23, 2017, 2:32:51 AM4/23/17
to
I'll very thank you if you let me know how or what I have to change source code or configurations to display our own hacks blog on the main page of MDN on our language.

- our own hacks: http://hacks.mozilla.or.kr
- MDN Korean ver.: https://developer.mozilla.org/ko/

jwhi...@mozilla.com

unread,
Apr 30, 2017, 2:51:40 PM4/30/17
to
There are some old bugs for localizing Mozilla Hacks:

https://bugzilla.mozilla.org/show_bug.cgi?id=652313 - Add Localization Support for hacks.mozilla.org
https://bugzilla.mozilla.org/show_bug.cgi?id=785107 - Implement localization support for Mozilla Hacks

A lot of those bugs are from when the Hacks blog was maintained by the MDN team. If those don't apply, you should start with a "request a feature" bug:

https://bugzilla.mozilla.org/form.mdn

MDN has a feeder application for configuring, fetching, and storing feeds:

https://github.com/mozilla/kuma/tree/master/kuma/feeder

This declares a few models:
* Feed - configures a feed (name, URL)
* Bundle - a collection of feeds for fetching and display
* Entry - Item in a feed

There may have been more feeds in the past, but I think the only remaining one is on the homepage:

https://github.com/mozilla/kuma/blob/master/kuma/core/sections.py#L39-L46
https://github.com/mozilla/kuma/blob/master/kuma/landing/views.py#L14-L16
https://github.com/mozilla/kuma/blob/master/kuma/landing/jinja2/landing/homepage.html#L141-L161

The complete code would be:
- Propose twitter feeds for Korean (or use defaults)
- Customize the homepage view to use different RSS and twitter bundles when displaying Korean
- Add periodic task to fetch the Korean feeds
- Add Django tests
- Add Functional tests
- Add Bundle definitions to the sample database

This could be mostly contributor work, but will require some staff work. If I was touching the feed code anyway, I would probably rework the feed code to remove unused features, rewrite Django tests, etc.

- jwhitlock
0 new messages