System locale information

版本 1.0.0.0 (3.5 KB) 作者: Nikolay Chumerin
Returns system locale information.
442.0 次下载
更新时间 2009/9/27

查看许可证

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'

引用格式

Nikolay Chumerin (2024). System locale information (https://www.mathworks.com/matlabcentral/fileexchange/25422-system-locale-information), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Create System Objects 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0