MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.tm.persistence.dao/DefaultMemoryEntryDao

DefaultMemoryEntryDao

[jvm]
class DefaultMemoryEntryDao : MemoryEntryDao

Constructors

   
DefaultMemoryEntryDao [jvm]
constructor()

Functions

Name Summary
create [jvm]
open suspend override fun create(model: TranslationMemoryEntryModel): Int
Create a new translation memory entry.
delete [jvm]
open suspend override fun delete(model: TranslationMemoryEntryModel)
Delete a translation memory entry.
deleteAll [jvm]
open suspend override fun deleteAll(origin: String?)
Delete all the entries with a given origin.
getByIdentifier [jvm]
open suspend override fun getByIdentifier(identifier: String, origin: String, sourceLang: String, targetLang: String): TranslationMemoryEntryModel?
Get a TM entry by identifier.
getEntries [jvm]
open suspend override fun getEntries(sourceLang: String): List<TranslationMemoryEntryModel>
open suspend override fun getEntries(sourceLang: String, targetLang: String, search: String): List<TranslationMemoryEntryModel>
Get TM entries.
getLanguageCodes [jvm]
open suspend override fun getLanguageCodes(): List<String>
Get the list of distinct language codes in the TM.
getTargetMessage [jvm]
open suspend override fun getTargetMessage(lang: String, key: String): TranslationMemoryEntryModel?
Get the target message for a given TM entry key.
update [jvm]
open suspend override fun update(model: TranslationMemoryEntryModel)
Update a translation memory entry.