# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: ownCloud\n" "Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n" "POT-Creation-Date: 2013-03-02 00:03+0100\n" "PO-Revision-Date: 2013-03-01 23:04+0000\n" "Last-Translator: I Robot \n" "Language-Team: Luxembourgish (http://www.transifex.com/projects/p/owncloud/language/lb/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: lb\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ajax/deleteConfiguration.php:34 msgid "Failed to delete the server configuration" msgstr "" #: ajax/testConfiguration.php:36 msgid "The configuration is valid and the connection could be established!" msgstr "" #: ajax/testConfiguration.php:39 msgid "" "The configuration is valid, but the Bind failed. Please check the server " "settings and credentials." msgstr "" #: ajax/testConfiguration.php:43 msgid "" "The configuration is invalid. Please look in the ownCloud log for further " "details." msgstr "" #: js/settings.js:66 msgid "Deletion failed" msgstr "Konnt net läschen" #: js/settings.js:82 msgid "Take over settings from recent server configuration?" msgstr "" #: js/settings.js:83 msgid "Keep settings?" msgstr "" #: js/settings.js:97 msgid "Cannot add server configuration" msgstr "" #: js/settings.js:121 msgid "Connection test succeeded" msgstr "" #: js/settings.js:126 msgid "Connection test failed" msgstr "" #: js/settings.js:136 msgid "Do you really want to delete the current Server Configuration?" msgstr "" #: js/settings.js:137 msgid "Confirm Deletion" msgstr "" #: templates/settings.php:8 msgid "" "Warning: Apps user_ldap and user_webdavauth are incompatible. You may" " experience unexpected behaviour. Please ask your system administrator to " "disable one of them." msgstr "" #: templates/settings.php:11 msgid "" "Warning: The PHP LDAP module is not installed, the backend will not " "work. Please ask your system administrator to install it." msgstr "" #: templates/settings.php:15 msgid "Server configuration" msgstr "" #: templates/settings.php:18 msgid "Add Server Configuration" msgstr "" #: templates/settings.php:23 msgid "Host" msgstr "" #: templates/settings.php:25 msgid "" "You can omit the protocol, except you require SSL. Then start with ldaps://" msgstr "" #: templates/settings.php:26 msgid "Base DN" msgstr "" #: templates/settings.php:27 msgid "One Base DN per line" msgstr "" #: templates/settings.php:28 msgid "You can specify Base DN for users and groups in the Advanced tab" msgstr "" #: templates/settings.php:30 msgid "User DN" msgstr "" #: templates/settings.php:32 msgid "" "The DN of the client user with which the bind shall be done, e.g. " "uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password " "empty." msgstr "" #: templates/settings.php:33 msgid "Password" msgstr "Passwuert" #: templates/settings.php:36 msgid "For anonymous access, leave DN and Password empty." msgstr "" #: templates/settings.php:37 msgid "User Login Filter" msgstr "" #: templates/settings.php:40 #, php-format msgid "" "Defines the filter to apply, when login is attempted. %%uid replaces the " "username in the login action." msgstr "" #: templates/settings.php:41 #, php-format msgid "use %%uid placeholder, e.g. \"uid=%%uid\"" msgstr "" #: templates/settings.php:42 msgid "User List Filter" msgstr "" #: templates/settings.php:45 msgid "Defines the filter to apply, when retrieving users." msgstr "" #: templates/settings.php:46 msgid "without any placeholder, e.g. \"objectClass=person\"." msgstr "" #: templates/settings.php:47 msgid "Group Filter" msgstr "" #: templates/settings.php:50 msgid "Defines the filter to apply, when retrieving groups." msgstr "" #: templates/settings.php:51 msgid "without any placeholder, e.g. \"objectClass=posixGroup\"." msgstr "" #: templates/settings.php:55 msgid "Connection Settings" msgstr "" #: templates/settings.php:57 msgid "Configuration Active" msgstr "" #: templates/settings.php:57 msgid "When unchecked, this configuration will be skipped." msgstr "" #: templates/settings.php:58 msgid "Port" msgstr "" #: templates/settings.php:59 msgid "Backup (Replica) Host" msgstr "" #: templates/settings.php:59 msgid "" "Give an optional backup host. It must be a replica of the main LDAP/AD " "server." msgstr "" #: templates/settings.php:60 msgid "Backup (Replica) Port" msgstr "" #: templates/settings.php:61 msgid "Disable Main Server" msgstr "" #: templates/settings.php:61 msgid "When switched on, ownCloud will only connect to the replica server." msgstr "" #: templates/settings.php:62 msgid "Use TLS" msgstr "" #: templates/settings.php:62 msgid "Do not use it additionally for LDAPS connections, it will fail." msgstr "" #: templates/settings.php:63 msgid "Case insensitve LDAP server (Windows)" msgstr "" #: templates/settings.php:64 msgid "Turn off SSL certificate validation." msgstr "" #: templates/settings.php:64 msgid "" "If connection only works with this option, import the LDAP server's SSL " "certificate in your ownCloud server." msgstr "" #: templates/settings.php:64 msgid "Not recommended, use for testing only." msgstr "" #: templates/settings.php:65 msgid "Cache Time-To-Live" msgstr "" #: templates/settings.php:65 msgid "in seconds. A change empties the cache." msgstr "" #: templates/settings.php:67 msgid "Directory Settings" msgstr "" #: templates/settings.php:69 msgid "User Display Name Field" msgstr "" #: templates/settings.php:69 msgid "The LDAP attribute to use to generate the user`s ownCloud name." msgstr "" #: templates/settings.php:70 msgid "Base User Tree" msgstr "" #: templates/settings.php:70 msgid "One User Base DN per line" msgstr "" #: templates/settings.php:71 msgid "User Search Attributes" msgstr "" #: templates/settings.php:71 templates/settings.php:74 msgid "Optional; one attribute per line" msgstr "" #: templates/settings.php:72 msgid "Group Display Name Field" msgstr "" #: templates/settings.php:72 msgid "The LDAP attribute to use to generate the groups`s ownCloud name." msgstr "" #: templates/settings.php:73 msgid "Base Group Tree" msgstr "" #: templates/settings.php:73 msgid "One Group Base DN per line" msgstr "" #: templates/settings.php:74 msgid "Group Search Attributes" msgstr "" #: templates/settings.php:75 msgid "Group-Member association" msgstr "" #: templates/settings.php:77 msgid "Special Attributes" msgstr "" #: templates/settings.php:79 msgid "Quota Field" msgstr "" #: templates/settings.php:80 msgid "Quota Default" msgstr "" #: templates/settings.php:80 msgid "in bytes" msgstr "" #: templates/settings.php:81 msgid "Email Field" msgstr "" #: templates/settings.php:82 msgid "User Home Folder Naming Rule" msgstr "" #: templates/settings.php:82 msgid "" "Leave empty for user name (default). Otherwise, specify an LDAP/AD " "attribute." msgstr "" #: templates/settings.php:86 msgid "Test Configuration" msgstr "" #: templates/settings.php:86 msgid "Help" msgstr "Hëllef" id='n94' href='#n94'>94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package auth

import (
	"github.com/Unknwon/macaron"
	"github.com/macaron-contrib/binding"
)

type InstallForm struct {
	Database        string `form:"database" binding:"Required"`
	DbHost          string `form:"host"`
	DbUser          string `form:"user"`
	DbPasswd        string `form:"passwd"`
	DatabaseName    string `form:"database_name"`
	SslMode         string `form:"ssl_mode"`
	DatabasePath    string `form:"database_path"`
	RepoRootPath    string `form:"repo_path" binding:"Required"`
	RunUser         string `form:"run_user" binding:"Required"`
	Domain          string `form:"domain" binding:"Required"`
	AppUrl          string `form:"app_url" binding:"Required"`
	SmtpHost        string `form:"smtp_host"`
	SmtpEmail       string `form:"mailer_user"`
	SmtpPasswd      string `form:"mailer_pwd"`
	RegisterConfirm string `form:"register_confirm"`
	MailNotify      string `form:"mail_notify"`
	AdminName       string `form:"admin_name" binding:"Required;AlphaDashDot;MaxSize(30)"`
	AdminPasswd     string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(255)"`
	ConfirmPasswd   string `form:"confirm_passwd" binding:"Required;MinSize(6);MaxSize(255)"`
	AdminEmail      string `form:"admin_email" binding:"Required;Email;MaxSize(50)"`
}

func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

//    _____   ____ _________________ ___
//   /  _  \ |    |   \__    ___/   |   \
//  /  /_\  \|    |   / |    | /    ~    \
// /    |    \    |  /  |    | \    Y    /
// \____|__  /______/   |____|  \___|_  /
//         \/                         \/

type RegisterForm struct {
	UserName  string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(35)"`
	Email     string `form:"email" binding:"Required;Email;MaxSize(50)"`
	Password  string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
	Retype    string `form:"retype"`
	LoginType string `form:"logintype"`
	LoginName string `form:"loginname"`
}

func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

type SignInForm struct {
	UserName string `form:"uname" binding:"Required;MaxSize(35)"`
	Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
	Remember bool   `form:"remember"`
}

func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

//   __________________________________________.___ _______    ________  _________
//  /   _____/\_   _____/\__    ___/\__    ___/|   |\      \  /  _____/ /   _____/
//  \_____  \  |    __)_   |    |     |    |   |   |/   |   \/   \  ___ \_____  \
//  /        \ |        \  |    |     |    |   |   /    |    \    \_\  \/        \
// /_______  //_______  /  |____|     |____|   |___\____|__  /\______  /_______  /
//         \/         \/                                   \/        \/        \/

type UpdateProfileForm struct {
	UserName string `form:"uname" binding:"Required;MaxSize(35)"`
	FullName string `form:"fullname" binding:"MaxSize(100)"`
	Email    string `form:"email" binding:"Required;Email;MaxSize(50)"`
	Website  string `form:"website" binding:"Url;MaxSize(100)"`
	Location string `form:"location" binding:"MaxSize(50)"`
	Avatar   string `form:"avatar" binding:"Required;Email;MaxSize(50)"`
}

func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

type ChangePasswordForm struct {
	OldPassword string `form:"old_password" binding:"Required;MinSize(6);MaxSize(255)"`
	Password    string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
	Retype      string `form:"retype"`
}

func (f *ChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

type AddSSHKeyForm struct {
	SSHTitle string `form:"title" binding:"Required"`
	Content  string `form:"content" binding:"Required"`
}

func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}

type NewAccessTokenForm struct {
	Name string `form:"name" binding:"Required"`
}

func (f *NewAccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
	return validate(errs, ctx.Data, f, ctx.Locale)
}