BrightSide Workbench Full Report + Source Code
org.turro.i18n.I18nCompatibilityWrapper Class Reference

Public Member Functions

String get (String msg)
 
String get (String msg, int count)
 
String format (String msg, Object... arguments)
 
String get (Locale locale, String msg)
 
String get (Locale locale, String msg, int count)
 
String format (Locale locale, String msg, Object... arguments)
 
List< String > getInLocales (String msg)
 

Static Public Member Functions

static I18nCompatibilityWrapper from (I18nApiWrapper i18nApiWrapper)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file I18nCompatibilityWrapper.java.

Member Function Documentation

◆ format() [1/2]

String org.turro.i18n.I18nCompatibilityWrapper.format ( Locale  locale,
String  msg,
Object...  arguments 
)

Definition at line 56 of file I18nCompatibilityWrapper.java.

56  {
57  if(msg == null) return null;
58  return i18nApiWrapper.get(locale, I18nCompatibilityKey.instance().getOrDefault(msg, msg));
59  }
Here is the call graph for this function:

◆ format() [2/2]

String org.turro.i18n.I18nCompatibilityWrapper.format ( String  msg,
Object...  arguments 
)

Definition at line 41 of file I18nCompatibilityWrapper.java.

41  {
42  if(msg == null) return null;
43  return i18nApiWrapper.format(I18nCompatibilityKey.instance().getOrDefault(msg, msg), arguments);
44  }
Here is the call graph for this function:

◆ from()

static I18nCompatibilityWrapper org.turro.i18n.I18nCompatibilityWrapper.from ( I18nApiWrapper  i18nApiWrapper)
static

Definition at line 70 of file I18nCompatibilityWrapper.java.

70  {
71  return new I18nCompatibilityWrapper(i18nApiWrapper);
72  }
Here is the caller graph for this function:

◆ get() [1/4]

String org.turro.i18n.I18nCompatibilityWrapper.get ( Locale  locale,
String  msg 
)

Definition at line 46 of file I18nCompatibilityWrapper.java.

46  {
47  if(msg == null) return null;
48  return i18nApiWrapper.get(locale, I18nCompatibilityKey.instance().getOrDefault(msg, msg));
49  }
Here is the call graph for this function:

◆ get() [2/4]

String org.turro.i18n.I18nCompatibilityWrapper.get ( Locale  locale,
String  msg,
int  count 
)

Definition at line 51 of file I18nCompatibilityWrapper.java.

51  {
52  if(msg == null) return null;
53  return i18nApiWrapper.get(locale, I18nCompatibilityKey.instance().getOrDefault(msg, msg), count);
54  }
Here is the call graph for this function:

◆ get() [3/4]

String org.turro.i18n.I18nCompatibilityWrapper.get ( String  msg)

Definition at line 31 of file I18nCompatibilityWrapper.java.

31  {
32  if(msg == null) return null;
33  return i18nApiWrapper.get(I18nCompatibilityKey.instance().getOrDefault(msg, msg));
34  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get() [4/4]

String org.turro.i18n.I18nCompatibilityWrapper.get ( String  msg,
int  count 
)

Definition at line 36 of file I18nCompatibilityWrapper.java.

36  {
37  if(msg == null) return null;
38  return i18nApiWrapper.get(I18nCompatibilityKey.instance().getOrDefault(msg, msg), count);
39  }
Here is the call graph for this function:

◆ getInLocales()

List<String> org.turro.i18n.I18nCompatibilityWrapper.getInLocales ( String  msg)

Definition at line 61 of file I18nCompatibilityWrapper.java.

61  {
62  if(msg == null) return Collections.EMPTY_LIST;
63  return i18nApiWrapper.getInLocales(I18nCompatibilityKey.instance().getOrDefault(msg, msg), I18nContext.getSiteLocales());
64  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: