For example when using the create-from-template macro, can I enter the value of the 'Button text' parameter based on the current users UI language?
Or asking another way:
How can I localize the 'Button text' parameter for the create-from-template macro so that the user will see the buttons' text in his language when visiting the corresponding page?
Hi Rainer,
yes, there are a couple of ways to do this. The Tutorial on internationalisation is a good point to start. It is also possible to use this for JavaScript (AJS.I18n.getText(...)) or soy templates (add transformer to web resources).
Best regards,
Robert
Hi Robert,
thanks for your answer. Since the macro in question is a built-in macro, I doubt I can change its implementation in regard to internationalization. I was looking more for a method like that which is documented for the 'template name' parameter. To refer to the current date there one use the at notation: @currentDate.
I guess what I am looking for is a way to access a text already defined in the confluence language pack. I would assume a language pack contains a text for 'Create' or 'Create page' which has already been translated. If there were a handle for such texts then I could refer to them when filling out macro parameters.
Example @i18n:createPage.
Best regards
Rainer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case you can create a translation pack. To find out which keys to translate you can add "?i18ntranslate=on" to the end of the url. This should show you the i18n keys, instead of the localized labels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.