Hi everyone
I built a kirby cms site. Its already published and its running for a year already.
Now the client asked me to add another language to the site. I didnt use the languages folder in the site so I do it now - and apparently the content that is already in the site doesn’t turn automatically into the default language - I need to duplicate the content and change the files names manually.
It’s impossible since we have a lot of content.
Am I missing something maybe? is there a way to this automatically?
any help is appreciated
I have another question - it seems that the original content is now in both of the languages - its in the default language which is good, but it is also in the new language.
The problem is that I want to show the language button only if the content in the new language is exist (or different than the default language) - any idea how to achieve this now that the content is similar in both languages?
No, as long as you don’t save the content in the secondary languages, the Panel only prefills the values of the default language to ease translating your content.
You can either check if the translation file exist or if relevant fields are filled.
It might make sense to add a toggle to mark translations as fully translated and query that toggle field, to prevent showing partly translated pages. If a user inadvertently saves the untranslated page with the default content, or only translates a single field, this might easily happen.