Vamos wrote:Consider the scenario, where your forum web site is accessed from different countries. What I would like to see is that YAF detects the language via sniffing ACCEPT_LANGUAGE header sent by browser and loads the corresponding localized strings for this culture for the UI.
As a stretch goal it would be nice if the primary language of a POST is saved as well, by detecting language via JavaScript and allow filtering by language.
The international support or localized content is a complex problem, more difficult than the static localization.
You can attack it by many systems:
* to have two o more boards, categories or forum, each one for a different culture. I have a YAF forum like this at
http://yaf.herensoft.net. This is not a wonderful solution. You must to repeat the important posts in two o more languages. You can work well with YAF like it is today.
* to have a unique board and allowing the users post in one or another language. You can also work well with YAF like it is today. But the users see all the posts (the ones in his language and the other that they can't understand. This is not a wonderful solution.
* as you said, you can change YAF to show only the posts in the user language. We need a new field (culture) in each post, by example. And change a bit the SQLs.
* to have a unique board, but YAF is changed to permit show the info in the smart mode (*). The changes are big. 2 new fields in the posts table and big changes in the SQLs.
(*) Smart mode = There is a main culture. The user can read a post in his culture. If the post is not translated nor write in his culture he can read in the main culture or in the unique culture that it was write. You can have post in only a culture or post in many cultures. This system is perhaps not the best for a forum, but for CMS is very good. I have it implemented at
http://www.sareleku.com