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
Use "X" and "Y" instead of "E/W" and "N/S". Closes #3337. #3340
Use "X" and "Y" instead of "E/W" and "N/S". Closes #3337. #3340
Conversation
Correct me if I am wrong but this is more a cosmetic change right? |
Yes, this is cosmetic change. I think we shouldn't change expressions, as this make old scripts incompatible. Actually, it would be nice to make modification so OT will understand both |
That would be nice. Aside: ` |
@morevnaproject In fact I have changed E/W and N/S in favor of X and Y in the Spanish version of the UI since the very begining of the translation, as most people tend to be more familiar with the X and Y notation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine with us to change the terms "E/W" and "N/S" to "X" and "Y".
And as @RodneyBaker pointed, the expression should also be modified at the same time.
Actually, it would be nice to make modification so OT will understand both col1.ew and col1.x,
You can add x
and y
to the expressions by modifying the code of txsheetexpr.cpp
as follows:
TStageObject::Channel matchChannelName(const Token &token) const {
std::string s = toLower(token.getText());
- if (s == "ns")
+ if (s == "y" || s == "ns")
return TStageObject::T_Y;
- else if (s == "ew")
+ else if (s == "x" || s == "ew")
return TStageObject::T_X;
else if (s == "rot" || s == "ang" || s == "angle")
return TStageObject::T_Angle;
Thank you! Will do that. ^__^ |
FYI... Put "Closes #3337" in the PR description so it will close that PR automatically when merged. I don't think it does that from the PR's title. |
ab802a6
to
c17c003
Compare
I have done all changes. Please review. ^__^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the many comments, but I marked all points I could found.
Note that you also need to lrelease
the translation file (i.e. making.qm
files from updated .ts
files and overwriting the old ones in stuff/config/loc/
) to actually update the translated UI texts in the software. Please let me know if it's unfamiliar to you.
As the suggested changes at this point all relate to translations perhaps someone on the translation team can give this PR an assist. |
@RodneyBaker Thank you for reminder! I am going to make fixes now. ^__^ |
c17c003
to
3e99558
Compare
Done! ^__^ |
Yes, I am not sure how to do that properly. I am aware on how to run |
Jenkins |
Sorry for the long silence! Thank you @morevnaproject for the modification. |
Closes #3337.