[WINLOGON] Localize the shutdown timeout

This commit is contained in:
Eric Kohl 2018-04-29 17:09:37 +02:00
parent 84e78e6a15
commit ec2bfa2e11
29 changed files with 63 additions and 3 deletions

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Приготвяне за сън..."
IDS_SAVEYOURSETTINGS "Записване на настройките ви..."
IDS_REACTOSISSTARTINGUP "РеактОС тръгва..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Příprava k přechodu do režimu hibernace..."
IDS_SAVEYOURSETTINGS "Ukládání osobního nastavení..."
IDS_REACTOSISSTARTINGUP "ReactOS se spouští..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Vorbereiten für den Ruhezustand..."
IDS_SAVEYOURSETTINGS "Speichern Ihrer persönlichen Einstellungen..."
IDS_REACTOSISSTARTINGUP "ReactOS startet..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d Tage"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Preparing to Hibernate..."
IDS_SAVEYOURSETTINGS "Γίνεται αποθήκευση των ρυθμίσεών σας..."
IDS_REACTOSISSTARTINGUP "Το ReactOS ξεκινά..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Preparing to Hibernate..."
IDS_SAVEYOURSETTINGS "Saving your settings..."
IDS_REACTOSISSTARTINGUP "ReactOS is starting up..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Preparando para hibernar..."
IDS_SAVEYOURSETTINGS "Guardando su configuración personal..."
IDS_REACTOSISSTARTINGUP "ReactOS se está iniciando..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Préparation de l'hibernation..."
IDS_SAVEYOURSETTINGS "Enregistrement de vos paramètres..."
IDS_REACTOSISSTARTINGUP "Démarrage de ReactOS..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "מתכונן לשינה..."
IDS_SAVEYOURSETTINGS "שומר את הגדרותיך..."
IDS_REACTOSISSTARTINGUP "ReactOS מופעל..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Hibernálás elõkészítése..."
IDS_SAVEYOURSETTINGS "Beállítások mentése..."
IDS_REACTOSISSTARTINGUP "A ReactOS indul..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Menyiapkan untuk Hibernasi..."
IDS_SAVEYOURSETTINGS "Menyimpan setelan anda..."
IDS_REACTOSISSTARTINGUP "ReactOS dimulai..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Preparazione Hibernate..."
IDS_SAVEYOURSETTINGS "Salvataggio delle impostazioni personali..."
IDS_REACTOSISSTARTINGUP "ReactOS sta avviandosi..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "休止状態の準備をしています..."
IDS_SAVEYOURSETTINGS "設定を保存しています..."
IDS_REACTOSISSTARTINGUP "ReactOS を起動しています..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Ruošiamasi išjungti įrašant..."
IDS_SAVEYOURSETTINGS "Išsaugomos nuostatos..."
IDS_REACTOSISSTARTINGUP "Paleidžiama ReactOS..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Bersedia untuk berhibernasi..."
IDS_SAVEYOURSETTINGS "Menyimpan seting anda..."
IDS_REACTOSISSTARTINGUP "ReactOS sedang bermula komputer anda..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Slaapstand wordt voorbereid..."
IDS_SAVEYOURSETTINGS "Persoonlijke instellingen worden opgeslagen..."
IDS_REACTOSISSTARTINGUP "ReactOS is aan het opstarten..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Forbreder dvalemodus..."
IDS_SAVEYOURSETTINGS "Lagrer innstillingene..."
IDS_REACTOSISSTARTINGUP "ReactOS starter opp..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -56,6 +56,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Trwa przygotowywanie do hibernacji..."
IDS_SAVEYOURSETTINGS "Trwa zapisywanie ustawień..."
IDS_REACTOSISSTARTINGUP "Trwa uruchamianie systemu ReactOS..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Preparando para Hibernar..."
IDS_SAVEYOURSETTINGS "Salvando suas configurações..."
IDS_REACTOSISSTARTINGUP "ReactOS está iniciando..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -58,6 +58,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Stare de hibernare în curs de pregătire…"
IDS_SAVEYOURSETTINGS "Configurații personale în curs de păstrare…"
IDS_REACTOSISSTARTINGUP "Sistem de operare în curs de pornire…"
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Подготовка к переходу в спящий режим..."
IDS_SAVEYOURSETTINGS "Сохраняются настройки..."
IDS_REACTOSISSTARTINGUP "ReactOS загружается..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -54,6 +54,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Systém sa pripravuje na prechod do režimu dlhodobého spánku..."
IDS_SAVEYOURSETTINGS "Systém ukladá Vaše nastavenia..."
IDS_REACTOSISSTARTINGUP "Systém ReactOS sa spúšťa..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -53,6 +53,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Pergatitet per letargji..."
IDS_SAVEYOURSETTINGS "Ruan konfigurimin tuaj..."
IDS_REACTOSISSTARTINGUP "ReactOS po fillon..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Förbereder för viloläge..."
IDS_SAVEYOURSETTINGS "Sparar dina inställningar..."
IDS_REACTOSISSTARTINGUP "ReactOS startas..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Anıkta Beklemeye Anıklanıyor..."
IDS_SAVEYOURSETTINGS "Ayarlarınız Saklanıyor..."
IDS_REACTOSISSTARTINGUP "ReactOS Başlatılıyor..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -49,6 +49,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "Підготовка до сплячого режиму..."
IDS_SAVEYOURSETTINGS "Збереження параметрів..."
IDS_REACTOSISSTARTINGUP "Запуск ReactOS..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -52,6 +52,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "正在准备休眠..."
IDS_SAVEYOURSETTINGS "正在保存设置..."
IDS_REACTOSISSTARTINGUP "ReactOS 正在启动..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -51,6 +51,8 @@ BEGIN
IDS_PREPARETOHIBERNATE "正在準備休眠..."
IDS_SAVEYOURSETTINGS "正在儲存設定..."
IDS_REACTOSISSTARTINGUP "ReactOS 正在啟動..."
IDS_TIMEOUTSHORTFORMAT "%02d:%02d:%02d"
IDS_TIMEOUTLONGFORMAT "%d days"
END
STRINGTABLE

View file

@ -33,5 +33,7 @@
#define IDS_PREPARETOHIBERNATE 1686
#define IDS_SAVEYOURSETTINGS 1687
#define IDS_REACTOSISSTARTINGUP 1690
#define IDS_TIMEOUTSHORTFORMAT 1695
#define IDS_TIMEOUTLONGFORMAT 1696
#define IDS_FAILEDACTIVATEUSERSHELL 1001

View file

@ -77,7 +77,8 @@ OnTimer(
HWND hwndDlg,
PSYS_SHUTDOWN_PARAMS pShutdownParams)
{
WCHAR szBuffer[12];
WCHAR szFormatBuffer[32];
WCHAR szBuffer[32];
INT iSeconds, iMinutes, iHours, iDays;
if (!pShutdownParams->bShuttingDown)
@ -95,12 +96,15 @@ OnTimer(
iMinutes = iSeconds / 60;
iSeconds -= iMinutes * 60;
swprintf(szBuffer, L"%02d:%02d:%02d", iHours, iMinutes, iSeconds);
LoadStringW(hAppInstance, IDS_TIMEOUTSHORTFORMAT, szFormatBuffer, ARRAYSIZE(szFormatBuffer));
swprintf(szBuffer, szFormatBuffer, iHours, iMinutes, iSeconds);
}
else
{
iDays = (INT)(pShutdownParams->dwTimeout / SECONDS_PER_DAY);
swprintf(szBuffer, L"%d days", iDays); // FIXME: Localize
LoadStringW(hAppInstance, IDS_TIMEOUTLONGFORMAT, szFormatBuffer, ARRAYSIZE(szFormatBuffer));
swprintf(szBuffer, szFormatBuffer, iDays);
}
SetDlgItemTextW(hwndDlg, IDC_SYSSHUTDOWNTIMELEFT, szBuffer);