Hello!

I've developed plugin and now it's time to internatiolize it.

<resource type="i18n" name="i18n" location="croc.apechnikov.PrTab"/> in atlassian-plugin.xml
ADDED

in package .../resources/croc/apechnikov/ I have 2 files: PrTab.properties and PrTab_ru_RU.properties.
But my plugin isn't translated at all!

Do you have any versions why?

2 answers

1 accepted

Accepted Answer
0 votes

I've found an answer. Nowhere was written that PrTab.properties and PrTab_ru_RU.properties must be identical(((( that's a very stupid fail

Interesting. What do you mean by identical? Can have only same properties?

I am using not identical files and its working just fine.

Jobin, yes. When i did them the same, everything began to work.
Jan, that's strange.

0 votes

Is it reading the key values? If it is only the transition which is failing, are you using the correct language?

And you have Russian selected in your user profile?

yes, it is, but only from PrTab.properties and not from PrTab_ru_RU.properties for Russian language. I'm programming this plugin for multiple languages if this may help.

Yes, i have but still don't works. I think there some problems with identifying PrTab_ru_RU.properties. May be i need somewhere in atlassian-plugin xml type something that tells jira to use PrTab_ru_RU.properties when language is set to russian?

Wherever you need translation, use the resolver's getText method.

I've imported I18N resolver module, but i need translation only in plugin description and in velocity templates.

protected Map createVelocityParams(BrowseContext ctx)

{

Map params = JiraVelocityUtils.getDefaultVelocityParams(super.createVelocityParams(ctx), authenticationContext);

.........some code.........

params.put("1111key",i18nResolver.getText("internationalized.greeting"));

return params;

}

View template:

$i18n.getText("key.value")

$1111key
nothing works((

Jobin, thank you very much for your help.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Europe

Venue Needed! 23rd October

Hey Everyone! Unfortunately, the venue that was hosting us on the 23rd has pulled out so we're looking for a new venue.    If anyone would have a room free that we could use on the ev...

43 views 1 0
View post

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