System locale information

Returns system locale information.
442 téléchargements
Mise à jour 27 sept. 2009

Afficher la licence

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'

Citation pour cette source

Nikolay Chumerin (2025). System locale information (https://www.mathworks.com/matlabcentral/fileexchange/25422-system-locale-information), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Create System Objects dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0