discourse/config/locales
Ted Johansson 9915236e42
FEATURE: Warn about outdated translation overrides in admin dashboard (#22384)
This PR adds a feature to help admins stay up-to-date with their translations. We already have protections preventing admins from problems when they update their overrides. This change adds some protection in the other direction (where translations change in core due to an upgrade) by creating a notice for admins when defaults have changed.

Terms:

- In the case where Discourse core changes the default translation, the translation override is considered "outdated".
- In the case above where interpolation keys were changed from the ones the override is using, it is considered "invalid".
- If none of the above applies, the override is considered "up to date".

How does it work?

There are a few pieces that makes this work:

- When an admin creates or updates a translation override, we store the original translation at the time of write. (This is used to detect changes later on.)
- There is a background job that runs once every day and checks for outdated and invalid overrides, and marks them as such.
- When there are any outdated or invalid overrides, a notice is shown in admin dashboard with a link to the text customization page.

Known limitations

The link from the dashboard links to the default locale text customization page. Given there might be invalid overrides in multiple languages, I'm not sure what we could do here. Consideration for future improvement.
2023-07-10 10:06:40 +08:00
..
client.ar.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.be.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.bg.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.bs_BA.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.ca.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.cs.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.da.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.de.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.el.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.en_GB.yml Update translations (#22204) 2023-06-20 17:27:36 +02:00
client.en.yml FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
client.es.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.et.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.fa_IR.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.fi.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.fr.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.gl.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.he.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.hr.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.hu.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.hy.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.id.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.it.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.ja.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.ko.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.lt.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.lv.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.nb_NO.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.nl.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.pl_PL.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.pt_BR.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.pt.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.ro.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.ru.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.sk.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.sl.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.sq.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.sr.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.sv.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.sw.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.te.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.th.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.tr_TR.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.uk.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.ur.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
client.vi.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.zh_CN.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
client.zh_TW.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
names.yml use more appropriate labels for chinese UI option 2021-07-27 22:47:59 +08:00
plurals.rb DEV: Apply syntax_tree formatting to config/* 2023-01-09 11:13:29 +00:00
server.ar.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.be.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.bg.yml Update translations (#22204) 2023-06-20 17:27:36 +02:00
server.bs_BA.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ca.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.cs.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.da.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.de.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.el.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.en_GB.yml Update translations (#19401) 2022-12-09 12:01:05 +01:00
server.en.yml FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
server.es.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.et.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.fa_IR.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.fi.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.fr.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.gl.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.he.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.hr.yml Update translations (#22204) 2023-06-20 17:27:36 +02:00
server.hu.yml Update translations (#21950) 2023-06-06 15:36:51 +02:00
server.hy.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.id.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.it.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.ja.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.ko.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.lt.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.lv.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.nb_NO.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.nl.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.pl_PL.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.pt_BR.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.pt.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.ro.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.ru.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.sk.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sl.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.sq.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sr.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sv.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.sw.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.te.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.th.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.tr_TR.yml Update translations (#22412) 2023-07-04 18:14:46 +02:00
server.uk.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.ur.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.vi.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.zh_CN.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
server.zh_TW.yml Update translations (#22300) 2023-06-27 16:39:27 +02:00
transliterate.ar.yml
transliterate.bg.yml
transliterate.de.yml
transliterate.el.yml UX: Add transliteration support for the Greek language 2019-04-25 22:49:21 +02:00
transliterate.en.yml
transliterate.ru.yml
transliterate.vi.yml