]> source.dussan.org Git - nextcloud-server.git/commit
Only parse the locales ones 23822/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sat, 31 Oct 2020 14:25:19 +0000 (15:25 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sat, 31 Oct 2020 14:25:19 +0000 (15:25 +0100)
commit6e377a9daf57b650d32ea34681d23bb5d67db01d
tree34f3bde8a284607be387f7a1fe17c2c58cb8dfe9
parent5396e98d2d9499f14a1c5abeb71e904642f90c26
Only parse the locales ones

Before we'd go over the entire list for each translation (so each app)
we'd use translation for. This means we'd also go over thise locale list
(currently containing 750 entries) * apps so often this added up to ~20k
calls.

now we just dump the locales in a set once and then check if the entry
is there.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/L10N/Factory.php