Current user's language

EvR
Member Posts: 178
Hi all,
A pretty basic question, but is it possible to get the client language of the current user in C/AL?
Gr, Erik
A pretty basic question, but is it possible to get the client language of the current user in C/AL?
Gr, Erik
0
Best Answer
-
Use the GLOBALLANGUAGE function
See https://msdn.microsoft.com/en-us/library/dd338772(v=nav.90).aspx
Jan Veenendaal5
Answers
-
Use the GLOBALLANGUAGE function
See https://msdn.microsoft.com/en-us/library/dd338772(v=nav.90).aspx
Jan Veenendaal5 -
Yep as Jan Suggested GLOBALLANGUAGE function is the only keyword in NAV which you can use AFAIK.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
And what exactly is the GLOBALLANGUAGE?
MSDN doesn't really explain anything, as is often the case.
Is it the service language, or the actual language in which the user's client is running?0 -
you asked for the client's language, so that's what you get. This is for all client types.
The function WINDOWSLANGUAGE returns the OS language setting (which might of course be different)
I think there is no function available to get the service's language - the service has to serve any (available) language so it its language should not be of any importance.
In the Classic Client ( NAV 2009R2 and earlier ) there also was a LANGUAGE function, that could be set for each form, report or dataport. This function is not available in 3-tier deployments.Jan Veenendaal0 -
Yep that's what I asked for, but that's not what 'GLOBALLANGUAGE' suggests to me and MSDN wasn't clear. Global, to me, suggest some kind of common language (service). I would have called it 'CLIENTLANGUAGE' myself
Thanks.0 -
I agree. Naming is unclear in this case.Jan Veenendaal0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions