How to change footer to international text depending on login

Bruce Schlueter December 19, 2012

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
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2012

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

Bruce Schlueter January 8, 2013

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
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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
TAGS
AUG Leaders

Atlassian Community Events