Created
September 4, 2011 02:54
-
-
Save lucastex/1192163 to your computer and use it in GitHub Desktop.
script to insert {hidden} tag into grails doc files to start translation
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
def dir = "/Users/lucastex/Projetos/gdoc-ptbr/grails-doc/src/pt_BR/" | |
new File(dir).eachFileRecurse { file -> | |
if (file.isFile() && file.name.endsWith(".gdoc")) { | |
def toFile = File.createTempFile("grails-doc-translate-", "-sfx") | |
toFile << "{hidden}\n" | |
toFile << file.text | |
toFile << "\n{hidden}" | |
toFile.renameTo(file) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment