AMF-Perl
view release on metacpan or search on metacpan
doc/examples/petmarket/petmarket/api/stringresourcesservice.pm view on Meta::CPAN
package petmarket::api::stringresourcesservice;
# Copyright (c) 2003 by Vsevolod (Simon) Ilyushchenko. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#This is server side for the Macromedia's Petmarket example.
#See http://www.simonf.com/amfperl for more information.
use warnings;
use strict;
my %bundle;
sub new
{
my ($proto) = @_;
my $self = {};
bless $self, $proto;
return $self;
}
sub methodTable
{
return {
"getAppStrings" => {
"description" => "Returns app strings",
"access" => "remote",
},
"getAboutUsStrings" => {
"description" => "Returns 'about us' strings",
"access" => "remote",
},
"getLegalStrings" => {
"description" => "Returns legal strings",
"access" => "remote",
},
"getAffiliateStrings" => {
"description" => "Returns affiliate strings",
"access" => "remote",
},
};
}
sub getAppStrings
{
my ($self, $locale) = @_;
unless (%bundle)
{
my %strings;
$strings{"HOME_MODE_TITLE_str"}="Home";
$strings{"BROWSE_MODE_TITLE_str"}="Browse";
$strings{"CHECKOUT_MODE_TITLE_str"}="Checkout";
$strings{"WELCOME_PREFIX_HD_str"}="Welcome to ";
$strings{"WELCOME_BODY_str"}="Welcome to your online source for pets and pet supplies. Whether you're looking for information or ready to buy, we've created a fun and easy shopping experience. The site is tailored to your interests, so as you...
$strings{"CHOOSE_ITEM_HINT_str"}="Choose your pet from the list above!";
$strings{"ADD_ITEM_TO_CART_HINT_str"}="Press the button below or drag this item to your cart!";
$strings{"ITEM_UNAVAILABLE_HINT_str"}="Unfortunately, we're currently out of stock, please check back soon.";
$strings{"SEARCH_NO_RESULTS_FOUND_FOR_str"}="no results found for: ";
$strings{"QTY_AVAILABLE_LBL_str"}="Quantity Available:";
$strings{"CURRENCY_SYMBOL_str"}="\$";
$strings{"CURRENCY_DECIMAL_str"}=".";
$strings{"THOUSANDS_SEPARATOR_str"}="}=";
$strings{"ITEM_LBL_str"}="Item";
$strings{"PRICE_LBL_str"}="Price";
$strings{"QTY_AVAILABLE_LBL_str"}="Qty Available";
$strings{"QTY_LBL_str"}="Qty";
$strings{"PRODUCT_LBL_str"}="Product";
$strings{"ITEMS_IN_CART_LBL_str"}="Items:";
$strings{"CART_SUBTOTAL_LBL_str"}="Subtotal:";
$strings{"ADVERT_COPY_DEFAULT_str"}="Keep your pets healthy and happy with\n Pet Market brand pet foods.";
$strings{"ADVERT_COPY_CONTEXT_str"}="Keep your pet healthy! Try our special formula of pet foods, available in assorted sizes and flavors.";
$strings{"OK_BTN_LBL_str"}="OK";
$strings{"EXCEEDS_AVAILABLE_MB_MSG_str"}="The quantity you entered exceeds the number we currently have available. The quantity will be automatically reset to the maximum available at this time.";
$strings{"EXCEEDS_AVAILABLE_MB_TTL_str"}="Quantity Available Exceeded";
( run in 3.011 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )