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

XF 1.4 Custom Language Phrase.

#1
How does one go about to create a custom language phrase?

Example create a new widget, call About US in English and then be able to translate that phrase to French?

Thanks in advance for the help.
 

Brogan

XenForo moderator
Staff member
#2
Create a new language, call it French and translate the phrases you want.

If the widget doesn't have a phrase, this guide explains how to create one: How To...
 
#3
Thank-you, that was simple, however when I display my custom phrase as a title, I get this {xen:phrase my_footer_about_us_phrase} not the actual wording.
 

Brogan

XenForo moderator
Staff member
#4
I don't know which widget you are using but it could be related.

Does the phrase work if you call it on the forum_list template, for example?
 
#5
I am trying to use it in my theme footer box.

Basically you can enter any html code and I am trying to create an About US, but since my forums are bilingual I need a way to display About Us per language type.

So something like this for the title, followed by another Phrase with the remainder of the content.

<h3> {xen:phrase my_footer_about_us_phrase}</h3>

Is this possible?
 
#7
I think I figured it out, if I add it in the styling preference, it doesn't work. I need to modify the actual template. Thanks for your help sir