lazarus/components/lazutils
Maxim Ganetsky bb19283344 LazUtils: Add GetLanguageID function to Translations unit. It returns a record with language code (in ISO 639-1 or ISO 639-2) and country code (in ISO 3166) for current system locale.
Implementation is based on GetLanguageIDs procedure from GetText unit, but is rewritten to have the following properties:
1. Language and country codes are returned in ISO formats on Windows.
2. Unix locale identifier is properly parsed and language/country codes are properly extracted.
3. Don't assume that language code is always two-letter (ISO 639-1), it can have bigger length (e. g. three letters, like in ISO 639-2).
4. Return locale ID in a record type. This will allow to return additional fields in backwards-compatible manner. Currently it contains language ID, language code and country code.
2023-06-12 04:11:44 +03:00
..
examples
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
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
fpcadds.pas ideconfig: less dependency on codetools 2023-06-11 23:10:53 +02:00
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 codetools: moved DateToCfgStr to LazConfigStorage 2023-06-11 21:34:37 +02:00
lazdbglog.pas
lazfglhash.pas
lazfilecache.pas
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
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
lazutf8sysutils.pas
lazutf16.pas lazutils: less hints 2021-04-17 11:28:55 +00:00
lazutilities.pas Move SkipCheckByKey functions from IdeUtils (IdeIntf) to LazUtilities (LazUtils). No LCL dependency. Add comments in uses section. 2023-06-11 20:34:36 +03:00
lazutils_defines.inc
lazutils.lpk Removing the dependency of the LazUtils package on the fcl-image package 2022-01-26 16:33:00 +03:00
lazutils.pas
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
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
translations.pas LazUtils: Add GetLanguageID function to Translations unit. It returns a record with language code (in ISO 639-1 or ISO 639-2) and country code (in ISO 3166) for current system locale. 2023-06-12 04:11:44 +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