Name

PriceCommas — show thousands separator in price pictures

SYNOPSIS

Yes | No

DESCRIPTION

The directive specifies whether mon_thousands_sep (specified as part of Locale) will be used in currency formatting for display.

If no commas are desired in price numbers (for the item-price tag etc.), disable this directive.

Despite the possibly misleading directive name, Interchange does not always insert a comma (",") but a proper locale-equivalent of it.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Disabling PriceCommas

PriceCommas 0

Example: Setting PriceCommas depending on current locale

# Establish a default
PriceCommas    1

# Establish locale-specific price commas
Locale fr_FR  PriceCommas  0
Locale en_US  PriceCommas  1

To fully understand the example and implicitly presented Interchange features, make sure you're familiar with internationalization and locale glossary entries.


NOTES

This directive is overridden by eventual Locale price_picture definition.

AVAILABILITY

PriceCommas is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 647

['PriceCommas',     'yesno',            'Yes'],

Source: lib/Vend/Config.pm
Line 5434 (context shows lines 5434-5446)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

currency(7ic), Locale(7ic), PriceField(7ic)

DocBook! Interchange!