1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/res/localization/embedded.sed
Pete Batard cb3de685ee [misc] fix MinGW and Clang warnings
* Also fix "MSG_176 UNTRANSLATED" for English and Chinese
2013-12-02 18:24:54 +00:00

20 lines
No EOL
543 B
Sed

# This sed script removes everything we don't need from rufus.loc, for embedding.
# remove comments (aggressively!)
s/#.*$//
# remove empty lines
/^$/d
# remove trailing whitespaces
s/[ \t]*$//
# remove the UI controls for "en-US" as they are just here for translators
# 1,300 means we only do this for the the first 300 lines
1,300 {/^g IDD_DIALOG/,/^g IDD_MESSAGES/{/^g IDD_MESSAGES/!d}}
# also replace the "translated by" line for English
1,500{s/^t MSG_176.*$/t MSG_176 \"mailto:pete@akeo.ie\"/}
# output file *MUST* be CR/LF
s/$/\r/