Skip to content
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

Remove "not possessive" context #38365

Merged
merged 1 commit into from
Feb 26, 2020
Merged

Conversation

Aloxaf
Copy link
Contributor

@Aloxaf Aloxaf commented Feb 26, 2020

Summary

SUMMARY: None

Purpose of change

xgettext can only extract the first string when using the ternary operator.
Considering that the "not possessive" context was introduced in #27482
and it is not ambiguous now. We can remove this context for better
extraction.

Describe the solution

Remove "not possessive" context

Describe alternatives you've considered

Expand the ternary operator into if-else.

Testing

Run lang/update_pot.sh and check if both "You" and "you" is in lang/po/cataclysm-dda.pot.

Additional context

@Qrox
Copy link
Contributor

Qrox commented Feb 26, 2020

xgettext can only extract the first string in a three-way comparison.

I guess you mean the ternary operator ?:. Three-way comparison is <=> from c++20

`xgettext` can only extract the first string when using ternary
operator. Considering that the "not possessive" context was
introduced in CleverRaven#27482 and it is not ambiguous now. We can remove
this context for better extraction.
@Aloxaf
Copy link
Contributor Author

Aloxaf commented Feb 26, 2020

Oh yes. Thanks for point out that.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Translation I18n labels Feb 26, 2020
@ZhilkinSerg ZhilkinSerg merged commit 16c0db4 into CleverRaven:master Feb 26, 2020
@Aloxaf Aloxaf deleted the fix_trans branch February 27, 2020 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants