gitlab-org--gitlab-foss/rubocop
Bob Van Landuyt 08c0a1b852 Reject ruby interpolation in externalized strings
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' }
2018-08-25 18:43:21 +02:00
..
cop Reject ruby interpolation in externalized strings 2018-08-25 18:43:21 +02:00
migration_helpers.rb Add cop for use of remove_column 2017-12-11 16:34:51 +00:00
rubocop.rb Reject ruby interpolation in externalized strings 2018-08-25 18:43:21 +02:00
spec_helpers.rb Introduce spec/fast_spec_helper.rb to run spec files that don't rely on the whole Rails env 2018-04-23 12:20:30 +02:00