This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.println 'Enumerate filtered segments.' | |
def entries = project.allEntries | |
def filter = editor.filter ?: [allowed: {true}] | |
def found = entries.findAll { filter.allowed it } | |
// Do something for each SourceTextEntry here | |
found.each { | |
// get translation info | |
def info = project.getTranslationInfo(it) |