Package

ru.makkarpov

scalingua

Permalink

package scalingua

Visibility
  1. Public
  2. All

Type Members

  1. abstract class CompiledLanguage extends Language with PluralFunction

    Permalink

    A compiled representation of .po file that requires much less code to parse.

    A compiled representation of .po file that requires much less code to parse. We cannot embed all strings in Scala file since Java has limit on constant pool (65k) and on length of single string (also 65k). So we extract them to separate file and keep in Scala class only compiled plural function.

    This class is just a stub, actual implementation will be generated by SBT plugin.

  2. class LValue[+T] extends (Language) ⇒ T

    Permalink

    Value that can be translated lazily (e.g.

    Value that can be translated lazily (e.g. for definitions whose target language is not known a priori)

  3. trait Language extends AnyRef

    Permalink

    Base trait for objects reprensenting languages.

  4. final case class LanguageId(language: String, country: String) extends Product with Serializable

    Permalink

    Class representing a pair of language and country (e.g.

    Class representing a pair of language and country (e.g. en_US)

    language

    ISO code of language

    country

    ISO code of country, may be empty for generic languages.

  5. class Messages extends AnyRef

    Permalink

    Class representing a collection of language.

  6. trait OutputFormat[R] extends AnyRef

    Permalink

    An implicit evidence that strings could be interpolated into type R.

    An implicit evidence that strings could be interpolated into type R.

    R

    Result type of interpolation

  7. trait PluralFunction extends AnyRef

    Permalink

    Trait representing Plural-Forms *.po header, either statically compiled by SBT plugin or dynamically parsed.

Value Members

  1. object LValue

    Permalink
  2. object Language

    Permalink
  3. object LanguageId extends Serializable

    Permalink
  4. object Messages

    Permalink
  5. object OutputFormat

    Permalink
  6. object StringUtils

    Permalink

    Provides various string functions that are useful both in macros and in I18n code, such as string interpolations, escaping and unescaping.

Ungrouped