Comments (6)
Found a place where "today" was hardcoded, See PR #136, It's not the rework Gez is intending to do but it should fix this particular issue.
from skill-weather.
Thanks Ake!
I'm thinking the rework will go straight to the 20.08 branch so we can split the Skill up into submodules, so great to have this fix available for 20.02.
from skill-weather.
Hi emphasize, thanks for reporting these, I want to clean this Skill up a bit so will take a look at this shortly.
from skill-weather.
Most likely found the source. If this is coded like skill-reminder you've used some date_str(time) method to change the {day} output of timely events to 'today'/'tommorow'.
Since i'm working on the reminder skill (and face the similar problem), how is this translated seperately?
from skill-weather.
In the reminder skill it seems like the hard coded "today", "tomorrow" should be replaced with self.translate() calls and a today.dialog and tomorrow.dialog files should be created.
In this skill from a brief look at it the nice_date is called with the lang code so lingua franca should translate that...
Can you give me an example utterance for which you get this issue and I can dig some more in the morning?
from skill-weather.
Sorry for confusing the two.
I made a check and in this skill (skill-weather) it only affects 'today', which isn't translated.
"wird heute schönes wetter sein" -> today instead of "heute".
(translation: will the weather be fine today)
In case of the weather tommorow it's translated the right way ("morgen").But thanks on the hint towards self.translate()
But most valueable is that nice_date() is (or should be) capable of formatting timely events to today/tommorow (+ lingua franca) which would make the whole shabang here and here irrelevant (the three dialogs SavingReminder* can be merged into one) I don't want to drag old code as i flesh out untimed reminder. (even if this only relates to timed reminders)
from skill-weather.
Related Issues (20)
- Prep for future update: don't pass 'lang=None' to LF functions HOT 3
- Bump pyowm to latest version HOT 5
- "great-weather-again" UX timing comment
- Wrong placeholder names in most of localized dialogs HOT 1
- sunset (and i would guess other timedates) wrongly adding tz HOT 13
- "Today" isn't translated with non-english clients in certain cases HOT 1
- Location regex/adapt intent wont work HOT 3
- Use own keys HOT 1
- 'what is temperature' only gives voice information HOT 1
- KeyError: 'timezone' in skill HOT 3
- Asking for sunset time reads the dialog file name
- No icon for "moderate rain" HOT 1
- No translation of the temperature scales HOT 2
- display issue kde bigscreen plasma
- Closing screen hangs on kde HOT 1
- Gui screens not staying up long enough to rea HOT 1
- Sunrise/sunset times are incorrect in UK whilst daylight savings are active (GMT -> BST) HOT 3
- skill.error while asking for the weather HOT 12
- wrong output in build_condition_dialog with non-english language HOT 1
- Error when I ask for the weather of a city in Italian
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 skill-weather.