Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ impl I18n {
errors.insert(LoginError::PasswordMissing, "You must enter a password");
errors.insert(LoginError::PasswordIncorrect, "Incorrect password");
}
"nl" => {
strings.insert("locale", "nl");

strings.insert("login_title", "Aanmelden");
strings.insert("login_subtitle", "U dient zich eerst aan te melden:");
strings.insert("username_label", "Gebruikersnaam:");
strings.insert("username_placeholder", "gebruikersnaam");
strings.insert("password_label", "Wachtwoord:");
strings.insert("password_placeholder", "wachtwoord");
strings.insert("login_button", "Aanmelden");

strings.insert("success_title", "Success!");
strings.insert("success_message", "U bent nu aangemeld.");

errors.insert(LoginError::UsernameMissing, "U dient een gebruikersnaam in te geven.");
errors.insert(LoginError::UsernameNotFound,
"Verkeerde gebruiker of verkeerd wachtwoord");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be an issue in the source material, but punctuation is inconsistent (see UsernameMissing and UsernameNotFound, for example).

errors.insert(LoginError::PasswordMissing, "U dient een wachtwoord in te geven");
errors.insert(LoginError::PasswordIncorrect, "Verkeerde gebruiker of verkeerd wachtwoord");
}
_ => {
panic!("Invalid locale");
}
Expand Down