Fast Gettext

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

    Favorites, Groups & Events

    Fast Gettext - Presentation Transcript

    1. FastGettext
    2. Hello my name is
      • Michael Grosser
      • Rathershort.com
    3. FastSimpleCleanSafeGettext
    4. FastGettext – GetText
      • GetText is a pile of spaghetticode
      • Entagled with AR/Rails/X
      • namespace: 34 vs 7
      • 9.17 times slower than FastGettext
      • 2884 KB larger
    5. FastGettext – Why use it?
      • _('Hello!')
      • Simpler, Safer, Faster, more Maintainable then t('view.messages.greeting.friendly')
    6. FastGettext – Simple?
      • Readable & clean code
      • Automatic translation finding (parsing + tests)
      • No defaults needed
    7. FastGettext – Safe?
      • No ”No translation found” for users, ever!
      • Always fallback to en
      • No fuzzy translations
      • No obsolete translations
    8. FastGettext – Fast?
      • 18 times faster
      • Small footprint: 0.136mb vs 7.12mb
      • Custom backends (.mo/.po/.yml/database...)
    9. FastGettext – Maintainable
      • Code is readable, no parallel yml lookup
      • If it is tested, translation is known
      • If it is not tested, everyone can see
    10. FastGettext – When not to use
      • Building plugins
      • Building huge frameworks others use
    11. FastGettext – Syntax
      • _('Hello %{name}') % :name=>user.name
      • _('available'): x n_('apple','apples',x)
      • s_('Car|Name') <-> s_('User|Name')
    12. FastGettext – gettext_i18n_rails
      • DEMO

    + grossergrosser, 11 months ago

    custom

    462 views, 0 favs, 0 embeds more stats

    FastGettext is ruby GetText but 9.17 times faster, more

    More info about this presentation

    © All Rights Reserved

    • Total Views 462
      • 462 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    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