initial commit of file from CVS for smeserver-git on Sat Sep 7 19:54:49 AEST 2024
This commit is contained in:
parent
46c8cfc0e8
commit
84e108d7e3
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*.rpm
|
||||
*.log
|
||||
*spec-20*
|
||||
*.tar.gz
|
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
NAME := smeserver-git
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
14
README.md
14
README.md
@ -1,3 +1,15 @@
|
||||
# smeserver-git
|
||||
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-git
|
||||
|
||||
SMEServer Koozali developed git repo for smeserver-git smecontribs
|
||||
|
||||
## Wiki
|
||||
<br />https://wiki.koozali.org/Howto_create_an_SMEServer_contrib_or_core_git_repo
|
||||
|
||||
## Bugzilla
|
||||
Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-git&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
|
||||
|
||||
## Description
|
||||
|
||||
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
|
||||
*Once it has been checked, then this comment will be deleted*
|
||||
<br />
|
||||
|
1
contriborbase
Normal file
1
contriborbase
Normal file
@ -0,0 +1 @@
|
||||
contribs10
|
117
createlinks
Executable file
117
createlinks
Executable file
@ -0,0 +1,117 @@
|
||||
#!/usr/bin/perl -w
|
||||
use esmith::Build::CreateLinks qw(:all);
|
||||
# our event specific for updating with yum without reboot
|
||||
$event = 'smeserver-git-update';
|
||||
#add here the path to your templates needed to expand
|
||||
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
|
||||
|
||||
foreach my $file (qw(
|
||||
/etc/systemd/system-preset/49-koozali.preset
|
||||
/etc/httpd/conf/httpd.conf
|
||||
))
|
||||
{
|
||||
templates2events( $file, $event );
|
||||
}
|
||||
#action needed in case we have a systemd unit
|
||||
event_link('systemd-default', $event, '10');
|
||||
event_link('systemd-reload', $event, '50');
|
||||
#action specific to this package
|
||||
#event_link('action', $event, '30');
|
||||
#services we need to restart
|
||||
safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||||
#and Server Manager panel link
|
||||
#panel_link('somefunction', 'manager');
|
||||
|
||||
use File::Basename;
|
||||
|
||||
# Overview of Events, Actions, Template & Services
|
||||
# ================================================
|
||||
|
||||
# git-create
|
||||
# ----------
|
||||
|
||||
# git-modify
|
||||
# ----------
|
||||
|
||||
# git-delete
|
||||
# ----------
|
||||
|
||||
# git-repository-create
|
||||
# ---------------------
|
||||
|
||||
# git-repository-modify
|
||||
# ---------------------
|
||||
|
||||
# git-repository-delete
|
||||
# ---------------------
|
||||
|
||||
# user-delete
|
||||
# -----------
|
||||
|
||||
# group-modify
|
||||
# ------------
|
||||
|
||||
# group-delete
|
||||
# ------------
|
||||
|
||||
# domain-modify
|
||||
# -------------
|
||||
# The domain/server name is used in the GitWeb view.
|
||||
|
||||
# domain-delete
|
||||
# -------------
|
||||
# If a domain is deleted, we need to check if the deleted domain may have been the in use for Git.
|
||||
|
||||
# Git Contrib Modified or Deleted
|
||||
# -------------------------------
|
||||
|
||||
for my $event ( qw( git-modify
|
||||
git-delete ) )
|
||||
{
|
||||
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||||
templates2events("/etc/httpd/conf/httpd.conf", $event)
|
||||
}
|
||||
|
||||
# Git Repository Create / Modify
|
||||
# ------------------------------
|
||||
# Repository setting created or updated. regenerate the httpd.conf file and signal the
|
||||
# server restart.
|
||||
|
||||
for my $event ( qw( git-repository-create
|
||||
git-repository-modify ) )
|
||||
{
|
||||
event_link("git-repository-create-modify", $event, "05");
|
||||
templates2events("/etc/httpd/conf/httpd.conf", $event);
|
||||
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||||
}
|
||||
|
||||
# Git Repository Delete
|
||||
# ---------------------
|
||||
# Perform the repository delete action and then regenerate the httpd.conf file.
|
||||
|
||||
for my $event (qw( git-repository-delete ))
|
||||
{
|
||||
event_link("git-repository-delete", $event, "05");
|
||||
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||||
templates2events("/etc/httpd/conf/httpd.conf", $event)
|
||||
}
|
||||
|
||||
# User Delete / Group Delete / Group Modify
|
||||
# -----------------------------------------
|
||||
# For either Users or Groups being deleted or Groups being modified, we need
|
||||
# to go through all the git repositiories and update the UserRead, UserWrite,
|
||||
# GroupRead and GroupWrite entries. We then need to expand the httpd.conf
|
||||
# template to ensure that the expanded user names there are still the right
|
||||
# ones and also we need to update the git repositories themselves to update
|
||||
# the mailing list for each repository.
|
||||
|
||||
for my $event ( qw( user-delete
|
||||
group-delete
|
||||
group-modify ) )
|
||||
{
|
||||
event_link("git-delete-user-or-group-from-access-list", $event, "05");
|
||||
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
|
||||
templates2events("/etc/httpd/conf/httpd.conf", $event)
|
||||
}
|
||||
|
||||
panel_link('git', 'manager');
|
1
root/etc/e-smith/db/accounts/defaults/git/type
Executable file
1
root/etc/e-smith/db/accounts/defaults/git/type
Executable file
@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/configuration/defaults/git/GitPath
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/GitPath
Executable file
@ -0,0 +1 @@
|
||||
git
|
1
root/etc/e-smith/db/configuration/defaults/git/debugging
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/debugging
Executable file
@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/configuration/defaults/git/gitweb_access_from
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/gitweb_access_from
Executable file
@ -0,0 +1 @@
|
||||
local
|
1
root/etc/e-smith/db/configuration/defaults/git/maxNameLength
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/maxNameLength
Executable file
@ -0,0 +1 @@
|
||||
31
|
1
root/etc/e-smith/db/configuration/defaults/git/status
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/status
Executable file
@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/git/type
Executable file
1
root/etc/e-smith/db/configuration/defaults/git/type
Executable file
@ -0,0 +1 @@
|
||||
service
|
0
root/etc/e-smith/db/git/defaults/.gitignore
vendored
Executable file
0
root/etc/e-smith/db/git/defaults/.gitignore
vendored
Executable file
31
root/etc/e-smith/events/actions/git-delete
Executable file
31
root/etc/e-smith/events/actions/git-delete
Executable file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
# $Id: git.pm 1 2006-05-29 11:25:58Z marco $
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Delete the smeserver-git package
|
||||
# Leave the git repositories in place
|
||||
#------------------------------------------------------------
|
78
root/etc/e-smith/events/actions/git-delete-user-or-group-from-access-list
Executable file
78
root/etc/e-smith/events/actions/git-delete-user-or-group-from-access-list
Executable file
@ -0,0 +1,78 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
package esmith;
|
||||
|
||||
use strict;
|
||||
use Errno;
|
||||
use esmith::util;
|
||||
use esmith::event;
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Delete the user or group from access list on git repositories
|
||||
#------------------------------------------------------------
|
||||
|
||||
my $event = $ARGV [0];
|
||||
my $item = $ARGV [1];
|
||||
|
||||
die "User or Group name argument missing."
|
||||
unless defined ($item);
|
||||
|
||||
my @entries = qw();
|
||||
if ($event eq 'user-delete') {
|
||||
# Setup to scan for users
|
||||
@entries = qw(UsersWrite UsersRead);
|
||||
} elsif ($event eq 'group-delete') {
|
||||
# Setup to scan for groups
|
||||
@entries = qw(GroupsWrite GroupsRead);
|
||||
} elsif ($event eq 'group-modify') {
|
||||
# Setup to scan for groups
|
||||
@entries = qw(GroupsWrite GroupsRead);
|
||||
} else {
|
||||
die "Invalid event: \"$event\" for \"$item\" .";
|
||||
}
|
||||
|
||||
use esmith::GitDB;
|
||||
|
||||
my $git_db = esmith::GitDB->open() or
|
||||
die "Couldn't open GitDB\n";
|
||||
|
||||
my @repositories = $git_db->get_all_by_prop( 'type' => 'repository' );
|
||||
|
||||
GIT_REPOSITORY: foreach my $repository ( (@repositories) )
|
||||
{
|
||||
my $repository_rec = $git_db->get( $repository->key() ) || next GIT_REPOSITORY;
|
||||
|
||||
foreach my $entry (@entries) {
|
||||
my $members = $repository_rec->prop($entry);
|
||||
my @members = split (/,/, $members);
|
||||
@members = grep (!/^$item$/, @members);
|
||||
$repository_rec->set_prop( $entry, join(',', @members) );
|
||||
}
|
||||
event_signal( "git-repository-modify", $repository->key() );
|
||||
}
|
||||
|
||||
exit(0);
|
30
root/etc/e-smith/events/actions/git-modify
Executable file
30
root/etc/e-smith/events/actions/git-modify
Executable file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
# $Id: git.pm 1 2006-05-29 11:25:58Z marco $
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Modify the smeserver-git package configuration
|
||||
#------------------------------------------------------------
|
170
root/etc/e-smith/events/actions/git-repository-create-modify
Executable file
170
root/etc/e-smith/events/actions/git-repository-create-modify
Executable file
@ -0,0 +1,170 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012-2013 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
package esmith;
|
||||
|
||||
use strict;
|
||||
use Errno;
|
||||
use File::Find;
|
||||
use esmith::util;
|
||||
use esmith::templates;
|
||||
use esmith::GitDB;
|
||||
|
||||
$ENV{'PATH'} = "/bin";
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $event = $ARGV [0];
|
||||
my $gitRepositoryName = $ARGV [1];
|
||||
|
||||
die "event argument missing"
|
||||
unless defined ($event);
|
||||
|
||||
die "gitRepositoryName argument missing"
|
||||
unless defined ($gitRepositoryName);
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $git_db = esmith::GitDB->open_ro();
|
||||
|
||||
my $repository = $git_db->get($gitRepositoryName) or
|
||||
die "Couldn't find $gitRepositoryName record in SME Server Git database\n";
|
||||
|
||||
die "'$gitRepositoryName' is not an Git repository; git-repository-modify event failed.\n"
|
||||
unless ($repository->prop('type') eq 'repository');
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my %properties = $repository->props;
|
||||
my $description = $properties{'description'};
|
||||
|
||||
my $effective_pull_users = $git_db->effective_users_list_from( $properties{'pull_groups'},
|
||||
$properties{'pull_users'} );
|
||||
|
||||
my $effective_push_users = $git_db->effective_users_list_from( $properties{'push_groups'},
|
||||
$properties{'push_users'} );
|
||||
|
||||
my $effective_pull_push_users = $git_db->effective_users_list_from( $properties{'push_groups'},
|
||||
$properties{'push_users'},
|
||||
$properties{'pull_groups'},
|
||||
$properties{'pull_users'} );
|
||||
|
||||
if ($event eq 'git-repository-create')
|
||||
{
|
||||
#------------------------------------------------------------
|
||||
# Create a bare git repository
|
||||
# We add the .git extension to the repository name to indicate
|
||||
# is a bare repository. Permssions are set such that the
|
||||
# repository is owned by admin and is accessible to the group
|
||||
# www (so Apache can access it) but not anybody else.
|
||||
#------------------------------------------------------------
|
||||
|
||||
# Create the bare repository
|
||||
system("/usr/bin/git", "init", "--bare", "--shared=0660", "/home/e-smith/files/git/$gitRepositoryName.git") == 0
|
||||
or die "Error creating the initial bare git repository structure for /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
# Init the Git Description
|
||||
open(my $file, '>', "/home/e-smith/files/git/$gitRepositoryName.git/description");
|
||||
print $file $repository->prop('description') . "\n";
|
||||
|
||||
# Create a 'post-update' hook
|
||||
open($file, '>', "/home/e-smith/files/git/$gitRepositoryName.git/hooks/post-update");
|
||||
print $file "#!/bin/sh\n" .
|
||||
"# Hook script auto generated on repository create by SME server manager. Enables automatic markdown for README.md\n" .
|
||||
"# for viewing in gitweb as README.html.\n\n" .
|
||||
"rm -f README.html\n" .
|
||||
"git cat-file -e HEAD:README.md > /dev/null 2>&1\n" .
|
||||
"if [ \$? -eq 0 ]; then\n" .
|
||||
" git cat-file blob HEAD:README.md | perl /usr/share/markdown/Markdown.pl --html4tags > README.html\n" .
|
||||
" chmod 0440 README.html\n" .
|
||||
"fi\n\n" .
|
||||
"# Update GIT server info as well\n" .
|
||||
"git update-server-info\n";
|
||||
close($file);
|
||||
chmod 0770, "/home/e-smith/files/git/$gitRepositoryName.git/hooks/post-update";
|
||||
|
||||
# Set Administrator as the effective owner of the repository
|
||||
chdir "/home/e-smith/files/git/$gitRepositoryName.git"
|
||||
or die "Could not chdir to /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
system("/usr/bin/git", "config", "--add", "gitweb.owner", "Administrator") == 0
|
||||
or die "Could not change gitweb.owner setting in /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
# Create a 'post-receive-email' hook to send emails when PUSH actions occur
|
||||
system("/bin/ln", "-sf", "/usr/share/git-core/contrib/hooks/post-receive-email", "hooks/post-receive") == 0
|
||||
or die "Could not link 'post-receive-email' hook in /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
system("/usr/bin/git", "config", "--add", "hooks.emailprefix", "[GIT] ") == 0
|
||||
or die "Could not change hooks.emailprefix setting in /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
# Create the email list with the effective push & pull users.
|
||||
system("/usr/bin/git", "config", "--add", "hooks.mailinglist", $effective_pull_push_users ) == 0
|
||||
or die "Could not create 'hooks.mailinglist' in /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
}
|
||||
elsif ($event eq 'git-repository-modify')
|
||||
{
|
||||
#------------------------------------------------------------
|
||||
# Modify the Git repository
|
||||
#------------------------------------------------------------
|
||||
|
||||
# Update the Git description to match the setting in the server-manager interface
|
||||
open(my $file, '>', "/home/e-smith/files/git/$gitRepositoryName.git/description");
|
||||
print $file $repository->prop('description') . "\n";
|
||||
|
||||
# Goto git repository
|
||||
chdir "/home/e-smith/files/git/$gitRepositoryName.git"
|
||||
or die "Could not chdir to /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
# Update the email list with the effective push & pull users.
|
||||
system("/usr/bin/git", "config", "--replace-all", "hooks.mailinglist", $effective_pull_push_users ) == 0
|
||||
or die "Could not update 'hooks.mailinglist' in /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
# Run a "git update-server-info" action for good measure
|
||||
system("/usr/bin/git", "update-server-info") == 0
|
||||
or die "Error running 'git-update-server-info' on repository /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
}
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Default for both create and modify is to fix the ownership
|
||||
# to allow the webserver access to the repository
|
||||
# Ensure that files created are with gid set for the www group.
|
||||
#------------------------------------------------------------
|
||||
|
||||
chdir "/home/e-smith/files/git/$gitRepositoryName.git"
|
||||
or die "Could not chdir to /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
system("/bin/chown", "-R", "admin:www", "/home/e-smith/files/git/$gitRepositoryName.git") == 0
|
||||
or die "Could not change ownership of /home/e-smith/files/git/$gitRepositoryName.git";
|
||||
|
||||
chmod 02770, ".";
|
||||
|
||||
# Ensure that the git repository database is readable by the web server.
|
||||
system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
|
||||
or die "Could not change permissions on /home/e-smith/db/git";
|
||||
|
||||
# Ensure that the networks database is readable by the web server.
|
||||
system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
|
||||
or die "Could not change permissions on /home/e-smith/db/networks";
|
93
root/etc/e-smith/events/actions/git-repository-delete
Executable file
93
root/etc/e-smith/events/actions/git-repository-delete
Executable file
@ -0,0 +1,93 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012-2013 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
package esmith;
|
||||
|
||||
use strict;
|
||||
use Errno;
|
||||
use File::Find;
|
||||
use File::Path;
|
||||
use esmith::util;
|
||||
use esmith::templates;
|
||||
use esmith::GitDB;
|
||||
|
||||
$ENV{'PATH'} = "/bin";
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $event = $ARGV [0];
|
||||
my $gitRepositoryToDelete = $ARGV [1];
|
||||
|
||||
die "event argument missing"
|
||||
unless defined ($event);
|
||||
|
||||
die "gitRepositoryToDelete argument missing"
|
||||
unless defined ($gitRepositoryToDelete);
|
||||
|
||||
die "Invalid event: \"$event\". Expecting \"git-repository-delete\"\n"
|
||||
unless (($event) eq 'git-repository-delete');
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $git_db = esmith::GitDB->open_ro();
|
||||
|
||||
my $repository = $git_db->get($gitRepositoryToDelete) or
|
||||
die "Couldn't find $gitRepositoryToDelete record in SME Server Git database\n";
|
||||
|
||||
die "'$gitRepositoryToDelete' is not an Git repository that is marked for deletion; git-repository-delete event failed.\n"
|
||||
unless ($repository->prop('type') eq 'repository-deleted');
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $GitRepositoryDirectory = "/home/e-smith/files/git/$gitRepositoryToDelete.git";
|
||||
if( -d $GitRepositoryDirectory )
|
||||
{
|
||||
# Clean up the directory tree
|
||||
rmtree( $GitRepositoryDirectory );
|
||||
if( -e $GitRepositoryDirectory )
|
||||
{
|
||||
warn "Could not remove Git repository in $GitRepositoryDirectory\n";
|
||||
}
|
||||
|
||||
# Clean up the entry from the Git database.
|
||||
# This allows new repos of the same name to be created again.
|
||||
$git_db->delete( $gitRepositoryToDelete )
|
||||
}
|
||||
else
|
||||
{
|
||||
warn "Can't find the Git repository directory \"$GitRepositoryDirectory\"\n";
|
||||
}
|
||||
|
||||
#------------------------------------------------------------
|
||||
|
||||
# Ensure that the git repository database is readable by the web server.
|
||||
system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
|
||||
or die "Could not change permissions on /home/e-smith/db/git";
|
||||
|
||||
# Ensure that the networks database is readable by the web server.
|
||||
system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
|
||||
or die "Could not change permissions on /home/e-smith/db/networks";
|
||||
|
263
root/etc/e-smith/locale/bg/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/bg/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="bg" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git хранилища</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Създаване, промяна или премахване на Git хранилища</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Създаване, промяна или премахване на Git хранилища.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Този панел позволява управление на централизирани Git хранилища на сървъра.</p> <p>Конфигурираните Git хранилища са достъпни по HTTPS като https://{$serverName}/git/repository.git.</p> <p>Когато има инсталиран също и Gitweb, Git хранилищата могат също да бъдат разглеждани през уеб интерфейс https://{$serverName}/git</p> <p>За повече информация и документация за ползване на Git, щракнете на логото на Git в дясно.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Добавяне на Git хранилище</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Конфигуриране на Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Таблицата отдолу показва списък на конфигурираните Git хранилища.</p> <p><b>Удебелените</b> елементи в колоните <b>Достъп за изваждане</b> и <b>Достъп за слагане</b> съответстват на групи. Не удебелените елементи са отделни потребители. <i>Анонимни</i> означава че няма контрол на достъпа.</p> <p>Можете да промените настройките на Git хранилище или да го премахнете като щракнете на съответната команда в колоната <b>Действие</b>.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Създаване или промяна на Git хранилище</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Въведете име на Git хранилище за създаване. Хранилището ще бъде създадено празно и автоматично ще има добавено разширение .git към името. Отбележете, че името трябва да съдържа само големи и малки букви, цифри, точки, тирета и долни черти, и трябва да започва с буква. Например, "johnson", "Intra", и "cust3.prj12" са валидни имена, но "3associates", и "Bus!Partner" не са. Имената са ограничени по дължина до {$maxLength} символа.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>Полето отдолу показва името на Git хранилището. Името не може да бъде проняно.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>Описанието отдолу съответства на файл "description" в Git хранилището и се ползва от GitWeb за да показва описанието на хранилището на уеб страницата на GitWeb.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Изберете желания мрежов достъп до хранилището. Изберете "Само локалната мрежа" ако искате да предотвратите външния достъп до хранилището. Изберете "Интернет" ако искате да направите хранилището достъпно отдалечено. Настройката за мрежов достъп е в допълнение на правата за достъп на групите и потребителите за изваждане/слагане конфигурирани отдолу.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Премахване на Git хранилище</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> Ще премахнете Git хранилище "{$name}" ({$description}). </p> <p> <b>Всички файлове принадлежащи на това Git хранилище ще бъдат изтрити!</b> </p> <p> Сигурни ли сте че искате да премахнете това Git хранилище? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Премахване на Git хранилище</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Конфигуриране на настройките на Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Префикс на Git пътя</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Конфигуриране на глобални конфигурационни настройки за Git на сървъра</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Запис на конфигурацията на Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Позволи достъп до хранилището от</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Име на хранилището / URL на клонинга</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Позволи от</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Достъп за изваждане</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Достъп за слагане</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Анонимен</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Само локалната мрежа</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Интернет</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Грешка на конфигурацията!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Използвайте отметките по-долу за да конфигурирате правата за изваждане и слагане в Git хранилището.<br /> Изберете или групи или отделни потребители. Натиснете клавишите SHIFT и/или CTRL за да изберете повече групи или потребители.<br /> Ако не зададете <b>нито</b> група нито потребител, хранилището ще бъде достъпно <b>анонимно</b>! (т.е. няма да бъде изисквано име и парола).<br /> Ако зададете потребители или групи за правата на изваждане, потребителите с права за слагане ще имат също и права за изваждане.<br /> Ако искате потребителите и групите да имат изрично зададени пълни права за изваждане и слагане, задайте ги <b>и</b> в изваждане и в слагане.<br /> Групата <b>admin</b> включва всички администратори, а групата <b>shared</b> включва всички локални потребители.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Групи с разрешение за четене/изваждане</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Групи с разрешение да пишат/слагат</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Потребители с разрешение за четене/изваждане</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Потребители с разрешение да пишат/слагат</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Администратор</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Администратори</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Всеки</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Няма Git хранилища конфигурирани в момента.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git беше успешно преконфигуриран.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Успешно създадено Git хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Успешно променено Git хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Успешно изтрито Git хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Възникна грешка при конфигуриране на Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Възникна вътрешна грешка при създаване на Git хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Не мога да намеря хранилище "{$name}" (съществува ли?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Не мога да създам хранилище "{$name}" (не съществува ли вече?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Възникна грешка при промяна на Git хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>Възникна грешка при изтриване на Git хранилище. Папката на хранилището може да не е била изтрита напълно.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>Името на Git хранилище "{$repositoryName}" съдържа невалидни символи. Имената на хранилищата трябва да започват с малка буква и да съдържат само малки букви, цифри, долни черти и тирета.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>Описанието на Git хранилище "{$repositoryDescription}" съдържа невалидни символи. Описанието на хранилище трябва да съдържа само малки и големи букви, числа, тирета и долни черти.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>Името на Git хранилище "{$repositoryName}" е твърде дълго. Максималната дължина е {$maxRepositoryNameLength} символа.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Изберете</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>Хранилището "{$repositoryName}" вече съществува. Не е направено ново хранилище. Използвайте връзката 'Промени' в таблицата по-долу за да реконфигурирате съществуващото хранилище.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/da/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/da/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="da" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Opret, rediger eller fjern Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Opret, rediger eller fjern Git repositorier.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Fjern Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Fjern Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Konfigurer Git indstillinger</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git sti Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Konfigurer de globale indstillinger for Git på denne server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Gem Git konfigurationen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Tillad repository adgang fra</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Navn / Klon URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Tillad fra</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonym</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Kun lokalt netværk</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Konfigurations fejl!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administratorer</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Alle</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Der er pt ikke konfiguret nogen Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git blev rekonfigureret med succes.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Git repository blev oprettet med succes.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Git repository blev ændret med succes.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Sletning af Git repository er gennemført med succes.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Der opstod en fejl i forbindelse med konfigurationen af Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Der opstod en interne fejl i forbindelse med etableringen af Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Kan ikke finde repository "{$name}" (eksisterer det?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Kan ikke oprette repository"{$name}" (er det allerede oprettet?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Der opstod en fejl i forbindelse med ændringen af Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/de/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/de/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="de" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git-Repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Erstellen, Ändern oder Löschen von Git-Repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Erstellen, Ändern oder Löschen von Git-Repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Mit diesem Panel können zentrale Git-Repositories auf diesem Server verwaltet werden</p><p>Die konfigurierten Git-Repositories sind über HTTPS erreichbar, z.B. unter https://{$serverName}/git/repository.git</p>Wenn Gitweb installiert ist können die Git-Repositories ebenfalls über ein Web-Interface unter https:[$serverName}/git betrachtet werden.</p><p>Für weitere Informationen und Dokumentation zur Verwendung von Git klicken Sie rechts auf das Git-Logo.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Ein Git-Repository erstellen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Git konfigurieren</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>In unten stehender Tabelle sind die auf diesem Server zur Zeit konfigurierten Git-Repositories aufgeführt.</p><p>Die <b>fett</b> geschriebenen Einträge in den Spalten "Pull-Zugriff" und "Push-Zugriff" beziehen sich auf Gruppen, die nicht-fett geschriebenen Einträge auf individuelle Benutzer auf diesem Server. <i>Anonym</i> bedeutet, dass keine Zugriffskontrolle aktiv ist.</p><p>Sie können die Einstellungen eines Git-Repositories ändern oder ein Git-Repository entfernen, indem Sie auf den entsprechenden Befehl in der Spalte <b>Aktion</b> klicken. ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Erstellen oder Ändern eines Git-Repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Geben Sie einen Namen für das zu erstellende Git-Repository an. Es wird ein leeres Repository erzeugt. An den Namen wird automatisch das Suffix .git angehängt. Beachten Sie, dass der Name ausschließlich Groß- und Kleinbuchstaben, Zahlen, Punkte, Bindestriche und Unterstriche enthalten darf und mit einem Buchstaben beginnen muss. So sind z.B. "johnson", "Intra" oder "cust3.prj12" gültige Namen, "3associates" und "Bus!Partner" sind hingegen ungültige Namen. Der Name darf maximal {$maxLength} Zeichen lang sein.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>Das unten stehende Feld beinhaltet den Namen des Git-Repositories. Der Name kann nicht geändert werden.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>Die unten stehende Beschreibung bezieht sich auf die "description"-Datei des Git-Repositories und wird von GitWeb verwendet um die Beschreibung des Repositories auf der GitWeb-Seite anzuzeigen.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Erreichbarkeit des Repositories (Netzwerkzugriff): wählen Sie "nur lokales Netzwerk" wenn Sie einen Zugriff von außerhalb Ihres LANs verhindern möchten. Wählen Sie "Internet", wenn Sie das Repository von außerhalb Ihres lokalen Netzwerks zugänglich machen wollen. Diese Einstellung wirkt sich zusätzlich zu den weiter unten definierten Push/Pull-Zugriffsberechtigungen für Benutzer und Gruppen aus.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Git-Repository entfernen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> Sie sind dabei, das Git-Repository "{$name}" ({$description}) zu entfernen.</p><p><b>Dadurch werden sämtliche Dateien in diesem Git-Repository gelöscht!</b></p><p>Sind Sie sicher dass Sie dieses Git-Repository löschen wollen?</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Git-Repository entfernen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Git-Einstellungen ändern</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Präfix für Git-Pfad</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Globale Git-Einstellungen auf diesem Server ändern</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Git-Einstellungen speichern</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Erlaube Zugriff auf Repository von</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Name des Repository / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Erlaube von</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull-Zugriff</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push-Zugriff</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonym</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Nur lokales Netzwerk</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Fehlerhafte Konfiguration!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Benutzen Sie die Auswahlfelder, um die Pull- und Push-Berechtigungen für das Git-Repository festzulegen.<br />Sie können entweder Gruppen oder einzelne Benutzer auswählen. Eine Mehrfachselektion ist mittels gedrückter SHIFT- und/oder STRG-Taste möglich.<br />Wenn Sie hier weder eine Gruppe noch einen Benutzer auswählen wird das Repository <b>für anonymen Zugriff</b> konfiguriert (d.h. für den Zugriff ist keine Authentifizierung mit Benutzername und Password nötig).<br />Wenn Sie Benutzern oder Gruppen Pull-Berechtigung erteilen erhalten die Push-Nutzer ebenfalls Pull-Zugriff.<br />Um Ihren Benutzern exklusiven und vollständigen Pull- und Push-Zugriff zu gewähren müssen Sie diese sowohl im Pull- als auch im Push-Feld auswählen.<br />Die Gruppe <b>admin</b> beinhaltet alle Administratoren dieses Systems, die Gruppe <b>shared</b> beinhaltet alle lokalen Benutzer dieses Systems.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Gruppen mit Lese/Pull-Berechtigung</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Gruppen mit Schreib/Push-Berechtigung</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Benutzer mit Lese/Pull-Berechtigung</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Benutzer mit Schreib/Push-Berechtigung</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administratoren</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Alle</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Zur Zeit sind keine Git-Repositories konfiguriert.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Die Git-Konfiguration wurde erfolgreich geändert.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Das Git-Repository wurde erfolgreich erstellt.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Das Git-Repository wurde erfolgreich geändert.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Das Git-Repository wurde erfolgreich gelöscht.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Bei der Konfiguration von Git ist ein Fehler aufgetreten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Beim Erzeugen des Git-Repository ist ein interner Fehler aufgetreten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Das Repository "{$name}" kann nicht gefunden werden (existiert es überhaupt?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Das Repository "{$name}" kann nicht erstellt werden (eventuell existiert es bereits?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Beim Ändern des Git-Repositories ist ein Fehler aufgetreten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>Beim Löschen des Git-Repositories ist ein Fehler aufgetreten. Möglicherweise wurde das Verzeichnis des Repositories nicht vollständig gelöscht.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>Der Name des Git-Repositories "{$repositoryName}" enthält ungültige Zeichen. Repository-Namen müssen mit einem Kleinbuchstaben beginnen und dürfen ausschließlich Kleinbuchstaben, Zahlen, Unterstriche und Bindestriche enthalten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>Die Beschreibung des Git-Repositories "{$repositoryDescriptio}" enthält ungültige Zeichen. Repository-Beschreibungen sollten ausschließlich Groß- und Kleinbuchstaben, Zahlen, Unterstriche und Bindestriche enthalten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>Der Name des Git-Repositories "{$repositoryName}" ist zu lang. Er darf maximal aus {$maxRepositoryNameLength} Zeichen bestehen.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Treffen Sie eine Auswahl</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>Das Repository "{$repositoryName}" existiert bereits. Es wird daher kein neues Repository angelegt. Benutzen Sie den 'Ändern'-Link in unten stehender Tabelle um das existierende Repository neu zu konfigurieren.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/el/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/el/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="el" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
322
root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/git
Executable file
322
root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/git
Executable file
@ -0,0 +1,322 @@
|
||||
<lexicon lang="en-us" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans>
|
||||
<![CDATA[
|
||||
<p>This panel allows managing centralised Git repositories on this server.</p>
|
||||
<p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p>
|
||||
<p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p>
|
||||
<p>For more details and documentation on using Git, click on the Git logo on the right.</p>
|
||||
]]>
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans>
|
||||
<![CDATA[
|
||||
<p>The table below lists the currently configured Git repositories on this server.</p>
|
||||
<p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the
|
||||
user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p>
|
||||
<p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p>
|
||||
]]>
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository
|
||||
will be created as a bare repository and will automatically have the
|
||||
extension .git added to the name.
|
||||
Note the name should contain only upper or lower-case letters, numbers,
|
||||
periods, hyphens and underscores, and should start with a letter.
|
||||
For example "johnson", "Intra", and "cust3.prj12" are all valid names,
|
||||
but "3associates", and "Bus!Partner" are not.
|
||||
The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository.
|
||||
The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the
|
||||
Git repository and is used by GitWeb to display the repository description
|
||||
on the GitWeb page.
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to
|
||||
prevent any external access to the repository. Select "Internet" if you do want to make the
|
||||
repository accessible remotely. The network access setting is in addition to the user and group
|
||||
push/pull permissions configured below.
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans>
|
||||
<![CDATA[
|
||||
<p>
|
||||
You are about to remove the Git repository "{$name}"
|
||||
({$description}).
|
||||
</p>
|
||||
<p>
|
||||
<b>All files belonging to this Git repository will be deleted!</b>
|
||||
</p>
|
||||
<p>
|
||||
Are you sure you wish to remove this Git repository?
|
||||
</p>
|
||||
]]>
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans>
|
||||
<![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br />
|
||||
Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br />
|
||||
If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br />
|
||||
If you specify users or groups for pull permissions, the push users will also have pull access.<br />
|
||||
If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br />
|
||||
The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]>
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository.
|
||||
The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters.
|
||||
Repository names must start with a lower case letter and contain
|
||||
only lower case letters, numbers, underscore and hyphens.
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters.
|
||||
Repository descriptions should only contain
|
||||
lower and upper case letters, numbers, and hyphens and underscores.
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>
|
||||
The Git repository name "{$repositoryName}" is too long. The maximum is
|
||||
{$maxRepositoryNameLength} characters.
|
||||
</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/es/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/es/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="es" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anónimo</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/et/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/et/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="et" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/fr/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/fr/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="fr" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Dépôts Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Créer, modifier ou enlever le dépôt Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Créer, modifier ou enlever le dépôt Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Ce panneaux centralise la gérance du dépôt Git sur ce serveur.</p> <p>Les dépôt configurer Git son disponible via HTTPS exemple https://{$serverName}/git/repository.git.</p> <p>Quand le programme Gitweb est aussi installé, le dépôt Git peut être vue avec une interface web https://{$serverName}/git</p> <p>Pour la documentation ou plus de détails sur comment utiliser Git, faire un clic sur le logo de Git à droite.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Ajouter un dépôt Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configurer Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>La table ci-dessous contient la liste des dépôt Git configurer sur ce serveur. Les entrées en <b>gras</b> dans les colonnes <b>Pull Access</b> et <b>Push Access</b> corresponde au groupe d'usager sur ce serveur. Les entrées normales son des usagers. <i>Anonyme</i> est qu'il n'y a pas de contrôle d'accès en vigueur. </p><p>Vous pouvez modifier la configuration ou effacer un dépôt Git en faisant un clic sur la ligne de commande correspondante dans la colonne <b>Action</b></p>]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Créer ou modifier un dépôt Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Fournir un nom pour que le dépôt Git soit créé. Le dépôt sera créé vide et aura automatiquement l'extension .git. ajoutée au nom. Veuillez noter que le nom doit contenir seulement des lettres minuscules et majuscules, des chiffres, des points, trait d'union et tiret bas. Le nom doit commencer avec une lettre. Exemple : "johnson", "Intra", et "cust3.prj12" sont des noms valides mais "3associates", et "Bus!Partner" ne le sont pas. Le nom est limité à {$maxLength} caractères.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>Le champ ci-dessous indique le nom du dépôt git Le nom ne peut être modifier.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>La description ci-dessous correspond au fichier de "description" dans le dépôt Git et est utiliser par GitWeb pour afficher la description du dépôt sur la page GitWeb.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Sélectionner le type d'accès du réseaux pour le dépôt. Sélectionner "Local Network Only" si vous voulez bloquer les accès externe au dépôt. Sélectionner "Internet" si vous voulez que le dépôt soit accessible à distance. La configuration d'accès réseaux est un ajout a celui des permissions push/pull des usagers et groupes configurer ci-dessous.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Enlever le dépôt Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> Vous êtes sur le point d'effacer le dépôt Git "{$name}" ({$description}). </p><p><b>Tous les fichiers appartenant à ce dépôt Git vont être effacé.</b></p><p>Êtes-vous sûr de vouloir effacer ce dépôt Git ?</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Enlever le dépôt Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configuration de Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Préfixe du chemin Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Ajuster les paramètres de la configuration globale de Git sur ce serveur.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Sauver la configuration de Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Permettre l'accès du dépôt depuis</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Nom du dépôt / Copier URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Permettre depuis</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Accès Pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Accès Push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonyme</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Réseaux local seulement</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Erreur de configuration!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Utiliser le menu ci-dessous pour configurer les permissions pull et push pour le dépôt Git.<br /> Sélectionner l'un ou l'autre des groupes ou des usagers. Utiliser les touches SHIFT et/ou CTRL pour faire une sélection multiple de groupes ou d'usagers.<br /> Si vous sélectionnez <b>aucun</b> des choix de groupes ou d'usagers, le dépôt sera accessible <b>anonymement</b>! (c.a.d aucun nom d'usagers et mot de passe sera requis).<br /> Si vous spécifier des usagers ou groupes avec la permission pull, les usagers avec la permission push vont avoir aussi la permission pull.<br /> Si vous voulez qu'un usager(s) ou groupe(s) est la pleine exclusivité des permissions pull ou push, les spécifier dans les <b>deux</b> champs pull et push.<br /> Le groupe <b>admin</b> inclus tous les administrateurs et le groupe <b>shared</b> inclus tous les usagers local sur ce système.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groupes avec droit de lecture/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groupes avec permission écriture/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Usagers avec permissions de lecture/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Usagers avec permission d'écriture/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrateur</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrateurs</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Tout le monde</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Il n'y a pas présentement de dépôt Git configurer</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git a été reconfiguré avec succès</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Le dépôt Git a été créé avec succès</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Le dépôt Git a été modifié avec succès</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Le dépôt Git a été effacé avec succès</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Une erreur est survenue durant la configuration de Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Il y a eu une erreur interne durant la création du dépôt Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Ne peut trouver le dépôt "{$name}"(il a été créé?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Ne peut créé le dépôt "{$name}" ( Il a déjà été créé?) </trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Une erreur est survenue durant la modification du dépôt Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>Une erreur est survenue durant l'effacement du dépôt Git. Le répertoire du dépôt peut ne pas être effacer complètement.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>Le nom du dépôt Git "{$repositoryName}" contient des caractères invalides. Les noms de dépôt doivent commencer par une lettre minuscule et doit contenir seulement des lettres minuscules, des nombres, des tirets bas et traits d'union.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>La description du dépôt Git "{$repositoryDescription}" contient des caractères invalides. La description du dépôt ne doit contenir seulement que des lettres minuscules et majuscules, des nombres, tiret bas et trait d'union.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>Le nom du dépôt Git "{$repositoryName}" est trop long. Le maximum est de {$maxRepositoryNameLength} caractères.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Faire un choix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>Le dépôt "{$repositoryName}" est un dépôt Git existant. Il n'y a pas de dépôt créé. Utiliser le lien 'Modify' ci-dessous pour reconfigurer le dépôt existant.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/he/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/he/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="he" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/hu/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/hu/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="hu" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Névtelen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/id/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/id/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="id" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/it/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/it/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="it" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Repository Git </trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Creare, modificare o rimuovere i repository Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Crea, modifica o rimuovi i repository Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Questo pannello consente la gestione centralizzata dei repository Git sul server.</p> <p>I repository Git configurati sono disponibili via HTTPS come in https://{$serverName}/git/repository.git.</p> <p>Quando è installato anche Gitweb, i repository Git possono essere visualizzati per mezzo dell'interfaccia web via https://{$serverName}/git</p> <p>For maggiori dettagli e documentazione sull'uso di Git, fare click sul logo Git a sinistra.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Aggiungere un repository Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configura Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>La tabella sottostante elenca i repository Git configurati sul server.</p> <p>Le descrizioni in <b>grassetto</b> nelle colonne <b>Pull Access</b> e <b>Push Access</b> corrispondono ai gruppi utente sul server. Le descrizioni non in grassetto sono singoli utenti. <i>Anonimo</i> significa che non è attivo un controllo di accesso.</p> <p>Si possono modificare le impostazioni di un repository Git o eliminarlo facendo click sul comando corrispondente nella colonna <b>Azione</b>.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Creare o modificare un repository Git </trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Inerire un nome per il repository Git da creare. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>Il campo sottostante il nome del repository Git. Il nome non può essere modificato.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>La descrizione sottostante corrisponde al file di "descrizione" contenuto nel repository Git ed è usato da GitWeb per mostrare la descrizione del repository sulla pagina di GitWeb.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Selezionare il tipo di accesso di rete richiesto per il repository. Selezionare "Solo rete Locale" se si vuole vietare qualunque accesso dall'esterno al repository. Selezionare "Internet" se si vuole consentire l'accesso dall'esterno al repository. L'impostazione di accesso alla rete è aggiuntiva rispetto ai permessi push/pull configurati in precedenza.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remuovere repository Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> Si sta per rimuovere il repository Git "{$name}" ({$description}). </p> <p> <b>Tutti i file contenuty in questo repository Git saranno cancellati!</b> </p> <p>Siete sicuri di voler cancellare questo repository Git? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remuovere repository Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configurare le impostazioni Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Impostare la configurazione globale per Git su questo server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Salvare la configurazione di Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Consentire l'accesso al repository da</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Nome del repository / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Consenti da</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Accesso pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Accesso push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonimo</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Solo rete locale</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Errore di configurazione</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Usare le caselle di selezione sottostanti per configurare i permessi push/pull per il repository Git.<br /> Selezionare o gruppi o utenti. Premere SHIFT e/o CTRL per selezioni multiple di gruppi o utenti.<br /> Se non si selezionano <b>né</b> un gruppo <b>né</b> un utente, il repository sarà accessibile <b>anonimamente</b>! (non saranno richeste user-name o password).<br /> Se si definiscono utenti o gruppi per permessi pull, gli utenti push avranno anche accesso pull.<br /> Se si desidera che gli utenti o gruppi abbiano accesso esclusivo pull e push, specificarli in <b>entrambe</b> le caselle pull e push.<br /> Il gruppo <b>admin</b> include tutti gli amministratori e il gruppo <b>shared</b> include tutti gli utenti locali del sistema.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Gruppi autorizzati a leggere/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Gruppi autorizzati a scrivere/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Utenti autorizzati a leggere/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Utenti autorizzati a scrivere/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Amministratore</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Amministratori</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Tutti</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Non ci sono repository Git attualmente configurati.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git riconfigurato con successo.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Repository Git creato con successo.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Repository Git modificato con successo.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Repository Git eliminato con successo.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Errore configurando Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Errore interno creando il repository Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Impossibile trovare il repository "{$name}" (esiste?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Impossibile creare il repository "{$name}" (esiste già?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Errore modificando il repository Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>Errore eliminando il repository Git. La cartella del repository potrebbe non essere stata cancellata completamente.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>Il repository Git "{$repositoryName}" contiene caratteri non validi. I nomi dei repository devono contenere solo lettere minuscole, numeri, underscore e trattini.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>La descrizione del repository Git {$repositoryDescription}" contiene caratteri non validi. La descrizione dei repository deve contenere solo lettere maiuscole/minuscole, numeri, underscore e trattini.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>Il nome del repository Git "{$repositoryName}" è troppo lungo. Il massimo è {$maxRepositoryNameLength} caratteri.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Fare una selezione</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>Il repository "{$repositoryName}" è un repository Git esistente. Non è stato creato nessun nuovo repository. Usare il link 'Modifica' nella tabella sottostante per riconfigurare il repository esistente.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/ja/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/ja/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="ja" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>匿名</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>インターネット</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/nb/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/nb/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="nb" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonym</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internett</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/nl/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/nl/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="nl" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Creëer, modificeer of verwijder Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Creëer, modificeer or verwijder Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>Met dit paneel beheert U gecentraliseerde Git repositories op deze server.</p> <p>Geconfigureerde Git repositories zijn toegankelijk via HTTPS zoals in https://{$serverName}/git/repository.git.</p> <p>Wanneer Gitweb ook is geinstalleerd, kunnen de Git repositories bekeken worden via een web pagina op https://{$serverName}/git</p> <p>Voor meer details en documentatie over het gebruik van Git, klik dan op het Git logo aan de rechterkant van dit scherm.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Creëer een nieuwe Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configureer Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>De tabel hieronder toont de huidige lijst van Git repositories op deze server.</p> <p>De <b>vet gedrukte</b> namen in de <b>Pull Toegang</b> en <b>Push Toegang</b> kolommen komen overeen met groepen op deze server. Niet vet gedrukte namen zijn individuele gebruikers. <i>Anoniem</i> betekent dat er geen toegang controle is.</p> <p>U kunt de Git repository instellingen wijzigen of de Git repository verwijderen door op de betreffende link te klikken in de <b>Actie</b> kolom.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Creëer of modificeer een Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Geef een naam voor de Git repository de aangemaakt gaat worden. De repository zal aangemaakt worden als een 'bare' repository en zal automatisch de .git extensie toegevoegd krijgen aan de naam. Let op dat de naam alleen grote or kleine letters, nummers, punten, streepjes en onderstrepingstekens bevat en begint met een letter. Bijvoorbeeld "johnson", "Intra", en "cust3.prj12" zijn allemaal valide namen maar "3associates", en "Bus!Partner" zijn dat niet. De lengte van de naam is gelimiteerd tot {$maxLength} tekens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>Het veld hieronder bevat de naam van de git repository. Deze naam kan niet gewijzigd worden.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The beschrijving hieronder correspondeert met de tekst in het "description" bestand in de Git repository. Het wordt door GitWeb gebruikt om de repository beschrijving te laten zien op de GitWeb pagina.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Selecteer de vereiste network toegang voor de repository. Selecteer "Alleen Lokaal Netwerk" als je geen externe toegang wilt toelaten. Selecteer "internet" als je de repository toegankelijk wilt maken voor buitenaf. Deze network toegang instelling is bovenop de gebruikers en groep push/pull permissies die hieronder geconfigureerd worden.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Verwijder Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> U staat op het punt om de Git repository "{$name}" ({$description}) te verwijderen. </p> <p> <b>Alle bestanden behorende tot deze Git repository zullen worden verwijdert!</b> </p> <p> Ben u zeker dat u deze Git repository wilt verwijderen? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Verwijder Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configureer Git Instellingen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Pad Voorvoegsel</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configureer de globale instellingen voor Git op deze server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Git Configuratie Opslaan</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Repository toegang toestaan van</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Naam / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Toestaan van</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Toegang</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Toegang</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anoniem</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Alleen Lokaal Network</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuratie Fout!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Gebruik de selectie lijsten hieronder om pull en push permissies in te stellen voor de Git repository.<br /> Selecteer groepen en/of individuele gebruikers. Gebruik de SHIFT en/of de CTRL toets om meerdere groepen of gebruikers te selecteren.<br /> Als er <b>geen</b> groep of gebruikers zijn geselecteerd, zal de repository <b>anoniem</b> toegankelijk zijn! (that betekent dat er geen gebruikersnaam of wachtwoord nodig zal zijn).<br /> Als je pull permissies voor gebruikers of groepen instelt, zullen de push gebruikers en groepen ook pull toegang hebben.<br /> Als je exclusieve pull en push toegang wilt hebben voor je gebruikers en groepen, specificeer ze dan in zowel de pull en de push toegang permissies.<br /> De groep <b>admin</b> bevat alle administrateurs en de groep <b>shared</b> bevat alle lokale gebruikers op dit systeem.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groepen met lees/pull toestemming</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groepen met schrijf/push toestemming</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Gebruikers met lees/pull toestemming</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Gebruikers met schrijf/push toestemming</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrateurs</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Iedereen</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>Er zijn op dit moment geen Git repositories geconfigureerd.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesvol geconfigureerd.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Git repository creatie was succesvol.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Git repository modificatie was succesvol.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Git repository was verwijdert.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>Er is een fout opgetreden tijdens Git configuratie.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>Er is een interne fout opgetreden tijdens het creëren van de Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Kan repository "{$name}" niet vinden (bestaat het wel?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Kan repository "{$name}" niet aanmaken (bestaat het al?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>Er is een fout opgetreden bij het modificeren van de Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>Er is een fout opgetreden bij het verwijderen van de Git repository. De repository map is mogelijk niet geheel verwijdert.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>De Git repository naam "{$repositoryName}" bevat ongeldige tekens. Repository namen moeten beginnen met een kleine letter en mogen verder alleen kleine letters, cijfers, onderstrepingstekens en streepjes bevatten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>De Git repository beschrijving "{$repositoryDescription}" bevat ongeldige tekens. Repository beschrijvingen mogen alleen grote en kleine letters, cijfers, streepjes en onderstrepingstekens bevatten.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>De Git repository naam "{$repositoryName}" is te lang. het maximum aantal karakters is {$maxRepositoryNameLength}.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Maak een selectie</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>De repository "{$repositoryName}" is een bestaande Git repository. Er is geen nieuwe repository gecreëerd. Gebruik de 'Modificeer' link in de tabel hieronder om de bestaande repository te configureren.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/pl/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/pl/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="pl" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonimowy</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="pt-br" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anônimo</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/pt/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/pt/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="pt" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anónimo</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/ro/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/ro/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="ro" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/ru/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/ru/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="ru" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/sl/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/sl/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="sl" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/sv/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/sv/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="sv" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonym</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/th/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/th/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="th" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>นิรนาม, ผู้ไม่ประสงค์ออกนาม, ไม่ระบุชื่อ</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>อินเทอร์เน็ต</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/tr/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/tr/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="tr" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>Anonymous</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>Internet</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="zh-cn" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git仓库</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>创建,修改, 或者删除 Git 仓库</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>删除Git仓库</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>删除Git仓库</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>配置Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>匿名</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>仅本地网络</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>互联网</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>管理员</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>管理组</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>每个人</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>选择</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
263
root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/git
Normal file
263
root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/git
Normal file
@ -0,0 +1,263 @@
|
||||
<lexicon lang="zh-tw" params="getExtraParams()">
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAVIGATION_DESCRIPTION</base>
|
||||
<trans>Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_FORM_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_TITLE</base>
|
||||
<trans>Create, modify, or remove Git repositories.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_HOME_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>This panel allows managing centralised Git repositories on this server.</p> <p>Configured Git repositories are available via HTTPS like in https://{$serverName}/git/repository.git.</p> <p>When Gitweb is also installed, the Git repositories can also be viewed through a web interface https://{$serverName}/git</p> <p>For more details and documentation on using Git, click on the Git logo on the right.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_ADD_BUTTON</base>
|
||||
<trans>Add a Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURE_BUTTON</base>
|
||||
<trans>Configure Git</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_LIST_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p>The table below lists the currently configured Git repositories on this server.</p> <p>The <b>bold</b> entries in the <b>Pull Access</b> and <b>Push Access</b> columns correspond to the user groups on this server. Non-bold entries are individual users. <i>Anonymous</i> means there is no access control in effect.</p> <p>You can modify the settings of a Git repository or remove a Git repository by clicking on the corresponding command in the <b>Action</b> column.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ADD_TITLE</base>
|
||||
<trans>Create or modify a Git repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_CREATE_DESC</base>
|
||||
<trans>Provide a name for the Git repository to be created. The repository will be created as a bare repository and will automatically have the extension .git added to the name. Note the name should contain only upper or lower-case letters, numbers, periods, hyphens and underscores, and should start with a letter. For example "johnson", "Intra", and "cust3.prj12" are all valid names, but "3associates", and "Bus!Partner" are not. The name is limited to {$maxLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NAME_FIELD_MODIFY_DESC</base>
|
||||
<trans>The field below indicates the name of the git respository. The name can not be modified.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_DESCRIPTION_FIELD_DESC</base>
|
||||
<trans>The description below correspond to the "description" file in the Git repository and is used by GitWeb to display the repository description on the GitWeb page.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_FIELD_DESC</base>
|
||||
<trans>Select the required network access for the repository. Select "Local Network Only" if you want to prevent any external access to the repository. Select "Internet" if you do want to make the repository accessible remotely. The network access setting is in addition to the user and group push/pull permissions configured below.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_TITLE</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_DESCRIPTION</base>
|
||||
<trans><![CDATA[ <p> You are about to remove the Git repository "{$name}" ({$description}). </p> <p> <b>All files belonging to this Git repository will be deleted!</b> </p> <p> Are you sure you wish to remove this Git repository? </p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REMOVE_BUTTON</base>
|
||||
<trans>Remove Git Repository</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_TITLE</base>
|
||||
<trans>Configure Git Settings</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PATH</base>
|
||||
<trans>Git Path Prefix</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_DESCRIPTION</base>
|
||||
<trans>Configure the global configuration settings for Git on this server</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_CONFIGURATION_UPDATE_BUTTON</base>
|
||||
<trans>Save Git Configuration</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_LABEL_ALLOW_ACCESS_FROM</base>
|
||||
<trans>Allow repository access from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_REPOSITORY_NAME</base>
|
||||
<trans>Repository Name / Clone URL</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ALLOW_FROM</base>
|
||||
<trans>Allow from</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PULL_ACCESS</base>
|
||||
<trans>Pull Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PUSH_ACCESS</base>
|
||||
<trans>Push Access</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ANONYMOUS</base>
|
||||
<trans>匿名</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_LOCAL</base>
|
||||
<trans>Local Network Only</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_INTERNET</base>
|
||||
<trans>網際網路</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR</base>
|
||||
<trans>Configuration Error!</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_NOTE</base>
|
||||
<trans><![CDATA[ <p> Use the selection boxes below to you configure the pull and push permissions for the Git repository.<br /> Select either groups or individual users. Press the SHIFT and/or the CTRL key to select multiple groups or users.<br /> If you set <b>neither</b> a group or user setting, the repository will be accessible <b>anonymously</b>! (i.e. no user name or password will be required).<br /> If you specify users or groups for pull permissions, the push users will also have pull access.<br /> If you want your user(s) or group(s) to have exclusive full pull and push access, specify them in <b>both</b> the pull and push box.<br /> The group <b>admin</b> includes all administrators and the group <b>shared</b> includes all local users on this system.</p> ]]></trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PULL</base>
|
||||
<trans>Groups allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_GROUPS_PUSH</base>
|
||||
<trans>Groups allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PULL</base>
|
||||
<trans>Users allowed to read/pull</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_PRIVILEGES_USERS_PUSH</base>
|
||||
<trans>Users allowed to write/push</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_USER_ADMINISTRATOR</base>
|
||||
<trans>Administrator</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_ADMINISTRATORS</base>
|
||||
<trans>Administrators</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_GROUP_EVERYBODY</base>
|
||||
<trans>Everybody</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_NOTIFY_NO_REPOSITORIES</base>
|
||||
<trans>There are currently no Git repositories configured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CONFIG_CHANGE</base>
|
||||
<trans>Git was succesfully reconfigured.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_CREATED_REPOSITORY</base>
|
||||
<trans>Successfully created Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_MODIFIED_REPOSITORY</base>
|
||||
<trans>Successfully modified Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_SUCCESS_DELETED_REPOSITORY</base>
|
||||
<trans>Successfully deleted the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CONFIG_CHANGE</base>
|
||||
<trans>An error occurred while configuring Git.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CREATING_REPOSITORY</base>
|
||||
<trans>There was an internal error while creating the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_FIND_REPOSITORY</base>
|
||||
<trans>Can't find repository "{$name}" (does it exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_CANT_CREATE_REPOSITORY</base>
|
||||
<trans>Can't create repository "{$name}" (does it already exist?)</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_MODIFYING_REPOSITORY</base>
|
||||
<trans>An error occurred while modifying the Git repository.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DELETING_REPOSITORY</base>
|
||||
<trans>An error occurred while deleting the Git repository. The repository directory may not have been deleted completely.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_NAME_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository name "{$repositoryName}" contains invalid characters. Repository names must start with a lower case letter and contain only lower case letters, numbers, underscore and hyphens.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS</base>
|
||||
<trans>The Git repository description "{$repositoryDescription}" contains invalid characters. Repository descriptions should only contain lower and upper case letters, numbers, and hyphens and underscores.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERRROR_NAME_TOO_LONG</base>
|
||||
<trans>The Git repository name "{$repositoryName}" is too long. The maximum is {$maxRepositoryNameLength} characters.</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_RADIO_VALUE_NOT_CHECKED</base>
|
||||
<trans>Make a selection</trans>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<base>GIT_ERROR_ALREADY_EXISTS</base>
|
||||
<trans>The repository "{$repositoryName}" is an existing Git repository. There is no new repository created. Use the 'Modify' link in the table below to reconfigure the existing repository.</trans>
|
||||
</entry>
|
||||
|
||||
</lexicon>
|
@ -0,0 +1,455 @@
|
||||
{
|
||||
# Git Repositories Httpd Template
|
||||
#
|
||||
# This configures the Apache 2.x webserver to be able to function
|
||||
# as a Git repository server using git-http-backend with gitweb
|
||||
# repository viewing.
|
||||
#
|
||||
# Required packages: git gitweb
|
||||
#
|
||||
# This setup provides "dual URLS", where URL like
|
||||
# <http://example.com/git/my_repository.git>
|
||||
# loads Gitweb in the browser and the same URL
|
||||
# can be used in commands like `git clone` and
|
||||
# `git remote add`.
|
||||
#
|
||||
# Please see documentation for:
|
||||
# 1. `git-http-backend`
|
||||
# http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
|
||||
# 2. `gitweb`
|
||||
# http://repo.or.cz/w/alt-git.git?a=blob_plain;f=gitweb/README
|
||||
#
|
||||
# A lot of inspriration for this contrib came
|
||||
# from https://git.jim.sh/gitweb/README.html
|
||||
#
|
||||
# Also see Scott Chacon's "Smart HTTP Transport"
|
||||
# http://progit.org/2010/03/04/smart-http.html
|
||||
#
|
||||
# Access Rules:
|
||||
# - Global: * gitweb view from the Internet and the local
|
||||
# network with public repositories
|
||||
# * repository read from the Internet
|
||||
# and the local network
|
||||
# * repository write from the Internet
|
||||
# but authenticated with HTTPS
|
||||
# - Local: * accessible only from the local
|
||||
# network (incl. gitweb)
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# Copyright (C) 2012-2015 Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file should not be edited. If you want to make changes to it
|
||||
# copy it to the /etc/e-smith/templates-custom directory and make
|
||||
# your modifications in the new copy. This way modifications are
|
||||
# saved when the system is restored from a backup or configuration
|
||||
# changes are made.
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Libraries
|
||||
|
||||
use esmith::ConfigDB; # General smeserver-git configuration
|
||||
use esmith::NetworksDB; # Get the network IP address configuration
|
||||
use esmith::AccountsDB; # Collect users that are members of a group
|
||||
use esmith::DomainsDB; #
|
||||
use esmith::GitDB; # Contains all git repositories configuration data
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Minimal Base Configuration Requirements
|
||||
|
||||
my $config_db = esmith::ConfigDB->open_ro() or
|
||||
die "Couldn't open ConfigDB\n";
|
||||
|
||||
my $status = $git{'status'} || "disabled";
|
||||
return " # git is disabled.\n # use 'config setprop git status enabled' to enable HTTP access for git on your server.\n"
|
||||
unless $status eq 'enabled';
|
||||
|
||||
my $access = $git{'gitweb_access_from'} || "disabled";
|
||||
return " # no gitweb_access_from setting for git defined!\n # use 'config setprop git gitweb_access_from [local|internet]' to set network access level for gitweb.\n"
|
||||
if $access eq 'disabled';
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Open additional databases for configuring individual repositories
|
||||
|
||||
my $networks_db = esmith::NetworksDB->open_ro() or
|
||||
die "Couldn't open NetworksDB\n";
|
||||
|
||||
my $accounts_db = esmith::AccountsDB->open_ro() or
|
||||
die "Couldn't open AccountsDB\n";
|
||||
|
||||
my $git_db = esmith::GitDB->open_ro() or
|
||||
die "Couldn't open GitDB\n";
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Option Configuration
|
||||
|
||||
my $debugging = $git{'debugging'} || "disabled";
|
||||
|
||||
my $user_repositories = $git{'UserRepositories'} || "disabled";
|
||||
|
||||
my $gitweb = $git{'GitWeb'} || "disabled";
|
||||
|
||||
my $gitweb_theme = $git{'GitWebTheme'} || "disabled";
|
||||
|
||||
my $gitpath = "";
|
||||
if( $git{'GitPath'} ) {
|
||||
$gitpath = "/" . $git{'GitPath'};
|
||||
}
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Gitweb default access permissions for viewing
|
||||
|
||||
my $gitweb_allow = 'ip 127.0.0.1'; # Catch incorrect values, including empty ones
|
||||
# Setup the rules from which address range we allow access
|
||||
if( $git{'gitweb_access_from'} ) {
|
||||
if ($git{'gitweb_access_from'} eq 'internet') {
|
||||
$gitweb_allow = 'all granted';
|
||||
} elsif ($git{'gitweb_access_from'} eq 'local') {
|
||||
$gitweb_allow = "ip $localAccess";
|
||||
}
|
||||
}
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Default installation locations
|
||||
|
||||
# Root of the git repositories directory tree.
|
||||
my $GitRepositoryRoot = "/home/e-smith/files/git";
|
||||
|
||||
# Find installation location of the gitweb executables
|
||||
# and gitweb.css files can vary a bit between git versions.
|
||||
|
||||
my $GitWebRoot = "";
|
||||
my $GitWebCSS = "";
|
||||
if( $gitweb eq 'enabled' ) {
|
||||
if( -e "/usr/share/gitweb/gitweb.cgi" ) {
|
||||
# Git 1.7
|
||||
$GitWebRoot = "/usr/share/gitweb";
|
||||
if( -e "/usr/share/gitweb/static/gitweb.css" ) {
|
||||
$GitWebCSS = "/static";
|
||||
}
|
||||
elsif( -e -e "/usr/share/gitweb/gitweb.css" ) {
|
||||
$GitWebCSS = "";
|
||||
}
|
||||
else {
|
||||
$gitweb_theme="disabled";
|
||||
warn "Gitweb is enabled in /usr/share/gitweb, but could not find 'gitweb.css'!Please install smeserver-gitweb-theme if you need it.\n";
|
||||
}
|
||||
}
|
||||
elsif( -e "/var/www/git/gitweb.cgi" ) {
|
||||
# Git 1.8+
|
||||
$GitWebRoot = "/var/www/git";
|
||||
# check if smeserver-gitweb-theme is installed
|
||||
if( -e "/var/www/git/static/gitweb.css" ) {
|
||||
$GitWebCSS = "/static";
|
||||
}
|
||||
elsif( -e -e "/var/www/git/gitweb.css" ) {
|
||||
$GitWebCSS = "";
|
||||
}
|
||||
else {
|
||||
$gitweb_theme="disabled";
|
||||
warn "Gitweb is enabled in /var/www/git, but could not find 'gitweb.css'! Please install smeserver-gitweb-theme if you need it.\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$gitweb="disabled";
|
||||
warn "Gitweb is enabled in your configuration, but could not find 'gitweb.cgi'! Considering it as disabled. Please install smeserver-gitweb if you need it.\n";
|
||||
}
|
||||
}
|
||||
|
||||
# Installation location of the git-http-backend executables
|
||||
# Location seems to have shifted between git 1.7 and git 1.8
|
||||
|
||||
my $GitHttpBackendPath = "";
|
||||
if( -e "/usr/libexec/git-core/git-http-backend" ) {
|
||||
$GitHttpBackendPath = "/usr/libexec/git-core";
|
||||
}
|
||||
elsif( -e "/usr/bin/git-http-backend" ) {
|
||||
$GitHttpBackendPath = "/usr/bin";
|
||||
}
|
||||
else {
|
||||
die "Couldn't find 'git-http-backend'\n";
|
||||
}
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ HTTP Git Configuration
|
||||
|
||||
$OUT .= "\n";
|
||||
if( $port eq 80 ) {
|
||||
$OUT .= " # ~~~ GIT HTTP CONFIGURATION BEGIN ~~~\n";
|
||||
$OUT .= "\n";
|
||||
$OUT .= " # Ensure all /git access is using HTTPS\n";
|
||||
$OUT .= " RewriteEngine on\n";
|
||||
$OUT .= " RewriteCond %{HTTPS} =off [NC]\n";
|
||||
$OUT .= " RewriteRule ^/git(/.*|\$) https://%{HTTP_HOST}/git\$1 [L,R]\n";
|
||||
$OUT .= " <Location \"/git\">\n";
|
||||
$OUT .= " Require ssl\n";
|
||||
$OUT .= " </Location>\n";
|
||||
$OUT .= "\n";
|
||||
$OUT .= " # ~~~ GIT HTTP CONFIGURATION END ~~~\n";
|
||||
}
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ HTTPS Git Configuration
|
||||
|
||||
if( $port eq 443 ) {
|
||||
$OUT .= " # ~~~ GIT HTTPS CONFIGURATION BEGIN ~~~\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Enable rewriting (may have been enabled earlier)\n";
|
||||
$OUT .= " RewriteEngine on\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
if( $debugging eq 'enabled' ) {
|
||||
$OUT .= " # Set logging options - mainly for debugging\n";
|
||||
$OUT .= " LogLevel debug rewrite:trace8 \n";
|
||||
$OUT .= "\n";
|
||||
}
|
||||
|
||||
$OUT .= " # Setup password authentication method\n";
|
||||
$OUT .= " DefineExternalAuth pwauth pipe /usr/bin/pwauth\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # ~~~ GIT BACKEND CONFIGURATION ~~~\n";
|
||||
$OUT .= "\n";
|
||||
$OUT .= " SetEnv GIT_PROJECT_ROOT $GitRepositoryRoot\n";
|
||||
$OUT .= " SetEnv GIT_HTTP_EXPORT_ALL\n";
|
||||
# $OUT .= " SetEnv REMOTE_USER REDIRECT_REMOTE_USER\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # For access to git-receive-pack items (i.e. Git PUSH\n";
|
||||
$OUT .= " # operations) rewrite the URL to an internal virtual\n";
|
||||
$OUT .= " # push directory that can be handled in a separate\n";
|
||||
$OUT .= " # 'Location' directive. In that way we can handle\n";
|
||||
$OUT .= " # the PUSH authorisation separately from the\n";
|
||||
$OUT .= " # PULL authorisation.\n";
|
||||
$OUT .= "\n";
|
||||
$OUT .= " RewriteCond %\{IS_SUBREQ\} f\n";
|
||||
$OUT .= " RewriteCond %\{REQUEST_URI\} !^/push/\n";
|
||||
$OUT .= " RewriteCond %\{QUERY_STRING\} service=git-receive-pack [OR]\n";
|
||||
$OUT .= " RewriteCond %\{REQUEST_URI\} /git-receive-pack\$\n";
|
||||
$OUT .= " RewriteRule ^\(.*\)\$ /push%\{REQUEST_URI\} [PT]\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # We use ScriptAliasMatch to match those URLs that\n";
|
||||
$OUT .= " # git-http-backend can handle and forward the rest\n";
|
||||
$OUT .= " # to gitweb. In this first one we catch the PUSH\n";
|
||||
$OUT .= " # virtual directory and pass the URL without the\n";
|
||||
$OUT .= " # /push/git/ to git-http-backend\n";
|
||||
$OUT .= " ScriptAliasMatch \\\n";
|
||||
$OUT .= " \"\(\?x\)\^\/push$gitpath\/\(\[^/\]+\.+?\\.git/\(HEAD | \\\n";
|
||||
$OUT .= " info/refs \| \\\n";
|
||||
$OUT .= " objects/\(info/\[^/\]+ \| \\\n";
|
||||
$OUT .= " \[0-9a-f\]\{2\}/\[0-9a-f\]\{38\} \| \\\n";
|
||||
$OUT .= " pack/pack-\[0-9a-f\]\{40\}\\.\(pack|idx\)\) \| \\\n";
|
||||
$OUT .= " git-\(upload\|receive\)-pack\)\)\$\" \\\n";
|
||||
$OUT .= " $GitHttpBackendPath/git-http-backend/\$1\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # In this second one we catch all the normal\n";
|
||||
$OUT .= " # Git URLs for git-http-backend\n";
|
||||
$OUT .= " ScriptAliasMatch \\\n";
|
||||
$OUT .= " \"\(\?x\)\^$gitpath\/\(\[^/\]+\.+?\\.git/\(HEAD | \\\n";
|
||||
$OUT .= " info/refs \| \\\n";
|
||||
$OUT .= " objects/\(info/\[^/\]+ \| \\\n";
|
||||
$OUT .= " \[0-9a-f\]\{2\}/\[0-9a-f\]\{38\} \| \\\n";
|
||||
$OUT .= " pack/pack-\[0-9a-f\]\{40\}\\.\(pack|idx\)\) \| \\\n";
|
||||
$OUT .= " git-\(upload\|receive\)-pack\)\)\$\" \\\n";
|
||||
$OUT .= " $GitHttpBackendPath/git-http-backend/\$1\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Access permissions for the git root directory\n";
|
||||
$OUT .= " <Directory \"$GitRepositoryRoot\">\n";
|
||||
$OUT .= " Options +ExecCGI\n";
|
||||
$OUT .= " Require all granted\n";
|
||||
$OUT .= " </Directory>\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Access permissions for git backend scripts\n";
|
||||
$OUT .= " <Directory \"$GitHttpBackendPath\">\n";
|
||||
$OUT .= " Options +ExecCGI +Indexes\n";
|
||||
$OUT .= " Require all granted\n";
|
||||
$OUT .= " </Directory>\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Setup Gitweb and optional Github theme
|
||||
|
||||
$OUT .= " # ~~~ GITWEB CONFIGURATION ~~~\n\n";
|
||||
if( $gitweb eq 'enabled' ) {
|
||||
$OUT .= " # config getprop git GitWeb == enabled\n\n";
|
||||
|
||||
$OUT .= " # If HTTP:Authorization was send in the request,\n";
|
||||
$OUT .= " # ensure we make it available as the HTTP_AUTHORIZATION\n";
|
||||
$OUT .= " # environment variable for use in authentication\n";
|
||||
$OUT .= " # checks by gitweb.\n";
|
||||
$OUT .= "\n";
|
||||
$OUT .= " RewriteCond %\{HTTP:Authorization\} ^(.+)\n";
|
||||
$OUT .= " RewriteRule .? - [e=HTTP_AUTHORIZATION:%1]\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Load configuration for Gitweb\n";
|
||||
$OUT .= " SetEnv GITWEB_CONFIG /etc/gitweb.conf\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Ensure all /git access is using HTTPS\n";
|
||||
$OUT .= " <Location \"/git\">\n";
|
||||
$OUT .= " DirectorySlash On\n";
|
||||
$OUT .= " SSLRequireSSL\n";
|
||||
$OUT .= " </Location>\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Ensure we can browse the repo with http://server.com/git/repo.git\n";
|
||||
$OUT .= " # instead of http://server.com/git?p=repo.git;a=summary.\n";
|
||||
#$OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
|
||||
#$OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
|
||||
#$OUT .= " RewriteRule ^$gitpath\/gitweb.cgi\(\.\*\\.git)\$ $gitpath/gitweb.cgi\$1 [PT]\n";
|
||||
$OUT .= " RewriteRule ^/git\$ /git/ [R]\n";
|
||||
|
||||
$OUT .= " RewriteCond %{REQUEST_URI} !=$gitpath/gitweb.*\n";
|
||||
$OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
|
||||
$OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
|
||||
$OUT .= " RewriteRule ^$gitpath(.*\\.git)?\$ $gitpath/gitweb.cgi\$1 [L,PT]\n\n";
|
||||
|
||||
#$OUT .= " RewriteCond %{REQUEST_URI} !=$gitpath/gitweb.*\n";
|
||||
#$OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
|
||||
#$OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
|
||||
#$OUT .= " RewriteRule ^$gitpath(.*\\.git/(?!/?(HEAD|info|objects|refs)).*)?\$ $gitpath/gitweb.cgi%{REQUEST_URI} [L,PT]\n\n";
|
||||
|
||||
|
||||
if( $gitweb_theme eq 'enabled' ) {
|
||||
$OUT .= " # config getprop git GitWebTheme == enabled\n";
|
||||
$OUT .= " # Overide the standard gitweb CSS, JS and image files to enable the theme.\n";
|
||||
$OUT .= " Alias $gitpath$GitWebCSS/gitweb.css /etc/e-smith/web/common/gitweb/gitweb.css\n";
|
||||
$OUT .= " Alias $gitpath$GitWebCSS/git-favicon.png /etc/e-smith/web/common/gitweb/git-favicon.png\n";
|
||||
$OUT .= " Alias $gitpath$GitWebCSS/git-logo.png /etc/e-smith/web/common/gitweb/git-logo.png\n";
|
||||
$OUT .= "\n";
|
||||
}
|
||||
$OUT .= " # Static & CGI files used by Gitweb. \n";
|
||||
$OUT .= " Alias $gitpath $GitWebRoot\n";
|
||||
$OUT .= "\n";
|
||||
|
||||
$OUT .= " # Access permissions for gitweb scripts\n";
|
||||
$OUT .= " <Directory \"$GitWebRoot\">\n";
|
||||
$OUT .= " Options +ExecCGI\n";
|
||||
$OUT .= " AllowOverride None\n";
|
||||
$OUT .= " AddHandler cgi-script .cgi\n";
|
||||
$OUT .= " DirectoryIndex gitweb.cgi\n";
|
||||
$OUT .= " Require $gitweb_allow\n";
|
||||
$OUT .= " </Directory>\n\n";
|
||||
|
||||
if( $gitweb_theme eq 'enabled' ) {
|
||||
$OUT .= " # Access permissions for additional gitweb theme files\n";
|
||||
$OUT .= " <Directory \"/etc/e-smith/web/common/gitweb\">\n";
|
||||
$OUT .= " AllowOverride None\n";
|
||||
$OUT .= " Require $gitweb_allow\n";
|
||||
$OUT .= " </Directory>\n\n";
|
||||
}
|
||||
} else {
|
||||
$OUT .= " # Gitweb disabled or not installed\n\n";
|
||||
}
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ Setup access for individual Git repositories
|
||||
|
||||
$OUT .= " # ~~~ GIT REPOSITORIES CONFIGURATION START ~~~\n\n";
|
||||
|
||||
my @repositories = $git_db->get_all_by_prop('type' => 'repository');
|
||||
foreach my $repository (@repositories)
|
||||
{
|
||||
my $git_repository = $repository->key;
|
||||
my %properties = $repository->props;
|
||||
|
||||
# Retrieve the network access rules for the repository
|
||||
my $satisfy = 'All';
|
||||
my $allow_from_network = 'ip 127.0.0.1'; # Catch incorrect values, including empty ones
|
||||
if( $properties{'allow_access_from'} ) {
|
||||
if( $properties{'allow_access_from'} eq 'internet' ) {
|
||||
$allow_from_network = 'all granted';
|
||||
} elsif ($properties{'allow_access_from'} eq 'local') {
|
||||
$allow_from_network = "ip $localAccess";
|
||||
}
|
||||
}
|
||||
|
||||
# Determine the effective users list from the listed groups and individual users
|
||||
my $effective_push_users =
|
||||
$git_db->effective_users_list_from( $properties{'push_groups'},
|
||||
$properties{'push_users'} );
|
||||
|
||||
my $effective_pull_users =
|
||||
$git_db->effective_users_list_from( $properties{'pull_groups'},
|
||||
$properties{'pull_users'} );
|
||||
|
||||
my $effective_pull_push_users =
|
||||
$git_db->effective_users_list_from( $properties{'push_groups'},
|
||||
$properties{'push_users'},
|
||||
$properties{'pull_groups'},
|
||||
$properties{'pull_users'} );
|
||||
|
||||
$OUT .= " # ~~~~~~~~~~~~~~~~~~~~~~~~\n";
|
||||
$OUT .= " # Git Repository : $gitpath/$git_repository.git (" . ($properties{'description'} || "ERROR - DESCRIPTION NOT CONFIGURED!") . ")\n";
|
||||
$OUT .= " # - Allow access from : " . ($properties{'allow_access_from'} || "ERROR - ALLOW_ACCESS_FROM NOT CONFIGURED!") . " => Network allow from $allow_from_network\n";
|
||||
$OUT .= " # - Effective PULL Users: '" . ($effective_pull_users || "Anonymous") . "' <= (" . ($properties{'pull_groups'} || "none") . "/" . ($properties{'pull_users'} || "none") . ")\n";
|
||||
$OUT .= " # - Effective PUSH Users: '" . ($effective_push_users || "Anonymous") . "' <= (" . ($properties{'push_groups'} || "none") . "/" . ($properties{'push_users'} || "none") . ")\n";
|
||||
$OUT .= " # - Effective PULL/PUSH : '" . ($effective_pull_push_users || "Anonymous") . "'\n\n";
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ PULL Access Setup
|
||||
|
||||
$OUT .= " <LocationMatch \"^$gitpath/(gitweb.cgi/|)$git_repository.git\"> # PULL access to $gitpath/$git_repository.git\n";
|
||||
|
||||
$OUT .= " <RequireAll>\n";
|
||||
|
||||
if( $effective_pull_users ) {
|
||||
$OUT .= " # PULL Access Control\n";
|
||||
$OUT .= " AuthName \"Git repository: $git_repository\.git (" . ($properties{'description'} || "ERROR - DESCRIPTION NOT CONFIGURED!"). ")\"\n";
|
||||
$OUT .= " AuthType Basic\n";
|
||||
$OUT .= " AuthBasicProvider external\n";
|
||||
$OUT .= " AuthExternal pwauth\n";
|
||||
$OUT .= " Require user $effective_pull_push_users\n";
|
||||
$OUT .= " SSLRequireSSL # Non-Anonymous PULL requires SSL\n";
|
||||
} else {
|
||||
$OUT .= " # Anonymous PULL Access\n";
|
||||
}
|
||||
if( $allow_from_network ne 'all granted' ) {
|
||||
$OUT .= " # Restricted network access\n";
|
||||
$OUT .= " Require $allow_from_network\n";
|
||||
} else {
|
||||
$OUT .= " Require all granted \n # Internet access enabled\n";
|
||||
}
|
||||
$OUT .= " </RequireAll>\n";
|
||||
|
||||
$OUT .= " </LocationMatch> # $gitpath/$git_repository.git\n\n";
|
||||
|
||||
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#~~~ PUSH Access Setup - uses a virtual /push directory in the path that was
|
||||
# setup using previus RewriteCond rules looking for the
|
||||
# git-receive-pack items that Git requests when pushing.
|
||||
|
||||
$OUT .= " <Location \"/push$gitpath/$git_repository.git\"> # PUSH access to $gitpath/$git_repository.git\n";
|
||||
|
||||
$OUT .= " <RequireAll>\n";
|
||||
if( $effective_push_users ) {
|
||||
$OUT .= " # PUSH Access Control\n";
|
||||
$OUT .= " AuthName \"Git repository: $git_repository\.git (" . ($properties{'description'} || "ERROR - DESCRIPTION NOT CONFIGURED!"). ")\"\n";
|
||||
$OUT .= " AuthType Basic\n";
|
||||
$OUT .= " AuthBasicProvider external\n";
|
||||
$OUT .= " AuthExternal pwauth\n";
|
||||
$OUT .= " Require user $effective_push_users\n";
|
||||
$OUT .= " SSLRequireSSL # Non-Anonymous PUSH requires SSL\n";
|
||||
} else {
|
||||
$OUT .= " # Anonymous PUSH Access\n";
|
||||
}
|
||||
if( $allow_from_network ne 'all granted' ) {
|
||||
$OUT .= " # Restricted network access\n";
|
||||
$OUT .= " Require $allow_from_network\n";
|
||||
} else {
|
||||
$OUT .= " Require all granted \n # Internet access enabled\n";
|
||||
}
|
||||
$OUT .= " </RequireAll>\n";
|
||||
|
||||
$OUT .= " </Location> # /push$gitpath/$git_repository.git\n\n";
|
||||
}
|
||||
|
||||
$OUT .= " # ~~~ GIT REPOSITORIES CONFIGURATION END ~~~\n";
|
||||
$OUT .= " # ~~~ GIT HTTPS CONFIGURATION END ~~~\n";
|
||||
}
|
||||
}
|
BIN
root/etc/e-smith/web/common/git-logo.png
Executable file
BIN
root/etc/e-smith/web/common/git-logo.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
154
root/etc/e-smith/web/functions/git
Executable file
154
root/etc/e-smith/web/functions/git
Executable file
@ -0,0 +1,154 @@
|
||||
#!/usr/bin/perl -wT
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# heading : Collaboration
|
||||
# description : GIT_NAVIGATION_DESCRIPTION
|
||||
# navigation : 2499 2599
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Copyright (C) 2013 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use esmith::FormMagick::Panel::git;
|
||||
|
||||
my $fm = esmith::FormMagick::Panel::git->new();
|
||||
$fm->display();
|
||||
|
||||
__DATA__
|
||||
<form
|
||||
title="GIT_FORM_TITLE"
|
||||
header="/etc/e-smith/web/common/head.tmpl"
|
||||
footer="/etc/e-smith/web/common/foot.tmpl">
|
||||
|
||||
<!-- page 0 -->
|
||||
<page
|
||||
name="First"
|
||||
pre-event="print_status_message()" >
|
||||
|
||||
<subroutine src="git_home_print_description()" />
|
||||
|
||||
<!-- <subroutine src="git_home_print_configure_button()" /> -->
|
||||
|
||||
<subroutine src="git_home_print_add_repository_button()" />
|
||||
|
||||
<subroutine src="git_home_print_repository_table()" />
|
||||
</page>
|
||||
|
||||
<!-- page 1 -->
|
||||
<page name="GitCreateModify"
|
||||
pre-event="turn_off_buttons()"
|
||||
post-event="git_handle_create_or_modify_repository()">
|
||||
|
||||
<subroutine src="git_repository_print_name_field()" />
|
||||
|
||||
<subroutine src="git_repository_print_description_note()" />
|
||||
|
||||
<field
|
||||
type="text"
|
||||
id="description"
|
||||
validation="git_repository_validate_description">
|
||||
<label>DESCRIPTION</label>
|
||||
</field>
|
||||
|
||||
<subroutine src="git_repository_print_access_note()" />
|
||||
|
||||
<field
|
||||
type="radio"
|
||||
id="allow_access_from"
|
||||
options="'local' => 'GIT_ACCESS_ALLOWED_FROM_LOCAL',
|
||||
'internet' => 'GIT_ACCESS_ALLOWED_FROM_INTERNET'"
|
||||
validation="validate_radio">
|
||||
<label>GIT_LABEL_ALLOW_ACCESS_FROM</label>
|
||||
</field>
|
||||
|
||||
<subroutine src="git_repository_print_privileges_note()" />
|
||||
|
||||
<field
|
||||
type="select"
|
||||
id="pull_groups"
|
||||
options="git_repository_group_list()"
|
||||
multiple="1" size="5">
|
||||
<label>GIT_PRIVILEGES_GROUPS_PULL</label>
|
||||
</field>
|
||||
|
||||
<field
|
||||
type="select"
|
||||
id="pull_users"
|
||||
options="git_repository_user_list()"
|
||||
multiple="1" size="5">
|
||||
<label>GIT_PRIVILEGES_USERS_PULL</label>
|
||||
</field>
|
||||
|
||||
<field
|
||||
type="select"
|
||||
id="push_groups"
|
||||
options="git_repository_group_list()"
|
||||
multiple="1" size="5">
|
||||
<label>GIT_PRIVILEGES_GROUPS_PUSH</label>
|
||||
</field>
|
||||
|
||||
<field
|
||||
type="select"
|
||||
id="push_users"
|
||||
options="git_repository_user_list()"
|
||||
multiple="1" size="5">
|
||||
<label>GIT_PRIVILEGES_USERS_PUSH</label>
|
||||
</field>
|
||||
|
||||
<subroutine src="git_repository_print_save_or_add_button()" />
|
||||
</page>
|
||||
|
||||
<!-- page 2 -->
|
||||
<page
|
||||
name="GitRemove"
|
||||
pre-event="turn_off_buttons()"
|
||||
post-event="git_handle_remove_repository()">
|
||||
|
||||
<title>GIT_REMOVE_TITLE</title>
|
||||
<description>GIT_REMOVE_DESCRIPTION</description>
|
||||
|
||||
<subroutine src="print_button('GIT_REMOVE_BUTTON')" />
|
||||
|
||||
</page>
|
||||
|
||||
<!-- page 3 -->
|
||||
<page
|
||||
name="GitConfigure"
|
||||
pre-event="turn_off_buttons()"
|
||||
post-event="git_handle_configuration_update()">
|
||||
|
||||
<title>GIT_CONFIGURATION_TITLE</title>
|
||||
<description>GIT_CONFIGURATION_DESCRIPTION</description>
|
||||
|
||||
<field
|
||||
type="text"
|
||||
id="gitpath"
|
||||
validation="git_validate_gitpath">
|
||||
<label>GIT_PATH</label>
|
||||
</field>
|
||||
|
||||
<subroutine src="print_button('GIT_CONFIGURATION_UPDATE_BUTTON')" />
|
||||
</page>
|
||||
|
||||
</form>
|
0
root/home/e-smith/files/git/.gitignore
vendored
Normal file
0
root/home/e-smith/files/git/.gitignore
vendored
Normal file
967
root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/git.pm
Executable file
967
root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/git.pm
Executable file
@ -0,0 +1,967 @@
|
||||
#!/usr/bin/perl -w
|
||||
#----------------------------------------------------------------------
|
||||
# vim: ft=perl ts=2 sw=2 et:
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
# $Id: git.pm 1 2012-03-23 11:25:58Z marco $
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
package esmith::FormMagick::Panel::git;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use esmith::FormMagick;
|
||||
use esmith::AccountsDB;
|
||||
use esmith::ConfigDB;
|
||||
use esmith::DomainsDB;
|
||||
use esmith::GitDB;
|
||||
|
||||
use esmith::cgi;
|
||||
use esmith::util;
|
||||
use File::Basename;
|
||||
use Exporter;
|
||||
use Carp;
|
||||
|
||||
use constant TRUE => 1;
|
||||
use constant FALSE => 0;
|
||||
|
||||
our @ISA = qw(esmith::FormMagick Exporter);
|
||||
|
||||
our @EXPORT = qw(
|
||||
git_home_print_logo
|
||||
git_home_print_description
|
||||
git_home_print_configure_button
|
||||
git_home_print_add_repository_button
|
||||
git_home_print_repository_table
|
||||
git_handle_create_or_modify_repository
|
||||
git_handle_remove_repository
|
||||
git_repository_group_list
|
||||
git_repository_user_list
|
||||
git_repository_validate_name
|
||||
git_repository_validate_name_does_not_exist
|
||||
git_repository_validate_name_length
|
||||
git_repository_validate_description
|
||||
git_repository_print_name_field
|
||||
git_repository_print_description_note
|
||||
git_repository_print_access_note
|
||||
git_repository_print_privileges_note
|
||||
git_repository_print_groups_and_users
|
||||
max_repository_name_length
|
||||
get_config_value
|
||||
getExtraParams
|
||||
git_repository_print_save_or_add_button
|
||||
validate_radio
|
||||
wherenext
|
||||
);
|
||||
|
||||
our $config_db = esmith::ConfigDB->open
|
||||
or die "Can't open the Config database : $!\n" ;
|
||||
|
||||
our $account_db = esmith::AccountsDB->open
|
||||
or die "Can't open the Account database : $!\n" ;
|
||||
|
||||
our $domains_db = esmith::DomainsDB->open
|
||||
or die "Can't open the Domains database : $!\n" ;
|
||||
|
||||
our $git_db = esmith::GitDB->open
|
||||
or die "Can't open the Git database : $!\n" ;
|
||||
|
||||
our $SystemName = $config_db->get_prop('git','SystemName') || get_config_value('', 'SystemName');
|
||||
our $DomainName = $config_db->get_prop('git','DomainName') || get_config_value('', 'DomainName');
|
||||
our $server = $SystemName . "." . $DomainName ;
|
||||
|
||||
# fields and records separator for sub records
|
||||
use constant FS => "," ;
|
||||
use constant RS => ";" ;
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
=pod
|
||||
|
||||
=head1 NAME
|
||||
|
||||
esmith::FormMagick::Panels::git - Git
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use esmith::FormMagick::Panels::git
|
||||
|
||||
my $panel = esmith::FormMagick::Panel::git->new();
|
||||
$panel->display();
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
This module is the backend to the git panel, responsible
|
||||
for supplying all functions used by that panel. It is a subclass
|
||||
of esmith::FormMagick itself, so it inherits the functionality
|
||||
of a FormMagick object.
|
||||
|
||||
=cut
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# new()
|
||||
# Exactly as for esmith::FormMagick
|
||||
|
||||
sub new
|
||||
{
|
||||
my $proto = shift;
|
||||
my $class = ref($proto) || $proto;
|
||||
my $self = esmith::FormMagick::new($class);
|
||||
$self->{calling_package} = (caller)[0];
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
### HTML GENERATION ROUTINES
|
||||
#######################################################################
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_home_print_logo()
|
||||
# Print the Git logo image with a link reference to http://git-scm.com
|
||||
|
||||
sub git_home_print_logo
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<p><a href="http://git-scm.com" target="_blank"><img src="/server-common/git-logo.png" alt="GIT" style="float:right;margin:0 0 0 5px;" /></a></p>);
|
||||
return undef;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_home_print_description()
|
||||
|
||||
sub git_home_print_description
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr>);
|
||||
print qq(<td><p>) . $self->localise('GIT_HOME_DESCRIPTION', {serverName => $server} ) . qq(</p></td>);
|
||||
print qq(<td><a href="http://git-scm.com" target="_blank"><img src="/server-common/git-logo.png" alt="GIT" style="float:right;margin:0 0 0 5px;" /></a></td>);
|
||||
print qq(</tr>);
|
||||
return undef;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_home_print_add_repository_button()
|
||||
# Prints a button to get to the add a new repository screen
|
||||
|
||||
sub git_home_print_add_repository_button
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr><td colspan="2"><a class="button-like" href="git?page=0&page_stack=&Next=Next&wherenext=GitCreateModify">) . $self->localise('GIT_REPOSITORY_ADD_BUTTON') . qq(</a></td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_home_print_configure_button()
|
||||
# Prints a button to get to the configuration screen
|
||||
|
||||
sub git_home_print_configure_button
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr><td colspan="2"><a class="button-like" href="git?page=0&page_stack=&Next=Next&wherenext=GitConfigure">) . $self->localise('GIT_CONFIGURE_BUTTON') . qq(</a></td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_home_print_repository_table()
|
||||
# This function displays a table of repositories on the system
|
||||
# including the links to modify and remove the repository
|
||||
|
||||
sub git_home_print_repository_table
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
my $name = $self->localise('GIT_REPOSITORY_NAME');
|
||||
my $description = $self->localise('DESCRIPTION');
|
||||
my $access = $self->localise('GIT_ALLOW_FROM');
|
||||
my $pull = $self->localise('GIT_PULL_ACCESS');
|
||||
my $push = $self->localise('GIT_PUSH_ACCESS');
|
||||
my $modify = $self->localise('MODIFY');
|
||||
my $remove = $self->localise('REMOVE');
|
||||
my $action_h = $self->localise('ACTION');
|
||||
|
||||
my @repositories = $git_db->get_all_by_prop('type' => 'repository');
|
||||
|
||||
unless( scalar @repositories )
|
||||
{
|
||||
print qq(<tr><td colspan="2"><p>) . $self->localise('GIT_NOTIFY_NO_REPOSITORIES') . qq(</a></td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
print qq(<tr><td colspan="2"><p>) . $self->localise('GIT_REPOSITORY_LIST_DESCRIPTION') . qq(</a></td></tr>);
|
||||
|
||||
print qq(<tr><td colspan="2">);
|
||||
print $q->start_table({-CLASS => "sme-border"}),"\n";
|
||||
print $q->Tr ( esmith::cgi::genSmallCell($q, $name, "header"),
|
||||
esmith::cgi::genSmallCell($q, $description, "header"),
|
||||
esmith::cgi::genSmallCell($q, $access, "header"),
|
||||
esmith::cgi::genSmallCell($q, $pull, "header"),
|
||||
esmith::cgi::genSmallCell($q, $push, "header"),
|
||||
esmith::cgi::genSmallCell($q, $action_h, "header", 2) ), "\n";
|
||||
|
||||
my $scriptname = basename($0);
|
||||
|
||||
foreach my $repository (@repositories)
|
||||
{
|
||||
my $repo_name = $repository->key();
|
||||
my $repo_description = $repository->prop('description');
|
||||
my $repo_allow_access_from = $self->git_repository_access_allowed_from($repository->prop('allow_access_from'));
|
||||
|
||||
my $repo_pull = $self->git_repository_print_groups_and_users( $repository->prop('pull_groups'),
|
||||
$repository->prop('pull_users') );
|
||||
my $repo_push = $self->git_repository_print_groups_and_users( $repository->prop('push_groups'),
|
||||
$repository->prop('push_users') );
|
||||
|
||||
my $params = $self->build_repository_cgi_params($repo_name, $repository->props());
|
||||
my $href = "$scriptname?$params&action=modify&wherenext=";
|
||||
my $actionModify = ' ' . $q->a({href => "${href}GitCreateModify"},$modify) . ' ';
|
||||
my $actionRemove = ' ' . $q->a({href => "${href}GitRemove"}, $remove) . ' ';
|
||||
my $repo_url = $q->a({href => "https://" . $SystemName . "."
|
||||
. $DomainName . "/git/"
|
||||
. $repo_name . ".git" }, $repo_name . ".git" );
|
||||
|
||||
print $q->Tr ( esmith::cgi::genSmallCell($q, $repo_url, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $repo_description, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $repo_allow_access_from, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $repo_pull, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $repo_push, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $actionModify, "normal"),
|
||||
esmith::cgi::genSmallCell($q, $actionRemove, "normal") ), "\n";
|
||||
}
|
||||
|
||||
print $q->end_table,"\n";
|
||||
print qq(</td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_print_privileges_note()
|
||||
# Screen: repository
|
||||
|
||||
sub git_repository_print_privileges_note
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr><td colspan="2">) . $self->localise('GIT_PRIVILEGES_NOTE') . qq(</td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_print_save_or_add_button()
|
||||
# Prints the ADD button when a new repository is addded and the SAVE buttom
|
||||
# whem modifications are made.
|
||||
|
||||
sub git_repository_print_save_or_add_button
|
||||
{
|
||||
my ($self) = @_;
|
||||
my $action = $self->cgi->param("action") || '';
|
||||
|
||||
if( $action eq "modify" ) {
|
||||
$self->print_button("SAVE");
|
||||
} else {
|
||||
$self->print_button("ADD");
|
||||
}
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
# HELPER FUNCTIONS FOR THE PANEL
|
||||
#######################################################################
|
||||
#
|
||||
# Routines for modifying the database and signaling events
|
||||
# from the server-manager panel
|
||||
|
||||
=head2 build_repository_cgi_params($self, $repositoryName, %oldprops)
|
||||
|
||||
Constructs the parameters for the links in the repository table
|
||||
|
||||
=cut
|
||||
|
||||
sub build_repository_cgi_params
|
||||
{
|
||||
my ($self, $repositoryName, %oldprops) = @_;
|
||||
|
||||
#$oldprops{'description'} = $oldprops{Name};
|
||||
#delete $oldprops{Name};
|
||||
|
||||
my %props = (
|
||||
page => 0,
|
||||
page_stack => "",
|
||||
#".id" => $self->{cgi}->param('.id') || "",
|
||||
name => $repositoryName,
|
||||
#%oldprops
|
||||
);
|
||||
|
||||
return $self->props_to_query_string(\%props);
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
*wherenext = \&CGI::FormMagick::wherenext;
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_group_list()
|
||||
# Returns a hash of groups for the Create/Modify screen's group
|
||||
# field's drop down list. It includes the special groups 'admin'
|
||||
# for administrators and 'shared' for everybody on the local system.
|
||||
|
||||
sub git_repository_group_list
|
||||
{
|
||||
my $self = shift;
|
||||
my @groups = $account_db->groups();
|
||||
|
||||
my %groups = ( admin => $self->localise('GIT_GROUP_ADMINISTRATORS') ." (admin)",
|
||||
shared => $self->localise('GIT_GROUP_EVERYBODY') ." (shared)" );
|
||||
|
||||
foreach my $group (@groups)
|
||||
{
|
||||
$groups{ $group->key() } = $group->prop('Description')." (".$group->key.")";
|
||||
}
|
||||
|
||||
return \%groups;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_user_list()
|
||||
# Returns a hash of users for the Create/Modify screen's user field's
|
||||
# drop down list, It explicitly adds the special user 'admin' as this
|
||||
# user is not listed in the accounds database.
|
||||
|
||||
sub git_repository_user_list
|
||||
{
|
||||
my $self = shift;
|
||||
my @users = $account_db->users();
|
||||
my %users = ( admin => $self->localise('GIT_USER_ADMINISTRATOR') ." (admin)" );
|
||||
|
||||
foreach my $user (@users)
|
||||
{
|
||||
$users{ $user->key() } = $user->prop('LastName').", ". $user->prop('FirstName')." (". $user->key.")";
|
||||
}
|
||||
|
||||
return \%users;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
sub git_repository_print_name_field
|
||||
{
|
||||
my $self = shift;
|
||||
my $in = $self->{cgi}->param('name') || '';
|
||||
my $action = $self->{cgi}->param('action') || '';
|
||||
my $maxLength = $config_db->get_prop('git', 'maxNameLength' ) || '31';
|
||||
|
||||
if ($action eq 'modify' and $in) {
|
||||
my $repository = $git_db->get($in);
|
||||
print qq(<tr><td colspan="2">) . $self->localise('GIT_NAME_FIELD_MODIFY_DESC', {maxLength => $maxLength}) . qq(</td></tr>);
|
||||
print qq(<tr><td class="sme-noborders-label">) . $self->localise('NAME') . qq(</td>\n);
|
||||
print qq(
|
||||
<td class="sme-noborders-content">
|
||||
<input type="text" name="name" value="$in.git" disabled>
|
||||
<input type="hidden" name="action" value="modify">
|
||||
</td>
|
||||
);
|
||||
|
||||
# Read the values for each field from the git db and store
|
||||
# them in the cgi object so our form will have the correct
|
||||
# info displayed.
|
||||
my $q = $self->{cgi};
|
||||
if( $repository ) {
|
||||
$q->param(-name=>'description', -value=>$repository->prop('description'));
|
||||
$q->param(-name=>'allow_access_from', -value=>$repository->prop('allow_access_from'));
|
||||
$q->param(-name=>'pull_groups', -value=>join(FS, split(FS, $repository->prop('pull_groups'))));
|
||||
$q->param(-name=>'pull_users', -value=>join(FS, split(FS, $repository->prop('pull_users'))));
|
||||
$q->param(-name=>'push_groups', -value=>join(FS, split(FS, $repository->prop('push_groups'))));
|
||||
$q->param(-name=>'push_users', -value=>join(FS, split(FS, $repository->prop('push_users'))));
|
||||
}
|
||||
} else {
|
||||
print qq(<tr><td colspan="2">) . $self->localise('GIT_NAME_FIELD_CREATE_DESC', {maxLength => $maxLength}) . qq(</td></tr>);
|
||||
print qq(<tr><td class="sme-noborders-label">) . $self->localise('NAME') . qq(</td>\n);
|
||||
print qq(
|
||||
<td>
|
||||
<input type="text" name="name" value="$in">
|
||||
<input type="hidden" name="action" value="create">
|
||||
</td>
|
||||
);
|
||||
}
|
||||
print qq(</tr>\n);
|
||||
return undef;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_print_description_note()
|
||||
# Screen: repository
|
||||
|
||||
sub git_repository_print_description_note
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr><td colspan="2">) . $self->localise('GIT_DESCRIPTION_FIELD_DESC') . qq(</td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_print_access_note()
|
||||
# Screen: repository
|
||||
|
||||
sub git_repository_print_access_note
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
|
||||
print qq(<tr><td colspan="2">) . $self->localise('GIT_ACCESS_FIELD_DESC') . qq(</td></tr>);
|
||||
return "";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# get_config_value ITEM
|
||||
# A simple accessor for esmith::ConfigDB::Record::value
|
||||
|
||||
sub get_config_value
|
||||
{
|
||||
my $fm = shift;
|
||||
my $item = shift;
|
||||
my $record = $config_db->get($item);
|
||||
if ($record)
|
||||
{
|
||||
return $record->value();
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
# git_repository_print_domains()
|
||||
|
||||
# When this server has more than one domain this function takes
|
||||
# the list of domains and returns a string of html checkboxes
|
||||
# for all these domains.
|
||||
|
||||
# Those domains that are listed with this git environment
|
||||
# will have their checkbox checked.
|
||||
|
||||
# sub git_repository_print_domains
|
||||
# {
|
||||
# # Retrieve the Git account name from the CGI parameters
|
||||
# my $self = shift;
|
||||
# my $name = $self->{'cgi'}->param('name');
|
||||
# my $action = $self->{'cgi'}->param("action") || '';
|
||||
# my $out = "";
|
||||
|
||||
# # Get a full list of all the domains on this server.
|
||||
# my @domains = $DomainsDB->get_all_by_prop( type => 'domain' );
|
||||
# my $numdomains = @domains;
|
||||
|
||||
# # If there is more than one domain, we generate a list
|
||||
# # of checkboxes. Otherwise we just show the primary domain.
|
||||
# if ($numdomains > 1) {
|
||||
|
||||
# # Get the list of the Domains for which Git is active.
|
||||
# my $git_domains_list = "";
|
||||
# if ($AccountsDB->get($name)) {
|
||||
# $git_domains_list = $AccountsDB->get($name)->prop('Domains');
|
||||
# }
|
||||
|
||||
# # Split the comma separated list into the individual bits.
|
||||
# my %git_domains;
|
||||
# foreach my $git_domain ( split ( /,/, $git_domains_list ) ) {
|
||||
# $git_domains{$git_domain} = 1;
|
||||
# }
|
||||
|
||||
# # Now generate the table of domains with a checkbox in front of it.
|
||||
# # If the domain is in our listed domains for Git, the
|
||||
# # checkbox will show checked.
|
||||
# $out = " <tr>\n";
|
||||
# $out .= " <td colspan=2>" . $fm->localise('GIT_FIELD_DOMAINS_DESCRIPTION') . "</td>";
|
||||
# $out .= " </tr>\n";
|
||||
# $out .= " <tr>\n";
|
||||
# $out .= " <td class=\"sme-noborders-label\">" . $fm->localise('GIT_FIELD_DOMAINS') . "</td>\n";
|
||||
# $out .= " <td>\n";
|
||||
# $out .= " <table border='0' cellspacing='0' cellpadding='0'>\n";
|
||||
# $out .= " <tr>\n";
|
||||
|
||||
# foreach my $domain (sort @domains) {
|
||||
# # If this is a ADD form, we default check all domains, otherwise only
|
||||
# # those that are in our Git configuration.
|
||||
# my $checked = "";
|
||||
# if ( $action eq 'modify' ) {
|
||||
# if ( $git_domains{ $domain->key() } ) {
|
||||
# $checked = "checked";
|
||||
# }
|
||||
# } else {
|
||||
# $checked = "checked";
|
||||
# }
|
||||
# $out .= " <tr>\n";
|
||||
# $out .= " <td><input type=\"checkbox\" name=\"gitDomains\" $checked value=\"" . $domain->key . "\"></td>\n";
|
||||
# $out .= " <td>" . $domain->key . "</td>\n";
|
||||
# $out .= " </tr>\n";
|
||||
# }
|
||||
|
||||
# $out .= " </table>\n";
|
||||
# $out .= " </td>\n";
|
||||
# $out .= " </tr>\n";
|
||||
# }
|
||||
# else
|
||||
# {
|
||||
# # We only have a single domain, so we just show this domain but without the
|
||||
# # checkbox (so it can't be unchecked).
|
||||
# my $domainname = $ConfigDB->get('DomainName')->value();
|
||||
# $out = " <tr>\n";
|
||||
# $out .= " <td colspan=2>" . $fm->localise('GIT_FIELD_DOMAIN_DESCRIPTION') . "</td>";
|
||||
# $out .= " </tr>\n";
|
||||
# $out .= " <tr>\n";
|
||||
# $out .= " <td class=\"sme-noborders-label\">" . $fm->localise('GIT_FIELD_DOMAIN') . "</td>\n";
|
||||
# $out .= " <td><input type=\"hidden\" name=\"tracDomains\" value=\"" . $domainname . "\">";
|
||||
# $out .= $domainname . "</td>\n";
|
||||
# $out .= " </tr>\n";
|
||||
# }
|
||||
|
||||
# return $out;
|
||||
# }
|
||||
|
||||
|
||||
#######################################################################
|
||||
# THE ROUTINES THAT ACTUALLY DO THE WORK
|
||||
#######################################################################
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_handle_configuration_update()
|
||||
|
||||
sub git_handle_configuration_update
|
||||
{
|
||||
my ($self) = @_;
|
||||
|
||||
if( system ( "/sbin/e-smith/signal-event", "git-modify" ) == 0 ) {
|
||||
$self->success("GIT_SUCCESS_CONFIGURATION_UPDATE");
|
||||
} else {
|
||||
$self->error("GIT_ERROR_CONFIGURATION_UPDATE");
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_handle_create_or_modify_repository()
|
||||
# Determine whether to modify or add the git repository
|
||||
|
||||
sub git_handle_create_or_modify_repository
|
||||
{
|
||||
my ($self) = @_;
|
||||
|
||||
my $action = $self->cgi->param("action") || '';
|
||||
if( $action eq "create") {
|
||||
$self->git_handle_create_repository();
|
||||
} else {
|
||||
$self->git_handle_modify_repository();
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_handle_create_repository()
|
||||
# Handle the create event for the git repository
|
||||
|
||||
sub git_handle_create_repository
|
||||
{
|
||||
my ($self) = @_;
|
||||
my $repositoryName = $self->cgi->param('name');
|
||||
my $msg;
|
||||
|
||||
$msg = $self->git_repository_validate_name($repositoryName);
|
||||
unless( $msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
$msg = $self->git_repository_validate_name_length($repositoryName);
|
||||
unless( $msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
$msg = $self->git_repository_validate_name_does_not_exist($repositoryName);
|
||||
unless( $msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
$msg = $self->validate_radio($self->cgi->param('allow_access_from'));
|
||||
unless( $msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
my $groups_allowed_to_pull = "";
|
||||
my @pull_groups = $self->cgi->param('pull_groups');
|
||||
foreach my $pull_group (@pull_groups) {
|
||||
if ($groups_allowed_to_pull) {
|
||||
$groups_allowed_to_pull .= "," . $pull_group;
|
||||
} else {
|
||||
$groups_allowed_to_pull = $pull_group;
|
||||
}
|
||||
}
|
||||
|
||||
my $users_allowed_to_pull = "";
|
||||
my @pull_users = $self->cgi->param('pull_users');
|
||||
foreach my $pull_user (@pull_users) {
|
||||
if ($users_allowed_to_pull) {
|
||||
$users_allowed_to_pull .= "," . $pull_user;
|
||||
} else {
|
||||
$users_allowed_to_pull = $pull_user;
|
||||
}
|
||||
}
|
||||
|
||||
my $groups_allowed_to_push = "";
|
||||
my @push_groups = $self->cgi->param('push_groups');
|
||||
foreach my $push_group (@push_groups) {
|
||||
if ($groups_allowed_to_push) {
|
||||
$groups_allowed_to_push .= "," . $push_group;
|
||||
} else {
|
||||
$groups_allowed_to_push = $push_group;
|
||||
}
|
||||
}
|
||||
|
||||
my $users_allowed_to_push = "";
|
||||
my @push_users = $self->cgi->param('push_users');
|
||||
foreach my $push_user (@push_users) {
|
||||
if( $users_allowed_to_push ) {
|
||||
$users_allowed_to_push .= "," . $push_user;
|
||||
} else {
|
||||
$users_allowed_to_push = $push_user;
|
||||
}
|
||||
}
|
||||
|
||||
# The new_record below will fail if the named repository already exists
|
||||
# which can be the case when the previous one was deleted but not properly
|
||||
# cleaned up.
|
||||
|
||||
if( my $repository = $git_db->new_record($repositoryName,
|
||||
{
|
||||
description => $self->cgi->param('description'),
|
||||
pull_groups => "$groups_allowed_to_pull",
|
||||
pull_users => "$users_allowed_to_pull",
|
||||
push_groups => "$groups_allowed_to_push",
|
||||
push_users => "$users_allowed_to_push",
|
||||
allow_access_from => $self->cgi->param('allow_access_from'),
|
||||
type => 'repository',
|
||||
} ) ) {
|
||||
# Untaint $name before use in system()
|
||||
$repositoryName =~ /(.+)/;
|
||||
$repositoryName = $1;
|
||||
if( system ("/sbin/e-smith/signal-event", "git-repository-create", $repositoryName) == 0 ) {
|
||||
$self->success("GIT_SUCCESS_CREATED_REPOSITORY");
|
||||
} else {
|
||||
$self->error("GIT_ERROR_CREATING_REPOSITORY");
|
||||
}
|
||||
} else {
|
||||
$self->error('GIT_ERROR_CANT_CREATE_REPOSITORY');
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_handle_modify_repository()
|
||||
# Handle the modify event for the repository
|
||||
|
||||
sub git_handle_modify_repository
|
||||
{
|
||||
my ($self) = @_;
|
||||
my $repositoryName = $self->cgi->param('name');
|
||||
my $msg;
|
||||
|
||||
$msg = $self->git_repository_validate_name($repositoryName);
|
||||
unless ($msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
$msg = $self->validate_radio($self->cgi->param('allow_access_from'));
|
||||
unless( $msg eq "OK" ) {
|
||||
return $self->error($msg);
|
||||
}
|
||||
|
||||
my $groups_allowed_to_pull = "";
|
||||
my @pull_groups = $self->cgi->param('pull_groups');
|
||||
foreach my $pull_group (@pull_groups) {
|
||||
if( $groups_allowed_to_pull ) {
|
||||
$groups_allowed_to_pull .= "," . $pull_group;
|
||||
} else {
|
||||
$groups_allowed_to_pull = $pull_group;
|
||||
}
|
||||
}
|
||||
|
||||
my $users_allowed_to_pull = "";
|
||||
my @pull_users = $self->cgi->param('pull_users');
|
||||
foreach my $pull_user (@pull_users) {
|
||||
if( $users_allowed_to_pull ) {
|
||||
$users_allowed_to_pull .= "," . $pull_user;
|
||||
} else {
|
||||
$users_allowed_to_pull = $pull_user;
|
||||
}
|
||||
}
|
||||
|
||||
my $groups_allowed_to_push = "";
|
||||
my @push_groups = $self->cgi->param('push_groups');
|
||||
foreach my $push_group (@push_groups) {
|
||||
if( $groups_allowed_to_push ) {
|
||||
$groups_allowed_to_push .= "," . $push_group;
|
||||
} else {
|
||||
$groups_allowed_to_push = $push_group;
|
||||
}
|
||||
}
|
||||
|
||||
my $users_allowed_to_push = "";
|
||||
my @push_users = $self->cgi->param('push_users');
|
||||
foreach my $push_user (@push_users) {
|
||||
if( $users_allowed_to_push ) {
|
||||
$users_allowed_to_push .= "," . $push_user;
|
||||
} else {
|
||||
$users_allowed_to_push = $push_user;
|
||||
}
|
||||
}
|
||||
|
||||
if( my $repository = $git_db->get($repositoryName) ) {
|
||||
if( $repository->prop('type') eq 'repository' ) {
|
||||
$repository->merge_props( description => $self->cgi->param('description'),
|
||||
pull_groups => "$groups_allowed_to_pull",
|
||||
pull_users => "$users_allowed_to_pull",
|
||||
push_groups => "$groups_allowed_to_push",
|
||||
push_users => "$users_allowed_to_push",
|
||||
allow_access_from => $self->cgi->param('allow_access_from'),
|
||||
type => 'repository',
|
||||
);
|
||||
|
||||
# Untaint $name before use in system()
|
||||
$repositoryName =~ /(.+)/;
|
||||
$repositoryName = $1;
|
||||
if( system ("/sbin/e-smith/signal-event", "git-repository-modify", $repositoryName) == 0 ) {
|
||||
$self->success("GIT_SUCCESS_MODIFIED_REPOSITORY");
|
||||
} else {
|
||||
$self->error("GIT_ERROR_MODIFYING_REPOSITORY");
|
||||
}
|
||||
} else {
|
||||
$self->error('GIT_ERROR_CANT_FIND_REPOSITORY');
|
||||
}
|
||||
} else {
|
||||
$self->error('GIT_ERROR_CANT_FIND_REPOSITORY');
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_handle_remove_repository()
|
||||
# Handle the remove event for the repository
|
||||
|
||||
sub git_handle_remove_repository
|
||||
{
|
||||
my ($self) = @_;
|
||||
my $repositoryName = $self->cgi->param('name');
|
||||
if( my $repository = $git_db->get($repositoryName) ) {
|
||||
if( $repository->prop('type') eq 'repository' ) {
|
||||
$repository->set_prop('type', 'repository-deleted');
|
||||
|
||||
# Untaint $repository_name before use in system() ????
|
||||
$repositoryName =~ /(.+)/;
|
||||
$repositoryName = $1;
|
||||
if( system ("/sbin/e-smith/signal-event", "git-repository-delete", $repositoryName) == 0 ) {
|
||||
$self->success("GIT_SUCCESS_DELETED_REPOSITORY");
|
||||
$repository->delete();
|
||||
} else {
|
||||
$self->error("GIT_ERROR_DELETING_REPOSITORY");
|
||||
}
|
||||
} else {
|
||||
$self->error('GIT_ERROR_CANT_FIND_REPOSITORY');
|
||||
}
|
||||
} else {
|
||||
$self->error('GIT_ERROR_CANT_FIND_REPOSITORY');
|
||||
}
|
||||
$self->wherenext('First');
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
# VALIDATION ROUTINES
|
||||
#######################################################################
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# getExtraParams()
|
||||
# Sets variables used in the lexicon to their required values.
|
||||
|
||||
sub getExtraParams
|
||||
{
|
||||
my $self = shift;
|
||||
my $q = $self->{cgi};
|
||||
my $repositoryName = $q->param('name');
|
||||
my $repositoryDescription = '';
|
||||
|
||||
if($repositoryName ) {
|
||||
my $repository = $git_db->get($repositoryName);
|
||||
if( $repository ) {
|
||||
$repositoryDescription = $repository->prop('description');
|
||||
}
|
||||
}
|
||||
return (name => $repositoryName, description => $repositoryDescription);
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_validate_name()
|
||||
#
|
||||
# Checks that the name supplied does not contain any unacceptable chars.
|
||||
# Returns OK on success or a localised error message otherwise.
|
||||
|
||||
sub git_repository_validate_name
|
||||
{
|
||||
my( $self, $repositoryName ) = @_;
|
||||
unless( $repositoryName =~ /^([A-Za-z][.\_\-A-Za-z0-9]*)$/ ) {
|
||||
return $self->localise('GIT_ERROR_NAME_HAS_INVALID_CHARS',
|
||||
{repositoryName => $repositoryName});
|
||||
}
|
||||
return "OK";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_access_allowed_from()
|
||||
#
|
||||
# Checks that the name supplied does not contain any unacceptable chars.
|
||||
# Returns OK on success or a localised error message otherwise.
|
||||
|
||||
sub git_repository_access_allowed_from
|
||||
{
|
||||
my ($self, $accessAllowedFrom) = @_;
|
||||
|
||||
if( $accessAllowedFrom eq 'internet' ) {
|
||||
return $self->localise( 'GIT_ACCESS_ALLOWED_FROM_INTERNET' );
|
||||
} elsif( $accessAllowedFrom eq 'local' ) {
|
||||
return $self->localise( 'GIT_ACCESS_ALLOWED_FROM_LOCAL' );
|
||||
} else {
|
||||
return $self->localise( 'GIT_ACCESS_ALLOWED_FROM_CONFIG_ERROR' );
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_print_groups_and_users()
|
||||
#
|
||||
# Formats a print string for use in the repository table listing the groups and users
|
||||
# that are allowed access. Groups are printed in bold. When there are no groups or users
|
||||
# it returns Anonymous.
|
||||
|
||||
sub git_repository_print_groups_and_users
|
||||
{
|
||||
my ($self, $groups, $users) = @_;
|
||||
|
||||
unless( $groups || $users ) {
|
||||
return "<i>" . $self->localise( 'GIT_ANONYMOUS' ) . "</i>";
|
||||
}
|
||||
|
||||
my $print_groups = "";
|
||||
if( $groups ) {
|
||||
$print_groups = "<b>" . join("<br/>", split(FS, $groups)) . "</b><br/>";
|
||||
}
|
||||
|
||||
my $print_users = "";
|
||||
if( $users ) {
|
||||
$print_users = join("<br/>", split(FS, $users));
|
||||
}
|
||||
|
||||
return $print_groups . $print_users;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_validate_name_does_not_exist()
|
||||
# Check the proposed repository name for clashes with existing respositories.
|
||||
|
||||
sub git_repository_validate_name_does_not_exist
|
||||
{
|
||||
my( $self, $repositoryName ) = @_;
|
||||
my $repository = $git_db->get( $repositoryName );
|
||||
|
||||
if( defined $repository) {
|
||||
my $type = $repository->prop('type');
|
||||
if( $type eq "repository" ) {
|
||||
return $self->localise( 'GIT_ERROR_ALREADY_EXISTS', { repositoryName => $repositoryName } );
|
||||
}
|
||||
}
|
||||
# Repository does not exist yet.
|
||||
return 'OK';
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_validate_name_length()
|
||||
#
|
||||
# Checks the length of a given repository name against the maximum set in the
|
||||
# maxAcctNameLength record of the configuration database. Defaults to a
|
||||
# maximum length of $self->{defaultMaxLength} if nothing is set in the
|
||||
# config db.
|
||||
sub git_repository_validate_name_length
|
||||
{
|
||||
my( $self, $data ) = @_;
|
||||
$config_db->reload();
|
||||
my $max;
|
||||
if( my $max_record = $config_db->get_prop( 'git', 'maxNameLength' ) ) {
|
||||
$max = $max_record;
|
||||
} else {
|
||||
$max = 31;
|
||||
}
|
||||
|
||||
if( length($data) <= $max ) {
|
||||
return "OK";
|
||||
} else {
|
||||
return $self->localise( "GIT_ERRROR_NAME_TOO_LONG",
|
||||
{ repositoryName => $data,
|
||||
maxRepositoryNameLength => $max } );
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# git_repository_validate_description()
|
||||
#
|
||||
# Checks that the description supplied does not contain any unacceptable chars.
|
||||
# Returns OK on success or a localised error message otherwise.
|
||||
sub git_repository_validate_description
|
||||
{
|
||||
my( $self, $repositoryDescription ) = @_;
|
||||
unless( $repositoryDescription =~ /^([\w\s\_\.\-]*)$/ ) {
|
||||
return $self->localise('GIT_ERROR_DESCRIPTION_HAS_INVALID_CHARS',
|
||||
{ repositoryDescription => $repositoryDescription } );
|
||||
}
|
||||
return "OK";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# validate_radio()
|
||||
# Checks wether a value is checked for a radio button
|
||||
|
||||
sub validate_radio
|
||||
{
|
||||
my( $self, $acctName ) = @_;
|
||||
unless( $acctName ne '' ) {
|
||||
return $self->localise( 'GIT_ERROR_RADIO_VALUE_NOT_CHECKED',
|
||||
{ acctName => $acctName } );
|
||||
}
|
||||
return "OK";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
1;
|
143
root/usr/share/perl5/vendor_perl/esmith/GitDB.pm
Executable file
143
root/usr/share/perl5/vendor_perl/esmith/GitDB.pm
Executable file
@ -0,0 +1,143 @@
|
||||
#----------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2012 - Marco Hess <marco.hess@through-ip.com>
|
||||
#
|
||||
# This file is part of the "Git Repositories" panel in the
|
||||
# SME Server server-manager panel to configure git repositories.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
package esmith::GitDB;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use esmith::db;
|
||||
use esmith::AccountsDB;
|
||||
|
||||
use vars qw( $AUTOLOAD @ISA );
|
||||
|
||||
use esmith::DB::db;
|
||||
@ISA = qw(esmith::DB::db);
|
||||
|
||||
=head1 NAME
|
||||
|
||||
esmith::GitDB - interface to the Git respositories database
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use esmith::GitDB;
|
||||
my $g = esmith::GitDB->open;
|
||||
|
||||
my @repos = $g->repositories();
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
This module provides an abstracted interface to the Git repositiries
|
||||
database. The Git repositories are maintained in a separate database
|
||||
so the Git repositories have their own name space and won't clash
|
||||
with the accounts database entries such as ibays, pseudonyms and users.
|
||||
|
||||
=cut
|
||||
|
||||
our $VERSION = sprintf '%d.%03d', q$Revision: 1.0 $ =~ /: (\d+).(\d+)/;
|
||||
|
||||
=head2 open()
|
||||
|
||||
Loads an existing git database and returns an esmith::GitDB
|
||||
object representing it.
|
||||
|
||||
=cut
|
||||
|
||||
sub open {
|
||||
my($class, $file) = @_;
|
||||
$file = $file || $ENV{ESMITH_GIT_DB} || "git";
|
||||
return $class->SUPER::open($file);
|
||||
}
|
||||
|
||||
sub open_ro {
|
||||
my($class, $file) = @_;
|
||||
$file = $file || $ENV{ESMITH_GIT_DB} || "git";
|
||||
return $class->SUPER::open_ro($file);
|
||||
}
|
||||
|
||||
sub AUTOLOAD {
|
||||
my $self = shift;
|
||||
my ($called_sub_name) = ($AUTOLOAD =~ m/([^:]*)$/);
|
||||
my @types = qw( repositories );
|
||||
if( grep /^$called_sub_name$/, @types ) {
|
||||
$called_sub_name =~ s/s$//g; # de-pluralize
|
||||
return $self->get_all_by_prop(type => qw( repository ));
|
||||
}
|
||||
}
|
||||
|
||||
sub effective_users_list_from {
|
||||
my($class,$groups1, $users1,$groups2, $users2) = @_;
|
||||
|
||||
### Generate effective list of users from the groups and individual users combined ###
|
||||
my @effective_users_list;
|
||||
|
||||
### Collect users listed for the named groups
|
||||
if( $groups1 || $groups2 ) {
|
||||
my @groups;
|
||||
if( $groups1 ) {
|
||||
push @groups, split ( /,/, $groups1 );
|
||||
}
|
||||
if( $groups2 ) {
|
||||
push @groups, split ( /,/, $groups2 );
|
||||
}
|
||||
my $accounts_db = esmith::AccountsDB->open_ro()
|
||||
or die( "Failed to open Accounts database : $!. The database file may not be readable by this user.\n" );
|
||||
foreach my $group (@groups) {
|
||||
if( $group eq 'admin' ) {
|
||||
push @effective_users_list, 'admin';
|
||||
} elsif( $group eq 'shared' ) {
|
||||
push @effective_users_list, $_->key foreach( $accounts_db->users() );
|
||||
} else {
|
||||
my $record = $accounts_db->get($group);
|
||||
if ($record) {
|
||||
my $members = $record->prop('Members') || "";
|
||||
if (length($members) > 0) {
|
||||
push @effective_users_list, split (/,/, $members);
|
||||
}
|
||||
}
|
||||
undef $record;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### Combine individual users into the list generated so far
|
||||
if( $users1 ) {
|
||||
push @effective_users_list, split ( /,/, $users1 );
|
||||
}
|
||||
if( $users2 ) {
|
||||
push @effective_users_list, split ( /,/, $users2 );
|
||||
}
|
||||
|
||||
### When there is more than one entry, sort it
|
||||
if( @effective_users_list > 1 ) {
|
||||
@effective_users_list = sort(@effective_users_list);
|
||||
}
|
||||
|
||||
### Ensure we only have unique entries
|
||||
my $effective_users_list;
|
||||
my $prev = '';
|
||||
@effective_users_list = grep( $_ ne $prev && (($prev) = $_), @effective_users_list );
|
||||
$effective_users_list = join( " ", @effective_users_list ) || '';
|
||||
undef @effective_users_list;
|
||||
|
||||
return $effective_users_list;
|
||||
}
|
||||
|
218
smeserver-git.spec
Executable file
218
smeserver-git.spec
Executable file
@ -0,0 +1,218 @@
|
||||
%define name smeserver-git
|
||||
%define version 1.2.0
|
||||
%define release 13
|
||||
Summary: Centralised Git repositories with setup and configuration through SME Server admin panels.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}%{?dist}
|
||||
Distribution: SME Server
|
||||
License: GNU GPL version 2
|
||||
URL: https://wiki.koozali.org/Git
|
||||
Group: SMEserver/addon
|
||||
Source: smeserver-git-%{version}.tar.xz
|
||||
Packager: Marco Hess <marco.hess@through-ip.com>
|
||||
BuildArchitectures: noarch
|
||||
BuildRoot: /var/tmp/%{name}-%{version}
|
||||
BuildRequires: e-smith-devtools
|
||||
Requires: e-smith-release >= 10.0
|
||||
Requires: e-smith-apache >= 2.6.0-19
|
||||
Requires: git
|
||||
AutoReqProv: no
|
||||
|
||||
%description
|
||||
smeserver-git enables centralised git repositories on an SME server and enables
|
||||
access to these repositories through HTTP/HTTPS. Repositories are created and
|
||||
managed through a server-manager panel that also configures the access permissions
|
||||
to the repositories based on the existing SME users and groups. The package
|
||||
installs and enables the git server on the current host like in
|
||||
host.com/git. Repositories are then available as https://host.com/git/gitrepo.git.
|
||||
Originally brought by Marco Hess http://www.through-ip.com
|
||||
|
||||
%changelog
|
||||
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.2.0-13.sme
|
||||
- Roll up patches and move to git repo [SME: 12338]
|
||||
|
||||
* Sat Sep 07 2024 BogusDateBot
|
||||
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||
by assuming the date is correct and changing the weekday.
|
||||
|
||||
* Thu Sep 05 2024 Terry Fage <terry@fage.id.au> 1.2.0-12.sme
|
||||
- apply locale 2024-09-05.patch
|
||||
|
||||
* Fri Mar 24 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-11.sme
|
||||
- fix system and domaine name not taken into account in manager [SME: 9629]
|
||||
|
||||
* Fri Mar 24 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-10.sme
|
||||
- fix not allowing dot in repo name [SME: 12163]
|
||||
|
||||
* Fri Mar 24 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-9.sme
|
||||
- fix debug loglevel [SME: 11665]
|
||||
|
||||
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-8.sme
|
||||
- update to httpd 2.4 syntax [SME: 12048]
|
||||
fix Argument for 'Require all' must be 'granted' or 'denied'
|
||||
|
||||
* Sun Aug 22 2021 Terry Fage <terry.fage@gmail.com> 1.2.0-5.sme
|
||||
- apply locale 2021-08-22.patch
|
||||
|
||||
* Fri Mar 26 2021 Brian Read <brianr@bjsystems.co.uk> 1.2.0-4.sme
|
||||
- Add Update event to createlinks [SME: 11286 ]
|
||||
|
||||
* Sun Dec 20 2020 BogusDateBot
|
||||
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||
- by assuming the date is correct and changing the weekday.
|
||||
- Sun May 21 2013 --> Sun May 19 2013 or Tue May 21 2013 or Sun May 26 2013 or ....
|
||||
|
||||
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 1.2.0-3.sme
|
||||
- Initial import to SME10 tree [SME: 11286]
|
||||
- Set-debugging-disabled
|
||||
|
||||
* Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-2.sme
|
||||
- Add Update event to createlinks smeserver-git prevents httpd.conf template expansion [SME: 10464]
|
||||
- now if gitweb is enabled but smeserver-gitweb is not installed a warning is issued
|
||||
instead of an error and template consider it disabled. Same thing if gitweb_theme is enabled
|
||||
but smeserver-gitweb-theme is missing.
|
||||
|
||||
* Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-0.sme
|
||||
- new sources with unix formated line returns
|
||||
|
||||
* Wed Feb 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-9.sme
|
||||
- apply locale 2017-02-02.patch
|
||||
|
||||
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme
|
||||
- reverting git db to 644 as default-initialize_database will chown it root:admin
|
||||
|
||||
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme
|
||||
- removing fragment migrate as it should not be used for that [SME: 9619]
|
||||
|
||||
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme
|
||||
- Add Update event to createlinks missing ; in migrate fragment 80git to revert db permissions [SME: 9619]
|
||||
|
||||
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-5.sme
|
||||
- Add Update event to createlinks too permissive permissions on db accounts networks and git [SME: 9615] [SME: 9616]
|
||||
|
||||
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-4.sme
|
||||
- commented out back the rewrite rule on HEAD etc to allow CLI git
|
||||
- Add Update event to createlinks auth not asked with Location after RewriteRule [SME: 9202]
|
||||
- add trailing slash to root git url if omited
|
||||
- only using git/repo.git or git/gitweb.cgi/repo.git will ask for auth
|
||||
|
||||
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-3.sme
|
||||
- Add Update event to createlinks allow to see .git short url with gitweb [SME: 9202]
|
||||
|
||||
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.1.0-2.sme
|
||||
- apply locale 2016-03-09 patch
|
||||
|
||||
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3
|
||||
- Fixed erronous error message when updating a group due to
|
||||
missing check for 'group-modify' in git user access list handling [SME: 9133]
|
||||
|
||||
* Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0
|
||||
- Require >= SME9.
|
||||
- Moved /usr/lib/perl5/site_perl to /usr/share/perl5/vendor_perl.
|
||||
- Fixed pwauth setup.
|
||||
- Added AuthBasicProvider external in authentication setup.
|
||||
- Fixed GitWebRoot variable scope.
|
||||
- Allow adjustment of gitweb static path for git 1.7 vs. git 1.8
|
||||
|
||||
* Fri May 30 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-37
|
||||
- Fixed the HTTPS redirection loop. HTTPS redirection is now only done on the HTTP part of of
|
||||
the web server configuration and the full Git configuration part is only done in the HTTPS
|
||||
section.
|
||||
|
||||
* Tue May 27 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-36
|
||||
- Changed how git update-server-info is run as the location of the executable changed in git 1.8.
|
||||
|
||||
* Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-35
|
||||
- Systax error in 29GitRepositories that I though I fixed.
|
||||
|
||||
* Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-34
|
||||
- git version 1.8 has shifted the location of some executables. Modified the scripts
|
||||
to test on these locations so we generate the right paths.
|
||||
|
||||
* Tue May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-33
|
||||
Sun May 21 2013 --> Sun May 19 2013 or Tue May 21 2013 or Sun May 26 2013 or ....
|
||||
- Set permissions on git repository databaase for GitWeb access also on upgrade install.
|
||||
|
||||
* Tue May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-32
|
||||
Sun May 21 2013 --> Sun May 19 2013 or Tue May 21 2013 or Sun May 26 2013 or ....
|
||||
- Fixed a problem in the repository delete script where File::Path is needed
|
||||
to reference rmtree.
|
||||
- Also cleanup the entry from the database so that repositories of the same
|
||||
name can be created again.
|
||||
|
||||
* Tue May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-31
|
||||
Sun May 21 2013 --> Sun May 19 2013 or Tue May 21 2013 or Sun May 26 2013 or ....
|
||||
- Changed the repository-delete script to ensure the SME Git database
|
||||
permissions are Ok for use by GitWeb after a delete.
|
||||
- Ensure that on 64-bit systems we use /usr/lib64/httpd/modules/pwauth
|
||||
|
||||
* Sat Jul 21 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
|
||||
- Ensure git database is present in /home/e-smith/db
|
||||
- Create default config database entries for 'git'
|
||||
- Moved retrieving maxNameLength for panel validations from config 'git'
|
||||
- In the user and group list boxes, added support to the special group admin
|
||||
and shared to allow either the admin or everybody to be included in the access lists.
|
||||
- Updated the HTTP config db error messages to be more clear as to which property needs
|
||||
to be configured.
|
||||
|
||||
* Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
|
||||
- Rip out gitweb and create tar.xz file
|
||||
|
||||
* Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
|
||||
- initial release
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
mkdir -p root/home/e-smith/files/git/
|
||||
%build
|
||||
perl createlinks
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||||
rm -f %{name}-%{version}-filelist
|
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
echo "---------------------------------------------------------"
|
||||
if [ $1 -eq 1 ] ; then
|
||||
echo "Initial installation:"
|
||||
echo " - Ensuring git repositories configuration database exist ..."
|
||||
touch /home/e-smith/db/git
|
||||
echo " - Ensuring git repositories root directory exist with the right permissions ..."
|
||||
mkdir -p /home/e-smith/files/git
|
||||
chmod 770 /home/e-smith/files/git
|
||||
chmod g+s /home/e-smith/files/git
|
||||
echo " - Rebuilding server-manager ..."
|
||||
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
|
||||
/etc/e-smith/events/actions/navigation-conf
|
||||
fi
|
||||
chown admin:www /home/e-smith/files/git
|
||||
#/etc/rc7.d/S86httpd-e-smith sighup
|
||||
|
||||
# fixing needed permissions
|
||||
# fixing previous mess
|
||||
chmod 644 /home/e-smith/db/git
|
||||
chmod 640 /home/e-smith/db/accounts
|
||||
chmod 640 /home/e-smith/db/networks
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
echo "---------------------------------------------------------"
|
||||
echo " - Rebuilding server-manager ..."
|
||||
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
|
||||
/etc/e-smith/events/actions/navigation-conf
|
||||
echo " - Final Uninstall:"
|
||||
echo " smeserver-git has been removed but the git repositories and the git config database are left in place ..."
|
||||
echo " To manually remove the git repositories, use: 'rm -rf /home/e-smith/files/git'"
|
||||
echo " To manually remove the git config database, use: 'rm -rf /home/e-smith/db/git'"
|
||||
echo "---------------------------------------------------------"
|
||||
fi
|
||||
|
||||
%files -f %{name}-%{version}-filelist
|
||||
%defattr(-,root,root)
|
Loading…
Reference in New Issue
Block a user