Changeset 79 for trunk/Directories.pas


Ignore:
Timestamp:
Jan 15, 2017, 7:25:51 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Use only first two letter from LANG locale variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Directories.pas

    r75 r79  
    3636begin
    3737  // Win32 user may decide to override locale with LANG variable.
    38   Lang := GetEnvironmentVariableUTF8('LANG');
     38  Lang := Copy(GetEnvironmentVariableUTF8('LANG'), 1, 2);
    3939
    4040  if Lang = '' then begin
Note: See TracChangeset for help on using the changeset viewer.