mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-24 19:54: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
|
@ -2045,7 +2045,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
if (GetFileAttributesU("rufus.loc") == INVALID_FILE_ATTRIBUTES) {
|
||||
uprintf("loc file not found in current directory - embedded one will be used");
|
||||
|
||||
loc_data = (BYTE*)GetResource(hMainInstance, MAKEINTRESOURCEA(IDR_LC_RUFUS_LOC), _RT_RCDATA, "rufus.loc", &loc_size, FALSE);
|
||||
loc_data = (BYTE*)GetResource(hMainInstance, MAKEINTRESOURCEA(IDR_LC_RUFUS_LOC), _RT_RCDATA, "embedded.loc", &loc_size, FALSE);
|
||||
GetTempPathU(sizeof(tmp_path), tmp_path);
|
||||
GetTempFileNameU(tmp_path, APPLICATION_NAME, 0, loc_file);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue