Comments (21)
I will look into the logistics of this but was wondering if you’d be game to help with the actual translations if I provided a list of words / phrases?
from piweatherrock.
Naturally! You help me / us so much, then I can help you. What do you need for phrases / words in German?
from piweatherrock.
Hello! Do you already have something in the works regarding language integration? I could give you German translations on a timely basis... Greetings Thomas
from piweatherrock.
It would also be very nice if you could help me to reduce text size as needed...
from piweatherrock.
I have to look at how to do i18n with Python and what it will take to apply that to the code. I may have some time this weekend to poke at it some but am not sure. I greatly appreciate the offer to help translate things though and will take you up on it as soon as I figure the other bits out.
from piweatherrock.
Oh, that's very nice! But it doesn't burn... :-)
from piweatherrock.
I think this may be easier than I first thought... I will push up a change shortly that adds a new configuration setting so that the results from the Dark Sky api can be in any language they support. For example, here's the daily summary in multiple languages:
- English: "Possible drizzle in the morning."
- German: "Nieselregen m\u00f6glich am Vormittag."
- Czech: "R\u00e1no mo\u017enost mrholen\u00ed."
Note the non-english ones include unicode characters too
from piweatherrock.
Further on and on! I'm glad to see you're making progress!
from piweatherrock.
Have you tried the setting yet @dodas425 ?
Sent with GitHawk
from piweatherrock.
from piweatherrock.
No problem! The parts that come directly from Dark Sky like the summary are now translated. I just realized that the only documentation of this is in the sample config file though. I’ll get the docs updated and link them here so it’s more clear.
Sent with GitHawk
from piweatherrock.
from piweatherrock.
Hi there! This is how the 2 views look on my display. Unfortunately, the writing and the texts do not fit on my 320/240 resolution display. Do you already have a solution to my resolution?
from piweatherrock.
@dodas425 Hi look to line 632 in weather.py, you might be a bit further or closer
find this line: time_string = time.strftime("%-d. %b, %-H:%M", time.localtime()) and test this change.
from piweatherrock.
@dodas425 and here is a nice explanation of what each value means. For example, you may have to use only time to fit the text. try it
https://strftime.org/
from piweatherrock.
@dodas425 or there is time and date text size in line 266 self.time_date_text_height = 0.129
In a similar way it will be possible to reduce size other texts
Sorry my English please
from piweatherrock.
This coming week I am planning on digging into the issues with the 320 resolution. I had another project with a deadline that has taken my time this week.
Sent with GitHawk
from piweatherrock.
https://linkode.org/#RanYQoA2t1cJJVpjFX5PO4 will help with the translation bit
from piweatherrock.
from piweatherrock.
@repkadan sorry, no - the link was because I got @metaMMA to share it with me the other day and I wanted to include it here to keep from losing it. With the move to ClimaCell and the changes I have already merged into the code base its going to be even more important that I deal with all the places that need the language taken into account. Thanks for filling it in too!
from piweatherrock.
from piweatherrock.
Related Issues (20)
- Ability to set each Display Mode's interval/duration HOT 1
- Error while installing Puppetlabs. HOT 3
- Touchscreen slide between info, hourly and daily page instead of keyboard. HOT 3
- Hourly weather forecast indicates "a.m" in the evening
- Left column margin in daily and hourly forecast further to the left HOT 7
- Pull Air Quality Index data from https://aqicn.org/gaia/ HOT 10
- Display gets stuck on info mode? HOT 3
- Dual screen on Pi4 HOT 4
- Program crashes when quickly switching between info and weather
- Alt icons are black HOT 1
- What to do after installation? HOT 5
- Replace Dark Sky API HOT 48
- Add support for external sensors like DHT 22 (AM2302)
- Include Severe Weather Alerts
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Install error
- API calls don’t have error handling resulting in too many daily calls
- Package as Flatpak
- Impossible to install now HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piweatherrock.