Skip to content
代码片段 群组 项目
  • Bob Van Landuyt's avatar
    f613924b
    Reject ruby interpolation in externalized strings · f613924b
    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' }
    f613924b
    历史
    Reject ruby interpolation in externalized strings
    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' }
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。