addresses #17
* Makefile creates/updates po/davadmin.pot, .po, and .mo files * admin/i18n.inc.php sets the locale and puts it in the session * admin/common.inc.php and admin/getgroups.php use admin/i18n.inc.php * po/pot.sed replaces generated header of po/davadmin.pot
This commit is contained in:
parent
83251502e9
commit
a978fb5ef0
6 changed files with 344 additions and 14 deletions
100
po/davadmin.pot
Normal file
100
po/davadmin.pot
Normal file
|
@ -0,0 +1,100 @@
|
|||
# DAVAdmin.
|
||||
# Copyright (C) 2007, Jan Dittberner
|
||||
# This file is distributed under the same license as the davadmin package.
|
||||
# Jan Dittberner <jan AT dittberner.info>, 2007.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: davadmin 0.2\n"
|
||||
"Report-Msgid-Bugs-To: jan@dittberner.info\n"
|
||||
"POT-Creation-Date: 2007-11-30 22:16+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin/common.inc.php:37 admin/getgroups.php:37
|
||||
msgid ""
|
||||
"The Server is not configured correctly. Please tell your Administrator to "
|
||||
"set the DavAdminConfDir environment variable."
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:57
|
||||
msgid "Invalid call!"
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:85 admin/common.inc.php:93 admin/common.inc.php:101
|
||||
#: admin/common.inc.php:109 admin/common.inc.php:118 admin/common.inc.php:122
|
||||
#, php-format
|
||||
msgid "%s is not defined."
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:89
|
||||
msgid "The specified digest file is not readable and writable."
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:97
|
||||
msgid "The specified group file is not readable and writable."
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:105
|
||||
msgid "The specified name mapping file is not readable and writable."
|
||||
msgstr ""
|
||||
|
||||
#: admin/common.inc.php:114
|
||||
msgid "The specified DAV directory is no directory or not accessable."
|
||||
msgstr ""
|
||||
|
||||
#: admin/directories.php:114
|
||||
#, php-format
|
||||
msgid "%d kBytes"
|
||||
msgstr ""
|
||||
|
||||
#: admin/directories.php:130 admin/directories.php:236
|
||||
#: admin/directories.php:275
|
||||
#, php-format
|
||||
msgid "Invalid directory name %s!"
|
||||
msgstr ""
|
||||
|
||||
#: admin/directories.php:227
|
||||
#, php-format
|
||||
msgid "There already is a directory entry named %s, but it's not a directory!"
|
||||
msgstr ""
|
||||
|
||||
#: admin/directories.php:286 admin/directories.php:307 admin/users.php:344
|
||||
#: admin/users.php:365 admin/users.php:369
|
||||
#, php-format
|
||||
msgid "Unexpected values %s!"
|
||||
msgstr ""
|
||||
|
||||
#: admin/directories.php:303
|
||||
msgid "Delete failed!"
|
||||
msgstr ""
|
||||
|
||||
#: admin/users.php:64 admin/users.php:84 admin/users.php:327
|
||||
#, php-format
|
||||
msgid "Invalid user id %s"
|
||||
msgstr ""
|
||||
|
||||
#: admin/users.php:105
|
||||
msgid "Uid must be numeric."
|
||||
msgstr ""
|
||||
|
||||
#: admin/users.php:108 admin/users.php:115
|
||||
msgid "Password must be at least 8 characters long."
|
||||
msgstr ""
|
||||
|
||||
#: admin/users.php:112
|
||||
msgid ""
|
||||
"Username must be at least 2 characters long and must contain letters and "
|
||||
"digits only."
|
||||
msgstr ""
|
||||
|
||||
#: admin/users.php:125
|
||||
msgid ""
|
||||
"Groups must be a list of group names separated by commas. Group names must "
|
||||
"consist of letters and digits."
|
||||
msgstr ""
|
30
po/pot.sed
Normal file
30
po/pot.sed
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Copyright (c) 2007 Jan Dittberner. $Revision$
|
||||
#
|
||||
# inspired by Alex Tingle's pot.sed from
|
||||
# http://blogs.admissions.buffalo.edu/news/wp-content/plugins/eventcalendar3/gettext/pot.sed
|
||||
#
|
||||
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
|
||||
# Fills in some details in the ec3.pot file.
|
||||
1,/^$/ {
|
||||
s/SOME DESCRIPTIVE TITLE/DAVAdmin/
|
||||
s/YEAR THE PACKAGE.S COPYRIGHT HOLDER/2007, Jan Dittberner/
|
||||
s/PACKAGE/davadmin/
|
||||
s/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR./Jan Dittberner <jan AT dittberner.info>, 2007./
|
||||
s/VERSION/0.2/
|
||||
s/CHARSET/UTF-8/
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue