Bug 725155 - Move MozillaMaintenance service description string to Strings section of ini file. r=rstrong

This commit is contained in:
Brian R. Bondy 2012-02-09 14:44:54 -05:00
Родитель 82c4eec776
Коммит b2538907d5
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -3,6 +3,4 @@
[Strings]
TitleText=%MOZ_APP_DISPLAYNAME% Update
InfoText=%MOZ_APP_DISPLAYNAME% is installing your updates and will start in a few moments…
[MaintenanceServiceStrings]
ServiceDescription=The Mozilla Maintenance Service ensures that you have the latest and most secure version of Mozilla Firefox on your computer. Keeping Firefox up to date is very important for your online security, and Mozilla strongly recommends that you keep this service enabled.
MozillaMaintenanceDescription=The Mozilla Maintenance Service ensures that you have the latest and most secure version of Mozilla Firefox on your computer. Keeping Firefox up to date is very important for your online security, and Mozilla strongly recommends that you keep this service enabled.

Просмотреть файл

@ -69,11 +69,10 @@ ReadMaintenanceServiceStrings(LPCWSTR path,
{
// Read in the maintenance service description string if specified.
const unsigned int kNumStrings = 1;
const char *kServiceKeys = "ServiceDescription\0";
const char *kServiceKeys = "MozillaMaintenanceDescription\0";
char serviceStrings[kNumStrings][MAX_TEXT_LEN];
int result = ReadStrings(path, kServiceKeys,
kNumStrings, serviceStrings,
"MaintenanceServiceStrings");
kNumStrings, serviceStrings);
if (result != OK) {
serviceStrings[0][0] = '\0';
}