Arindam’s Weblog

Language filtering of diary entries!!

August 24, 2008 · 6 Comments

This feature was originally proposed by Dan Karran as a comment in one of my earlier posts. Anyway, so here we have “show all / filter by my language” tags in the user diaries’ pages. By default, all entries are shown. We can click on ‘filter by my language’ so as filter the posts by the locale selected by the user in his preferences. We can also have feeds for these filtered entries. The screen-shot of current diary entries page,

openstreetmap-language-filter-diary-entries

Image #1: openstreetmap-language-filter-diary-entries

And for this we need to specify the language of each diary entry. So new entry page has an option or rather a dropdown menu from where we select the language of the entry. This preference, by default takes the value of user’s current locale and is saved in language column of diary_entries table. The screen-shot of ‘new diary entry’ is as follows,

openstreetmap-new-diary-entry

Image #2: openstreetmap-new-diary-entry

Also put up your suggestions… :)

Categories: GSoC · OpenStreetMap · Programming · i18n · rails

6 responses so far ↓

  • Anonymous // August 24, 2008 at 1:45 am

    English(US) seems a bit perverse on a British-originated Web-site.

  • Arindam Ghosh // August 24, 2008 at 2:04 am

    Well, that was just on a test setup. Well, this can be changed to en-GB or more simply only ‘en’.

  • Arindam Ghosh // August 24, 2008 at 2:17 am

    I don’t know why planet osm aggregated only this one of the last three posts. So do check the previous updates…

  • fedorannouncement // August 24, 2008 at 2:20 am

    bangla banan gulo thik kore lekh :D

  • necaris // August 24, 2008 at 5:54 am

    > bangla banan gulo thik kore lekh :D

    Well, that’d be nice, but tbh it’s actually just really great to see Bangla content on the Net! Even if your post titles could be more creative ;-)

  • Dan Karran // August 26, 2008 at 9:06 pm

    That’s great, thanks for implementing that! :)

  • Like gas stations in rural Texas after 10 pm, comments are closed.