#34602: Fail gettext when no translation file is found or when no msgid is found in the given translation file -------------------------------------+------------------------------------- Reporter: Gergely Kalmár | Owner: nobody Type: Uncategorized | Status: closed Component: | Version: 4.2 Internationalization | Severity: Normal | Resolution: needsinfo Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Natalia Bidart):
* status: new => closed * resolution: => needsinfo Comment: Replying to [ticket:34602 Gergely Kalmár]: > Currently gettext simply falls back to inserting its argument when there is no appropriate translation file or when the translation file does not contain an appropriate msgid. Could you please expand this explanation a bit? I'm not completely sure what you mean. If you could provide concrete examples, commands run, etc, that will certainly help us triage this ticket report. > For this reason it would be preferable if we had the option to fail gettext and its variants instead of using a fallback. The only exception is if the current language is the same as the LANGUAGE_CODE setting, in which case it should be fine to display the argument of gettext as a fallback. Where would this option be added? as a setting? what would the failure look like? Without a complete understanding of this report, it may look like this is a new feature request? If so, would you mind following [https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and- features/#requesting-features the documented guidelines for requesting features]? If this is not a feature request, could you provide a minimal django app and instructions to reproduce the issue? Closing as needsinfo until we get a clearer understanding of the report. Thank you! -- Ticket URL: <https://code.djangoproject.com/ticket/34602#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070188721be1f0-e5e0f90a-f8bd-4235-b6da-e22c14504a43-000000%40eu-central-1.amazonses.com.