All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.gettext.GetTextResourcesConfig.kt Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
/*
 * Copyright © 2017 Denis Shurygin. All rights reserved.
 * Licensed under the Apache License, Version 2.0
 */

package ru.pocketbyte.locolaser.gettext

import ru.pocketbyte.locolaser.config.resources.BaseResourcesConfig
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.gettext.resource.GetTextResources
import ru.pocketbyte.locolaser.gettext.resource.file.provider.GetTextResourceFileProvider
import ru.pocketbyte.locolaser.resource.Resources
import java.io.File

/**
 * Android platform configuration.
 *
 * @author Denis Shurygin
 */
class GetTextResourcesConfig : BaseResourcesConfig() {

    companion object {
        const val TYPE = "gettext"
    }

    override val type = TYPE
    override val defaultTempDirPath = "./build/tmp/"
    override val defaultResourcesPath = "./languages/"
    override val defaultResourceName = "messages"

    override var resourceFileProvider: ResourceFileProvider = GetTextResourceFileProvider()

    override val resources: Resources
        get() = GetTextResources(resourcesDir, resourceName, resourceFileProvider, filter)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy