[LRUG] i18n and strings in config/locales

Henrik Nyh henrik at nyh.se
Tue May 11 22:40:55 PDT 2021


We use our own github.com/barsoom/traco for translating model attributes. It’s worked great for us for 10 years or so, but now that we’re adding a few more locales, it’s starting to feel a bit much. Might switch to something like Globalize, or find/write something that stores translations in a single serialised column per model.

Those translations can be set via admin forms like any other model attribute, but we also have a bg job that two-way-syncs some of them to a translation tool so external translators can translate them in a suitable UI without access to our backend.

That translation tool is webtranslateit.com. I have many complaints (you often wait on it to sync without much help from the tooling; it effectively has a “git force push” merging model) but back when we picked it, it was the least bad one we could find.

We also use WTI for regular config/locales/**/*.yml translations. There we just have the devs “pull” translations via a CLI command every so often, commit and push. We get a chat notification when there’s new stuff in WTI.


On 11 May 2021, 21:21 +0100, chat-request at lists.lrug.org, wrote:
>
> Send Chat mailing list submissions to
> chat at lists.lrug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> lists.lrug.org/listinfo.cgi/chat-lrug.org
> or, via email, send a message with subject or body 'help' to
> chat-request at lists.lrug.org
>
> You can reach the person managing the list at
> chat-owner at lists.lrug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Chat digest..."
>
>
> Today's Topics:
>
> 1. i18n and strings in config/locales (Lee-Jon Ball)
> 2. Re: i18n and strings in config/locales (James Adam)
> 3. Re: i18n and strings in config/locales (Adam Carlile)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20210512/7d305ea8/attachment.html>


More information about the Chat mailing list