Examples/Translation: Combine {$warnings off} with {$push} and {$pop}

git-svn-id: trunk@60230 -
This commit is contained in:
wp 2019-01-27 11:35:11 +00:00
parent 23ebdb5faf
commit c6278a2e45
2 changed files with 2 additions and 1 deletions

View File

@ -159,9 +159,10 @@ begin
LCID := GetLCIDFromLangCode(ALang);
// Now we update the format settings to the new language
{$PUSH}
{$WARNINGS OFF}
GetLocaleFormatSettings(LCID, DefaultFormatSettings);
{$WARNINGS ON}
{$POP}
// We also store the code page that belongs to the new language. We'll need
// that when converting FCL strings to UTF8.