public
Description: The source code repository for twoorl.com
Homepage: http://twoorl.com
Clone URL: git://github.com/yariv/twoorl.git
twoorl / src / bundles / twoorl_eng.erl
100644 137 lines (120 sloc) 4.293 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
%% This file is part of Twoorl.
%%
%% Twoorl 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 3 of the License, or
%% (at your option) any later version.
%%
%% Twoorl is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%% GNU General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with Twoorl. If not, see <http://www.gnu.org/licenses/>.
 
-module(twoorl_eng).
-export([bundle/1]).
 
bundle(Tag) ->
    case Tag of
 
language -> <<"english">>;
 
%% layout
login -> <<"login">>;
register -> <<"register">>;
logged_in_as -> <<"logged in as">>;
settings -> <<"settings">>;
logout -> <<"logout">>;
get_source ->
<<"Get the <a href=\"http://code.google.com/p/twoorl\">"
"source code</a>">>;
 
%% navbar
home -> <<"home">>;
replies -> <<"replies">>;
me -> <<"me">>;
everyone -> <<"everyone">>;
 
%% login page
login_cap -> <<"Login">>;
username -> <<"username">>;
password -> <<"password">>;
not_member -> <<"Not a member?">>;
login_submit -> <<"login">>;
 
%% register page
% note: 'username', 'password' and 'Login_cap' are taken from
% login page section
register_cap -> <<"Register">>;
email -> <<"email">>;
password2 -> <<"re-enter password">>;
already_member -> <<"Already a member?">>;
 
%% home page
upto -> <<"What are you up to?">>;
twitter_msg -> <<"Automatic posting to Twitter enabled for "
"non-replies">>;
send -> <<"send">>;
 
%% main page
public_timeline -> <<"Public timeline">>;
 
%% users page
{no_user, Username} ->
[<<"The user '">>, Username, <<"' doesn't exist">>];
{timeline_of, Username} ->
[Username, <<"'s timeline">>];
following -> <<"following">>;
followers -> <<"followers">>;
follow -> <<"follow">>;
unfollow -> <<"unfollow">>;
 
%% friends page
{friends_of, Userlink} ->
[<<"People ">>, Userlink, <<" follows">>];
{followers_of, Userlink} ->
[Userlink, <<"'s followers">>];
{no_friends, Username} ->
[Username, <<" isn't following anyone">>];
{no_followers, Username} ->
[Username, <<" has no followers">>];
 
 
%% settings page
settings_cap -> <<"Settings">>;
use_gravatar -> <<"Use <a href=\"http://gravatar.com\" "
"target=\"_blank\">Gravatar</a>?">>;
profile_bg -> <<"Profile background">>;
profile_bg_help ->
<<"Enter the url for your profile background image "
"(leave blank to use the default background):">>;
twitter_help ->
<<"You may provide your Twitter account details to have "
"your twoorls automatically posted to Twitter.<br/><br/>"
"Only twoorls that don't contain replies (e.g."
"\"@sergey\") will be posted to Twitter.">>;
twitter_username -> <<"Twitter username:">>;
twitter_password -> <<"Twitter password:">>;
twitter_auto -> <<"Automatically post my Twoorls to Twitter?">>;
submit -> <<"submit">>;
 
%% error messages
{missing_field, Field} ->
[<<"The ">>, Field, <<" field is required">>];
{username_taken, Val} ->
[<<"The username '">>, Val, <<"' is taken">>];
{invalid_username, Val} ->
[<<"The username '">>, Val,
<<"' is invalid. Only letters, numbers and underscore ('_') "
"are accepted">>];
invalid_login ->
<<"Invalid username or password">>;
{too_short, Field, Min} ->
[<<"The ">>, Field, <<" is too short (">>, Min,
<<" chars minimum)">>];
password_mismatch ->
<<"The password values didn't match">>;
twitter_unauthorized ->
<<"Twitter rejected the username/password combination you "
"provided">>;
twitter_authorization_error ->
<<"Couldn't connect to Twitter. Please try again later.">>;
{invalid_url, Field} ->
[<<"The ">>, Field, <<" URL must start with 'http://'">>];
 
%% confirmation messages
settings_updated ->
[<<"Your settings have been updated successfully">>];
 
%% miscellaneous
{seconds_ago, Val} -> [Val, <<" seconds ago">>];
{minutes_ago, Val} -> [Val, <<" minutes ago">>];
{hours_ago, Val} -> [Val, <<" hours ago">>];
{days_ago, Val} -> [Val, <<" days ago">>]
    end.