sabeechen / hassio-google-drive-backup

Automatically create and sync Home Assistant backups into Google Drive
MIT License
3.14k stars 193 forks source link

[Feature request] Ability to translate addon to native language #598

Open cholek3 opened 2 years ago

cholek3 commented 2 years ago

As title says, it would be great to have ability to translate addon to native language (through Lokalise maybe?).

Thank you for great addon.

sabeechen commented 2 years ago

Eventually yes. Translating this addon will be difficult but it is a long-term goal for me. The difficulty is not in sourcing or paying for the translations, but in re-writing the addon's web-ui to make multiple languages possible.

LeandroIssa commented 2 years ago

Eventually yes. Translating this addon will be difficult but it is a long-term goal for me. The difficulty is not in sourcing or paying for the translations, but in re-writing the addon's web-ui to make multiple languages possible.

I would very much like to translate it into Brazilian Portuguese. I'm part of the Home Assistant translation team into Brazilian Portuguese at Localize and I've translated over 50 HACS components. I believe that the community itself will be available to translate. No need to spend money on it, we all help with the translations!

LeandroIssa commented 2 years ago

@sabeechen I would like to know if it would be possible for Home Assistant Google Drive Backup to come bundled with Home Assistant Community Add-ons? I believe that if it came together with the community add-ons it would be more publicized and more people would use it!

cholek3 commented 2 years ago

I've translated over 50 HACS components.

Where can I find link to add Addons to my group? Or do you add each addon separately. I would like to translate some other Addons too.

LeandroIssa commented 2 years ago

Where can I find link to add Addons to my group? Or do you add each addon separately. I would like to translate some other Addons too.

I enter the component's github, I go to the "translations" folder and see if it already has the translation for "pt-br" in the case of Brazilian Portuguese, if it doesn't, I download the component on github, I get the file in English and translate. I create a PR asking for the translation to be added. For example, the SonoffLan component I translated to pt-BR.

screencapture-github-AlexxIT-SonoffLAN-tree-master-custom-components-sonoff-translations-2022-05-22-01_50_35

LeandroIssa commented 2 years ago

Lokalise maybe?

In addition to Localize, you also have the poeditor as an option, some components or add-ons use it. The zigbee2mqtt add-on for example uses it. I translated it to pt-BR too!

https://poeditor.com/

sabeechen commented 2 years ago

Just to be clear the issue with translating the addon is that I never wrote it expecting it to be translated, and working that into it would be a bit of a mess. The addon actually has way more language in it than you might think, sometimes built up sentence by sentancce in code, because I've tried to be very helpful (ie verbose and descriptive) when it runs into a problem. I just hate UIs who've had their language made stifled and obtuse because the person writing it didn't want add more text that needs to get translated. Getting it to the point where translation modules could be plugged in is a significant rewrite of the web-UI and a good part of the codebase.

I should note that I'm not saying that from a place of inexperience, I've worked professionally on software packages intended for use in multiple languages and I'm aware of how its done. The problem is when I started I never expected to be having this conversation or for the addon to be popular outside the english speaking world, so I didn't write it with that in mind. Long ago this was just a little thing I wrote for myself, and its had to do a lot of growing up since then.

Cost isn't a driver, even the paid services aren't very expensive. I'll need to assess the best service for the job once its at a point where translation is possible, going with a community approach is likely.

@LeandroIssa with respect to to the Community addon store, I have some thoughts about that I wrote a while ago here. Most of that is still true, since then I cut down on some costs but the usage has also grown 3x (Coming up on 80k active users) and the addon costs on average about $4/day. Donations still cover that, but just barely now. They're drying up as I expected and I'm keeping a 2 years runway in reserve for that eventuality, so the concerns presented there still stand.