1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/res/loc/embedded.sed
Pete Batard fac433a0fe
[loc] set up Windows Store listing translations (part 1)
* MSG_900+ will be used for Windows Store translation, so add them
  and makes sure these get filtered out from embedded.loc.
* Also make sure we don't get a "Translated by:" in the English version
  when compiled with VS2022.
* Also add Store screenshots and update listing.csv so that we can
  autogenerate and upload a complete translation update to the store.
2023-02-03 17:03:06 +00:00

21 lines
No EOL
536 B
Sed

# 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}}
# remove the Windows AppStore specific messages
/MSG_9/d
# output file *MUST* be CR/LF
s/$/\r/