PriceCommas — show thousands separator in price pictures
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.
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.
Interchange 5.9.0:
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");
}
}