Vertaalbestanden 7: resterende Engelse API-antwoorden (wachtwoord/gebruikersbeheer, 13) en interne-serverfoutzin naar de tekstbestanden; docs/mail-teksten.md (gegenereerd overzicht van alle mailteksten)
TWEEDE GEDRAGSWIJZIGING (goedgekeurd): de 13 Engelse antwoorden van auth/users zijn Nederlands bij Texts:DefaultLanguage=nl; en-bestand = oude tekst letterlijk. De admin toont voor wachtwoord vergeten zijn eigen tekst. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,4 +31,32 @@ public class CoreTextsTests
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Invitation.CreateFailed, args: ("errors", "a, b")).Should().Be("Kan gebruiker niet aanmaken: a, b");
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Setup.CreateOwnerFailed, args: ("errors", "a, b")).Should().Be("Fout bij aanmaken eigenaar: a, b");
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("core.identity.auth.invalidEmail", "Enter a valid e-mail address.")]
|
||||
[InlineData("core.identity.auth.resetRequested", "If this address belongs to an account, an e-mail with a link has been sent.")]
|
||||
[InlineData("core.identity.auth.linkInvalid", "This link is invalid or has expired.")]
|
||||
[InlineData("core.identity.auth.passwordSet", "Password set. You can sign in now.")]
|
||||
[InlineData("core.identity.auth.passwordRejected", "The password does not meet the requirements.")]
|
||||
[InlineData("core.identity.users.emailInUse", "Email is already in use.")]
|
||||
[InlineData("core.identity.users.unsupportedLanguage", "Unsupported language.")]
|
||||
[InlineData("core.identity.users.updateProfileFailed", "Failed to update profile.")]
|
||||
[InlineData("core.identity.users.lastOwner", "At least one Owner must remain.")]
|
||||
[InlineData("core.identity.users.cannotChangeOwnActive", "You cannot change your own active status.")]
|
||||
[InlineData("core.identity.users.updateUserFailed", "Failed to update user.")]
|
||||
[InlineData("core.identity.users.cannotDeleteSelf", "You cannot delete your own account.")]
|
||||
[InlineData("core.identity.users.deleteUserFailed", "Failed to delete user.")]
|
||||
public void TheEnglishTexts_OfTheFormerlyEnglishOnlyMessages_AreTheOldWording(string key, string expected)
|
||||
=> TextCatalog.Default.Get(new TextKey(key), "en").Should().Be(expected);
|
||||
|
||||
[Fact]
|
||||
public void TheInternalErrorDetail_IsTheOldDutchSentence()
|
||||
=> TextCatalog.Default.Get(CoreTexts.Errors.Internal).Should().Be("Er is een interne serverfout opgetreden.");
|
||||
|
||||
[Fact]
|
||||
public void TheFormerlyEnglishOnlyMessages_AreNowDutchInTheDefaultLanguage()
|
||||
{
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Users.CannotDeleteSelf).Should().Be("Je kunt je eigen account niet verwijderen.");
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Auth.ResetRequested).Should().StartWith("Als dit adres bij een account hoort");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user