jonassalen Posted October 19, 2020 Share Posted October 19, 2020 I have a website that's mostly in two languages. But I have a news section that doesn't have the same content in the two languages. Sometimes it's translated one-on-one, but mostly there are articles only in the default language or exclusively in the non-default language. What's the tactic for the exclusive non-default language news-articles? I tried making a page without filling the default language fields, but that doesn't work, because the title is required. I tried disabling the multi-language for that specific template, but then I can't make any pages for the non-default language. Anyone who wants to help? I'm not a genius in programming PHP unfortunately. Link to comment Share on other sites More sharing options...
kongondo Posted October 19, 2020 Share Posted October 19, 2020 Welcome to the forums @jonassalen, Have a look at this thread. It should answer your question, but the solutions might need a bit of tweaking since the case there was to 'preserve' default language pages. Link to comment Share on other sites More sharing options...
Kalexan Posted November 26, 2020 Share Posted November 26, 2020 I am really interested in the same issue. News sections in sites is hardly ever translated in all languages, per article. Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 17, 2021 Share Posted January 17, 2021 Hi, sorry to come to you so late... actually, i your case i would choose a very simple solution which would be to use pw ability to fill all the languages with the default one if they are empty having worked on a website in nine languages (including russian, chinese and japanese), you can imagine that the case you describe happened quite a lot... my solution in your case would be quite simple, if the editor only has the news in the non default language, well, let them fill the... default language, pw will take care of the rest of the job then, the question will be, do you want to display all the news in both (or more) languages, no matter the language they appear in - if so, job done - if not, just add a select on the news template to choose in which language(s) it will be displayed with both/language1/language2 (for more than two languages, a multi select or checkboxes would do the job) this being done, it's easy to exclude news on the allnews template depending on their language and not to display the language switch on those that are not translated or, if more than two languages, only display in the switch the languages you want in case it helps have a nice day 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now