Giter VIP home page Giter VIP logo

Comments (6)

forslund avatar forslund commented on May 29, 2024 1

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.

krisgesling avatar krisgesling commented on May 29, 2024 1

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.

krisgesling avatar krisgesling commented on May 29, 2024

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.

emphasize avatar emphasize commented on May 29, 2024

@krisgesling

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.

forslund avatar forslund commented on May 29, 2024

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.

emphasize avatar emphasize commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.