Changeset 459 for trunk/Packages


Ignore:
Timestamp:
Nov 27, 2023, 6:56:56 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: Chinese language list selection in Settings window didn't work correctly.
Location:
trunk/Packages/Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Languages.pas

    r456 r459  
    216216  SLang_za = 'Zhuang';
    217217  SLang_zh = 'Chinese';
     218  SLang_zh_Hans = 'Simplified Chinese';
     219  SLang_zh_Hant = 'Traditional Chinese';
    218220  SLang_zu = 'Zulu';
     221
    219222
    220223implementation
     
    228231begin
    229232  I := 0;
    230   while (I < Count) and (TLanguage(Items[I]).Code < ACode) do Inc(I);
    231   if I < Count then Result := TLanguage(Items[I])
     233  while (I < Count) and (Items[I].Code <> ACode) do Inc(I);
     234  if I < Count then Result := Items[I]
    232235    else Result := nil;
    233236end;
     
    439442  AddNew('za', SLang_za);
    440443  AddNew('zh', SLang_zh);
     444  AddNew('zh-Hant', SLang_zh_Hant);
     445  AddNew('zh-Hans', SLang_zh_Hans);
    441446  AddNew('zu', SLang_zu);
    442447end;
  • trunk/Packages/Common/Languages/Languages.cs.po

    r456 r459  
    10401040msgstr "Čínština"
    10411041
     1042#: languages.slang_zh_hans
     1043msgid "Simplified Chinese"
     1044msgstr ""
     1045
     1046#: languages.slang_zh_hant
     1047msgid "Traditional Chinese"
     1048msgstr ""
     1049
    10421050#: languages.slang_zu
    10431051#, fuzzy
  • trunk/Packages/Common/Languages/Languages.pot

    r456 r459  
    776776msgstr ""
    777777
     778#: languages.slang_zh_hans
     779msgid "Simplified Chinese"
     780msgstr ""
     781
     782#: languages.slang_zh_hant
     783msgid "Traditional Chinese"
     784msgstr ""
     785
    778786#: languages.slang_zu
    779787msgid "Zulu"
Note: See TracChangeset for help on using the changeset viewer.