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

This widget could not be displayed.

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

This widget could not be displayed.
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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

477 views 6 6
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