Code covered by the BSD License  

Highlights from
System locale information

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3.55 KB File ID: #25422

System locale information

by Nikolay Chumerin

 

27 Sep 2009

Returns system locale information.

| Watch this File

File Information
Description

function [LOCALE_SHORT_STRING LCID_HEX_STRING LCID_VALUE LOCALE_DESCRIPTION] = GET_SYSTEM_LOCALE
Returns system locale information. Tested on Windows XP and Linux.
INPUT: none
OUTPUT:
   LOCALE_SHORT_STRING - locale short string, in lower case and separated by underscore
   LCID_HEX_STRING - locale ID hexadecimal value string
   LCID_VALUE - locale ID value as a double
   LOCALE_DESCRIPTION - locale description string
   
 EXAMPLE:
   On my laptop
   [locale_short_string LCID_hex_string LCID_value locale_description] = get_system_locale;
   returns
   locale_short_string = 'ru_ru'
   LCID_hex_string = '0419'
   LCID_value = 1049
   locale_description = 'Russian - Russia'

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
system Nikolay Chumerin 28 Sep 2009 10:56:46
locale Nikolay Chumerin 28 Sep 2009 10:56:46
language Nikolay Chumerin 28 Sep 2009 10:56:46
country Nikolay Chumerin 28 Sep 2009 10:56:46

Contact us at files@mathworks.com