-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error on conflicting plural messages #400
Comments
The extractor is comparing file contents and not using something like mtime: gettext/lib/gettext/extractor.ex Line 254 in b41445e
Can you replace it with a normal extract command and echo a git diff to see the differences? |
Thank you!! I found the issue with your suggestions but i stil don't know why it's happening only in CI. The problem was that we had a $ mix gettext.extract
Compiling 131 files (.ex)
Extracted priv/gettext/default.pot
$ git diff
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot
index e377ab1..ee57d0c 100644
--- a/priv/gettext/default.pot
+++ b/priv/gettext/default.pot
@@ -1231,7 +1231,7 @@ msgstr ""
#: lib/app/live/calendar_live.ex
#, elixir-autogen, elixir-format
msgid "singular"
-msgid_plural "%{count} plural"
+msgid_plural "other plural"
msgstr[0] ""
msgstr[1] "" I tried with both Elixir 1.16 and 1.17 locally. We're using the latest gettext version 0.26.1 Edit: |
Oh, we should definitely error when different plural messages are provided. |
mix gettext.extract --check-up-to-date
fails with cached _build
folder in CI
Hi,
i dont't know if this is really a
gettext
issue but when we cache the_build
folder in our GitlLab CI Pipeline the commandmix gettext.extract --check-up-to-date
although it runs perfectly fine locally.I suspect some
mtime
issues because the cache is restored after the repo is cloned.Any ideas on how to prevent this?
The Job definition
The text was updated successfully, but these errors were encountered: