-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unify and translate conozco.py to en.US #9
base: master
Are you sure you want to change the base?
Conversation
* Translate Espanol to English * Reorder imports * Flake8 Fixes * Correct DBus.LookupError * Normal termination of activity
@quozl @chimosky Please review, however after this commit there are few advantages and disadvantages Advantages
Disadvantages
Is it possible to maintain a single copy of This is a suggesstion, please let me know of the possibility. This PR needs to be tested extensively before its deployed on all the |
I'm fine with a complete change in principle. I think it is too large to review, and best path forward may be to increase the number of people testing. I'd rather not have yet another repository. 😁 |
@quozl Yes, it was complete rewrite of variable names as such. Feel free to close this PR, in case if its not necessary at the moment; If you would like me to replicate the same |
conozco.py
Outdated
import os.path | ||
import configparser | ||
import gettext | ||
import imp |
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.
Use importlib
as imp existed in python2 and no longer does.
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.
python3 -c "import imp"
seems to work for me on 3.6.9. Is there a specific version where it does not work?
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.
Using 3.7.3 importing it throws a DeprecationWarning.
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.
Thanks. A fix is in
https://github.com/sugarlabs/iknowEditor/blob/master/conozco.py#L31-L32
https://github.com/sugarlabs/iknowEditor/blob/master/conozco.py#L251
Seems a lot of work to go through just to keep the file in a non-module directory, otherwise a plain import would be fine. I wonder what was behind this design decision?
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.
Thanks, I will update accordingly
I agree, I haven't reviewed yet; just took a look. |
No need to close, it's better than what we have now.
You're welcome to do that, just that these should be considered as wide-ranging changes and won't necessarily get a detailed review. The activities are local, so a smaller user base. The iKnow Editor is the most important one to get right, and the generated code should look like that. |
I tried to update the iknowEditor with a updated version of conozco, but as |
Well, that's news to me too. No issues created or fixes proposed. You could debug the save function with pdb? |
Sure, then I shall fix |
Wow!, The |
I am planning to copy paste this commit on every conozco activity on sugarlabs.
Please check if it is right