PreviousNextIndex

System Variables > Variable Formats in Localization Bundles
 
Variable Formats in Localization Bundles

All language localization bundles are required to support certain variable data formats. These formats, in turn, are the basis of the related language localization bundle formats.

For example, all language localization bundles must support the date data format:

where YYYY is the four-digit year, MM is the two-digit month, DD is the two-digit day, and the hyphens are optional.

If you want to use the standard localization bundle formats in custom variables that you want to use as audio variables, you must ensure that your custom variables follow the standard formats as described in the following table. Then you can use the localization bundle formats to render the data.

For example, suppose you want to query a database for all customer transactions that took place in the previous five days. When you query the database, you can use the Operation item of a Data node to convert the date field for each record to the format YYYYMMDD. You can then use audio variables to convert this YYYYMMDD value into a set of audio clips to speak the date.

The following table lists and describes the standard formats that all language localization bundles must support. The Data input format column provides information about the formats that you can use in your own custom variables.

Note:

Localization bundles can, and often do, include additional variable formats that are not listed in this table. These formats are only the ones required of all localization bundles. For more information about any additional variable formats that might be part of a particular localization bundle, see the supplemental documentation that came with that bundle.

Localization Bundles Data Input Formats 

Format

Description

Data Input Format 1

Date

Formats a string into a set of audio clips to render the string as an audio variable in a date format, as defined by the localization bundle.

Type: String

Input format: YYYY[-]MM[-]DD

Examples: 2005-05-25 or 20050525

Time

Formats a string into a set of audio clips to render the string as an audio variable in a time format, as defined by the localization bundle.

Type: String

Input format: HH[:]MM[:][SS]

Examples: 03:15:45 or 03:15 or 031545

Number

Formats a number-digit string into a set of audio clips to render the number as an audio variable in a number format, as defined by the localization bundle.

Commas and periods are used as delimiters for this format. The localization bundle treats the rightmost delimiter as the decimal indicator.

Note: Localization bundles, in some cases, can define numbers to be treated as integers, in which decimal and fractional parts are ignored. Make sure you know which number formats in your localization bundle support the use of decimals and fractional parts.

Type: String

Input format: [-]#[, or .]###[, or .]##

Examples: 102473 or 15,588.345 or 10.123,52

Currency

Formats a number-digit string into a set of audio clips to render the number as an audio variable in a currency format, as defined by the localization bundle.

Commas and periods are used as delimiters for this format. The localization bundle treats the rightmost delimiter as the decimal indicator.

Type: String

Input format: [-]#[, or .]###[, or .]##

Examples: 102473 or 15,588.345 or 10.123,52

Character

Formats a string into a set of audio clips to render the string character by character.

At a minimum, localization bundles support:

  • Letters A through Z
  • Numbers 0 through 9
  • Star symbol ( * )
  • Hash symbol ( # )
  • Comma ( , )
  • Space

With this format, words are spelled out and numbers are read out one digit at a time.

Localization bundles can also support additional characters, including non-Latin characters. For details about which additional characters might be supported by your localization bundle, see the supplemental documentation that came with the bundle.

Localization bundles ignore any characters that are not supported by that bundle.

Type: String

Input format: xxxxxx...

Examples:

  • what (rendered as "double-you aitch ay tee")
  • 10247 (rendered as "one zero two four seven")
  • 401K (rendered as "four oh one kay")

1Characters in brackets [ ] are optional.



PreviousNextIndex

©2009, Avaya Inc. All rights reserved.