So I have two language files, english and french. They are in this format:
An example in English would be:
And in French:
So I need a script that reads the language files and finds the differences. So say that the English file had keys:
But French only had
After running the script, it should output a file
ui.close=Close. So this way, I can send the file off to my translators and they can translate it.
When I get it back, I can simply run cat
french.changes >> french; sort -o Language_fr_FR.properties, to merge the changes.
I also need a method of sorting the language files by the key not the whole line.
I looked into
diff but not sure how to use it correctly. I have been using Linux for quite a while but not so up to speed on fancy scripting :)
Thanks for any help!