From d5467f269d3b1461291ae2459bfb7f27eeaeee8e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 5 Nov 2016 14:17:10 +0000 Subject: Extract messages from config.lua --- lang/en.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'lang') diff --git a/lang/en.lua b/lang/en.lua index 6cf6720..60ed6a3 100644 --- a/lang/en.lua +++ b/lang/en.lua @@ -129,4 +129,30 @@ example administration repository rules and an admin user and group. RULESET_ALLOWED = "Ruleset permitted action", RULESET_DENIED = "Ruleset denied action. Sorry.", + -- Messages from the config module + NO_SITE_CONF = "No site.conf", + NO_CORE_RULES = "No core rules file", + ERROR_SITE_CONF_TYPE = "Error in gitano-admin:${sha}:site.conf [${key}] expected ${want} got ${got}", + ERROR_DUPLICATE_USER_NAME = "Duplicate user name: ${name}", + ERROR_USER_MISSING_REAL_NAME = "gitano-admin:${sha}:${path}/user.conf missing real_name", + ERROR_USER_MISSING_EMAIL_ADDRESS = "gitano-admin:${sha}:${path}/user.conf missing email_address", + ERROR_ORPHAN_KEY = "Found a key (${key}) for ${user} which lacks a user.conf", + ERROR_BAD_KEY_NEWLINES = "Key ${filename} has newlines in it -- is it in the wrong format?", + ERROR_BAD_KEY_SMELL = "Unable to parse key, ${filename} did not smell like an OpenSSH v2 key", + ERROR_BAD_KEY_TYPE = "Unknown key type ${keytype} in ${filename}", + ERROR_DUPLICATE_KEY = "Duplicate key found at (${keyname}) for ${username}. Previously found as (${otherkey}) for ${otheruser}", + ERROR_DUPLICATE_GROUP = "Duplicate group name: ${name}", + ERROR_GROUP_NOT_BLOB = "${path}.conf is not a blob?", + ERROR_GROUP_NO_DESCRIPTION = "${name}: No description?", + ERROR_GROUP_NOT_FOUND = "Group ${name} not found, when traversing ${path}", + ERROR_GROUP_LOOP = "Loop detected involving: ${path}", + ERROR_DUPLICATE_KEYRING = "Duplicate keyring name: ${name}", + ERROR_KEYRING_NOT_BLOB = "${path}.gpg is not a blob?", + ERROR_GENERIC_CONF_NOT_FOUND = "Not found: ${sha}::${name}", + ERROR_GENERIC_CONF_NOT_BLOB = "${sha}::${name}: Not a blob", + DEBUG_ADDING_SSH_KEY = "Adding <${user}> <${key}>", + ERROR_CANNOT_FIND_HOME = "Unable to find HOME", + ERROR_UNABLE_TO_CREATE = "Unable to create ${path}", + ERROR_UNABLE_TO_RENAME = "Unable to overwrite ${path}", + AUTHORIZED_KEYS_UPDATED = "SSH authorised key file updated", } -- cgit v1.2.1