Class/Object

ru.makkarpov.scalingua

CompiledLanguage

Related Docs: object CompiledLanguage | package scalingua

Permalink

abstract class CompiledLanguage extends Language with PluralFunction with TaggedLanguage

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompiledLanguage
  2. PluralFunction
  3. Language
  4. TaggedLanguage
  5. AnyRef
  6. 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
  3. abstract def taggedFallback: TaggedLanguage

    Permalink

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
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. 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
  11. def initialize(is: InputStream): Unit

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

    Permalink
    Definition Classes
    Any
  13. def merge(other: Language): Language

    Permalink

    Merges this language with specified other.

    Merges this language with specified other. Conflicting messages will be resolved using this language. Plural function will be used from this language.

    other

    Language to merge

    returns

    Merged language

    Definition Classes
    CompiledLanguageLanguage
  14. def messageData: MessageData

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. 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
  19. 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
  20. 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
  21. 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
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def taggedPlural(tag: String, n: Long): String

    Permalink

    Returns plural string resolved by tag with respect to quantity

    Returns plural string resolved by tag with respect to quantity

    tag

    String tag

    n

    Quantity

    returns

    Resolved string

    Definition Classes
    CompiledLanguageTaggedLanguage
  24. def taggedSingular(tag: String): String

    Permalink

    Returns singular string resolved by tag

    Returns singular string resolved by tag

    tag

    String tag

    returns

    Resolved string

    Definition Classes
    CompiledLanguageTaggedLanguage
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from PluralFunction

Inherited from Language

Inherited from TaggedLanguage

Inherited from AnyRef

Inherited from Any

Ungrouped