Posts: 30
Joined: Mar 2018
Reputation:
11
Chychy
Junior Member
Posts: 30
2018-03-26, 21:56
(This post was last modified: 2018-03-26, 21:57 by Chychy.)
I will give it a try, will do a PR when I'm done
Something might be required to install the module on the final device, no ?
Posts: 30
Joined: Mar 2018
Reputation:
11
Chychy
Junior Member
Posts: 30
I made a PR for the translation stuff, I created a French translation file, but it doesn't use it, do you have an idea why ?
For the channel group scrolling, it's working the first time, but when you come back to the same page, there is a scroll again
The scroll should only occur if we are on the first entry
Posts: 3,101
Joined: Apr 2014
Reputation:
270
Thanks. I should have guessed from your github name you were French. I was speaking to someone from Germany earlier.
I don't know why it won't pull in the French strings. I've never had to switch the language on Kodi before.
I've just spent an hour wondering why the scrolling jumps around.
They've missed telling us about the "absolute" parameter you can add to SetFocus to go the correct position.
Posts: 3,101
Joined: Apr 2014
Reputation:
270
The days of the week in the channel listing aren't getting translated either.
I'm not sure how to do date translations.
Posts: 30
Joined: Mar 2018
Reputation:
11
Chychy
Junior Member
Posts: 30
2018-03-27, 10:34
(This post was last modified: 2018-03-27, 10:35 by Chychy.)
There is no need of a translation setting, it's handled by Kodi, the local language will be loaded if available (eg: French), else fallback to English
About the days, we can either translate them manually (not that good, we might have the same problem with months), or if there is any way we can get the local code (en, en_UK, ...), we can use the builtin functions (like locale.setLocal())
Posts: 3,101
Joined: Apr 2014
Reputation:
270
Good idea. It needs something else though. I put it at the top of main, changed true to True and it said.
Error: unsupported locale setting
loc is 'fr_be.utf8'
Posts: 30
Joined: Mar 2018
Reputation:
11
Chychy
Junior Member
Posts: 30
Looks like it's based on system packages, I have the same error on my testing env
I need to check others addon to see how they are doing it