org.sonar.server.ui
Class JRubyI18n

java.lang.Object
  extended by org.sonar.server.ui.JRubyI18n
All Implemented Interfaces:
ServerComponent

public final class JRubyI18n
extends Object
implements ServerComponent

Bridge between JRuby webapp and Java I18n component


Constructor Summary
JRubyI18n(I18n i18n, RuleI18nManager ruleI18nManager, GwtI18n gwtI18n)
           
 
Method Summary
 String getJsDictionnary(String rubyLocale)
           
 String getRuleDescription(String rubyLocale, String repositoryKey, String key)
           
 String getRuleName(String rubyLocale, String repositoryKey, String key)
           
 String getRuleParamDescription(String rubyLocale, String repositoryKey, String ruleKey, String paramKey)
           
 String message(String rubyLocale, String key, String defaultValue, Object... parameters)
           
 List<RuleI18nManager.RuleKey> searchRuleName(String rubyLocale, String searchText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyI18n

public JRubyI18n(I18n i18n,
                 RuleI18nManager ruleI18nManager,
                 GwtI18n gwtI18n)
Method Detail

message

public String message(String rubyLocale,
                      String key,
                      String defaultValue,
                      Object... parameters)

getRuleName

public String getRuleName(String rubyLocale,
                          String repositoryKey,
                          String key)

getRuleDescription

public String getRuleDescription(String rubyLocale,
                                 String repositoryKey,
                                 String key)

getRuleParamDescription

public String getRuleParamDescription(String rubyLocale,
                                      String repositoryKey,
                                      String ruleKey,
                                      String paramKey)

searchRuleName

public List<RuleI18nManager.RuleKey> searchRuleName(String rubyLocale,
                                                    String searchText)

getJsDictionnary

public String getJsDictionnary(String rubyLocale)


Copyright © 2009-2011 SonarSource. All Rights Reserved.