mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-17 16:44:27 -04:00
[loc] remove nagging about lost translators
* All things considered, this was probably more detrimental than helpful
* Reverts 26af32b522
This commit is contained in:
parent
8bb20f3d7c
commit
65bbe984fd
5 changed files with 13 additions and 49 deletions
25
src/parser.c
25
src/parser.c
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Rufus: The Reliable USB Formatting Utility
|
||||
* Elementary Unicode compliant find/replace parser
|
||||
* Copyright © 2012-2014 Pete Batard <pete@akeo.ie>
|
||||
* Copyright © 2012-2016 Pete Batard <pete@akeo.ie>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -239,13 +239,12 @@ BOOL get_supported_locales(const char* filename)
|
|||
FILE* fd = NULL;
|
||||
BOOL r = FALSE;
|
||||
char line[1024];
|
||||
char* LT[] = LOST_TRANSLATORS; //just to get the arraysize...
|
||||
size_t i, j, k;
|
||||
loc_cmd *lcmd = NULL, *last_lcmd = NULL;
|
||||
long end_of_block;
|
||||
int version_line_nr = 0;
|
||||
uint32_t loc_base_minor = -1, loc_base_micro = -1;
|
||||
|
||||
|
||||
fd = open_loc_file(filename);
|
||||
if (fd == NULL)
|
||||
goto out;
|
||||
|
@ -346,16 +345,8 @@ BOOL get_supported_locales(const char* filename)
|
|||
if (lcmd->unum[2] < loc_base_micro) {
|
||||
luprintf("the version of this translation is older than the base one and may result in some messages not being properly translated.\n"
|
||||
"If you are the translator, please update your translation with the changes that intervened between v%d.%d.%d and v%d.%d.%d.\n"
|
||||
"See https://github.com/pbatard/rufus/blob/master/res/localization/ChangeLog.txt",
|
||||
"See https://github.com/pbatard/rufus/blob/master/res/localization/ChangeLog.txt",
|
||||
LOC_FRAMEWORK_VERSION, loc_base_minor, lcmd->unum[2], LOC_FRAMEWORK_VERSION, loc_base_minor, loc_base_micro);
|
||||
} else if (lcmd->unum[2] >= loc_base_micro) {
|
||||
// Don't bug users about a locale that may already have been upgraded
|
||||
for (i=0; i<ARRAYSIZE(LT); i++) {
|
||||
if (safe_strcmp(last_lcmd->txt[0], lost_translators[i]) == 0) {
|
||||
uprintf("NOTE: This translation appears up to date - Removing it from LOST_TRANSLATORS");
|
||||
lost_translators[i][0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
version_line_nr = loc_line_nr;
|
||||
}
|
||||
|
@ -374,7 +365,7 @@ BOOL get_supported_locales(const char* filename)
|
|||
}
|
||||
r = !list_empty(&locale_list);
|
||||
if (r == FALSE)
|
||||
uprintf("localization: '%s' contains no valid locale sections\n", filename);
|
||||
uprintf("localization: '%s' contains no valid locale sections\n", filename);
|
||||
|
||||
out:
|
||||
if (fd != NULL)
|
||||
|
@ -576,7 +567,7 @@ out:
|
|||
|
||||
/*
|
||||
* Parse a line of UTF-16 text and return the data if it matches the 'token'
|
||||
* The parsed line is of the form: [ ]token[ ]=[ ]["]data["][ ] and is
|
||||
* The parsed line is of the form: [ ]token[ ]=[ ]["]data["][ ] and is
|
||||
* modified by the parser
|
||||
*/
|
||||
static wchar_t* get_token_data_line(const wchar_t* wtoken, wchar_t* wline)
|
||||
|
@ -603,7 +594,7 @@ static wchar_t* get_token_data_line(const wchar_t* wtoken, wchar_t* wline)
|
|||
i += wcsspn(&wline[i], wspace);
|
||||
|
||||
// Check for an equal sign
|
||||
if (wline[i] != L'=')
|
||||
if (wline[i] != L'=')
|
||||
return NULL;
|
||||
i++;
|
||||
|
||||
|
@ -1006,7 +997,7 @@ char* insert_section_data(const char* filename, const char* section, const char*
|
|||
break;
|
||||
}
|
||||
fseek(fd_in, 0, SEEK_SET);
|
||||
// duprintf("'%s' was detected as %s\n", filename,
|
||||
// duprintf("'%s' was detected as %s\n", filename,
|
||||
// (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM"));
|
||||
|
||||
wtmpname = (wchar_t*)calloc(wcslen(wfilename)+2, sizeof(wchar_t));
|
||||
|
@ -1145,7 +1136,7 @@ char* replace_in_token_data(const char* filename, const char* token, const char*
|
|||
break;
|
||||
}
|
||||
fseek(fd_in, 0, SEEK_SET);
|
||||
// duprintf("'%s' was detected as %s\n", filename,
|
||||
// duprintf("'%s' was detected as %s\n", filename,
|
||||
// (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM"));
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue