package i18n

var catalogs = map[Lang]map[string]string{
	EN: en,
	NL: nl,
	DE: de,
	FR: fr,
}

var en = map[string]string{
	"nav.dashboard": "Overview",
	"nav.new":       "New",
	"nav.storage":   "Storage",
	"nav.signout":   "Sign out",
	"nav.signin":    "Sign in",

	"action.save":    "Save",
	"action.copy":    "Copy",
	"action.copied":  "Copied",
	"action.remove":  "Remove",
	"action.open":    "Open",
	"action.close":   "Close",
	"action.merge":   "Merge",
	"action.start":   "Start",
	"action.protect": "Protect",
	"action.post":    "Post",

	"home.lead":    "Sign in to view repositories.",
	"home.public":  "Public repositories",
	"home.storage": "Storage is not set up yet. Repositories are temporarily unavailable.",

	"dash.repos":    "Repositories",
	"dash.groups":   "Groups",
	"dash.noRepos":  "No repositories yet.",
	"dash.noGroups": "No groups yet.",

	"heat.title":     "Activity",
	"heat.less":      "Less",
	"heat.more":      "More",
	"heat.note":      "Commits, merge requests and comments.",
	"heat.mon":       "M",
	"heat.wed":       "W",
	"heat.fri":       "F",
	"heat.none.year": "No contributions in the last 12 months",
	"heat.one.year":  "1 contribution in the last 12 months",
	"heat.many.year": "%d contributions in the last 12 months",
	"heat.none.day":  "No contributions on %s",
	"heat.one.day":   "1 contribution on %s",
	"heat.many.day":  "%d contributions on %s",

	"month.1": "January", "month.2": "February", "month.3": "March", "month.4": "April",
	"month.5": "May", "month.6": "June", "month.7": "July", "month.8": "August",
	"month.9": "September", "month.10": "October", "month.11": "November", "month.12": "December",
	"month.s.1": "Jan", "month.s.2": "Feb", "month.s.3": "Mar", "month.s.4": "Apr",
	"month.s.5": "May", "month.s.6": "Jun", "month.s.7": "Jul", "month.s.8": "Aug",
	"month.s.9": "Sep", "month.s.10": "Oct", "month.s.11": "Nov", "month.s.12": "Dec",

	"ago.just": "just now", "ago.minute": "1 minute ago", "ago.minutes": "%d minutes ago",
	"ago.hour": "1 hour ago", "ago.hours": "%d hours ago",
	"ago.day": "1 day ago", "ago.days": "%d days ago",
	"ago.week": "1 week ago", "ago.weeks": "%d weeks ago",
	"ago.month": "1 month ago", "ago.months": "%d months ago",
	"ago.year": "1 year ago", "ago.years": "%d years ago",

	"title.new":       "New",
	"title.account":   "Account",
	"title.storage":   "Storage",
	"title.commits":   "Commits",
	"title.branches":  "Branches",
	"title.mrs":       "Merge requests",
	"title.pipelines": "Pipelines",
	"title.pipeline":  "Pipeline",
	"title.releases":  "Releases",
	"title.tags":      "Tags",
	"title.settings":  "Settings",

	"new.group":       "New Group",
	"new.repo":        "New Repository",
	"new.name":        "Name",
	"new.description": "Description",
	"new.owner":       "Owner",
	"new.me":          "Myself",
	"new.visibility":  "Visibility",
	"new.role":        "Default role",
	"new.roleHint":    "Role for members in new repositories of this group.",
	"slug.bad":        "This name cannot be used.",
	"slug.free":       "Available",
	"slug.taken":      "Taken",

	"role.readonly":   "Readonly",
	"role.developer":  "Developer",
	"role.maintainer": "Maintainer",
	"role.":           "None",

	"vis.public":    "Public",
	"vis.private":   "Private",
	"vis.protected": "Protected",

	"group.tab.repos":    "Repositories",
	"group.tab.members":  "Members",
	"group.tab.settings": "Settings",
	"group.search":       "Search",
	"group.sort":         "Name",
	"group.direction":    "Sort direction",
	"group.created":      "Created %s",
	"group.empty":        "No repositories yet.",
	"group.menu":         "Menu",
	"group.star":         "Star",
	"group.unstar":       "Unstar",
	"group.secretsNote":  "Only secrets of this group.",
	"group.defaultRole":  "Default role for new repositories",

	"tab.overview":  "Overview",
	"tab.files":     "Files",
	"tab.commits":   "Commits",
	"tab.branches":  "Branches",
	"tab.mrs":       "Merge requests",
	"tab.pipelines": "Pipelines",
	"tab.releases":  "Releases",
	"tab.settings":  "Settings",

	"repo.searchFile":  "Find file",
	"repo.code":        "Code",
	"repo.ssh":         "SSH",
	"repo.https":       "HTTPS",
	"repo.cloneHint":   "Username and a token as the password.",
	"repo.name":        "Name",
	"repo.lastCommit":  "Last commit",
	"repo.lastChange":  "Last update",
	"repo.emptyDir":    "This directory is empty.",
	"repo.noCommits":   "No commits yet.",
	"repo.project":     "Project information",
	"repo.created":     "Created on %s",
	"repo.history":     "History",
	"repo.files":       "Files",
	"repo.binary":      "Binary file.",
	"repo.noTags":      "No tags yet.",
	"repo.noBranches":  "No branches yet.",
	"count.commit.one": "%d commit", "count.commit.many": "%d commits",
	"count.branch.one": "%d branch", "count.branch.many": "%d branches",
	"count.tag.one": "%d tag", "count.tag.many": "%d tags",
	"count.release.one": "%d release", "count.release.many": "%d releases",

	"mr.title":       "Merge requests",
	"mr.none":        "No merge requests.",
	"mr.new":         "New",
	"mr.titleField":  "Title",
	"mr.description": "Description",
	"mr.source":      "Source",
	"mr.target":      "Target",
	"mr.commits":     "Commits",
	"mr.noDiff":      "no commits ahead of the target branch, or the branch is missing",
	"mr.comments":    "Comments",
	"mr.noComments":  "No comments yet.",
	"mr.comment":     "Comment",

	"pipe.title": "Pipelines",
	"pipe.ref":   "branch, empty is the default",
	"pipe.none":  "No pipelines yet. Add blue-ci-cd.yml in the root.",
	"pipe.one":   "Pipeline",

	"rel.none":  "No releases yet.",
	"rel.bytes": "bytes",

	"set.onlyAdmin":      "Only a maintainer changes settings, secrets and webhooks. Your role: %s.",
	"set.general":        "General",
	"set.members":        "Members",
	"set.branches":       "Branches",
	"set.secrets":        "Secrets",
	"set.webhooks":       "Webhooks",
	"set.username":       "username",
	"set.pending":        "waiting for the first sign-in",
	"set.pattern":        "master or release/*",
	"set.protectHint":    "Developers cannot push to these branches.",
	"set.secretName":     "Name",
	"set.secretValue":    "Value",
	"set.protectedOnly":  "Only include on a protected branch",
	"set.valuesHidden":   "Values are not shown again.",
	"set.delete":         "Delete",
	"set.typeName":       "Type %s",
	"set.deleteRepo":     "Delete repository",
	"set.whName":         "Name",
	"set.preset":         "Preset",
	"set.preset.generic": "Generic JSON",
	"set.preset.discord": "Discord",
	"set.preset.grok":    "Grok Bot",
	"set.url":            "URL",
	"set.branchFilter":   "Push branch filter",
	"set.filterHint":     "empty, master, or re:^release/.*",
	"set.headers":        "Headers, one per line",
	"set.body":           "Body template, empty sends the event as JSON",
	"set.ev.push":        "push",
	"set.ev.mr":          "merge request",
	"set.ev.ok":          "pipeline succeeded",
	"set.ev.fail":        "pipeline failed",
	"set.ev.release":     "release published",
	"set.saveWebhook":    "Save webhook",
	"logo.file":          "Logo",
	"logo.hint":          "PNG, JPEG, GIF or SVG. Images larger than 512×512 are scaled down.",

	"acct.hint":      "For git over HTTPS: your username and a token as the password.",
	"acct.tokens":    "Access tokens",
	"acct.tokenName": "name, for example laptop",
	"acct.newToken":  "New token",
	"acct.revoke":    "Revoke",
	"acct.ssh":       "SSH keys",
	"acct.keyName":   "Name",
	"acct.pubkey":    "Public key",
	"acct.add":       "Add",
	"acct.remove":    "Remove",
	"acct.export":    "Download your data (JSON)",
	"acct.language":  "Language",

	"setup.choose":     "Choose storage",
	"setup.pathTitle":  "Storage path",
	"setup.changeWarn": "Changing the path does not move repositories, artifacts or releases.",
	"setup.free":       "Free space: %s of %s.",
	"setup.disk":       "Path on disk",
	"setup.rules":      "The path must exist, be writable, and have at least %s free.",

	"flash.saved":          "Saved",
	"flash.memberSaved":    "Member saved",
	"flash.memberRemoved":  "Member removed",
	"flash.branchOn":       "Branch protected",
	"flash.patternOff":     "Pattern removed",
	"flash.secretSaved":    "Secret saved",
	"flash.secretRemoved":  "Secret removed",
	"flash.webhookSaved":   "Webhook saved",
	"flash.webhookRemoved": "Webhook removed",
	"flash.repoDeleted":    "Repository deleted",
	"flash.tokenCreated":   "Token created. Copy it now; it is not shown again.",
	"flash.tokenRevoked":   "Token revoked",
	"flash.sshAdded":       "Key added",
	"flash.sshRemoved":     "Key removed",
	"flash.pipeline":       "Pipeline started",
	"flash.language":       "Language saved",
	"flash.logo":           "Logo saved",
	"flash.star":           "Star updated",

	"err.forbidden":      "no access",
	"err.rights":         "could not read permissions",
	"err.badForm":        "invalid form",
	"err.badCSRF":        "invalid form, reload the page",
	"err.groupMissing":   "group not found",
	"err.gitInit":        "git init: %s",
	"err.confirmDelete":  "type the repository name to delete it",
	"err.tokenMissing":   "token not found",
	"err.sshBad":         "that is not an OpenSSH public key",
	"err.sshMissing":     "key not found",
	"err.pickEvent":      "choose at least one event",
	"err.preset":         "unknown preset",
	"err.header":         "a header must look like Name: value",
	"err.noStorageAdmin": "You cannot configure storage.",
	"err.storageSave":    "The path could not be saved.",
	"err.storageSame":    "Choose the directory for the repositories.",
	"err.storageSet":     "Storage set to %s. %s free.",
	"err.storageMoved":   "Storage path changed to %s. Existing data was not moved. %s free.",
	"err.noStorage":      "Storage is not set up yet. An administrator chooses a path in the web interface.",
	"err.logoType":       "use a PNG, JPEG, GIF or SVG",
	"err.logoBig":        "the file is too large",
	"err.logoSVG":        "this SVG is not accepted",
	"err.logoStore":      "the logo could not be saved",
	"err.logoRead":       "the logo could not be read",

	"err.userName":       "username %q cannot be used here",
	"err.groupPath":      "group path %q cannot be used",
	"err.repoName":       "repository name %q cannot be used",
	"err.slug":           "this name cannot be used",
	"err.tag":            "tag %q cannot be used",
	"err.tagChar":        "tag %q contains a forbidden character",
	"err.groupNeedsName": "the group needs a name",
	"err.pathUser":       "path %s is already a user",
	"err.pathGroup":      "path %s is already a group",
	"err.ownerKind":      "owner must be user or group",
	"err.visibility":     "visibility must be public or private",
	"err.userGroupClash": "a group named %s already exists; personal repositories would be unreachable",
	"err.repoExists":     "repository %s already exists",
	"err.scope":          "scope must be repo or group",
	"err.pattern":        "pattern %q cannot be used",
	"err.emptyValue":     "the value is empty",
	"err.userTaken":      "username %s is already in use",
	"err.tokenNeedsName": "give the token a name",
	"err.sshDup":         "this key is already registered",
	"err.notFound":       "not found",
	"err.noteEmpty":      "a comment is empty",
	"err.mrTitle":        "a merge request needs a title",
	"err.tagExists":      "tag %s already exists",
	"err.roleMissing":    "role is missing",
	"err.roleUnknown":    "unknown role %q",
	"err.hook.nowrite":   "no write access on %s",
	"err.hook.branch":    "invalid branch %q",
	"err.hook.protected": "branch %s is protected; only a maintainer may change it",
	"err.hook.empty":     "empty push",
	"err.secretLen":      "a secret name must be 1 to 80 characters",
	"err.secretForm":     "secret name %q must match [A-Z][A-Z0-9_]*",
	"err.mergeConflict":  "merge failed, there is a conflict or the branch is missing",
	"err.targetBranch":   "target branch %s: %s",

	"err.pathMissing":  "path is missing",
	"err.pathNewline":  "path contains a line break",
	"err.pathAbsolute": "path must be absolute",
	"err.pathAbsent":   "path does not exist",
	"err.pathRead":     "cannot read path: %s",
	"err.pathDir":      "path is not a directory",
	"err.pathFree":     "could not determine free space: %s",
	"err.pathWrite":    "path is not writable",
	"err.pathSpace":    "not enough free space: %s free, at least %s",

	"err.whFilter":       "branchfilter: %s",
	"err.whEvent":        "unknown event %q",
	"err.whTemplate":     "unclosed {{ in the template",
	"err.whSecret":       "secret %s does not exist",
	"err.whField":        "unknown field event.%s",
	"err.whPlaceholder":  "unknown placeholder %q",
	"err.whURL":          "webhook URL is invalid",
	"err.whScheme":       "webhook URL must be http or https",
	"err.whHost":         "webhook host is missing",
	"err.whBlockedIP":    "%s is in a blocked range",
	"err.whDNS":          "dns for %s: %s",
	"err.whNoAddr":       "no address for %s",
	"err.whBlockedHost":  "%s points at %s in a blocked range",
	"err.whRedirects":    "too many redirects",
	"err.whRedirectHost": "a redirect to another host with the original body was refused",

	"flash.welcome":       "Welcome, %s",
	"flash.repoCreated":   "Repository created",
	"flash.groupCreated":  "Group created",
	"flash.mrOpened":      "Merge request opened",
	"flash.note":          "Comment posted",
	"flash.merged":        "Merged",
	"flash.closed":        "Closed",
	"hook.push":           "%s pushed to %s in %s",
	"hook.mr":             "merge request !%s opened: %s",
	"hook.release":        "release %s of %s published",
	"err.session":         "session",
	"err.oauth":           "Sign-in failed: %s",
	"err.oauthFail":       "Sign-in failed",
	"err.oauthState":      "invalid sign-in state",
	"err.branchMissing":   "branch not found",
	"err.branches":        "choose two different branches",
	"err.targetAccess":    "no access to the target branch",
	"err.commitMissing":   "commit is not in this repository",
	"err.artifactMissing": "artifact not found: %s %s",
	"err.noWrite":         "no write access",
	"err.noRead":          "no read access",
	"err.overview":        "overview",
	"err.tokenAbsent":     "token is missing",
	"err.tokenBad":        "token is invalid",
	"err.jobToken":        "job token is invalid",
	"err.onlyAdmin":       "only a maintainer",
	"err.commitAbsent":    "commit is missing",
	"err.assetsJob":       "assets belong with a job token",
	"err.assetName":       "asset name",
	"err.assetDisk":       "artifact is missing on disk",
	"err.assetCopy":       "could not copy the asset",
	"err.tagFail":         "tag: %s",
	"err.json":            "invalid json",
	"commit.pushedBy":     "pushed by %s",

	"set.preset.custom":     "No preset",
	"set.preset.slack":      "Slack",
	"set.preset.teams":      "Microsoft Teams",
	"set.preset.mattermost": "Mattermost",
	"set.preset.rocketchat": "Rocket.Chat",
	"set.preset.telegram":   "Telegram",
	"set.preset.matrix":     "Matrix",
	"set.preset.googlechat": "Google Chat",
	"set.preset.ntfy":       "ntfy",
	"set.preset.gotify":     "Gotify",
	"wh.webhookURL":         "Webhook URL",
	"wh.url":                "URL",
	"wh.username":           "Username",
	"wh.avatar":             "Avatar URL",
	"wh.icon":               "Icon URL",
	"wh.alias":              "Alias",
	"wh.token":              "Secret",
	"wh.tokenHint":          "Name of a secret, for example BOT_TOKEN.",
	"wh.chat":               "Chat ID",
	"wh.server":             "Server",
	"wh.topic":              "Topic",
	"wh.homeserver":         "Homeserver",
	"wh.room":               "Room",
	"wh.method":             "Method",
	"wh.contentType":        "Content type",
	"wh.headers":            "Headers",
	"wh.headerHint":         "One header per line. A value may refer to a secret as {{secret.NAME}}.",
	"wh.body":               "Body template",
	"wh.bodyHint":           "Optional. Empty sends the event as JSON.",
	"err.whTopic":           "topic is invalid",
	"err.whChat":            "chat ID is invalid",
	"err.whRoom":            "room is invalid",
	"err.whServer":          "server URL is missing",
	"err.whMethod":          "method must be GET, POST, PUT or PATCH",

	"mr.changes":        "Changes",
	"action.cancel":     "Cancel",
	"sug.applyWord":     "Apply suggestions",
	"sug.include":       "Include this suggestion",
	"sug.title":         "Title",
	"sug.description":   "Description",
	"sug.optional":      "Optional.",
	"sug.submit":        "Create commit",
	"sug.hint":          "The suggestion block replaces the selected lines.",
	"sug.bubble":        "Comment on the selected lines",
	"err.sugConflict":   "%s:%d-%d has changed",
	"err.sugOverlap":    "suggestions in %s overlap",
	"err.sugEmpty":      "choose a suggestion",
	"err.sugTitle":      "a title is required",
	"err.sugLines":      "those lines are not in the file",
	"err.sugFile":       "that file is not available",
	"err.sugGone":       "that suggestion is not on this merge request",
	"err.sugSame":       "the suggestions do not change the file",
	"err.sugBranch":     "you cannot push to %s",
	"flash.suggestions": "Suggestions applied",
}
