Skip to content

Commit

Permalink
More Language-ized remaining modules for the most part [#296]
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Nov 8, 2011
1 parent 05b06fe commit 916023e
Show file tree
Hide file tree
Showing 45 changed files with 221 additions and 201 deletions.
2 changes: 1 addition & 1 deletion framework/modules-1/formbuilder/views/_confirm_form.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{control type=hidden name=$name value=$data}
{/foreach}
{control type=antispam}
{control type=buttongroup submit="Submit Form" cancel="Change Responses"}
{control type=buttongroup submit="Submit Form"|gettext cancel="Change Responses"|gettext}
{/form}

</div>
19 changes: 19 additions & 0 deletions framework/modules/addressbook/views/address/configure/address.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{*
* Copyright (c) 2004-2011 OIC Group, Inc.
* Written and Designed by Adam Kessler
*
* This file is part of Exponent
*
* Exponent is free software; you can redistribute
* it and/or modify it under the terms of the GNU
* General Public License as published by the Free
* Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GPL: http://www.gnu.org/licenses/gpl.txt
*
*}

<h2>{'Configure this Module'|gettext}</h2>

<p>{'There is nothing to configure for this module'|gettext}.</p>
46 changes: 23 additions & 23 deletions framework/modules/addressbook/views/address/edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,59 +34,59 @@ YUI(EXPONENT.YUI3_CONFIG).use('node', function(Y) {
{/script}
<div class="module address edit address-form">
{if $record->id != ""}
<h1>Editing address for {$record->firstname} {$record->lastname}</h1>
<h1>{'Editing address for'|gettext} {$record->firstname} {$record->lastname}</h1>
{else}
<h1>New {$modelname}</h1>
<h1>{'New'|gettext} {$modelname}</h1>
{/if}

<p>
<em>Fields marked with an * are required.</em>
<em>{'Fields marked with an * are required'|gettext}.</em>
</p>

{form action=update}
{control type=hidden name=id value=$record->id}
{control type=hidden name=is_default value=$record->is_default}
{control type=hidden name=is_shipping value=$record->is_shipping}
{control type=hidden name=is_billing value=$record->is_billing}
{control type=text name=firstname label="<span class=\"required\">*</span>First Name" value=$record->firstname}
{control type=text name=middlename label="Middle Name" value=$record->middlename}
{control type=text name=lastname label="<span class=\"required\">*</span>Last Name" value=$record->lastname}
{control type=text name=organization label="Company/Organization" value=$record->organization}
{control type=text name=address1 label="<span class=\"required\">*</span>Street Address" value=$record->address1}
{control type=text name=address2 label="Apt/Suite #" value=$record->address2}
{control type=text name=city label="<span class=\"required\">*</span>City" value=$record->city}
{control type=text name=firstname label="<span class=\"required\">*</span>"|cat:"First Name"|gettext value=$record->firstname}
{control type=text name=middlename label="Middle Name"|gettext value=$record->middlename}
{control type=text name=lastname label="<span class=\"required\">*</span>"|cat:"Last Name"|gettext value=$record->lastname}
{control type=text name=organization label="Company/Organization"|gettext value=$record->organization}
{control type=text name=address1 label="<span class=\"required\">*</span>"|cat:"Street Address"|gettext value=$record->address1}
{control type=text name=address2 label="Apt/Suite #"|gettext value=$record->address2}
{control type=text name=city label="<span class=\"required\">*</span>"|cat:"City"|gettext value=$record->city}

{if ($user->is_admin || $user->is_acting_admin) && $admin_config == true}
{control type=state name=state label="<span class=\"required\">*</span>State/Province" includeblank="-- Choose a State -- " value=$record->state add_other=true}
{control type=text name=non_us_state label="&nbsp;Non U.S. State/Province" value=$record->non_us_state}
{control type=country name=country label="&nbsp;Country" show_all=true value=$record->country|default:223}
{control type=state name=state label="<span class=\"required\">*</span>"|cat:"State/Province"|gettext includeblank="-- "|cat:("Choose a State"|gettext)|cat:" -- " value=$record->state add_other=true}
{control type=text name=non_us_state label="&nbsp;"|cat:"Non U.S. State/Province"|gettext value=$record->non_us_state}
{control type=country name=country label="&nbsp;"|cat:"Country"|gettext show_all=true value=$record->country|default:223}
{else}
{control type=state name=state label="<span class=\"required\">*</span>State/Province" includeblank="-- Choose a State -- " value=$record->state}
{control type=country name=country label="&nbsp;Country" value=$record->country}
{control type=state name=state label="<span class=\"required\">*</span>"|cat:"State/Province"|gettext includeblank="-- "|cat:("Choose a State"|gettext)|cat:" -- " value=$record->state}
{control type=country name=country label="&nbsp;"|cat:"Country"|gettext value=$record->country}
{/if}

{control type=text name=zip label="<span class=\"required\">*</span>Zip/Postal Code" value=$record->zip}
{control type="text" name="phone" label="<span class=\"required\">*</span>Phone Number <span class=\"example\">ex: 480-555-4200</span>" value=$record->phone}
{control type=text name=zip label="<span class=\"required\">*</span>"|cat:"Zip/Postal Code"|gettext value=$record->zip}
{control type="text" name="phone" label="<span class=\"required\">*</span>"|cat:("Phone Number"|gettext)|cat:" <span class=\"example\">ex: 480-555-4200</span>" value=$record->phone}
{control type="dropdown" name="address_type" label="Address Type"|gettext items="Business,Military,Residential" default=$record->address_type|default:"Residential"}
{control type="text" name="email" label="<span class=\"required\">*</span>Email Address" value=$record->email}
{control type="text" name="email" label="<span class=\"required\">*</span>"|cat:"Email Address"|gettext value=$record->email}
{if !$user->isLoggedIn()}

<div id="passwordDiv">
{control type="checkbox" flip=1 id="remember_me" name="remember_me" label="Remember Me?" value=1 checked=true}
{control type="checkbox" flip=1 id="remember_me" name="remember_me" label="Remember Me"|gettext|cat:"?" value=1 checked=true}
<p>
{"If you would like us to remember you, simply supply a password here and you may login to this site anytime to track your orders and view your order history.
Otherwise uncheck \"Remember Me?\" and continue anonymously."|gettext}
Otherwise uncheck \'Remember Me?\' and continue anonymously."|gettext}
</p>
<div class="passwords">
{control type="password" name="password" label="<span class=\"required\">*</span>Password"}
{control type="password" name="password2" label="<span class=\"required\">*</span>Confirm Password"}
{control type="password" name="password" label="<span class=\"required\">*</span>"|cat:"Password"|gettext}
{control type="password" name="password2" label="<span class=\"required\">*</span>"|cat:"Confirm Password"|gettext}
</div>
</div>

<!--The following field is an anti-spam measure to prevent fradulent account creation. -->
{* control type="antispam" *}
{/if}
{control type=buttongroup submit="Save Address and Continue" cancel="Cancel"}
{control type=buttongroup submit="Save Address and Continue"|gettext cancel="Cancel"|gettext}

{/form}
</div>
10 changes: 5 additions & 5 deletions framework/modules/addressbook/views/address/manage.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<h1>{"Geography Settings"|gettext}</h1>

{form action=manage_update}
Select the Countries and States/Provinces below that you would like to show for users creating billing and shipping addresses:
{'Select the Countries and States/Provinces below that you would like to show for users creating billing and shipping addresses'|gettext}:
<table class="exp-skin-table">
<thead>
<tr>
Expand All @@ -50,15 +50,15 @@
<tr class="{cycle values="odd,even"}">
<td colspan="2">{control type="checkbox" name="country[`$country->id`]" label=$country->name value=1 checked=$country->active}
</td>
<td>{control type="radio" name="country_default" label="Default Country?" value=$country->id checked=$country->is_default}</td>
<td>{control type="radio" name="country_default" label="Default Country"|gettext|cat:"?" value=$country->id checked=$country->is_default}</td>
</tr>
{foreach from=$regions item=region}
{if $region->country_id == $country->id}

<tr class="{cycle values="odd,even"}">
<td>&nbsp;</td>
<td>{control type="checkbox" name="region[`$region->id`]" label=$region->name value=1 checked=$region->active}</td>
<td>{control type="text" name="region_rank[`$region->id`]" label="Rank:" size="5" value=$region->rank}</td>
<td>{control type="text" name="region_rank[`$region->id`]" label="Rank"|gettext|cat:":" size="5" value=$region->rank}</td>
</tr>
<!-- div>
<div style="margin-left: 25px; width:49%;">{control type="checkbox" name="address_state[`$region->id`]" label=$region->name value=1 checked=$config.address_allow_admins_all}</div>
Expand All @@ -67,11 +67,11 @@
</div -->
{/if}
{foreachelse}
No defined regions in this country.
{'No defined regions in this country'|gettext}.
{/foreach}
{/foreach}
</tbody>
</table>
{control type=buttongroup submit="Save Address Configuration" cancel="Cancel"}
{control type=buttongroup submit="Save Address Configuration"|gettext cancel="Cancel"|gettext}
{/form}
</div>
26 changes: 13 additions & 13 deletions framework/modules/addressbook/views/address/myaddressbook.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

<div class="module address myaddressbook">
<h1>{$moduletitle|default:"My address book"}</h1>
<div>Click the <strong>Add New Address</strong> link below if you'd like to add a new address to use for either your billing or shipping address.{br}
To change your billing or shipping address for this order, simply select the button next to the address you'd like to set in either the billing or shipping address column. {br}
A green button indicates your selection.{br}{br}
When you are done, simply click the <strong>Return to Checkout</strong> button below to go back to the checkout process.
{br} {br}
<div>{'Click the'|gettext} <strong>{'Add New Address'|gettext}</strong> {'link below if you\'d like to add a new address to use for either your billing or shipping address'|gettext}.{br}
{'To change your billing or shipping address for this order, simply select the button next to the address you\'d like to set in either the billing or shipping address column'|gettext}.{br}
{'A green button indicates your selection'|gettext}.{br}{br}
{'When you are done, simply click the <strong>Return to Checkout'|gettext}</strong> {'button below to go back to the checkout process'|gettext}.
{br}{br}
</div>
<p>
{icon class=add action=create title="Add New Address" text="Add New Address"|gettext}
{icon class=add action=create text="Add New Address"|gettext}
</p>
{br}
<table class="exp-skin-table">
<thead>
<th>Use as Billing</th>
<th>Use as Shipping</th>
<th>Address</th>
<th>{'Use as Billing'|gettext}</th>
<th>{'Use as Shipping'|gettext}</th>
<th>{'Address'|gettext}</th>
<th>&nbsp;</th>
</thead>
<tbody>
Expand All @@ -56,7 +56,7 @@
{if $address->is_shipping}
<span style="text-align: center;"><img src="{$smarty.const.ICON_RELATIVE|cat:'toggle_on.png'}" /></span>
{else}
<a href="{link action=activate_address is_what="is_shipping" id=$address->id enabled=1}"><img src="{$smarty.const.ICON_RELATIVE|cat:'toggle_off.png'}" /></a>
<a href="{link action=activate_address is_what="is_shipping" id=$address->id enabled=1}"><img src="{$smarty.const.ICON_RELATIVE|cat:'toggle_off.png'}" /></a>
{/if}
</td>
<td>
Expand All @@ -75,15 +75,15 @@
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
<div class="item-actions">
{if $user->id == $address->user_id}
{icon action=edit record=$address title="Edit this Address"}
{if $addresses|@count > 1}{icon action=delete record=$address title="Delete this Address" onclick="return confirm('Are you sure you want to delete this address?');"}{/if}
{icon action=edit record=$address}
{if $addresses|@count > 1}{icon action=delete record=$address}{/if}
{/if}
</div>
{/permissions}
</td>
</tr>
{foreachelse}
<tr><td colspan="4"></tr><p>You don't have any addresses in your address book yet</p></td>
<tr><td colspan="4"></tr><p>{'You don\'t have any addresses in your address book yet'|gettext}</p></td>
{/foreach}
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
*
*}

<h2>Configure this Banner Module</h2>
<h2>{'Configure this Banner Module'|gettext}</h2>
<p>
This is where you can configure the settings to be used by this banner module.
These settings will only apply to this particular banner module.
{'This is where you can configure the settings to be used by this banner module.
These settings will only apply to this particular banner module.'|gettext}
</p>
<h2>Number of Banners to Display</h2>
{control type="text" name="limit" label="Number of banners" size=3 filter=integer value=$config.limit}
<h2>{'Number of Banners to Display'|gettext}</h2>
{control type="text" name="limit" label="Number of banners"|gettext size=3 filter=integer value=$config.limit}
<h2>Banner Size</h2>
{control type="text" name="width" label="Width" size=4 filter=integer value=$config.width}
{control type="text" name="height" label="Height" size=4 filter=integer value=$config.height}
{control type="text" name="width" label="Width"|gettext size=4 filter=integer value=$config.width}
{control type="text" name="height" label="Height"|gettext size=4 filter=integer value=$config.height}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*}

<h2>Show these banners</h2>
<h2>{'Show these banners'|gettext}</h2>
<table>
{foreach from=$banners item=banner}
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
*
*}

<h2>Default Banner</h2>
<p>This is the banner that will be used if there are no banners available for this banner module.</p>
{control type="files" name="default" label="Default Banner Image" value=$config.defaultbanner}
<h2>{'Default Banner'|gettext}</h2>
<p>
{'This is the banner that will be used if there are no banners available for this banner module.'|gettext}
</p>
{control type="files" name="default" label="Default Banner Image"|gettext value=$config.defaultbanner}
18 changes: 9 additions & 9 deletions framework/modules/banners/views/banner/edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
*}

{if $record->id != ""}
<h1>Edit Information for {$modelname}</h1>
<h1>{'Edit Information for'|gettext} {$modelname}</h1>
{else}
<h1>New {$modelname}</h1>
<h1>{'New'|gettext} {$modelname}</h1>
{/if}

{form action=update}
{control name=id type=hidden value=$record->id}
{control name=impressions type=hidden value=$record->impressions}
{control name=clicks type=hidden value=$record->clicks}
{control type="text" name="title" label="Banner Name" value=$record->title}
{control type="text" name="url" label="URL" value=$record->url}
{control type="text" name="impression_limit" label="Impression Limit" size=5 filter=integer value=$record->impression_limit}
{control type="text" name="click_limit" label="Click Limit" size=5 filter=integer value=$record->click_limit}
{control type="files" name="image" label="Banner Image" value=$record->expFile}
{control type="dropdown" name="companies_id" label="Company" frommodel=company key=id display=title value=$record->companies_id}
{control type="editor" name="body" label="URL Description" value=$record->body}
{control type="text" name="title" label="Banner Name"|gettext value=$record->title}
{control type="text" name="url" label="URL"|gettext value=$record->url}
{control type="text" name="impression_limit" label="Impression Limit"|gettext size=5 filter=integer value=$record->impression_limit}
{control type="text" name="click_limit" label="Click Limit"|gettext size=5 filter=integer value=$record->click_limit}
{control type="files" name="image" label="Banner Image"|gettext value=$record->expFile}
{control type="dropdown" name="companies_id" label="Company"|gettext frommodel=company key=id display=title value=$record->companies_id}
{control type="editor" name="body" label="URL Description"|gettext value=$record->body}
{control type="buttongroup" submit="Save"|gettext cancel="Cancel"|gettext}
{/form}
24 changes: 12 additions & 12 deletions framework/modules/banners/views/banner/manage.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
{/css}

<div class="module banner manage">
<h1>{$moduletitle|default:"Manage Banners"}</h1>
<h1>{$moduletitle|default:"Manage Banners"|gettext}</h1>
<p>
You can manage the banners for your site's banner modules here. The banners you create and configure
here will be available to all the banner modules you have on your site.
{'You can manage the banners for your site\'s banner modules here. The banners you create and configure
here will be available to all the banner modules you have on your site.'|gettext}
</p>
{icon class=add action=create title="Create a new banner" alt="Create a new banner" text="Create a new banner"}{br}
{icon action=export title="Export banner data" alt="Export banner data" text="Export banner data"}{br}
{icon action=reset_stats title="Reset banner stats" alt="Reset banner stats" text="Reset banner stats" onclick="return confirm('Are you sure you want to reset the Impression and Click statistics of your banners?');"}{br}
{*{icon class=add module=company action=create title="Create a new company" alt="Create a new company" text="Create a new company"}{br}*}
{icon class=manage module=company action=showall title="Manage companies" alt="Manage companies" text="Manage companies"}{br}
{icon class=add action=create text="Create a new banner"|gettext}{br}
{icon action=export text="Export banner data"|gettext}{br}
{icon action=reset_stats text="Reset banner stats"|gettext onclick="return confirm('Are you sure you want to reset the Impression and Click statistics of your banners?');"}{br}
{*{icon class=add module=company action=create text="Create a new company"|gettext}{br}*}
{icon class=manage module=company action=showall text="Manage companies"|gettext}{br}
{pagelinks paginate=$page top=1}
<table class="exp-skin-table">
<thead>
<tr>
<th>&nbsp;</th>
{$page->header_columns}
<th>Admin</th>
<th>{'Admin'|gettext}</th>
</tr>
</thead>
<tbody>
Expand All @@ -50,18 +50,18 @@
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
<div class="item-actions">
{if $permissions.edit == true}
{icon action=edit record=$listing title="Edit"}
{icon action=edit record=$listing}
{/if}
{if $permissions.delete == true}
{icon action=delete record=$listing title="Delete" onclick="return confirm('Are you sure you want to delete this?');"}
{icon action=delete record=$listing}
{/if}
</div>
{/permissions}
</td>
</tr>
{foreachelse}
<tr class="{cycle values="odd,even"}">
<td colspan="{$page->columns|count}">No Data.</td>
<td colspan="{$page->columns|count}">{'No Data'|gettext}.</td>
</tr>
{/foreach}
</tbody>
Expand Down
Loading

0 comments on commit 916023e

Please sign in to comment.