dialect-app / po

https://hosted.weblate.org/engage/dialect/
3 stars 6 forks source link

Question: separate repo for l10n #19

Open sonnyp opened 10 months ago

sonnyp commented 10 months ago

Hello :wave:

I've been struggling with l10n for my 6+ apps. I don't want git l10n commit messages for every single contribution. I setup a separate branch in the repos where Weblate pushes the l10n updates. On release I would squash merge it into main.

It worked fine for a while but I endup with conflicts and I don't have time to solve them.

How is your experience with using a separate repo for translations? Could you share your setup / weblate settings ?

I'd be interested in documenting this publicly if it works well.

rafaelmardojai commented 10 months ago

In general, I don't mind about commits per translation updates for my projects, but we agreed to separate them for Dialect, to have a cleaner git history and for our automation regarding language name translations.

I will say that the experience is good, we usually only touch this repo when updating strings from the UI.

The setup is not really special, just a git submodule and a regular weblate settings. I don't know how to exactly share the settings, screenshots will work? 😅

One important note is not to forget to tag releases in this repo as well, to make life easier for packagers.

sonnyp commented 10 months ago

Thanks a lot.

just a git submodule

Ha of course, I didn't think of that.

screenshots will work? 😅

Absolutely :) Just want to make sure I'm not missing on something.

sonnyp commented 10 months ago

Is the pot file in po/ui generated by Weblate?

rafaelmardojai commented 10 months ago

Is the pot file in po/ui generated by Weblate?

Nope, it is manually generated by us with meson/ninja.

rafaelmardojai commented 10 months ago

These are de add-ons we have enabled: Captura de pantalla 2023-09-24 a las 10 44 31

Settings: Screenshot 2023-09-24 at 10-49-13 Dialect_Dialect Screenshot 2023-09-24 at 10-49-22 Dialect_Dialect Screenshot 2023-09-24 at 10-49-41 Dialect_Dialect

rafaelmardojai commented 10 months ago

We also have the Weblate's webhook configured in Github

ghost commented 6 months ago

When I compare UI and strings in Weblate instance I see there are several (15~) missing strings in Weblate instance.

Ekran Görüntüsü - 2023-12-31 16-39-00 Ekran Görüntüsü - 2023-12-31 16-38-44

rafaelmardojai commented 6 months ago

@sabriunal Yes, we have merged a few contributions that added new strings recently. We sync po files to code changes manually, and we haven't done it yet.