Class

ru.makkarpov.scalingua

CompiledLanguage

Related Doc: package scalingua

Permalink

abstract class CompiledLanguage extends Language with PluralFunction

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.

Linear Supertypes
PluralFunction, Language, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompiledLanguage
  2. PluralFunction
  3. Language
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompiledLanguage()

    Permalink

Abstract Value Members

  1. abstract def numPlurals: Int

    Permalink

    Number of plural forms in language

    Number of plural forms in language

    Definition Classes
    PluralFunction
  2. abstract def plural(n: Long): Int

    Permalink

    A plural form for number n

    A plural form for number n

    Definition Classes
    PluralFunction

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. def id: LanguageId

    Permalink

    A exact (with country part) ID of this language.

    A exact (with country part) ID of this language.

    Definition Classes
    CompiledLanguageLanguage
  12. def initialize(is: InputStream): Unit

    Permalink
    Attributes
    protected
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def plural(msgctx: String, msgid: String, msgidPlural: String, n: Long): String

    Permalink

    Resolve plural form of message with a context.

    Resolve plural form of message with a context.

    msgctx

    A context of message

    msgid

    A singular form of message

    msgidPlural

    A plural form of message

    n

    Numeral representing which form to choose

    returns

    Resolved plural form of message

    Definition Classes
    CompiledLanguageLanguage
  18. def plural(msgid: String, msgidPlural: String, n: Long): String

    Permalink

    Resolve plural form of message without a context

    Resolve plural form of message without a context

    msgid

    A singular form of message

    msgidPlural

    A plural form of message

    n

    Numeral representing which form to choose

    returns

    Resolved plural form of message

    Definition Classes
    CompiledLanguageLanguage
  19. def singular(msgctx: String, msgid: String): String

    Permalink

    Resolve singular form of message with a context.

    Resolve singular form of message with a context.

    msgctx

    A context of message

    msgid

    A message to resolve

    returns

    Resolved message or msgid itself.

    Definition Classes
    CompiledLanguageLanguage
  20. def singular(msgid: String): String

    Permalink

    Resolve singular form of message without a context.

    Resolve singular form of message without a context.

    msgid

    A message to resolve

    returns

    Resolved message or msgid itself.

    Definition Classes
    CompiledLanguageLanguage
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PluralFunction

Inherited from Language

Inherited from AnyRef

Inherited from Any

Ungrouped