Browse Prior Art Database

Language Independent Interface For Retrieving Language And Culture Information Elements, Including Calendar And Weekday Settings, From A Locale

IP.com Disclosure Number: IPCOM000014981D
Original Publication Date: 2001-Jun-17
Included in the Prior Art Database: 2003-Jun-20
Document File: 3 page(s) / 120K

Publishing Venue

IBM

Abstract

Disclosed is a program language independent service which obviates the problem related to missing localization information for weekend, work day and calendar layout specification. The service has been defined to retrieve the additional localization information from the locale. The following localization information can now be retrieved through the service: first day of the weekend, second day of the weekend, first day of the weekend is half day, monthly calendar layout, placement of the weekday title text in calendar layout, first day of week in abbreviated form for calendar layout, and alternative currency symbol and its position (leading or trailing). The service relies on a locale to provide localization at run time to cater to local preferences. The service is designed as a procedure call to allow use by a wide number of programming languages on a variety of processing platforms. The ACEENLIF service returns a pointer to a string containing information relevant to the particular language or cultural as defined in the program’s locale corresponding to the Item parameter. The syntax of ACEENLIF is: void ACEENLIF [Locale_Handle], Item, String_out, Result, [fc] CEE_HANDLE *Locale_Handle;

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 3

  Language Independent Interface For Retrieving Language And Culture Information Elements, Including Calendar And Weekday Settings, From A Locale

Disclosed is a program language independent service which obviates the problem related to missing localization information for weekend, work day and calendar layout specification. The service has been defined to retrieve the additional localization information from the locale. The following localization information can now be retrieved through the service: first day of the weekend, second day of the weekend, first day of the weekend is half day, monthly calendar layout, placement of the weekday title text in calendar layout, first day of week in abbreviated form for calendar layout, and alternative currency symbol and its position (leading or trailing). The service relies on a locale to provide localization at run time to cater to local preferences. The service is designed as a procedure call to allow use by a wide number of programming languages on a variety of processing platforms.

The ACEENLIF service returns a pointer to a string containing information relevant to the particular language or cultural as defined in the program's locale corresponding to the Item parameter.The syntax of ACEENLIF is:

void ACEENLIF ([Locale_Handle], Item, String_out, Result,

           [fc]) CEE_HANDLE *Locale_Handle;

  VSTRING *Item; VSTRING *String_out; INT4 *Result; FEED_BACK *fc;

where: Locale_Handle (input/optional) Points to the locale to be used by this service. If none is specified, the current active locale is used.

Item (input) Information being requested from the locale. If the Item is not defined in the selected locale, then the String_out will contain the corresponding string from the system default locale.

Valid Item definitions are given:

Item Meaning

D_T_FMT Represents the locale's abbreviated weekday name (for example, Sun) defined by the abday statement.

D_FMT Represents the locale's full weekday name (for example, Sunday) defined by the day statement.

T_FMT Represents the locale's abbreviated month name (for example, Jan) defined by the abmon statement.

AM_STR Represents the locale's full month name (for example, January) defined by the month statement. PM_STR Represents the locale's date and time format defined by the d_t_fmt statement.

ABDAY_1 Name of the first day of the week Sunday abbreviated to Sun. ABDAY_2 Name of the second day of the week Monday abbreviated to Mon. ABDAY_3 Name of the third day of the week Tuesday abbreviated to Tue. ABDAY_4 Name of the fourth day of the week Wednesday abbreviated to Wed. ABDAY_5 Name of the fifth day of the week Thursday abbreviated to Thu.

1

Page 2 of 3

ABDAY_6 Name of the sixth day of the week Friday abbreviated to Fri. ABDAY_7 Name of the seventh day of the week Saturday abbreviated to Sat.

 DAY_1 Name of the first day of the week Sunday DAY_2 Name of the second day of the week Monday DAY_3 Name of the...