We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have just discovered that this project is no longer maintained. I'll therefore work to migrate to the recommended system.
However, for the record, when there are two identical msgids, one with a context and the other without, the one without context is ignored.
It is unique_translations that drops the missing translations.
unique_translations
mk = ->(ctx, id, str) { res = GetPomo::Translation.new res.msgctxt = ctx if ctx res.msgid = id res.msgstr = str res } translations = [ mk.(nil, 'Amount', 'Montant'), mk.('Invoice', 'Amount', 'Montant'), ] GetPomo.unique_translations(translations)
=>
[#<GetPomo::Translation:0x00007ffb57cac218 @msgctxt="Invoice", @msgid="Amount", @msgstr="Montant">]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have just discovered that this project is no longer maintained. I'll therefore work to migrate to the recommended system.
However, for the record, when there are two identical msgids, one with a context and the other without, the one without context is ignored.
It is
unique_translations
that drops the missing translations.=>
The text was updated successfully, but these errors were encountered: