lazarus/components/lazutils
Maxim Ganetsky 97c198b599 LazUtils: Remove special macOS handling from LazGetLanguageIDs procedure. Handle macOS just as any Unix.
For the record, the logic of this code was the following:
1. If the App Bundle does not do any Locale configuration, 'English' is
returned (i. e. not an ISO code).
2. If the App Bundle has configured the Locale configuration that
matches the user's system settings, it will return locale name from its
list, e. g. 'zh_CN'.
3. If the App Bundle cannot match the Locale of the user system, the
first item set in the App Bundle is returned (`en` in case of Lazarus).

So this code provided no tangible benefits and introduced dependency on
language list in Lazarus bundle. This list was outdated and thus
prevented autodetection of Czech, Hungarian, Brazilian Portuguese,
Ukrainian languages on macOS.

In case there will a need to reintroduce special macOS handling arise,
NSLocale.object() should be called with `countryCode` and `languageCode`
keys.
2023-06-11 20:10:26 +03:00
..
examples LazUtils: Fix and improve TLookupStringList and its example project. 2021-02-05 11:27:59 +00:00
languages Translations: Turkish translation update by Onur ERÇELEN, issue #40106 2023-02-02 23:52:31 +03:00
test LazUtils: Test: TestMasks: Add test for issue #39462. 2021-11-20 13:00:24 +01:00
amigalazfileutils.inc
asiancodepagefunctions.inc LConvEncoding: reverts #05765da982ab46e2486c6932648c71fd692a54d5 and #01e627e35da5030ccea4406cffbdf5b67b85b0b9 and resolves issue #39348 in a different way (by always setting the target's codepage when converting to UTF8). 2021-12-16 22:11:56 +01:00
asiancodepages.inc
avglvltree.pas IDE: loadlfm: resolve ambigious registered component classes 2023-04-13 15:38:12 +02:00
codepagesasian.pas
codepagescommon.pas
commoncodepages.inc LConvEncoding: add EncodingCP865. Patch by Alexey Torgashin. Issue #40041. 2022-12-17 18:30:06 +01:00
compwriterpas.pas BuildIntf, IdeIntf, LazUtils: Use a faster compare method for case-insensitive strings and StringLists. 2021-02-05 11:28:07 +00:00
dynamicarray.pas
dynhasharray.pp
dynqueue.pas
extendedstrings.pas
filereferencelist.pas
fileutil.inc LazUtils: FileUtil: fix memory leak (created a masklist twice). 2021-11-06 15:00:14 +01:00
fileutil.pas LazUtils: Rename function FilenameIsPascalUnit -> FilenameHasPascalExt. Clashed with a function in Codetools. Update references. 2021-01-11 16:16:58 +00:00
fpcadds.pas
fpmake.pp lazutils: updated fpmake 2022-02-24 12:57:34 +01:00
graphmath.pp Remove LCLProc.OffsetRect(). Move some functions from LCLProc to GraphMath (LazUtils). 2023-06-05 15:48:01 +03:00
graphtype.pp * for FPC 3.2.3 and newer alias GraphType.TGraphicsColor to System.UITypes.TColor, Graphics.PColor to System.UITypes.PColor and LCLType.COLORREF to System.UITypes.TColorRef to avoid type conflicts when both System.UITypes and the LCL units are used 2021-11-16 00:27:36 +03:00
html2textrender.pas LazUtils: Add a helper function RenderHTML2Text for class THTML2TextRenderer. 2022-02-06 12:38:47 +02:00
integerlist.pas
laz2_dom.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
laz2_names.inc
laz2_xmlcfg.pas Support compiling more of Lazarus + its components with -Sy option. 2023-05-21 01:32:42 +03:00
laz2_xmlread.pas Support compiling more of Lazarus + its components with -Sy option. 2023-05-21 01:32:42 +03:00
laz2_xmlutils.pas Support compiling some Lazarus code with -Sy option. Issue #40263, patch by Arioch The. 2023-05-20 12:51:35 +03:00
laz2_xmlwrite.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
laz2_xpath.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
laz_avl_tree.pp lazutils: TAVLTree: do not use LazNodeMemManager by default for thread safety 2023-04-02 21:17:22 +02:00
laz_dom.pas
laz_xmlcfg.pas
laz_xmlread.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
laz_xmlstreaming.pas lazutils: less hints 2021-04-17 11:28:55 +00:00
laz_xmlwrite.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
lazclasses.pas LazUtils: fix compilation of objects descended from TRefCountedObject (don't change function signature with IFDEF) 2022-09-08 22:52:08 +02:00
lazcollections.pas LazCollections: compiler warnings 2022-01-09 01:17:24 +01:00
lazconfigstorage.pas
lazdbglog.pas Cleanup, comments. 2020-12-18 21:02:19 +00:00
lazfglhash.pas LazUtils: Fix and improve TLookupStringList and its example project. 2021-02-05 11:27:59 +00:00
lazfilecache.pas LazUtils: Remove a stray debugging statement. Issue #38649. 2021-03-21 18:02:28 +00:00
lazfileutils.inc LazFileUtils: make ResolveDots a little more consitent w.r.t. having the result ending with a PathDelim. Issue #37188. Do not merge to Fixes 2.2. 2021-08-20 18:43:37 +02:00
lazfileutils.pas ide+codetools: simplified check disk changes and fixed lfm check 2023-04-23 19:00:29 +02:00
lazlinkedlist.pas
lazlistclasses.pas Support compiling more of Lazarus + its components with -Sy option. 2023-05-21 01:32:42 +03:00
lazlogger.pas LazLogger: added new event, to change log-text 2023-05-28 21:39:18 +02:00
lazloggerbase.pas LazLogger: added new event, to change log-text 2023-05-28 21:47:05 +02:00
lazloggerdummy.pas LazLogger: added missing stackdump with log-group 2022-05-12 21:19:34 +02:00
LazLoggerImpl.inc LazLogger: added missing stackdump with log-group 2022-05-12 21:19:34 +02:00
LazLoggerIntf.inc LazLogger: added missing stackdump with log-group 2022-05-12 21:19:34 +02:00
lazloggerprofiling.pas LazLogger: fix missing inherited call / for TRefCountedObject 2021-03-28 20:26:15 +00:00
lazmethodlist.pas Rename CompareMethods to more logical SameMethod. Remove old deprecated functions. 2021-10-10 19:00:49 +03:00
lazpasreadutil.pas
lazstringutils.pas LazUtils: Remove a deprecated function. 2021-10-31 09:51:28 +02:00
lazsysutils.pas
laztracer.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
lazunicode.pas
lazutf8.pas LazUtils: Remove special macOS handling from LazGetLanguageIDs procedure. Handle macOS just as any Unix. 2023-06-11 20:10:26 +03:00
lazutf8classes.pas LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code. 2021-01-14 12:41:32 +00:00
lazutf8sysutils.pas
lazutf16.pas lazutils: less hints 2021-04-17 11:28:55 +00:00
lazutilities.pas LazUtils: Move math helper functions from LCLProc to LazUtilities. Deprecate LCLProc versions. 2020-12-12 11:41:07 +00:00
lazutils_defines.inc LazUtils: Remove tests for FPC versions 2.x. 2020-11-11 14:03:48 +00:00
lazutils.lpk Removing the dependency of the LazUtils package on the fcl-image package 2022-01-26 16:33:00 +03:00
lazutils.pas Move unit GraphMath from LCL to LazUtils. It has no dependencies to GUI. 2020-12-29 22:56:40 +00:00
lazutilsstrconsts.pas Lazutils: fixed Masks resource strings 2021-10-14 00:06:49 +03:00
lazversion.pas set trunk version to 2.3.0 2021-06-15 14:00:39 +00:00
lconvencoding.pas LConvEncoding: add EncodingCP865. Patch by Alexey Torgashin. Issue #40041. 2022-12-17 18:30:06 +01:00
lcsvutils.pas LazUtils: Harmonize the CamelCase names of some units. Add a license header for LazTracer. 2023-04-10 09:15:24 +03:00
lookupstringlist.pas LazUtils: Fix and improve TLookupStringList and its example project. 2021-02-05 11:27:59 +00:00
Makefile updated makefiles 2023-05-27 02:07:12 +02:00
Makefile.compiled
Makefile.fpc updated makefiles, fixed compile fpdebug with fpc 3.2.2 2022-11-13 13:23:46 +01:00
maps.pp lazutils: less hints 2021-04-17 11:28:55 +00:00
masks.pas Support compiling most of Lazarus + its components with -Sy option. 2023-05-20 12:51:35 +03:00
objectlists.pas
stringhashlist.pas
textstrings.pas LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code. 2021-01-14 12:41:32 +00:00
translations.pas LazUtils: Mark PO translation string as badly formatted when original string does not have argument errors and translation has them. Allows to catch more formatting errors, e. g. when original contains %s%s and translation contains s%s%s% (note the order of 's' and '%' in translation). 2022-12-08 04:11:26 +03:00
uitypes.pas LazUtils: deprecate UITypes and alias its types only for FPC 3.2.0 and up 2021-06-14 21:13:09 +00:00
unixfileutil.inc
unixlazfileutils.inc
unixlazutf8.inc
utf8process.pp LazUtils: Prevent a zombie process with openDocument and openURL. Issue #35527. 2022-01-23 02:46:53 +02:00
winfileutil.inc fix compiler hints in LazUtils 2021-10-29 15:08:50 +03:00
winlazfileutils.inc fix compiler hints in LazUtils 2021-10-29 15:08:50 +03:00
winlazutf8.inc LazUtils: Support time formatting with 12-hour clock on Windows. Issue #39977, patch by foxpas. 2022-11-02 19:11:36 +02:00