element-web/src/i18n/strings
Travis Ralston cb6f415a05 Be more positive with setting labels
Fixes https://github.com/vector-im/riot-web/issues/6435

This is done through an on-the-fly inverter for the settings. All the settings changed are boolean values, so this should be more than safe to just let happen throughout the SettingsStore. Typically a change like this would be done in the individual handlers (similar to how setting names are remapped to different properties or even different storage locations on the fly), however doing that for this many settings would be a huge nightmare and involve changing *all* the layers. By putting a global "invert this" flag on the setting, we can get away with doing the inversion as the last possible step during a read (or write).

To speed up calculations of the default values, we cache all the inverted values into a lookup table similar to how we represent the defaults already. Without this, the DefaultHandler would need to iterate the setting list and invert the values, slowing things down over time. We invert the value up front so we can keep the generic inversion logic without checking the level ahead of time. It is fully intended that a default value represents the new setting name, not the legacy name.

This commit also includes a debugger for settings because it was hard to visualize what the SettingsStore was doing during development. Some added information is included as it may be helpful for when someone has a problem with their settings and we need to debug it. Typically the debugger would be run in conjunction with `mxSendRageshake`: `mxSettingsStore.debugSetting('showJoinLeaves') && mxSendRageshake('Debugging showJoinLeaves setting')`.
2019-01-24 20:57:40 -07:00
..
ar.json Translated using Weblate (Arabic) 2018-09-17 09:22:02 +00:00
az.json Translated using Weblate (Azerbaijani) 2018-07-13 10:14:41 +00:00
basefile.json Fix typo 2017-09-04 15:45:28 +01:00
be.json run gen-i18n and prune-i18n 2018-06-14 13:36:39 +01:00
bg.json Translated using Weblate (Bulgarian) 2018-12-21 11:43:03 +00:00
bn_BD.json add i18n which weren't correctly copied over from vector-web by copy-i18n 2018-04-17 16:50:24 +01:00
bn_IN.json add i18n which weren't correctly copied over from vector-web by copy-i18n 2018-04-17 16:50:24 +01:00
bs.json add i18n which weren't correctly copied over from vector-web by copy-i18n 2018-04-17 16:50:24 +01:00
ca.json Translated using Weblate (Catalan) 2018-09-25 20:16:40 +00:00
cs.json Translated using Weblate (Czech) 2018-08-18 21:57:13 +00:00
da.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
de_DE.json Translated using Weblate (German) 2019-01-12 02:46:45 +00:00
el.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
en_EN.json Be more positive with setting labels 2019-01-24 20:57:40 -07:00
en_US.json Add slash command for changing room name 2019-01-03 15:42:17 -08:00
eo.json Translated using Weblate (Esperanto) 2018-12-12 15:12:22 +00:00
es.json Translated using Weblate (Spanish) 2018-09-28 21:19:20 +00:00
eu.json Translated using Weblate (Basque) 2019-01-06 09:12:37 +00:00
fa.json run gen-i18n and prune-i18n 2018-06-14 13:36:39 +01:00
fi.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
fr.json Translated using Weblate (French) 2019-01-16 19:07:37 +00:00
gl.json Translated using Weblate (Galician) 2018-08-28 05:43:58 +00:00
he.json run gen-i18n and prune-i18n 2018-06-14 13:36:39 +01:00
hi.json Revert "Merge pull request #2395 from matrix-org/dbkr/merge_develop_experimental" 2019-01-03 15:37:03 -07:00
hr.json Translated using Weblate (Croatian) 2019-01-15 17:25:02 +00:00
hu.json Translated using Weblate (Hungarian) 2019-01-16 19:19:44 +00:00
id.json Translated using Weblate (Indonesian) 2018-09-17 09:22:03 +00:00
is.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
it.json Translated using Weblate (Italian) 2019-01-09 11:31:09 +00:00
ja.json Translated using Weblate (Japanese) 2018-11-13 17:58:50 +00:00
jbo.json Translated using Weblate (Lojban) 2018-10-08 13:38:05 +00:00
ka.json Added translation using Weblate (Georgian) 2018-08-16 13:33:57 +00:00
ko.json Translated using Weblate (Korean) 2018-10-02 19:27:36 +00:00
lt.json Translated using Weblate (Lithuanian) 2019-01-16 14:01:20 +00:00
lv.json fix typo 2018-07-10 15:18:07 +01:00
ml.json run gen-i18n and prune-i18n 2018-06-14 13:36:39 +01:00
nb_NO.json Translated using Weblate (Norwegian Bokmål) 2018-08-28 13:36:29 +00:00
ne.json add i18n which weren't correctly copied over from vector-web by copy-i18n 2018-04-17 16:50:24 +01:00
nl.json Translated using Weblate (Dutch) 2018-08-07 18:02:14 +00:00
nn.json Translated using Weblate (Norwegian Nynorsk) 2018-12-11 16:40:52 +00:00
pl.json Translated using Weblate (Polish) 2019-01-15 17:25:03 +00:00
pt.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
pt_BR.json Translated using Weblate (Portuguese (Brazil)) 2019-01-16 16:32:22 +00:00
ro.json Added translation using Weblate (Romanian) 2018-11-08 14:55:41 +00:00
ru.json Translated using Weblate (Russian) 2018-10-22 07:37:42 +00:00
sk.json Translated using Weblate (Slovak) 2019-01-16 14:01:20 +00:00
sq.json Translated using Weblate (Albanian) 2019-01-17 10:17:09 +00:00
sr.json Translated using Weblate (Serbian) 2018-07-29 18:44:58 +00:00
sv.json Translated using Weblate (Swedish) 2018-11-13 17:58:51 +00:00
ta.json run gen-i18n and prune-i18n 2018-06-14 13:36:39 +01:00
te.json Translated using Weblate (Telugu) 2018-10-29 05:21:47 +00:00
th.json Revert " make click to insert nick work on join/parts, /me's etc" 2018-07-03 10:30:08 +01:00
tr.json Translated using Weblate (Turkish) 2018-08-22 14:11:20 +00:00
uk.json Translated using Weblate (Ukrainian) 2018-11-13 17:58:51 +00:00
zh_Hans.json Translated using Weblate (Chinese (Simplified)) 2019-01-15 17:25:02 +00:00
zh_Hant.json Translated using Weblate (Chinese (Traditional)) 2019-01-16 06:17:25 +00:00