mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 15:28:25 -04:00
[loc] use a single rufus.loc as translator base
* Remove the need to maintain a new_translation.loc * Add a sed invocation to remove comments and unwanted stuff to generate a final embedded.loc * Note: sed is only invoked for MinGW. MS compilers still embed the unmodified rufus.loc. * Also fix a small bug when parsing the version.
This commit is contained in:
parent
c44fa3969d
commit
c544429606
25 changed files with 602 additions and 438 deletions
17
res/localization/embedded.sed
Normal file
17
res/localization/embedded.sed
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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}}
|
||||
|
||||
# output file *MUST* be CR/LF
|
||||
s/$/\r/
|
Loading…
Add table
Add a link
Reference in a new issue