• Bob Van Landuyt's avatar
    Reject ruby interpolation in externalized strings · f613924b
    Bob Van Landuyt authored
    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' }
    f613924b
_issuable_by_email.html.haml 2.08 KB