Ticket #1579 (new enhancement)

Opened 6 years ago

Last modified 6 years ago

Research and implement i18n in planet

Reported by: ato Owned by: roh
Priority: low Component: planet.openmoko.org
Keywords: Cc:

Description

There has been some discussion that it would be useful to be able to view and subscribe to the planet such that you only see posts in languages you can read. I have looked into language classification a little and TextCat seems to do a decent job of at least splitting the english, german and french which three different languages at the moment. It supports classifying a wide variety of other languages too, but we haven't seen how it performs on them yet. I have an hourly updated example split feed.

Minh Ha Duong commented: 'Down-to-earth convenience also suggest that we need "I can read this language" checkboxes and cookies somewhere...'

I think we should be able to do this with only a little PlanetPlanet? modification. Maybe just change it to tag the posts with language in the HTML and have some javascript to hide unselected ones and store a cookie of preferences. I specifically went for a TextCat? implementation written in Python so that it would be easy to integrate.

I'm logging it here in case someone wants to have a go at it. Python source code to the example feed splitter is attached. It uses Thomas Magin's Python TextCat port.

Maybe if one of the Openmoko admins could post the Openmoko PlanetPlanet? configuration and template source used we could have a go at modifying them and send them back a patch?

Attachments

planet_split.tar.gz (127.8 KB) - added by ato 6 years ago.
Example language classifier and feed splitter

Change History

Changed 6 years ago by ato

Example language classifier and feed splitter

comment:1 in reply to: ↑ description Changed 6 years ago by roh

Replying to ato:
[...]

Maybe if one of the Openmoko admins could post the Openmoko PlanetPlanet? configuration and template source used we could have a go at modifying them and send them back a patch?

we have all skins and configs as long they do not contain passwords in svn.
please see source:/trunk/planet.openmoko.org for the planet specific templates and config

you can check out via svn co https://webdesign.openmoko.org/svn/trunk/planet.openmoko.org/ (note: https only)

on the general idea: i dunno if 'fuzzy language matching' is the best idea (from a practical view), of if we should rather just 'manually tag languages which we know will pop up' per feed.
but anyhow, i think we should keep 'cookies, javascript, etc' needed to a minimum. means it needs to continue to work even without (my personal pov).
as an optional add on it would of course be nice, but then i some tags or categories come into mind, since some people for sure rather fetch the rss and thus wouldnt see any js or html from the skin at all.
this is not meant a a discouragement, on the contrary, just some additional mindfood ;)

Note: See TracTickets for help on using tickets.