I am still playing around with showing fallback content for not translated pages. In my article.php template, the first line is:
<?php if($page->text()->isNotEmpty()): ?>
After that, there is a lot of content stuff, then
<?php else: ?> Fallback text. <?php endif ?>
The problem now is: The fallback text is not displayed for the German URL, although there is no German text file. The English content (default lang) is displayed instead. There is only article.en.txt in content.
I expected that the German text is empty, so the fallback content would be displayed.
Another thing I tried:
I used isTranslated(), but for the default language it is always true, I can’t use it. Because I will have German-only posts in my blog.
Thanks and best –Martin