1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Post language based on forum language.

Discussion in 'XenForo Questions and Support' started by Etherus, May 11, 2015.

  1. Etherus

    Etherus Member


    I have a forum with multiple languages on this forum I have a few introduction posts that are static and never change they are basically sticky in the top of some forums. (example: Forum Rules)

    right now it is 1 post with English, Japanese, Korean, Swedish all under each other but it looks pretty ugly and it is to big, I tried to use the spoiler BB code and only show English as default and people could click there Language but I got some comments that this is unclear.

    Is there someway to change the content dynamically so it only shows Japanese if the Japanese language is selected and only Korean if the Korean language is selected and so forward?

    If there is nothing build in for this is it then somehow possible to use the actually language file in post? So if I would create the static posts as a language entry can you then use that entry in your post somehow?

    I hope you understand what I mean and thank you for any help :).
    51463 likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There is nothing in the software which would translate post content.

    You would require a custom solution.
  3. Etherus

    Etherus Member

    I would ofcourse translate it myself.

    So is there a way to call the actually language api from within a post?

    So this for instance:
     <phrase title="static_post_1" addon_id="XenForo" version_id="1040670" version_string="1.4.6"><![CDATA[Blablabla post]]></phrase>
    Can you call this from within a post? that would solve the problem also.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There's no easy way of doing that.

    Have you considered using a Notice and utilising the language criterion?
    rafass likes this.
  5. Etherus

    Etherus Member

    Could you explain that slightly more perhaps or is there some post about this? I not fully understand what you mean with it. :)
  6. Brogan

    Brogan XenForo Moderator Staff Member


  7. Etherus

    Etherus Member

    Thanks for explaining!, I did this but it is not really what I was looking for, I will have a look if it can be fixed coding wise.

    Again thanks for the response!

Share This Page