This bash script is designed to work with comments in bash script files. Its main purpose is to reference and extract each comment from all .sh files in the directory where it is placed, and overwrite the original files with the translated comments.
The script generates translation files where all found comments are dumped with a numerical reference. Later, any of these can be dumped again.
Manual comment references can be added and appended to the translation files. It's also possible to renumber all references again.
- Formatting the code
- Add headers and additional data
- Performance issue:
- Two loops one for findComments other for loop over them.
- Progress bar render every iteration
- New language generates a file even if there are no references
- Ditch sed -i to avoid creating tmp files for each iteration