Closed coffeebite closed 5 years ago
Please provide a rxgettext
input Ruby code that reproduces the problem.
I have a related PR https://github.com/ruby-gettext/gettext/pull/61 that simply always sorts by the msgid and disregards the msgctxt
@rgraff Can we close this?
PR #61 resolves the sorting error when a context is present. This PR also addresses the parsing of the context when the s_
method. I believe that's still an open issue. I don't know if this fix resolves it.
OK. We need a test case to reproduce this case.
@kou I believe the only change here that I didn't fix in PR #61 is that the parser will split calls to s_
to create a msgctxt and an msgid, similar to the p_
method. I believe that's a breaking change and is not desireable. I think you can close this PR.
OK. I'll close this.
When there are some translations with context and some without,
sort_by
tries to compare string with nil and fails. This fix converts the nils to empty string before comparison.