Skip to content

Commit

Permalink
Add translations from *.kt files to *.pot files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed Jan 27, 2022
1 parent 5f4bc4d commit daa79e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ private fun setupI18nTasks(project: Project, sourceSetJosmPlugin: SourceSet) {
project.tasks.create(
"generatePot",
GeneratePot::class.java,
project.provider { sourceSetJosmPlugin.java.asFileTree.files }
project.provider {
sourceSetJosmPlugin.allSource.filter { it.isFile && it.extension.lowercase() in setOf("java", "kt") }.asFileTree.files
.minus(sourceSetJosmPlugin.resources.asFileTree.files)
}
)

project.tasks.create("transifexDownload", TransifexDownload::class.java)
Expand Down

0 comments on commit daa79e9

Please sign in to comment.