Rails I18n From The Trenches

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Rails I18n From The Trenches - Presentation Transcript

    1. Rails i18n From the Trenches Clemens Kofler
    2. Hi, I’m Clemens! (Clemens Kofler, clemensk)
    3. Today, I’m going to talk about ... • The latest developments in Ruby/Rails i18n • Current problems (in Rails) and potential future changes
    4. i18n
    5. http://guides.rails.info/i18n.html
    6. i18n basics in 2 minutes
    7. Do you like Gettext? (of course it’s fake)
    8. _ s_ p_ t n_ ns_ np_
    9. i18n news
    10. Additions in i18n 0.2.0 • translation procs • custom namespace separators • Ruby 1.9-style string interpolation • (symlinked translations)
    11. + a bunch of neat plugins (list at the end)
    12. Additions in i18n 0.2.0 • translation procs • custom namespace separators • Ruby 1.9-style string interpolation • (symlinked translations)
    13. bleeding edge
    14. Current edge • Base backend + module includes • Pluralization module • Cache module • Locale fallbacks module from Globalize 2 • Chain backend from Globalize 2 • Gettext support (experimental)
    15. Current edge • Base backend + module includes • Pluralization module • Cache module • Locale fallbacks module from Globalize 2 • Chain backend from Globalize 2 • Gettext support (experimental)
    16. Current problems • Tools • Data input • CLDR compliance • Some unfinished integration (Date/Time#to_s, labels) • Bad Rails implementations (AR Errors) • (Clean) routing i18n nearly impossible • (Gettext support / “enterprise-readiness”)
    17. Tools
    18. http://github.com/svenfuchs/i18n-tools
    19. Parsing dates/times is really hard (you can try out my experimental delocalize plugin)
    20. You can do something like this with translate_routes but it’s basically a really scary hack.
    21. i18n vs. Gettext?
    22. War? Not really.
    23. We are not Gettext (and we don’t want to be) ((ever))
    24. Recommendations
    25. The Setup • i18n edge • Translations from GitHub • (Globalize 2 for model translations) • (localized_dates for transparent date handling) • (delocalize for parsing localized input) • (translate_routes for i18n routing)
    26. Questions?
    27. Some resources • http://rails-i18n.org • http://guides.rails.info/i18n.html • http://github.com/svenfuchs/i18n • http://github.com/svenfuchs/rails-i18n • http://github.com/svenfuchs/i18n-tools • http://groups.google.com/group/rails-i18n • Pluralization rules: http://gist.github.com/106372
    28. clemens@railway.at http://www.railway.at http://github.com/clemens
    29. Image credits • http://www.sxc.hu/photo/708615 • http://www.flickr.com/photos/ferneyes/469259974/ • http://aceitapretzel.files.wordpress.com/2008/09/dexter-ap.jpg • http://www.flickr.com/photos/dunechaser/2936384313/ • http://www.festivalcervantino.gob.mx/Ficesmas/prensa/galerias/oct/12/ Hamletokok/images/061012_hamlet_20FGJ.jpg • http://www.flickr.com/photos/srgblog/1408923862/ • http://www.flickr.com/photos/purrr/126597849/

    + clemenskclemensk, 4 months ago

    custom

    705 views, 2 favs, 1 embeds more stats

    Slides from my talk at Rails Underground. Video fro more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 705
      • 692 on SlideShare
      • 13 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 17
    Most viewed embeds
    • 13 views on http://rails.pixnet.net

    more

    All embeds
    • 13 views on http://rails.pixnet.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories