-
Notifications
You must be signed in to change notification settings - Fork 106
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
Put locales into config-files (yaml) #124
Comments
would locales then become parameters to the main call? |
Ok, I write this code |
I tried. There is no result. I will still try |
no worries - I appreciate you wanting to solve this |
The yaml files will introduce new dependency to PyYAML. I don't like the new dependency (which means you had to compile PyYAML before pdt get installed). |
my thought about that would be to take the work of converting it to YAML and then see if that could be done as JSON. another option would be to make the PyYAML part only something that would have to be done during the build process -- i.e. generate the data that would be used during normal pdt use by reading and processing the PyYAML |
You can find my code in branch |
thanks @warmonger1 ! |
@bear, in branch |
@warmonger1 I agreed with your opinion that |
@philiptzou - looking forward to a .py solution that covers the concern that @warmonger1 raised |
I did the modification in #130 which based on @warmonger1's changes. |
Sorry, now i have many works :( I can't create full pull request with this feature. |
@warmonger1 you can push it to your folked repository and you can create pull-request. It's a bit easier for us to review every lines you changed. Feel free to modify anything based on #130. |
edited: removed blocking comment |
@warmonger1 Will you add new changes for this issue? Or this issue is solved and can be closed? |
oh right, this may not be blocking v2 anymore - i'll remove it for now and we can add it back if needed |
I think locales in
.py
is bad practice, because locale is class with ONE method (__init__
).My suggestion: put locales into yaml-files.
The text was updated successfully, but these errors were encountered: