Skip to content

Commit 656f045

Browse files
Merge pull request #217 from codeforcroatia/develop
add missing localization
2 parents 2d19559 + 9a141e2 commit 656f045

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+247
-199
lines changed

html-templates/blog/blogPosts.tpl

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,36 @@
55
{cssmin "pages/article.css"}
66
{/block}
77

8-
{block title}Blog — {$dwoo.parent}{/block}
8+
{block title}{_ 'Blog'} — {$dwoo.parent}{/block}
99

1010
{block "content"}
1111
{load_templates "subtemplates/blog.tpl"}
1212
{load_templates "subtemplates/paging.tpl"}
1313

1414
<div class="row">
1515
<div class="col-md-8 col-md-offset-2">
16-
16+
1717
<header class="page-header">
18-
<a href="/blog/create" class="btn btn-success pull-right">New Post</a>
18+
<a href="/blog/create" class="btn btn-success pull-right">{_ "New Post"}</a>
1919

20-
<h1>Blog Feed</h1>
20+
<h1>{_ "Blog Feed"}</h1>
2121
</header>
22-
22+
2323
<section class="page-section article-collection">
2424
{foreach item=BlogPost from=$data}
2525
{blogPost $BlogPost useSummary=true showBody=false headingLevel="h2"}
2626
{foreachelse}
27-
<p class="empty-text">Stay tuned for the first post&hellip;</p>
27+
<p class="empty-text">{_ "Stay tuned for the first post"}&hellip;</p>
2828
{/foreach}
2929
</section>
3030

3131
{if $total > $limit}
3232
<footer class="page-footer">
33-
<strong>{$total|number_format} posts:</strong> {pagingLinks $total pageSize=$limit}
33+
{capture assign=totalPosts}{$total|number_format}{pagingLinks $total pageSize=$limit}{/capture}
34+
<strong>{sprintf(_("%s posts:"), $totalPosts)}</strong>
3435
</footer>
3536
{/if}
3637

3738
</div>
3839
</div>
39-
{/block}
40+
{/block}

html-templates/checkin/checkinComplete.tpl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
{extends designs/site.tpl}
22

3-
{block title}Checkin Complete &mdash; {$dwoo.parent}{/block}
3+
{block title}{_ "Checkin Complete"} &mdash; {$dwoo.parent}{/block}
44

55
{block content}
66
{$Checkin = $data}
77

88
<div class="page-header">
99
<h1>{_ "Success!"}</h1>
1010
</div>
11-
<p>Thanks for checking in {if $Checkin->Project}to {projectLink $Checkin->Project}{/if} @ {Laddr::$siteName|escape}!</p>
11+
{capture assign=checkinProject}{projectLink $Checkin->Project}{/capture}
12+
{capture assign=checkinSiteName}{Laddr::$siteName|escape}{/capture}
13+
{if $Checkin->Project}
14+
<p>{sprintf(_("Thanks for checking in to %s @ %s!"), $checkinProject, $checkinSiteName)}</p>
15+
{else}
16+
<p>{sprintf(_("Thanks for checking in @ %s!"), $checkinSiteName)}</p>
17+
{/if}
1218
<h2>{_ "Things to do next:"}</h2>
1319
<ul>
1420
{if $Checkin->Project}
@@ -23,4 +29,4 @@
2329
<li><a href="/develop#/html-templates/checked-in.tpl">{_ "Add stuff to this list"}</a></li>
2430
{/if}
2531
</ul>
26-
{/block}
32+
{/block}

html-templates/checkin/latestEvents.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
<table width="600">
1111
<tr>
12-
<th align="left">Meetup ID</th>
13-
<th align="left">First Checkin</th>
14-
<th align="left">Last Checkin</th>
15-
<th align="right">Checkins</th>
12+
<th align="left">{_ "Meetup ID"}</th>
13+
<th align="left">{_ "First Checkin"}</th>
14+
<th align="left">{_ "Last Checkin"}</th>
15+
<th align="right">{_ "Checkins"}</th>
1616
</tr>
1717
{foreach item=row from=$data}
1818
<tr>
@@ -23,4 +23,4 @@
2323
</tr>
2424
{/foreach}
2525
</table>
26-
{/block}
26+
{/block}

html-templates/checkin/topMembers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<table width="350">
1111
<tr>
12-
<th align="left">Member</th>
13-
<th align="right">Event checkins</th>
12+
<th align="left">{_ Member}</th>
13+
<th align="right">{_ "Event checkins"}</th>
1414
</tr>
1515
{foreach item=row from=$data}
1616
<tr>
@@ -19,4 +19,4 @@
1919
</tr>
2020
{/foreach}
2121
</table>
22-
{/block}
22+
{/block}

html-templates/confirm.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
66
<div class="page-header">
77
{if $data->getTitle()}
8-
<h1>Delete {$data->getTitle()}</h1>
8+
<h1>{_ Delete} {$data->getTitle()}</h1>
99
{else}
10-
<h1>Please confirm</h1>
10+
<h1>{_ "Please confirm"}</h1>
1111
{/if}
1212
</div>
1313
<p class="confirm">{$question}</p>
1414
<form method="POST">
15-
<button type="button" class="btn btn-secondary margin-right" name="Sure" value="No" onclick="javascript:history.go(-1);">No</button>
16-
<button type="submit" class="btn btn-danger" name="Sure">Yes</button>
15+
<button type="button" class="btn btn-secondary margin-right" name="Sure" value="No" onclick="javascript:history.go(-1);">{_ No}</button>
16+
<button type="submit" class="btn btn-danger" name="Sure">{_ Yes}</button>
1717
</form>
1818
</div>
1919
</div>

html-templates/contact/contact.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{extends designs/site.tpl}
22

3-
{block "title"}Contact &mdash; {$dwoo.parent}{/block}
3+
{block "title"}{_ 'Contact'} &mdash; {$dwoo.parent}{/block}
44

55
{block js-top}
66
{$dwoo.parent}
@@ -15,15 +15,15 @@
1515
<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
1616

1717
<div class="page-header">
18-
<h1>Contact Us</h1>
18+
<h1>{_ "Contact Us"}</h1>
1919
</div>
2020

2121
{contentBlock "contact-introduction"}
2222

2323
<form action="/contact" method="POST" class="contact-form">
2424
{if $validationErrors}
2525
<div class="alert alert-danger">
26-
Please double-check the fields highlighted below.
26+
{_ "Please double-check the fields highlighted below."}
2727
</div>
2828
{/if}
2929

@@ -43,9 +43,9 @@
4343
<p class="text-danger">{$validationErrors.ReCaptcha}</p>
4444
{/if}
4545

46-
<button type="submit" class="btn btn-primary">Send</button>
46+
<button type="submit" class="btn btn-primary">{_ Send}</button>
4747
</form>
4848

4949
</div>
5050
</div>
51-
{/block}
51+
{/block}

html-templates/events/event.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@
6666
<dl class="event-details row">
6767
{if $Event->Status != 'published'}
6868
<div class="col-md-2">
69-
<dt>Status</dt>
69+
<dt>{_ Status}</dt>
7070
<dd>{$Event->Status}</dd>
7171
</div>
7272
{/if}
7373

7474
<div class="col-md-2">
75-
<dt>Starts</dt>
75+
<dt>{_ Starts}</dt>
7676
<dd>{timestamp $Event->StartTime time='auto'}</dd>
7777
</div>
7878

7979
{if $Event->EndTime}
8080
<div class="col-md-2">
81-
<dt>Ends</dt>
81+
<dt>{_ Ends}</dt>
8282
<dd>{timestamp $Event->EndTime time='auto'}</dd>
8383
</div>
8484
{/if}
8585

8686
{if $Event->LocationName || $Event->LocationAddress}
8787
<div class="col-md-2">
88-
<dt>Location</dt>
88+
<dt>{_ Location}</dt>
8989
<dd class="d-flex my-2 align-items-baseline">
9090
<div class="text-danger mr-2">{icon "map-marker" fa-fw}</div>
9191
<div class="flex-fill event-segment__location">{eventLocation name=$Segment->LocationName
@@ -101,7 +101,7 @@
101101
<div class="row">
102102
{if $Event->Description}
103103
<div class="col-md-7">
104-
<a href="#schedule" class="d-inline-block d-md-none mb-3">See the schedule {icon "level-down"}</a>
104+
<a href="#schedule" class="d-inline-block d-md-none mb-3">{_ "See the schedule"} {icon "level-down"}</a>
105105
<div
106106
class="content-markdown event-description content-editable"
107107
{if $.User->hasAccountLevel('Staff')}
@@ -120,7 +120,7 @@
120120
{if $Event->Segments}
121121
<div id="schedule" class="col-md-5 col-lg-4 offset-lg-1 pt-5 pt-md-0">
122122
<section class="event-segments">
123-
<h2 class="h4">Schedule</h2>
123+
<h2 class="h4">{_ Schedule}</h2>
124124

125125
{$lastDate = null}
126126
{$lastLocationName = null}

html-templates/events/eventEdit.tpl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ol class="breadcrumb">
1717
<li class="breadcrumb-item"><a href="/events">{_ "Events"}</a></li>
1818
<li class="breadcrumb-item"><a href="{$Event->getUrl()}">{$Event->Title|escape}</a></li>
19-
<li class="breadcrumb-item active">Edit</li>
19+
<li class="breadcrumb-item active">{_ Edit}</li>
2020
</ol>
2121

2222
<h1>
@@ -44,16 +44,16 @@
4444

4545
<form method="POST">
4646
<div class="form-group">
47-
<label for="field-title">{_ "Title"}:</label>
47+
<label for="field-title">{_ "Title:"}</label>
4848
<input name="Title" id="field-title" class="form-control form-control-lg" placeholder="{_ 'Workshop #125'}" value="{refill field=Title default=$Event->Title}" />
4949
</div>
5050
<div class="form-group">
51-
<label for="field-handle">{_ "Handle"} ({_ "optional"}):</label>
51+
<label for="field-handle">{_ "Handle (optional):"}</label>
5252
<input name="Handle" id="field-handle" class="form-control" placeholder="{_ 'workshop-125'}" value="{refill field=Handle default=$Event->Handle}" />
53-
<small class="form-text text-muted">Must be unique &mdash; leave blank to auto-generate</small>
53+
<small class="form-text text-muted">{_ "Must be unique &mdash; leave blank to auto-generate"}</small>
5454
</div>
5555
<div class="form-group">
56-
<label for="field-status">{_ "Status"}:</label>
56+
<label for="field-status">{_ "Status:"}</label>
5757
<select name="Status" id="field-status" class="form-control">
5858
{foreach item=status from=Emergence\Events\Event::getFieldOptions(Status, values)}
5959
<option {refill field=Status default=$Event->Status selected=$status}>{$status}</option>
@@ -63,23 +63,23 @@
6363
<div class="form-row">
6464
<div class="col-md-6">
6565
<div class="form-group">
66-
<label for="field-time-start">{_ "Start time"}:</label>
66+
<label for="field-time-start">{_ "Start time:"}</label>
6767
<input type="datetime-local" name="StartTime" id="field-time-start" class="form-control" value="{refill field=StartTime default=tif($Event->StartTime, date('Y-m-d\TH:i', $Event->StartTime))}"/>
6868
</div>
6969
</div>
7070
<div class="col-md-6">
7171
<div class="form-group">
72-
<label for="field-time-end">{_ "End time"}:</label>
72+
<label for="field-time-end">{_ "End time:"}</label>
7373
<input type="datetime-local" name="EndTime" id="field-time-end" class="form-control" value="{refill field=EndTime default=tif($Event->EndTime, date('Y-m-d\TH:i', $Event->EndTime))}"/>
7474
</div>
7575
</div>
7676
</div>
7777
<div class="form-group">
78-
<label for="field-location-name">{_ "Location name"}:</label>
78+
<label for="field-location-name">{_ "Location name:"}</label>
7979
<input type="text" name="LocationName" id="field-location-name" class="form-control" placeholder="Localhost" value="{refill field=LocationName default=$Event->LocationName}"/>
8080
</div>
8181
<div class="form-group">
82-
<label for="field-location-address">{_ "Location address"}:</label>
82+
<label for="field-location-address">{_ "Location address:"}</label>
8383
<input type="text" name="LocationAddress" id="field-location-address" class="form-control" placeholder="908 N 3rd St, Philadelphia PA" value="{refill field=LocationAddress default=$Event->LocationAddress}"/>
8484
</div>
8585

html-templates/events/eventSaved.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{extends designs/site.tpl}
22

3-
{block title}Saved {$data->Title|escape} &mdash; Events &mdash; {$dwoo.parent}{/block}
3+
{block title}Saved {$data->Title|escape} &mdash; {_ 'Events'} &mdash; {$dwoo.parent}{/block}
44

55
{block content}
66
{$Event = $data}
77

88
{capture assign=eventLink}<a href="{$Event->getUrl()|escape}">{$Event->getTitle()|escape}</a>{/capture}
99

1010
<div class="page-header">
11-
<h1>Event Saved</h1>
11+
<h1>{_ "Event Saved"}</h1>
1212
</div>
1313
{if $Event->isNew}
1414
<p>{_("Your event has been created: %s")|sprintf:$eventLink}</p>
1515
{else}
1616
<p>{_("Your changes to %s have been saved.")|sprintf:$eventLink}</p>
1717
{/if}
18-
{/block}
18+
{/block}

html-templates/events/eventSegment.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<ol class="breadcrumb">
2828
<li class="breadcrumb-item"><a href="/events">{_ "Events"}</a></li>
2929
<li class="breadcrumb-item"><a href="{$Event->getUrl()}">{$Event->Title|escape}</a></li>
30-
<li class="breadcrumb-item active">Schedule</li>
30+
<li class="breadcrumb-item active">{_ "Schedule"}</li>
3131
</ol>
3232
<div class="btn-toolbar pull-right">
3333
{if $.User}
@@ -39,22 +39,22 @@
3939

4040
<div class="row">
4141
<dl class="event-segment-details col-md-4 order-md-last">
42-
<dt>Starts</dt>
42+
<dt>{_ Starts}</dt>
4343
<dd class="d-flex my-2 align-items-baseline">
4444
<div class="mr-2">{icon "clock-o" fa-fw}</div>
4545
<div class="flex-fill">{timestamp $Segment->StartTime time='auto'}</div>
4646
</dd>
4747

4848
{if $Segment->EndTime}
49-
<dt>Ends</dt>
49+
<dt>{_ Ends}</dt>
5050
<dd class="d-flex my-2 align-items-baseline">
5151
<div class="mr-2">{icon "clock-o" fa-fw}</div>
5252
<div class="flex-fill">{timestamp $Segment->EndTime time='auto'}</div>
5353
</dd>
5454
{/if}
5555

5656
{if $Segment->LocationName || $Segment->LocationAddress}
57-
<dt>Location</dt>
57+
<dt>{_ Location}</dt>
5858
<dd class="d-flex my-2 align-items-baseline">
5959
<div class="text-danger mr-2">{icon "map-marker" fa-fw}</div>
6060
<div class="flex-fill">{eventLocation name=$Segment->LocationName

0 commit comments

Comments
 (0)