the browser-facing portion of osu!
at master 191 lines 4.6 kB view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6return [ 7 'invalid' => '', 8 'not_negative' => '', 9 'required' => '', 10 'too_long' => '', 11 'url' => '', 12 'wrong_confirmation' => '', 13 14 'beatmapset_discussion' => [ 15 'beatmap_missing' => '', 16 'beatmapset_no_hype' => "", 17 'hype_requires_null_beatmap' => '', 18 'invalid_beatmap_id' => '', 19 'invalid_beatmapset_id' => '', 20 'locked' => '', 21 22 'attributes' => [ 23 'message_type' => '', 24 'timestamp' => '', 25 ], 26 27 'hype' => [ 28 'discussion_locked' => "", 29 'guest' => '', 30 'hyped' => '', 31 'limit_exceeded' => '', 32 'not_hypeable' => '', 33 'owner' => '', 34 ], 35 36 'timestamp' => [ 37 'exceeds_beatmapset_length' => '', 38 'negative' => "", 39 ], 40 ], 41 42 'beatmapset_discussion_post' => [ 43 'discussion_locked' => '', 44 'first_post' => '', 45 46 'attributes' => [ 47 'message' => '', 48 ], 49 ], 50 51 'comment' => [ 52 'deleted_parent' => '', 53 'top_only' => '', 54 55 'attributes' => [ 56 'message' => '', 57 ], 58 ], 59 60 'follow' => [ 61 'invalid' => '', 62 ], 63 64 'forum' => [ 65 'feature_vote' => [ 66 'not_feature_topic' => '', 67 'not_enough_feature_votes' => '', 68 ], 69 70 'poll_vote' => [ 71 'invalid' => '', 72 ], 73 74 'post' => [ 75 'beatmapset_post_no_delete' => '', 76 'beatmapset_post_no_edit' => '', 77 'first_post_no_delete' => '', 78 'missing_topic' => '', 79 'only_quote' => '', 80 81 'attributes' => [ 82 'post_text' => '', 83 ], 84 ], 85 86 'topic' => [ 87 'attributes' => [ 88 'topic_title' => '', 89 ], 90 ], 91 92 'topic_poll' => [ 93 'duplicate_options' => '', 94 'grace_period_expired' => '', 95 'hiding_results_forever' => '', 96 'invalid_max_options' => '', 97 'minimum_one_selection' => '', 98 'minimum_two_options' => '', 99 'too_many_options' => '', 100 101 'attributes' => [ 102 'title' => '', 103 ], 104 ], 105 106 'topic_vote' => [ 107 'required' => '', 108 'too_many' => '', 109 ], 110 ], 111 112 'legacy_api_key' => [ 113 'exists' => '', 114 115 'attributes' => [ 116 'api_key' => '', 117 'app_name' => '', 118 'app_url' => '', 119 ], 120 ], 121 122 'oauth' => [ 123 'client' => [ 124 'too_many' => '', 125 'url' => '', 126 127 'attributes' => [ 128 'name' => '', 129 'redirect' => '', 130 ], 131 ], 132 ], 133 134 'user' => [ 135 'contains_username' => '', 136 'email_already_used' => '', 137 'email_not_allowed' => '', 138 'invalid_country' => '', 139 'invalid_discord' => '', 140 'invalid_email' => "", 141 'invalid_twitter' => '', 142 'too_short' => '', 143 'unknown_duplicate' => '', 144 'username_available_in' => '', 145 'username_available_soon' => '', 146 'username_invalid_characters' => '', 147 'username_in_use' => '', 148 'username_locked' => '', // TODO: language for this should be slightly different. 149 'username_no_space_userscore_mix' => '', 150 'username_no_spaces' => "", 151 'username_not_allowed' => '', 152 'username_too_short' => '', 153 'username_too_long' => '', 154 'weak' => '', 155 'wrong_current_password' => '', 156 'wrong_email_confirmation' => '', 157 'wrong_password_confirmation' => '', 158 'too_long' => '', 159 160 'attributes' => [ 161 'username' => '', 162 'user_email' => '', 163 'password' => '', 164 ], 165 166 'change_username' => [ 167 'restricted' => '', 168 'supporter_required' => [ 169 '_' => '', 170 'link_text' => '', 171 ], 172 'username_is_same' => '', 173 ], 174 ], 175 176 'user_report' => [ 177 'no_ranked_beatmapset' => '', 178 'not_in_channel' => '', 179 'reason_not_valid' => '', 180 'self' => "", 181 ], 182 183 'store' => [ 184 'order_item' => [ 185 'attributes' => [ 186 'quantity' => '', 187 'cost' => '', 188 ], 189 ], 190 ], 191];