1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
$english = array( |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Menu items and titles |
7
|
|
|
*/ |
8
|
|
|
'poll' => "Poll", |
9
|
|
|
'polls:add' => "New Poll", |
10
|
|
|
'polls' => "Polls", |
11
|
|
|
'polls:votes' => "votes", |
12
|
|
|
'polls:user' => "%s's poll", |
13
|
|
|
'polls:group_polls' => "Group polls", |
14
|
|
|
'polls:group_polls:listing:title' => "%s's polls", |
15
|
|
|
'polls:user:friends' => "%s's friends' poll", |
16
|
|
|
'polls:your' => "Your polls", |
17
|
|
|
'polls:not_me' => "%s's polls", |
18
|
|
|
'polls:posttitle' => "%s's polls: %s", |
19
|
|
|
'polls:friends' => "Friends' polls", |
20
|
|
|
'polls:not_me_friends' => "%s's friend's polls", |
21
|
|
|
'polls:yourfriends' => "Your friends' latest polls", |
22
|
|
|
'polls:everyone' => "All site polls", |
23
|
|
|
'polls:read' => "Read poll", |
24
|
|
|
'polls:addpost' => "Create a poll", |
25
|
|
|
'polls:editpost' => "Edit a poll: %s", |
26
|
|
|
'polls:edit' => "Edit a poll", |
27
|
|
|
'polls:text' => "Poll text", |
28
|
|
|
'polls:strapline' => "%s", |
29
|
|
|
'item:object:poll' => 'Polls', |
30
|
|
|
'item:object:poll_choice' => "Poll choices", |
31
|
|
|
'polls:question' => "Poll question", |
32
|
|
|
'polls:responses' => "Response choices", |
33
|
|
|
'polls:results' => "[+] Show the results", |
34
|
|
|
'polls:show_results' => "Show results", |
35
|
|
|
'polls:show_poll' => "Show poll", |
36
|
|
|
'polls:add_choice' => "Add response choice", |
37
|
|
|
'polls:delete_choice' => "Delete this choice", |
38
|
|
|
'polls:settings:group:title' => "Group polls", |
39
|
|
|
'polls:settings:group_polls_default' => "yes, on by default", |
40
|
|
|
'polls:settings:group_polls_not_default' => "yes, off by default", |
41
|
|
|
'polls:settings:no' => "no", |
42
|
|
|
'polls:settings:group_profile_display:title' => "If group polls are activated, where should polls content be displayed in group profiles?", |
43
|
|
|
'polls:settings:group_profile_display_option:left' => "left", |
44
|
|
|
'polls:settings:group_profile_display_option:right' => "right", |
45
|
|
|
'polls:settings:group_profile_display_option:none' => "none", |
46
|
|
|
'polls:settings:group_access:title' => "If group polls are activated, who gets to create polls?", |
47
|
|
|
'polls:settings:group_access:admins' => "group owners and admins only", |
48
|
|
|
'polls:settings:group_access:members' => "any group member", |
49
|
|
|
'polls:none' => "No polls found.", |
50
|
|
|
'polls:permission_error' => "You do not have permission to edit this poll.", |
51
|
|
|
'polls:vote' => "Vote", |
52
|
|
|
'polls:login' => "Please login if you would like to vote in this poll.", |
53
|
|
|
'group:polls:empty' => "No polls", |
54
|
|
|
'polls:settings:site_access:title' => "Who can create site-wide polls?", |
55
|
|
|
'polls:settings:site_access:admins' => "Admins only", |
56
|
|
|
'polls:settings:site_access:all' => "Any logged-in user", |
57
|
|
|
'polls:can_not_create' => "You do not have permission to create polls.", |
58
|
|
|
/** |
59
|
|
|
* poll widget |
60
|
|
|
**/ |
61
|
|
|
'polls:latest_widget_title' => "Latest community polls", |
62
|
|
|
'polls:latest_widget_description' => "Displays the most recent polls.", |
63
|
|
|
'polls:my_widget_title' => "My polls", |
64
|
|
|
'polls:my_widget_description' => "This widget will display your polls.", |
65
|
|
|
'polls:widget:label:displaynum' => "How many polls you want to display?", |
66
|
|
|
'polls:individual' => "Latest poll", |
67
|
|
|
'poll_individual_group:widget:description' => "Display the latest poll for this group.", |
68
|
|
|
'poll_individual:widget:description' => "Display your latest poll", |
69
|
|
|
'polls:widget:no_polls' => "There are no polls for %s yet.", |
70
|
|
|
'polls:widget:nonefound' => "No polls found.", |
71
|
|
|
'polls:widget:think' => "Let %s know what you think!", |
72
|
|
|
'polls:enable_polls' => "Enable polls", |
73
|
|
|
'polls:group_identifier' => "(in %s)", |
74
|
|
|
'polls:noun_response' => "response", |
75
|
|
|
'polls:noun_responses' => "responses", |
76
|
|
|
'polls:settings:yes' => "yes", |
77
|
|
|
'polls:settings:no' => "no", |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* poll river |
81
|
|
|
**/ |
82
|
|
|
'polls:settings:create_in_river:title' => "Show poll creation in activity river", |
83
|
|
|
'polls:settings:vote_in_river:title' => "Show poll voting in activity river", |
84
|
|
|
'river:create:object:poll' => '%s created a poll %s', |
85
|
|
|
'river:vote:object:poll' => '%s voted on the poll %s', |
86
|
|
|
'river:comment:object:poll' => '%s commented on the poll %s', |
87
|
|
|
/** |
88
|
|
|
* Status messages |
89
|
|
|
*/ |
90
|
|
|
|
91
|
|
|
'polls:added' => "Your poll was created.", |
92
|
|
|
'polls:edited' => "Your poll was saved.", |
93
|
|
|
'polls:responded' => "Thank you for responding, your vote was recorded.", |
94
|
|
|
'polls:deleted' => "Your poll was successfully deleted.", |
95
|
|
|
'polls:totalvotes' => "Total number of votes: ", |
96
|
|
|
'polls:voted' => "Your vote has been cast for this poll. Thank you for voting on this poll.", |
97
|
|
|
|
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* Error messages |
101
|
|
|
*/ |
102
|
|
|
|
103
|
|
|
'polls:save:failure' => "Your poll could not be saved. Please try again.", |
104
|
|
|
'polls:blank' => "Sorry: you need to fill in both the question and responses before you can make a poll.", |
105
|
|
|
'polls:novote' => "Sorry: you need to choose an option to vote in this poll.", |
106
|
|
|
'polls:notfound' => "Sorry: we could not find the specified poll.", |
107
|
|
|
'polls:nonefound' => "No polls were found from %s", |
108
|
|
|
'polls:notdeleted' => "Sorry: we could not delete this poll." |
109
|
|
|
); |
110
|
|
|
|
111
|
|
|
add_translation("en",$english); |
112
|
|
|
|
113
|
|
|
?> |
|
|
|
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.