Skip to content
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

[Bug]: czech translations - dní do (days to) not working properly #443

Open
2 tasks done
froxic opened this issue Oct 14, 2024 · 2 comments
Open
2 tasks done

[Bug]: czech translations - dní do (days to) not working properly #443

froxic opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@froxic
Copy link

froxic commented Oct 14, 2024

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest TrashCard version.
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

There is issue in displaying days to waste pickup, for example instead of "za 5 dní" there is only "za dní" displayed. "Zítra" is working properly, tomorrow Ill check if the current day.

image

Expected Behavior

Display number instead of text

Also according czech gramar rules correct translation should be for 2-4 days - "dny"
za 2 dny
za 3 dny
za 4 dny
--------- for more then 4 its always "dní"...
za 5 dní
za 6 dní
....

Steps To Reproduce

No response

Context

event_grouping: true
drop_todayevents_from: "10:00:00"
next_days: 40
pattern:

  • icon: mdi:flower
    color: lime
    type: organic
    label: Bio
    pattern: Bio
  • icon: mdi:newspaper
    color: blue
    type: paper
  • icon: mdi:recycle-variant
    color: amber
    type: recycle
    label: Plasty
    pattern: Plasty
  • icon: mdi:trash-can-outline
    color: grey
    type: waste
    label: Komunál
    pattern: Komu
  • icon: mdi:dump-truck
    color: purple
    type: others
    day_style: counter
    alignment_style: space
    color_mode: icon
    items_per_row: 3
    refresh_rate: 60
    with_label: true
    layout: vertical
    type: custom:trash-card
    entities:
  • calendar.odpady
    hide_time_range: false
    use_summary: false

Environment

- Browser: Brave Version 1.70.126 Chromium: 129.0.6668.100 (Official Build) (arm64)
- HA Version: Core 2024.10.2 / 20241002.3
- TrashCard: 2.4.2

Debug data

No response

Anything else?

No response

@froxic froxic added the bug Something isn't working label Oct 14, 2024
@tbowmo
Copy link
Contributor

tbowmo commented Oct 14, 2024

as to the part of dni vs dny, that is hard to do properly in a simple translation system. In English language they only distinguish between one and multiple, and the translation is built around English, but that is also kind of broken here, as it should be something like

0 days
1 day
2 days
3 days

but from looking at the code, it only says "days" if it's more than 1 days to the end (should also be 0)

the above is also true in most (if not all) northern languages (Danish, Swedish, Norwegian etc)

@Amos4646
Copy link

I have the same problem. It does not show the number of days until...
TrCard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants