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?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jobin, yes. When i did them the same, everything began to work.
Jan, that's strange.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it reading the key values? If it is only the transition which is failing, are you using the correct language?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And you have Russian selected in your user profile?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using i18N resolver as mentioned here: https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Internationalising+Your+Plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wherever you need translation, use the resolver's getText method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've imported I18N resolver module, but i need translation only in plugin description and in velocity templates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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((
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jobin, thank you very much for your help.
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.