React admin V4 is not translating messages - react-admin

Upgraded to V4 and got everything working except that all labels are displayed with their default text like ra.navigation.page_rows_per_page. The translated texts were displayed before the upgrade. Looks like there is some problem with the translation.
Everything translation related is default (no I18nprovider set or locale). Tried cache clearing and reinstall. It's probably something simple that I'm missing :). Any hints on what I could do would save my day.
Cheers
/Mikael

Related

Trusted Web Activity shows address bar after switching between different Apps

I'm having a really weird behaviour with my TWA. When I am launching the app, the address bar is not shown and the app is running in standalone mode as expected.
But when I am switching between Apps (putting the app in the background), and coming back to it, something weird happens: the page reloads, and the address bar is shown at the top of my app. I am not really sure to understand what's happening here. Even more strange, it looks like this weird behaviour is not happening all the time.
Does anybody here encountered similar issues ?
I checked my assetlinks file, it's accessible and valid, app bundle and so on, everything looks fine. The fact that the app is not showing the bar at launch also seems to confirm that the problem is not coming from the certificate or a configuration issue. What else could cause the problem ?
First launch (looking perfect):
Back from background:
We have seen this occasionally as well.
Which version of Chrome Custom Tabs are you using? Seems like most articles/tutorials use e446d08 which is quite outdated. Suggest trying a newer/latest version of it:
https://github.com/GoogleChrome/custom-tabs-client/commits/master
Their last commit comment suggests that they are still testing things:
There's definitely more we can test, but this is a start.
https://chromium.googlesource.com/custom-tabs-client/+/da65829d7d4b80c00809c6c4aa7f61f88fc7ca26

Phantom BigCommerce Template Parts

I recently upgraded one of our store (article15clothing.com) to use a custom Stencil theme we developed. I am having a weird issue (that appears like) with old template parts outputted from the old BluePrint theme, like previous embed code into the footer. Has anyone else seen something like this or know how to get rid of it?

Wrong image path updating from prestashop 1.4 to 1.6

After two intense days of messing with Prestashop, I'm facing a problem, and my numerous searches gave nothing.
I have to update a prestashop ver. 1.4 to 1.6. Once I updated, product images won't show :
the website is looking for a path like this src="http://siteurl.com/86-home_default/arbre-a-chat-amelia.jpg...
But on our server, files are using another structure : http://siteurl.com/img/p/8/6/ etc...
I tried with and without "legacy mode" (I can't modify php safe mode). There's no sign of any "move" option in prestashop 1.6 admin, and tricks to made this button appear (on 1.5) won't work.
Is there any way to edit how images are found? After trying to update from scratch again and again, is this safer to "just" update to 1.5.x, and then 1.6?
I'm sorry if there is only few elements here, but any help is much appreciated and I'll do my best to explain missing points if needed.
I had got the same problem but updating from 1.4 to 1.5. My problem was that the new template of 1.5 uses images in this way *_default (home_default, small_default, etc). When I updated the images weren't shown because the path referenced was wrong. The solution for me was add "_default" in Preferences -> Images to every image type and then click in Regenerate images.
Somehow urls were broken, maybe from too much legacy mode switching... Neither friendly URL desactivation or image regeneration worked.
Managed to "workaround" this by copying an old backup on wamp, in order to have safe_mode off... Then, this "move images" button was here, and totally functionnal, with image regeneration and all I needed (I don't know why I haven't thought about it earlier...).
Thanks for your support !

MarkerWithLabel stopped working correctly

All of a sudden yesterday 3/4/2014 my MarkerWithLabel (Google map API application) is only showing the last marker but the labels all show up. It had been working just fine. The Google Example at: https://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.0.1/examples/basic.html is not working at all and I based my code on this example that used to work just fine.
In link below I placed 2 markers with labels on a map. Only marker 2 displays while both labels display. Reversing the markers causes marker 2 to display but not marker 1. Both labels display.
What changed or what am I doing wrong?
You can see my problem first hand at http://qsomap.org/QSOmapProduction/labeltest.htm . This was working correctly 2 days ago.
It appears as if the latest google maps update broke something that markerwithlabel code relies on. The same thing happend to some of my maps. We'll have to wait until a fix is available.
The current solution is to set the google maps API version to 3.15 or lower:
https://code.google.com/p/google-maps-utility-library-v3/issues/detail?id=296&sort=-id&colspec=ID%20Type%20Status%20Priority%20Fixed%20Owner%20Summary%20Stars
Using ...maps.google.com/maps/api/js?sensor=false&v=3.15 works
Using ...maps.google.com/maps/api/js?sensor=false&v=3.16 goes wrong
Using ...maps.google.com/maps/api/js?sensor=false goes wrong as well
The most recent Google API update (4th APR 2018) has broken my version of MarkerWithLabel. I have not yet tested MarkerWithLabel 1.9.1, but it is still the current and most recent update (I was on an older build). Here is a link to the latest version:
https://github.com/googlemaps/v3-utility-library/tree/master/markerwithlabel
I have reverted to an older version by including &v=3.31 in the URL and this has restored functionality, many thanks to #Mikrohard for the tip.
I'm not moving until I've investigated if the update has broken other libraries such as map clusters.

Displaying PDF on website using pdf.js

I want to put a file sample.pdf on my website, and want it to be displayed using pdf.js. What I want is to display my own file like the demo, with a toolbar, zooming in/out, etc. So far I can't do that yet.
I did check out the helloworld example, but it simply shows the file like an image, without toolbar, zooming in/out, etc. When I put another file with many pages instead of helloworld.pdf, it just shows the first page.
I am not quite sure what you are looking for but I was able to get this working exactly like the demo. Although you may not want to use that example viewer for your project, you can use the working code as a starting point for your own requirements.
For a simple test you can just clone the project somewhere under a web server into a directory like myproject and visit http://yourservername.com/myproject/web/viewer.html. You should see the pdf appear. This can be a starting point to working with this project. I did this running a very basic Apache server on Linux.
If you are not looking for an example styled like that the demo above you can also see this jsbin from the docs that show how to do something completely customized with working next/previous buttons to move between the pages (as you mentioned you were only seeing the first page).
As a note, it seems that this library does not work properly with Safari. You can see an issue about it here. Unfortunately this makes it unusable for me now as I need to support all current browsers.
Also, remember to watch for the warnings concerning CORS.