TranslationServicePo

Implementation of TranslationService that uses .po po file format.

API

TranslationServicePo.java
class TranslationServicePo {
  TranslationServicePo()     (1)
  void init()
  void shutdown()
  String translate(TranslationContext context, String text)
  String translate(TranslationContext context, String singularText, String pluralText, int num)
  Mode getMode()
  Optional<String> toPot()     (2)
  void clearCache()     (3)
  void toggleMode()     (4)
  Can<TranslationsResolver> getTranslationsResolver()
}
1 TranslationServicePo()

Defaults to writer mode because the service won’t have been init’d while the metamodel is bring instantiated, and we want to ensure that we capture all requests for translation.

2 toPot()

Not API

3 clearCache()

Not API

4 toggleMode()

Not API

Members

TranslationServicePo()

Defaults to writer mode because the service won’t have been init’d while the metamodel is bring instantiated, and we want to ensure that we capture all requests for translation.

toPot()

Not API

clearCache()

Not API

toggleMode()

Not API