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

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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

762 views 23 12
Join discussion

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