• B
    Reject ruby interpolation in externalized strings · 08c0a1b8
    Bob Van Landuyt 提交于
    When using ruby interpolation in externalized strings, they can't be
    detected. Which means they will never be presented to be translated.
    
    To mix variables into translations we need to use `sprintf`
    instead.
    
    Instead of:
    
        _("Hello #{subject}")
    
    Use:
    
        _("Hello %{subject}) % { subject: 'world' }
    08c0a1b8
_how_to_setup_runner.html.haml 755 字节