How to change footer to international text depending on login

Hi all,

I already asked the question https://answers.atlassian.com/questions/106619/edit-footer-in-documentation-theme and that gave me the answer to change the footer-content.vm. This works really fine and I was able to edit the footer the way we wanted. I know we need to keep the "powered by..." in the footer but my question is, as we are multilanguage and open to external users we need to add the links for "Disclaimer" and "legal info" to the pages. I added these to the footer but of course they are in German right now. I saw that the file contains "$action.getText". Is it possible to use this so that I could display different text depending on the login language? And if so, where would I have to add the text.

Thanks a lot for your input,

Bruce

2 answers

1 accepted

0 votes
Accepted answer

Yes you can, while it becomes slightly tougher to do it:

  • Instead of using directly the text you should be using the string resource keys within your velocity files.
  • And you should additionally extend the language packs installed in your instance to include these extra keys that you are using (or introduce the resource file for keys alone as a single plugin, I guess this should be possible)

https://developer.atlassian.com/display/PLUGINFRAMEWORK/Internationalising+your+plugin

Hi Renjith, hi Pedro,

thanks for your input. I am not sure that we will dig into this that deep. But I know have an idea where to look so we can estimate the necessary things to do.

Thanks, Bruce

0 votes
Pedro Cora Atlassian Team Dec 27, 2012

Hi Bruce,

From the top of my head, to achieve this, you would need to dig a bit more into the code and make some conditional function that checks for the user personal settings in order to display a given footer.

To do so, I recommend that you go to http://developers.atlassian.com to get docs and also the source.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,047 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you