-
Notifications
You must be signed in to change notification settings - Fork 149
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
Allow to override global proxy settings #581
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.
LGTM
@razzeee what are the next steps to get this merged now? Anything else I need to do? |
I need to find time to do a final settings test (or run time tests) I only had a look at the code above. |
The scrobbling and general categories seem to have problems.
|
@razzeee It seems to be working here, but I've not extensively tested each and every setting.
The blank line is because there's no name (label) for this section/group (yet).
|
Hey @razzeee, I only did the language file for en_US; not sure what was needed. I figured once merged transifex would add them. What is the process normally here? Should I add all translations entries? (I head tail -n 10 en_US >> $file would work) ... |
I don't think that's the problem. I would think those are the hidden config fields, that are now configured to show up (by mistake I assume) |
@razzeee but they look perfectly like the proxy stuff, e.g. URL (blank string) port (0) etc. I put the translations in my en_GB file as well for testing, and i see the actual text, which is as expected either way, as it is supposed to show up in 'expert' mode? I get the same as your screenshot; but when I do |
Your right, I didn't realize you did US instead of UK. As far as I know we need to change that, to have translations working. |
Ok, i'll do a quick shell script and do all langs; done @razzeee on the upside, it made the review easier :) for future googlers, what I did was for _dir in *; do tail -n 40 resource.language.en_US/strings.po >> ${_dir}/strings.po; done
git restore resource.language.en_US/strings.po
git add */strings.po |
@gade01 can we add the translations, as proposed or would that mess up the translation flow, as it expects to do it on it's own? |
I didn't add the translations themselves, just the untranslated entries, which should mean, if untranslated, they show up as english, once a translating service (transifex at all) drops by, they list them as untranslated strings until someone fills it in I suppose. |
@razzeee @oliv3r Right now they are added after the commented out lines for some languages, Also, please add a line break before new strings in en_gb file: |
Please merge any open Weblate PR before merging this one, thanks. Otherwise it will cause merge coonflicts at Weblate. |
The current way of settings for trakt is deprecated and should migrate to the new format (see [0]). This commit performs the migration to the new settings format. Everything is kept as close as possible on how it was, with all standard configuration settings added to the 'standard' level, auth settings to the 'basic' level (as otherwise the addon is not that useful) and some more complex things (debug for example) to higher levels. The 'internal settings' that are used to store some tokens etc, are at the 'never show in GUI' level 4. [0]: https://kodi.wiki/view/Add-on_settings Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
There are various use-cases where we want to configure proxy settings within trakt. E.g. Kodi/the host may be setup to connect to a Socks5 proxy, which script.trakt currently does not support. Additionally the user may want to use a different proxy (or just for trakt) then the Kodi/host configuration has set up. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
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.
@oliv3r Thanks a lot.
Language changes look great to me.
Thanks for sticking with us :) |
No problem, I hope you value the contribution :) |
There are various use-cases where we want to configure proxy settings within trakt. E.g. Kodi/the host may be setup to connect to a Socks5 proxy, which script.trakt currently does not support. Additionally the user may want to use a different proxy (or just for trakt) then the Kodi/host configuration has set up. As this is feature for expert users, this should be hidden behind the expert settings level.
To accomplish the above, a second commit exists in this merge request, to migrate the settings.xml file to the newer kodi format, which allows to hide settings at different levels.