Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
LazGetShortLanguageID -> GetLanguageID().LanguageCode
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
could Ardour's YTK be use...
by
dbannon
[
Today
at 05:20:21 am]
GTK3 : Icons have borders...
by
Schmitty2005
[
Today
at 03:56:17 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 03:44:54 am]
88 year D. Knuth changes ...
by
Curt Carpenter
[
Today
at 03:44:44 am]
interface and GUID someth...
by
egsuh
[
Today
at 03:31:00 am]
DataPort StopBits and Flo...
by
eldonfsr
[
Today
at 02:07:35 am]
Pocketbase
by
PierceNg
[
Today
at 01:30:48 am]
CADSys4 3D.
by
maurog
[
Today
at 01:00:05 am]
Questions about TFuncSeri...
by
wp
[
Today
at 12:36:23 am]
UOS - pre-compiled librar...
by
Fred vS
[
Today
at 12:34:06 am]
TChart: Wrong default val...
by
wp
[March 12, 2026, 10:14:38 pm]
Pipewire API
by
Fred vS
[March 12, 2026, 10:11:02 pm]
Hello! Anything new?
by
PascalDragon
[March 12, 2026, 09:39:09 pm]
TSplitter color property ...
by
valdir.marcos
[March 12, 2026, 09:20:11 pm]
ShortStrings vs long stri...
by
valdir.marcos
[March 12, 2026, 08:55:02 pm]
Lazarus Bugfix Release 4....
by
dsiders
[March 12, 2026, 08:53:38 pm]
LazPaint (alpha-blending,...
by
CM630
[March 12, 2026, 08:38:30 pm]
Z80 ZX Spectrum and Syste...
by
d2010
[March 12, 2026, 07:58:28 pm]
Qt6/Wayland clipboard: pa...
by
valdir.marcos
[March 12, 2026, 06:27:22 pm]
[ANN] PasBuild 1.5.0 rele...
by
valdir.marcos
[March 12, 2026, 06:19:54 pm]
Synchronizing Lazarus pro...
by
valdir.marcos
[March 12, 2026, 05:46:58 pm]
class not found
by
SA.Blackmon
[March 12, 2026, 05:27:32 pm]
Register global hotkey
by
Thaddy
[March 12, 2026, 04:20:28 pm]
Crystal report edit
by
Petrus Vorster
[March 12, 2026, 03:12:59 pm]
Faster asin() Was Hiding ...
by
MathMan
[March 12, 2026, 01:58:30 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: LazGetShortLanguageID -> GetLanguageID().LanguageCode (Read 466 times)
Grahame Grieve
Sr. Member
Posts: 379
LazGetShortLanguageID -> GetLanguageID().LanguageCode
«
on:
July 10, 2025, 03:31:33 pm »
So this is a transition I have to make in the trunk of Lazarus, but does anyone know how it should be ifdef'ed so my code that uses it still works with older (current) versions?
Logged
Grahame Grieve
Sr. Member
Posts: 379
Re: LazGetShortLanguageID -> GetLanguageID().LanguageCode
«
Reply #1 on:
July 10, 2025, 08:15:00 pm »
Claude told me:
Code: Pascal
[Select]
[+]
[-]
{$IF DECLARED(GetLanguageID)}
Lang
:
=
GetLanguageID
(
)
.
LanguageCode
;
{$ELSE}
LazGetShortLanguageID
(
Lang
)
;
{$ENDIF}
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
LazGetShortLanguageID -> GetLanguageID().LanguageCode
TinyPortal
© 2005-2018