From 78fd24bac7ba7c4abdf7c9e5e808e055345c2d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Wed, 5 Feb 2025 13:04:19 +0100 Subject: [PATCH] fix(Tinebase): client does not show up --- tine20/Tinebase/js/tineInit.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tine20/Tinebase/js/tineInit.js b/tine20/Tinebase/js/tineInit.js index 52021a52489..e44e18f2362 100644 --- a/tine20/Tinebase/js/tineInit.js +++ b/tine20/Tinebase/js/tineInit.js @@ -1392,7 +1392,16 @@ Tine.Tinebase.tineInit = { require('Locale'); require('Locale/Gettext'); - await waitFor( function() { return Tine.__translationData?.__isLoaded; }); + try { + await waitFor( function() { return Tine.__translationData?.__isLoaded; }, 10000); + } catch (e) { + await Ext.MessageBox.alert( + formatMessage('Translation Problem'), + formatMessage('A problem, with the translations was detected, trying to reload client...') + ); + Tine.Tinebase.common.reload({ clearCache: true, keepRegistry: false }); + throw e; + } Tine.__applyExtTranslations(); _.each(Tine.__translationData.msgs, function(msgs, category) {