Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-10Add code review remarksMaƂgorzata Ksionek
2019-09-10Build correct variables for testing translationsBob Van Landuyt
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.
2019-03-06Adds the Rubocop ReturnNil copAndrew Newdigate
This style change enforces `return if ...` instead of `return nil if ...` to save maintainers a few minor review points
2018-11-21Eliminate duplicated wordsTakuya Noguchi
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2018-11-17Enable even more frozen string for lib/gitlabgfyoung
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.
2018-06-15Correctly translate all forms in testsBob Van Landuyt
2018-06-15Validate PO-variable usage in message idsBob Van Landuyt
That way we can detect incorrect usage before the strings are added to Crowdin for translation
2018-06-15Forbids combining named and unnamed variables in `gitlab.pot`Bob Van Landuyt
This would break with an argument error when interpolating using `sprintf` in ruby.
2017-09-04Only require `simple_po_parser` in rake task that needs itBob Van Landuyt
That way we don't need to install it in production, since it's really not needed there.
2017-09-01Validate unescaped `%` chars in PO filesBob Van Landuyt
2017-08-31Fetch all translation keys using a regexBob Van Landuyt
2017-08-31Take `nplurals` into account when validating translations.Bob Van Landuyt
2017-08-31Check for newlines in different methods on TranslationEntryBob Van Landuyt
2017-08-31Split translation & metadata entries into classesBob Van Landuyt
2017-08-31Validate the number of plurals in an entryBob Van Landuyt
2017-08-31Move detailed information of an entry into a separate classBob Van Landuyt
2017-08-31Move `PoLinter` into `Gitlab::I18n`Bob Van Landuyt