Age | Commit message (Collapse) | Author |
|
|
|
This makes sure we build the correct variables for testing
translations.
When translating, we could be specifying the variables in different
forms for each id:
- In the singular we could be using a `%{hash}` interpolation
- In the plural we could be using a `%d` interpolation
This changes the tests to accommodate for that: We now use the
variables used in the relevant translation id as the source for the
variables we mix in in specs.
|
|
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
|
|
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
|
|
Enables frozen string for the following:
* lib/gitlab/hook_data/**/*.rb
* lib/gitlab/i18n/**/*.rb
* lib/gitlab/import/**/*.rb
* lib/gitlab/import_export/**/*.rb
* lib/gitlab/kubernetes/**/*.rb
* lib/gitlab/legacy_github_import/**/*.rb
* lib/gitlab/manifest_import/**/*.rb
* lib/gitlab/metrics/**/*.rb
* lib/gitlab/middleware/**/*.rb
Partially addresses gitlab-org/gitlab-ce#47424.
|
|
|
|
That way we can detect incorrect usage before the strings are added to
Crowdin for translation
|
|
This would break with an argument error when interpolating using
`sprintf` in ruby.
|
|
That way we don't need to install it in production, since it's really
not needed there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|