mirror of
https://github.com/unmojang/drasl.git
synced 2026-02-03 14:13:14 +02:00
Fix 'You are only allowed to have 1 player.' translation string
This commit is contained in:
@@ -417,7 +417,7 @@ func (ts *TestSuite) testAPICreatePlayer(t *testing.T) {
|
||||
assert.Equal(t, http.StatusBadRequest, rec.Code)
|
||||
var apiError APIError
|
||||
assert.Nil(t, json.NewDecoder(rec.Body).Decode(&apiError))
|
||||
assert.Equal(t, "You are only allowed to own 1 player.", apiError.Message)
|
||||
assert.Equal(t, "You are only allowed to have 1 player.", apiError.Message)
|
||||
|
||||
// Admins should be able to override the MaxPlayerCount limit
|
||||
rec = ts.PostJSON(t, ts.Server, DRASL_API_PREFIX+"/players", payload, nil, &admin.APIToken)
|
||||
|
||||
@@ -412,9 +412,9 @@ msgstr[1] ""
|
||||
"A %s se le permite tener hasta %d jugadores. Puede omitir este límite porque "
|
||||
"es administrador."
|
||||
|
||||
msgid "You are only allowed to have 1 player."
|
||||
msgid "You are only allowed to have %d player."
|
||||
msgid_plural "You are allowed to have up to %d players."
|
||||
msgstr[0] "Solo se te permite tener 1 jugador."
|
||||
msgstr[0] "Solo se te permite tener %d jugador."
|
||||
msgstr[1] "Se te permite tener hasta %d jugadores."
|
||||
|
||||
msgid "%s is allowed to have an unlimited number of players."
|
||||
@@ -825,11 +825,6 @@ msgid_plural "must be longer than %d characters"
|
||||
msgstr[0] "debe tener más de %d carácter"
|
||||
msgstr[1] "debe tener más de %d caracteres"
|
||||
|
||||
msgid "You are only allowed to own %d player."
|
||||
msgid_plural "You are only allowed to own %d players."
|
||||
msgstr[0] "Solo se te permite tener %d jugador."
|
||||
msgstr[1] "Solo se te permite tener %d jugadores."
|
||||
|
||||
msgid "Setting a %s texture is not allowed."
|
||||
msgstr "No está permitido establecer una textura de %s."
|
||||
|
||||
|
||||
@@ -112,9 +112,9 @@ func (app *App) CreatePlayer(
|
||||
if maxPlayerCount != Constants.MaxPlayerCountUnlimited && len(user.Players) >= maxPlayerCount && !callerIsAdmin {
|
||||
return Player{}, &UserError{
|
||||
Code: mo.Some(http.StatusBadRequest),
|
||||
Message: "You are only allowed to own %d player.",
|
||||
Message: "You are only allowed to have %d player.",
|
||||
Plural: mo.Some(Plural{
|
||||
Message: "You are only allowed to own %d players", N: maxPlayerCount,
|
||||
Message: "You are only allowed to have %d players", N: maxPlayerCount,
|
||||
}),
|
||||
Params: []any{maxPlayerCount},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user