Split translation file in multiple files: one per language
This commit is contained in:
parent
ec36391ec8
commit
6010c8600f
6 changed files with 339 additions and 331 deletions
153
backend/translations/english.ron
Normal file
153
backend/translations/english.ron
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
(
|
||||
code: "en",
|
||||
territory: "US",
|
||||
name: "English",
|
||||
translation: [
|
||||
(MainTitle, "Cooking Recipes"),
|
||||
(CreateNewRecipe, "Create a new recipe"),
|
||||
(PrivateRecipes, "Private recipes"),
|
||||
(UntitledRecipe, "Untitled recipe"),
|
||||
|
||||
(Name, "Name"),
|
||||
(EmailAddress, "Email address"),
|
||||
(Password, "Password"),
|
||||
|
||||
(SignOut, "Sign out"),
|
||||
(Save, "Save"),
|
||||
(NotLoggedIn, "No logged in"),
|
||||
|
||||
(ActionNotAuthorized, "Action not authorized"),
|
||||
|
||||
(DatabaseError, "Database error"),
|
||||
(TemplateError, "Template error"),
|
||||
|
||||
(SignInMenu, "Sign in"),
|
||||
(SignInTitle, "Sign in"),
|
||||
(SignInButton, "Sign in"),
|
||||
(SignInSuccess, "Sign in successful"),
|
||||
(WrongEmailOrPassword, "Wrong email or password"),
|
||||
|
||||
(AccountMustBeValidatedFirst, "This account must be validated first"),
|
||||
(InvalidEmail, "Invalid email"),
|
||||
(PasswordDontMatch, "Passwords don't match"),
|
||||
(InvalidPassword, "Password must have at least {} characters"),
|
||||
(EmailAlreadyTaken, "This email is not available"),
|
||||
(UnableToSendEmail, "Unable to send the validation email"),
|
||||
|
||||
(ValidationSuccessful, "Email validation successful"),
|
||||
(ValidationExpired, "The validation has expired. Try to sign up again with the same email"),
|
||||
(ValidationErrorTryToSignUpAgain, "Validation error. Try to sign up again with the same email"),
|
||||
(ValidationError, "Validation error"),
|
||||
(ValidationUserAlreadyExists, "User already exists"),
|
||||
|
||||
(SignUpMenu, "Sign up"),
|
||||
(SignUpTitle, "Sign up"),
|
||||
(SignUpButton, "Sign up"),
|
||||
(SignUpEmailSent, "An email has been sent, follow the link to validate your account"),
|
||||
(SignUpEmailTitle, "Cooking Recipes: Account validation"),
|
||||
(SignUpFollowEmailLink, "Follow this link to confirm your inscription, {}"),
|
||||
(SignUpEmailValidationSuccess, "Email validation successful, your account has been created"),
|
||||
(SignUpValidationExpired, "The validation has expired. Try to sign up again"),
|
||||
(SignUpValidationErrorTryAgain, "Validation error. Try to sign up again"),
|
||||
(SignUpClosed, "New registration are closed"),
|
||||
(ChooseAPassword, "Choose a password (minimum {} characters)"),
|
||||
(ReEnterPassword, "Re-enter password"),
|
||||
|
||||
(LostPassword, "Lost password"),
|
||||
(AskResetChooseNewPassword, "Choose a new password (minimum {} characters)"),
|
||||
(AskResetButton, "Ask reset"),
|
||||
(AskResetAlreadyLoggedInError, "Can't ask to reset password when already logged in"),
|
||||
(AskResetEmailAlreadyResetError, "The password has already been reset for this email"),
|
||||
(AskResetEmailTitle, "Cooking Recipes: Reset password"),
|
||||
(AskResetFollowEmailLink, "Follow this link to reset your password, {}"),
|
||||
(AskResetEmailSent, "An email has been sent, follow the link to reset your password"),
|
||||
(AskResetTokenMissing, "Reset token missing"),
|
||||
(AskResetTokenExpired, "Token expired, try to reset password again"),
|
||||
(PasswordReset, "Your password has been reset"),
|
||||
(EmailUnknown, "Email unknown"),
|
||||
(UnableToSendResetEmail, "Unable to send the reset password email"),
|
||||
|
||||
(ProfileTitle, "Profile"),
|
||||
(ProfileEmail, "Email (need to be revalidated if changed)"),
|
||||
(ProfileDefaultServings, "Default servings"),
|
||||
(ProfileFirstDayOfWeek, "First day of the week"),
|
||||
(ProfileNewPassword, "New password (minimum {} characters)"),
|
||||
(ProfileFollowEmailTitle, "Cooking Recipes: Email validation"),
|
||||
(ProfileFollowEmailLink, "Follow this link to validate this email address, {}"),
|
||||
(ProfileEmailSent, "An email has been sent, follow the link to validate your new email"),
|
||||
(ProfileSaved, "Profile saved"),
|
||||
|
||||
(RecipeNotAllowedToEdit, "Not allowed to edit this recipe"),
|
||||
(RecipeNotAllowedToView, "Not allowed the view the recipe {}"),
|
||||
(RecipeNotFound, "Recipe not found"),
|
||||
(RecipeTitle, "Title"),
|
||||
(RecipeDescription, "Description"),
|
||||
(RecipeServings, "Servings"),
|
||||
(RecipeEstimatedTime, "Estimated time [min]"),
|
||||
(RecipeDifficulty, "Difficulty"),
|
||||
(RecipeDifficultyEasy, "Easy"),
|
||||
(RecipeDifficultyMedium, "Medium"),
|
||||
(RecipeDifficultyHard, "Hard"),
|
||||
(RecipeTags, "Tags"),
|
||||
(RecipeLanguage, "Language"),
|
||||
(RecipeIsPublic, "Is public"),
|
||||
(RecipeDelete, "Delete recipe"),
|
||||
(RecipeAddAGroup, "Add a group"),
|
||||
(RecipeRemoveGroup, "Remove group"),
|
||||
(RecipeGroupName, "Name"),
|
||||
(RecipeGroupComment, "Comment"),
|
||||
(RecipeAddAStep, "Add a step"),
|
||||
(RecipeRemoveStep, "Remove step"),
|
||||
(RecipeStepAction, "Action"),
|
||||
(RecipeAddAnIngredient, "Add an ingredient"),
|
||||
(RecipeRemoveIngredient, "Remove ingredient"),
|
||||
(RecipeIngredientName, "Name"),
|
||||
(RecipeIngredientQuantity, "Quantity"),
|
||||
(RecipeIngredientUnit, "Unit"),
|
||||
(RecipeIngredientComment, "Comment"),
|
||||
(RecipeDeleteConfirmation, "Are you sure to delete the recipe: '{}'?"),
|
||||
(RecipeSuccessfullyDeleted, "Recipe successfully deleted"),
|
||||
(RecipeGroupDeleteConfirmation, "Are you sure to delete the group: '{}'?"),
|
||||
(RecipeStepDeleteConfirmation, "Are you sure to delete the step: '{}'?"),
|
||||
(RecipeIngredientDeleteConfirmation, "Are you sure to delete the ingredient: '{}'?"),
|
||||
|
||||
(RecipeOneServing, "1 serving"),
|
||||
(RecipeSomeServings, "{} servings"),
|
||||
(RecipeEstimatedTimeMinAbbreviation, "min"),
|
||||
|
||||
(CalendarMonday, "Monday"),
|
||||
(CalendarTuesday, "Tuesday"),
|
||||
(CalendarWednesday, "Wednesday"),
|
||||
(CalendarThursday, "Thursday"),
|
||||
(CalendarFriday, "Friday"),
|
||||
(CalendarSaturday, "Saturday"),
|
||||
(CalendarSunday, "Sunday"),
|
||||
(CalendarMondayAbbreviation, "Mon"),
|
||||
(CalendarTuesdayAbbreviation, "Tue"),
|
||||
(CalendarWednesdayAbbreviation, "Wed"),
|
||||
(CalendarThursdayAbbreviation, "Thu"),
|
||||
(CalendarFridayAbbreviation, "Fri"),
|
||||
(CalendarSaturdayAbbreviation, "Sat"),
|
||||
(CalendarSundayAbbreviation, "Sun"),
|
||||
(CalendarJanuary, "January"),
|
||||
(CalendarFebruary, "February"),
|
||||
(CalendarMarch, "March"),
|
||||
(CalendarApril, "April"),
|
||||
(CalendarMay, "May"),
|
||||
(CalendarJune, "June"),
|
||||
(CalendarJuly, "July"),
|
||||
(CalendarAugust, "August"),
|
||||
(CalendarSeptember, "September"),
|
||||
(CalendarOctober, "October"),
|
||||
(CalendarNovember, "November"),
|
||||
(CalendarDecember, "December"),
|
||||
(CalendarAddToPlanner, "Add to planner"),
|
||||
(CalendarAddToPlannerSuccess, "Recipe {title} has been scheduled for {date}"),
|
||||
(CalendarAddToPlannerAlreadyExists, "Recipe {title} has already been scheduled for {date}"),
|
||||
(CalendarDateFormat, "%A, %-d %B, %C%y"), // See https://docs.rs/chrono/latest/chrono/format/strftime/index.html.
|
||||
(CalendarAddIngredientsToShoppingList, "Add ingredients to shopping list"),
|
||||
(CalendarRemoveIngredientsFromShoppingList, "Remove ingredients from shopping list"),
|
||||
(CalendarUnschedule, "Remove"),
|
||||
(CalendarUnscheduleConfirmation, "Are you sure to remove {title} on {date}"),
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue