Commit Graph

65308 Commits

Author SHA1 Message Date
Maxim Ganetsky
f2ce2e18e3 LazUtils, Translations unit: factored out locale name parsing code to a separate function GetLanguageIDFromLocaleName 2023-06-12 16:05:10 +03:00
dsiders
1cab990a9d Docs: LazUtils/lazutf8. Adds deprecation notices for changes in 65ed61c3ba. 2023-06-12 13:11:34 +01:00
dsiders
f2444c071d Docs: LazUtils/translations. Updates topics for changes in bb192833. 2023-06-12 13:11:17 +01:00
mattias
3a096be5ed codetools: less hints, search inc file order 2023-06-12 10:41:17 +02:00
mattias
58e260b6ba codetools: fixed include file 2023-06-12 07:26:23 +02:00
mattias
d9a0b39c50 ide: fixed compile on windows 2023-06-12 07:12:53 +02:00
mattias
daf7767a51 ide: fied compile on windows 2023-06-12 07:09:04 +02:00
mattias
4323a6e9f5 lcl: fixed compile with fpc 3.2.2 2023-06-12 07:01:41 +02:00
mattias
033c256b3a ide: less hints 2023-06-12 06:49:22 +02:00
Maxim Ganetsky
e21408456e LCL: migrated LCLTranslator to using GetLanguageID function from Translations unit 2023-06-12 04:11:45 +03:00
Maxim Ganetsky
22f596f8bb LazDataDesktop: migrated to using GetLanguageID function from Translations unit 2023-06-12 04:11:45 +03:00
Maxim Ganetsky
67cac82323 IDE: migrated to using GetLanguageID function from Translations unit 2023-06-12 04:11:44 +03:00
Maxim Ganetsky
65ed61c3ba LazUtils: Make LazGetLanguageIDs and LazGetShortLanguageID procedures use results of GetLanguageID function from Translations unit. Also deprecate LazGetLanguageIDs and LazGetShortLanguageID. 2023-06-12 04:11:44 +03:00
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
dsiders
04381be2cc Docs: LCL/comctrls. Updates content in TTreeNode topics (various). 2023-06-12 01:10:56 +01:00
dsiders
bb61f6eec8 Docs: LazUtils/lazutilities. Adds topic skeletons for changes in e3691f68. 2023-06-12 01:10:33 +01:00
dsiders
03cf8c2342 Docs: LazUtils/lazutf8. Updates content in the LazGetLanguageIDs topic for changes in 97c198b5. 2023-06-12 01:10:13 +01:00
dsiders
fe21b3d6dd Docs: LazUtils/lazconfigstorage. Adds topic skeletons for changes in 67c1c587. 2023-06-12 01:09:50 +01:00
Maxim Ganetsky
b353aa4ac2 IDE: regenerated translations 2023-06-12 01:56:38 +03:00
Maxim Ganetsky
d6656f4a46 IDEConfig: enabled i18n, moved translations from IDE 2023-06-12 01:56:09 +03:00
mattias
3a13fbf259 updated makefiles 2023-06-11 23:20:56 +02:00
Juha
e2b3713821 LazBuild: Remove TransferMacrosIntf reference. 2023-06-12 00:12:04 +03:00
mattias
a6933c07a9 ideconfig: less dependency on codetools 2023-06-11 23:10:53 +02:00
Juha
e4d8512e69 Update makefiles for IdeConfig and IdeIntf. 2023-06-11 23:55:42 +03:00
Juha
2e91f21dfe LazBuild: Initialize RegisterOptionsGroup event. 2023-06-11 23:37:12 +03:00
Juha
a6d1547803 Move unit TransferMacros to IdeConfig package. Add a unit for resourcestrings. 2023-06-11 23:37:12 +03:00
mattias
e58d243edc fixed make all 2023-06-11 22:10:45 +02:00
mattias
1132dcd45e Revert "ideintf: moved diff options to ide"
This reverts commit 08e256ebbd.
2023-06-11 22:00:09 +02:00
mattias
7a05fd5b85 Revert "ideintf: moved diff options back to ide"
This reverts commit 3cff2b6dc4.
2023-06-11 21:59:54 +02:00
mattias
3cff2b6dc4 ideintf: moved diff options back to ide 2023-06-11 21:55:14 +02:00
mattias
08e256ebbd ideintf: moved diff options to ide 2023-06-11 21:43:51 +02:00
mattias
cf07116ec3 ideintf: updated makefile 2023-06-11 21:34:37 +02:00
mattias
67c1c58793 codetools: moved DateToCfgStr to LazConfigStorage 2023-06-11 21:34:37 +02:00
Martin
76d90cf133 Ide: moved "Debug Inspect" to View > Debug Windows 2023-06-11 21:10:45 +02:00
mattias
f75c120bdb codetools: TLinkScanner: use directorycacher 2023-06-11 20:21:22 +02:00
Martin
ec14525a1a IDE: help url for event log options 2023-06-11 19:44:05 +02:00
Juha
751e89bca4 Reduce "deprecated" warnings for LazUtils.UITypes. 2023-06-11 20:34:36 +03:00
Juha
e3691f68f6 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
Juha
eac9c6e5c6 IdeConfig: Remove LCL dependency from IdeConfig package. Add comments in uses sections, helps locate dependencies. 2023-06-11 20:34:36 +03:00
Juha
a71517e5d2 IdeConfig: Remove LCL dependency from RecentListProcs. 2023-06-11 20:34:36 +03:00
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
rich2014
5e66a6fc46 Cocoa: Cursor: all enableCursorRects() removed 2023-06-11 23:32:34 +08:00
rich2014
b9002774db Cocoa: Fix #40192: memory leaks in TCocoaFilterComboBox 2023-06-11 22:11:53 +08:00
Martin
ea1e68ed26 IdeDebugger: improve unfolding of watches. Allow Pointer to object/array to be unfolded (and dereference them for this) 2023-06-11 14:30:46 +02:00
Martin
9a0e268738 FpDebug: fix creating result, when mixing ":cc" intrinsic with "[n..m]" slice. 2023-06-11 11:53:01 +02:00
rich2014
a7724534fc DockMainIde: comments updated 2023-06-11 14:04:36 +08:00
rich2014
41a5b150a6 Qt6: TMainIDEBar.CalcNonClientHeight() updated 2023-06-11 14:03:55 +08:00
rich2014
719253ef26 Cocoa: grammar literal fix 2023-06-11 13:53:16 +08:00
rich2014
d27f5e3e4b Cocoa: Cursor: Improve Screen Cursor supportted for Window/Application switching 2023-06-10 23:37:17 +08:00
rich2014
78bdae581b Merge branch 'lcl/cocoa/cursor' 2023-06-10 23:07:08 +08:00