Commit graph

18 commits

Author SHA1 Message Date
GitLab Bot
e91cb68359 Add latest changes from gitlab-org/gitlab@master 2020-12-09 15:10:12 +00:00
GitLab Bot
37699393e9 Add latest changes from gitlab-org/gitlab@master 2020-11-13 15:09:24 +00:00
GitLab Bot
a66475b6be Add latest changes from gitlab-org/gitlab@master 2020-09-11 21:08:44 +00:00
GitLab Bot
2c171fdd72 Add latest changes from gitlab-org/gitlab@master 2020-07-22 12:09:42 +00:00
GitLab Bot
c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot
33c89fa9c7 Add latest changes from gitlab-org/gitlab@master 2019-11-25 03:06:19 +00:00
Bob Van Landuyt
17fc178cb5 Correctly translate all forms in tests 2018-06-15 14:58:47 +02:00
Bob Van Landuyt
3b5ce6945d Validate PO-variable usage in message ids
That way we can detect incorrect usage before the strings are added to
Crowdin for translation
2018-06-15 14:58:46 +02:00
Bob Van Landuyt
ca065e493e Forbids combining named and unnamed variables in gitlab.pot
This would break with an argument error when interpolating using
`sprintf` in ruby.
2018-06-15 14:58:46 +02:00
Bob Van Landuyt
7199e882db Only require simple_po_parser in rake task that needs it
That way we don't need to install it in production, since it's really
not needed there.
2017-09-04 08:30:10 +02:00
Bob Van Landuyt
4761235f69 Validate unescaped % chars in PO files 2017-09-01 13:44:10 +02:00
Bob Van Landuyt
538104bdd1 Fetch all translation keys using a regex 2017-08-31 21:13:02 +02:00
Bob Van Landuyt
abe198723d Take nplurals into account when validating translations. 2017-08-31 21:13:02 +02:00
Bob Van Landuyt
2c4f9b7a73 Check for newlines in different methods on TranslationEntry 2017-08-31 21:13:02 +02:00
Bob Van Landuyt
f35a5d0d99 Split translation & metadata entries into classes 2017-08-31 21:13:01 +02:00
Bob Van Landuyt
c6d969949e Validate the number of plurals in an entry 2017-08-31 21:13:01 +02:00
Bob Van Landuyt
cdaf1072da Move detailed information of an entry into a separate class 2017-08-31 21:13:01 +02:00
Bob Van Landuyt
0fa0ed7d85 Move PoLinter into Gitlab::I18n 2017-08-31 21:13:00 +02:00
Renamed from spec/lib/gitlab/po_linter_spec.rb (Browse further)