The %SYBASE%\locales directory contains a subdirectory for each available language. Each language subdirectory contains a subdirectory for each character set available with that language. The files in %SYBASE%\charsets\charset_name contain information related to each particular character set, such as the definition of the character set and any sort orders available for that character set.
The .loc files in these subdirectories enable SAP ASE or Backup Server to report errors in a specific language, encoded in a specific character set.
There are a variety of .loc files in each subdirectory. Most of these files contain translated error messages for a specific product or utility.
The common.loc file in the utf8 subdirectory for each language contains localized information, such as local date, time, and currency formatting, that is used by all products.
The locales.dat file contains entries that associate platform-specific locale names with SAP ASE language and character set combinations.
You can edit the locales.dat file to change the default language or character set for a platform, or add new associations between platform locale names and SAP ASE language and character name sets.