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
Answer accepted

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 Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

278 views 2 10
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