Questions Community

How to contribute with Plug-In translations?

karlpelzer70-afk

I just installed the Waste Collection Plug-In. I am missing the German translation. So I would like to create the de.json file and give it to the community. I looked into the repo for the plugins and found the translation files. Please can someone explain to a noob like me how I can test my own json file and how to bring it to the community? Or would it be easier/faster if I send the file to someone?

Discussion 3

Add a comment
MaxGramser Admin

Thank you, a German translation is very welcome!

Where. The plugin is in plugins/waste_collection of the tessera-plugins repository. Its texts are in translations/: en.json has every key, and nl.json is a second example. Copy en.json to de.json, set "_meta": {"name": "Deutsch"} and translate the values. Keep the placeholders {what} and {when} as they are; plural forms are separated by |; and keep the texts short, because a tile's second line on a 2.8-inch screen holds about 14 characters. TRANSLATIONS.md has the rules.

Testing. Copy the whole waste_collection folder, with your de.json, to /config/tessera-plugins/waste_collection/, next to the esphome folder (the Samba or File editor app can do that). The Plugins page then lists it marked Test, and the editor shows its German texts at once if your Home Assistant profile is in German. A screen that runs the published version offers Switch to your folder, which builds the screen. A screen's texts are built into its firmware in the screen's language, so the screen needs German under Settings β†’ Language & region, and Build again after each change. When you're done, delete the folder and switch the screen back.

Sharing. A pull request to the main branch of tessera-plugins with translations/de.json. You can do it in the browser: open the translations folder on GitHub, choose Add file, and GitHub makes the fork and the pull request for you. I'll take care of the version number. If GitHub is too much, post the file here and I'll add it.

karlpelzer70-afk

Sorry for being annoying. I cannot find a folder named /config/tessera-plugins/waste_collection/ I am using Samba as well as the File-Editor App. Do I have to create the folder? Or is it even hidden or rights management?

karlpelzer70-afk

Since I was not able to find the relevant files and folders on my HO server I post my untested de.json here:

{
  "_meta": {
    "name": "Deutsch"
  },
  "screen": {
    "name": "Waste collection",
    "today": "Heute",
    "none": "Nichts geplant",
    "waiting": "Abfrage Kalender",
    "upcoming": "Anstehende Abholungen",
    "failed": "Kalender antwortet nicht",
    "in_bar": "In der Titelzeile",
    "days_ahead": "Tage im Voraus",
    "open_card": "Anstehende Abholungen",
    "bar_today": "Heute: {what}",
    "bar_tomorrow": "Morgen: {what}",
    "bar_later": "{when}: {what}"
  },
  "app": {
    "name": "Waste collection",
    "summary": "Zeige auf einer Kachel oder in die Titelzeile den nΓ€chsten Termin aus einem Home Assistant Abfallkalender.",
    "input_calendar": "Abfallkalender",
    "input_calendar_hint": "Der Kalender mit den Abholterminen (Waste Collection Schedule, Afvalwijzer, oder ein eigener Kalender).",
    "tile_name": "NΓ€chste Abholung",
    "tile_example": "Papier, morgen",
    "card_name": "Anstehende Abholungen",
    "tap_upcoming": "Zeige anstehende Abholungen",
    "bar_soon": "NΓ€chste Abholung",
    "bar_example": "Morgen: Papier",
    "setting_in_bar": "In Titelzeile",
    "setting_in_bar_hint": "NΓ€chsten Abholtermin in der Titelzeile anzeigen.",
    "setting_days_ahead": "Tage im Voraus",
    "setting_days_ahead_hint": "Wie viele Tage im Voraus soll der Termin in der Titelzeile angezeigt werden?"
  }
}

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images Β· URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.