تغيير نص js.browser_update لا يُطبق على العروض بدون JS

  1. Change js.browser_update in Customise > Text.

  2. Open Discourse in IE10

  3. Default message is shown instead of customised one

AFAIK JS text customizations run in Javascript. Since our mode for old browsers is plain HTML without Javascript, anything JS won’t run in there. This behavior is expected.

إعجاب واحد (1)

It’s set here. https://github.com/discourse/discourse/blob/master/vendor/assets/javascripts/browser-update.js.erb#L29

So it should be applicable. :man_shrugging:

إعجاب واحد (1)

Oh, that won’t work anymore as we are removing all globals, with I18n being the one that was removed last week.

It may work after a rebuild @zcuric.

3 إعجابات

Not working unfortunately. We did a release today and rebuild the app, same thing.

I have the same problem. I thought when I first changed js.browser_update it did display on an old browser (but I’m not 100% sure now), but today I see that it shows the original text. Is there any way round this… maybe treating this particular message differently, as mostly when this message is displayed Javascript won’t be on? Maybe a short plugin?

قد يكون السبب في رؤيتك لهذا العمل على متصفح واحد، ثم عدم رؤيته على متصفح آخر، هو أن بعض المتصفحات القديمة جدًا لا تدعم الترجمة من جانب العميل، بينما تدعمها متصفحات أخرى.

نحاول أولاً تشغيل الترجمة، وإذا لم تنجح، فإننا نعود إلى نسخة ثابتة من الرسالة الافتراضية باللغة الإنجليزية:

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/scripts/browser-update.js#L50

للأسف، لا يمكننا فعل الكثير حيال ذلك. نأمل أن يتوقف الناس عن استخدام هذه المتصفحات في وقت ما.