Discussion: Use Gettext contexts instead of namespaces for new translations
Summary
With Gettext you can either prefix a string with a namespace using s_()
:
s_('AlertManagement|Open')
Or add a context as a separate argument using p_()
:
p_('AlertManagement', 'Open')
We currently use the first method, but the second method would be more readable, and also be more prominently displayed in Crowdin:
Using namespaces | Using contexts |
---|---|
![]() |
![]() |
Proposal
Always use contexts for newly added translations.
We can't easily convert existing translations since we'd lose pending translations from Crowdin.
Vote
Please react to the issue with
Edited by Markus Koller