mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[internal] reorganize localization resources
This commit is contained in:
parent
704fd9dd22
commit
0fa19d7019
21 changed files with 130 additions and 162 deletions
21
res/loc/embedded.sed
Normal file
21
res/loc/embedded.sed
Normal file
|
@ -0,0 +1,21 @@
|
|||
# This sed script removes everything we don't need from rufus.loc, for embedding.
|
||||
|
||||
# remove comments (but not so aggressively as to drop the end of MSG_298!)
|
||||
s/^#.*$//
|
||||
s/[ \t]#.*$//
|
||||
|
||||
# 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/,/^t MSG_001/{/^t MSG_001/!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/
|
Loading…
Add table
Add a link
Reference in a new issue