grav-plugin-simplesearch
grav-plugin-simplesearch copied to clipboard
it seems the placeholder text is gone ?
Hi guys,
Just updated to the latest version and it seems that the placeholder no longer finds the proper string to display.
As per the picture attached it stays to the {.......placeholder}
is this just me messing around or maybe an error with the plugin ?
thanks in advance
There for me: https://github.com/getgrav/grav-plugin-simplesearch/blob/develop/languages.yaml#L3
i have the languages as well and they do look proper. still this strange glitch (cache disabled, local, mamp and codekit)
Did you mess about with language files?
I havent - i just checked them out to make sure that everything is there. I have updated the content of .searchbox.html.twig to the latest version and now i get an updated HTML input with the same placeholder issue ...
https://demo.getgrav.org/blog-skeleton/
Seems ok here:
i can see that = i'll replace my files completely and see if anything changes and i'll update this. thanks for the quick replies.
I have played with the files and cant seem to make it work. AS per the picture attached, the rezults do get the proper translation from the array but not the placeholder.
since I cant figure it out, I have hardcoded the placeholder for now,
@JohnMica you have translations enabled in the System configuration?
@FlavioCopes - translations are enabled and default language is Romanian. As you can see the results.html.twig picks up the translation just the placeholder doesn't really want to ... not sure why
Do you have system.languages.translations_fallback
enabled? I notice the string is not translated in romanian, so maybe it's not picked up for this reason. Otherwise, adding it to the ro
translations should work
Hey guys! I had the same issue, fixed it by switching languages: translations: false
to translations: true
. What make sense because in other way translations are not working.
Seems that none of the placeholders get fillled. German translation is activated and the german strings look correct to me.