-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
wxGUI: added install notranslation function #156
Conversation
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.
Answering in the scope of these changes: Please, make the buildins fix into a function to 1) not repeat the code 2) to make it explicit and documented.
Thank you marisn. This PR accounts for the no-translation case in a better way than the top-level I need to mention broader context which is my reservations about having What I don't know is how |
…code assumes str instead of bytes. Fixes C and POSIX case of OSGeo#3922 and OSGeo#3875
… no translation but allow to continue. Fixes trac OSGeo#3875
Had to fix C and POSIX corner case too. |
Is this relevant for the upcoming 7.8.1RC2? |
As it fixes starting with C locale or when there is some problem with installed locales, yes. Ditto for finishing transition to Python 3. |
@wenzeslaus anything missing here? can it be merged and backported? |
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.
The code is good. I suggest improve the commit messages. If the two commits should be indeed together, then I suggest squashing and improving the commit message, esp. describing sufficiently the motivation. The links to Trac issues should be now done as URLs for clarity, not as #0000
.
def install_notranslation(): | ||
# If locale is not supported, _ function might be missing | ||
# This function just installs _ as a pass-through function | ||
# See trac #3875 for details |
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.
# See trac #3875 for details | |
# See trac https://trac.osgeo.org/grass/ticket/3875 for details |
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.
@marisn pls apply this change, I have no permission to do so in your branch
ok, to get it into 7.8.1RC2 I'll just merge it now |
- wxGUI: _ is needed for startup code itself. In case of error, provide no translation but allow to continue, fixing this error: `NameError: global name '_' is not defined` - Python3 migration: Always provide encoding for decode as the rest of code assumes str instead of bytes. - Fixes C and POSIX case of https://trac.osgeo.org/grass/ticket/3922 and https://trac.osgeo.org/grass/ticket/3875
Backported to relbranch78 in 25835a2 |
- wxGUI: _ is needed for startup code itself. In case of error, provide no translation but allow to continue, fixing this error: `NameError: global name '_' is not defined` - Python3 migration: Always provide encoding for decode as the rest of code assumes str instead of bytes. - Fixes C and POSIX case of https://trac.osgeo.org/grass/ticket/3922 and https://trac.osgeo.org/grass/ticket/3875
- wxGUI: _ is needed for startup code itself. In case of error, provide no translation but allow to continue, fixing this error: `NameError: global name '_' is not defined` - Python3 migration: Always provide encoding for decode as the rest of code assumes str instead of bytes. - Fixes C and POSIX case of https://trac.osgeo.org/grass/ticket/3922 and https://trac.osgeo.org/grass/ticket/3875
_ is needed for startup code itself. In case of error, provide no translation but allow to continue,
fixes this error:
Fixes trac 3875 (https://trac.osgeo.org/grass/ticket/3875)