Thread: [Openupload-svn-update] SF.net SVN: openupload:[289] branches/v0.4
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2009-03-07 09:41:04
|
Revision: 289
http://openupload.svn.sourceforge.net/openupload/?rev=289&view=rev
Author: tsdogs
Date: 2009-03-07 09:40:54 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Merge trunk translations
Modified Paths:
--------------
branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.mo
branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.po
branches/v0.4/locale/zh_CN.inc.php
branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.mo
branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.po
branches/v0.4/templates/default/locale/zh_CN.inc.php
Property Changed:
----------------
branches/v0.4/
Property changes on: branches/v0.4
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk:281-285
+ /trunk:281-285,288
Modified: branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.po
===================================================================
--- branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.po 2009-03-07 09:31:21 UTC (rev 288)
+++ branches/v0.4/locale/zh_CN.GBK/LC_MESSAGES/openupload.po 2009-03-07 09:40:54 UTC (rev 289)
@@ -5,14 +5,18 @@
msgstr ""
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-03 18:12+0100\n"
-"PO-Revision-Date: 2009-03-06 22:06+0100\n"
+"POT-Creation-Date: 2009-03-07 10:02+0100\n"
+"PO-Revision-Date: 2009-03-07 10:02+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
-"Language-Team: Chinese/Simplified\n"
+"Language-Team: Robin He (HE.Chu)\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Chinese\n"
+"X-Poedit-KeywordsList: tr\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SearchPath-0: /home/alex/devel/php/openupload/trunk/lib\n"
+"X-Poedit-SearchPath-1: /home/alex/devel/php/openupload/trunk/plugins\n"
#: /home/alex/devel/php/openupload/trunk/lib/user.inc.php:89
msgid "Login incorrect!"
@@ -20,7 +24,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/main.inc.php:244
msgid "plugin include file not found: %1"
-msgstr ""
+msgstr "包含插件编码的文件未找到:%1"
#: /home/alex/devel/php/openupload/trunk/lib/main.inc.php:436
msgid "IP Banned"
@@ -309,7 +313,7 @@
#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:6
msgid "Limit the mimetypes a user can upload"
-msgstr ""
+msgstr "限制用户可上传文件的mime-type"
#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:8
msgid "Allowed mime types"
@@ -347,11 +351,11 @@
#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:9
msgid "Extensions corresponding to commands."
-msgstr ""
+msgstr "通过命令扩展功能。"
#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:10
msgid "Name of compression commands"
-msgstr ""
+msgstr "文件压缩命令列表:"
#: /home/alex/devel/php/openupload/trunk/plugins/filesize.inc.php:8
msgid "Limit the maximum size of a uploaded file"
@@ -363,7 +367,7 @@
#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:6
msgid "Add option to send e-mail to the uploader or to another e-mail address"
-msgstr ""
+msgstr "为文件上传人或者其他地址发送电子邮件"
#: /home/alex/devel/php/openupload/trunk/plugins/email.inc.php:30
msgid "Your e-mail address isn't valid!"
@@ -401,11 +405,11 @@
#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:6
msgid "Maximum number of days an upload will be kept on the server."
-msgstr ""
+msgstr "上传文件在服务器山保存的最长天数。"
#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:8
msgid "N. Of Days"
-msgstr ""
+msgstr "# 天"
#: /home/alex/devel/php/openupload/trunk/plugins/expire.inc.php:21
msgid "Files will be kept on our server for %1 days"
@@ -415,24 +419,3 @@
msgid "Never"
msgstr "从不"
-msgid "ERROR: connection to database failed!"
-msgstr ""
-
-msgid "Maximum upload size for site wide configuration reached"
-msgstr ""
-
-msgid "Partial file transfer error!"
-msgstr ""
-
-msgid "No file was uploaded!"
-msgstr ""
-
-msgid "Missing temporary directory"
-msgstr ""
-
-msgid "Can't write to temporary diretory!"
-msgstr ""
-
-msgid "Upload blocked by extension!"
-msgstr ""
-
Modified: branches/v0.4/locale/zh_CN.inc.php
===================================================================
--- branches/v0.4/locale/zh_CN.inc.php 2009-03-07 09:31:21 UTC (rev 288)
+++ branches/v0.4/locale/zh_CN.inc.php 2009-03-07 09:40:54 UTC (rev 289)
@@ -1,6 +1,6 @@
<?php
$tr["Login incorrect!"] = "登录不正确!";
-$tr["plugin include file not found: %1"] = "";
+$tr["plugin include file not found: %1"] = "包含插件编码的文件未找到:%1";
$tr["IP Banned"] = "IP地址被屏蔽";
$tr["THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"] = "发生权限错误,请尝试允许的操作!";
$tr["ERROR: database folder not found!"] = "错误:数据库目录未找到!";
@@ -66,7 +66,7 @@
$tr["Locale"] = "本地化";
$tr["Charset"] = "字符集";
$tr["LDAP connection failed!"] = "LDAP连接失败!";
-$tr["Limit the mimetypes a user can upload"] = "";
+$tr["Limit the mimetypes a user can upload"] = "限制用户可上传文件的mime-type";
$tr["Allowed mime types"] = "允许的媒体类型mime-type";
$tr["Types in message"] = "消息类型";
$tr["WARNING: no mime types defined. Plugin has been disabled!"] = "警告:没有定义mime-type,插件已经被禁止!";
@@ -75,11 +75,11 @@
$tr["Wrong captcha code! please try again."] = "错误的验证信息码!请重试。";
$tr["Compress the uploaded files"] = "压缩已上传文件。";
$tr["Command to be executed. One per line."] = "命令将被执行,每行一个命令。";
-$tr["Extensions corresponding to commands."] = "";
-$tr["Name of compression commands"] = "";
+$tr["Extensions corresponding to commands."] = "通过命令扩展功能。";
+$tr["Name of compression commands"] = "文件压缩命令列表:";
$tr["Limit the maximum size of a uploaded file"] = "限制上传文件的最大尺寸";
$tr["Maximum File Size"] = "最大的文件尺寸";
-$tr["Add option to send e-mail to the uploader or to another e-mail address"] = "";
+$tr["Add option to send e-mail to the uploader or to another e-mail address"] = "为文件上传人或者其他地址发送电子邮件";
$tr["Your e-mail address isn't valid!"] = "你的电子邮件地址不正确!";
$tr["Destination e-mail address isn't valid!"] = "目标电子邮件地址不正确!";
$tr["Information about your uploaded file: %1"] = "你上传的文件的信息:%1";
@@ -88,15 +88,8 @@
$tr["E-mail was sent to: %1!"] = "电子邮件已经发送至:%1";
$tr["Option to add password protection for file download"] = "为保护文件下载增加的选项";
$tr["Wrong password!"] = "错误的密码!";
-$tr["Maximum number of days an upload will be kept on the server."] = "";
-$tr["N. Of Days"] = "";
+$tr["Maximum number of days an upload will be kept on the server."] = "上传文件在服务器山保存的最长天数。";
+$tr["N. Of Days"] = "# 天";
$tr["Files will be kept on our server for %1 days"] = "文件将在我们的服务器上被保存%1天";
$tr["Never"] = "从不";
-$tr["ERROR: connection to database failed!"] = "";
-$tr["Maximum upload size for site wide configuration reached"] = "";
-$tr["Partial file transfer error!"] = "";
-$tr["No file was uploaded!"] = "";
-$tr["Missing temporary directory"] = "";
-$tr["Can't write to temporary diretory!"] = "";
-$tr["Upload blocked by extension!"] = "";
?>
Modified: branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.po
===================================================================
--- branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.po 2009-03-07 09:31:21 UTC (rev 288)
+++ branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.po 2009-03-07 09:40:54 UTC (rev 289)
@@ -1,18 +1,19 @@
-# Robin.He <hechu69 AT gmail DOT com>, 2009.
+# Alessandro Briosi <ts...@br...>, 2009.
#
#
msgid ""
msgstr ""
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-06 22:33+0100\n"
-"PO-Revision-Date: 2009-03-06 22:33+0100\n"
+"POT-Creation-Date: 2009-03-07 10:03+0100\n"
+"PO-Revision-Date: 2009-03-07 10:04+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
-"Language-Team: Chinese/Simplified <i18...@li...>\n"
+"Language-Team: Robin He (HE.Chu) <i18...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Chinese\n"
+"X-Poedit-KeywordsList: tr\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: /home/alex/devel/php/openupload/trunk/templates/default\n"
@@ -39,19 +40,17 @@
msgstr "重载图片"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:17
-#, fuzzy
msgid "Please enter the following captcha to proceed for the removal"
-msgstr "请输入下面的验证码开始处理下载"
+msgstr "请输入下面的验证码开始处理删除"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:23
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:44
msgid "Protection"
-msgstr ""
+msgstr "保护"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:26
-#, fuzzy
msgid "Captcha"
-msgstr "使用验证码"
+msgstr "验证信息"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:29
msgid "Please enter the following captcha to proceed for the download"
@@ -63,11 +62,11 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:38
msgid "Compress the files"
-msgstr ""
+msgstr "压缩文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:41
msgid "No compression"
-msgstr ""
+msgstr "未压缩"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:47
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:53
@@ -89,9 +88,8 @@
msgstr "密码保护"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:59
-#, fuzzy
msgid "Send password in e-mail"
-msgstr "给我发邮件"
+msgstr "通过邮件发送密码"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:62
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:83
@@ -141,7 +139,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:107
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:122
msgid "Send"
-msgstr ""
+msgstr "发送"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:110
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:134
@@ -170,7 +168,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:146
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:149
msgid "Expires on"
-msgstr ""
+msgstr "超时于"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:152
msgid "Only the following mime types are allowed"
@@ -178,11 +176,11 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:155
msgid "Are you sure you want to delete the selected plugins?"
-msgstr ""
+msgstr "确认需要删除选中的所有插件么?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:158
msgid "Are you sure you want to delete the selected plugin?"
-msgstr ""
+msgstr "确认需要删除选中的插件么?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:161
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:275
@@ -197,7 +195,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:827
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:905
msgid "ID"
-msgstr ""
+msgstr "ID"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:167
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:179
@@ -209,6 +207,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:170
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:182
+#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:212
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:257
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:317
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:347
@@ -237,7 +236,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:647
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:785
msgid "Actions"
-msgstr ""
+msgstr "动作"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:188
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:620
@@ -281,87 +280,77 @@
msgid "Name"
msgstr "名字"
-#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:212
-#, fuzzy
-msgid "Gruppo"
-msgstr "组"
-
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:218
msgid "Rights set?"
-msgstr ""
+msgstr "权限设定?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:221
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:686
msgid "Any"
-msgstr ""
+msgstr "任何"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:224
msgid "Yes"
-msgstr ""
+msgstr "是"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:227
msgid "No"
-msgstr ""
+msgstr "否"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:230
-#, fuzzy
msgid "Plugins ACL"
-msgstr "插件"
+msgstr "插件ACL"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:233
msgid "Plugins Options"
-msgstr ""
+msgstr "插件选项"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:236
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:566
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:653
msgid "Settings"
-msgstr ""
+msgstr "设置"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:239
msgid "Options"
-msgstr ""
+msgstr "选项"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:242
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:734
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:938
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1010
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1037
-#, fuzzy
msgid "Login name"
-msgstr "文件名"
+msgstr "登录名"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:248
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:740
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:944
-#, fuzzy
msgid "Retype Password"
-msgstr "密码"
+msgstr "重新输入密码"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:251
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:743
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:947
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1013
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1040
-#, fuzzy
msgid "Full Name"
-msgstr "文件名"
+msgstr "全名"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:254
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:746
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:950
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1016
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1043
-#, fuzzy
msgid "e-mail"
-msgstr "发送电子邮件至"
+msgstr "电子邮件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:260
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:752
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:953
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:1046
msgid "Preferred language"
-msgstr ""
+msgstr "首选语言"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:263
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:311
@@ -370,98 +359,97 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:560
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:755
msgid "Active"
-msgstr ""
+msgstr "活跃"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:269
msgid "Are you sure you want to delete the selected banned ips?"
-msgstr ""
+msgstr "确认删除选中的所有屏蔽IP地址?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:272
msgid "Are you sure you want to delete the selected banned ip?"
-msgstr ""
+msgstr "确认删除选中的屏蔽IP地址?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:296
msgid "Are you sure you want to delete the selected languages?"
-msgstr ""
+msgstr "确认删除选中的所有语言?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:299
msgid "Are you sure you want to delete the selected language?"
-msgstr ""
+msgstr "确认删除选中的语言?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:308
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:329
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:443
msgid "Locale"
-msgstr ""
+msgstr "本地化"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:332
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:446
msgid "Browser recon"
-msgstr ""
+msgstr "浏览器检测"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:335
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:449
msgid "Charset"
-msgstr ""
+msgstr "字符集"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:344
msgid "Plugin does not have any option to be configured"
-msgstr ""
+msgstr "插件没有任何可配置项"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:353
msgid "Translation module"
-msgstr ""
+msgstr "翻译模块"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:356
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:368
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:386
msgid "Select one"
-msgstr ""
+msgstr "选择一个"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:359
msgid "Default language"
-msgstr ""
+msgstr "默认语言"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:362
msgid "Authentication module"
-msgstr ""
+msgstr "认证模块"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:365
msgid "(LDAP Configuration needs to be done<br /> by hand for now)"
-msgstr ""
+msgstr "(LDAP需要被完整配置<br /> 手动)"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:371
msgid "Site title"
-msgstr ""
+msgstr "站点标题"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:374
msgid "WebMaster E-mail"
-msgstr ""
+msgstr "WEB管理员电子邮箱"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:377
-#, fuzzy
msgid "Site E-mail"
-msgstr "发送电子邮件至"
+msgstr "发送电子邮件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:380
msgid "Confirm registration with e-mail"
-msgstr ""
+msgstr "通过邮件确认注册"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:383
msgid "Template"
-msgstr ""
+msgstr "模板"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:389
msgid "Template Footer"
-msgstr ""
+msgstr "模板脚"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:392
msgid "Maximum upload size (in MB)"
-msgstr ""
+msgstr "最大上传尺寸(单位:MB)"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:395
msgid "Maximum download time (in Min)"
-msgstr ""
+msgstr "最大下载时间(单位:分钟)"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:398
msgid "0 disables it"
@@ -469,23 +457,23 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:401
msgid "Max num. of file uploaded per upload"
-msgstr ""
+msgstr "每次上传的最多上传数"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:404
msgid "Use shorter links?"
-msgstr ""
+msgstr "使用短链接?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:407
msgid "Length of IDs (suggested min 6)"
-msgstr ""
+msgstr "ID长度(建议最少为6)"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:410
msgid "Use alphanumerical IDs?"
-msgstr ""
+msgstr "使用字母数字混合编制的的ID?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:413
msgid "Allow unprotected file removal?"
-msgstr ""
+msgstr "允许未保护的文件删除?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:416
msgid "Upload tracking method"
@@ -493,265 +481,260 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:419
msgid "Enable activity logging?"
-msgstr ""
+msgstr "允许活动日志?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:422
msgid "Database logging level"
-msgstr ""
+msgstr "数据库日志级别"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:425
msgid "Syslog logging level"
-msgstr ""
+msgstr "Syslog 日志级别"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:428
msgid "Save Changes"
-msgstr ""
+msgstr "保存更改"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:431
msgid "Download config file"
-msgstr ""
+msgstr "下载配置文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:434
msgid "This are the configured settings for a review"
-msgstr ""
+msgstr "复查如下的配置项"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:458
-#, fuzzy
msgid "Filter"
-msgstr "文件ID"
+msgstr "过滤器"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:461
msgid "All"
-msgstr ""
+msgstr "所有"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:464
msgid "Errors"
-msgstr ""
+msgstr "错误"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:467
msgid "Security"
-msgstr ""
+msgstr "安全"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:470
msgid "Warnings"
-msgstr ""
+msgstr "警告"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:473
msgid "Notice"
-msgstr ""
+msgstr "通知"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:476
msgid "Info"
-msgstr ""
+msgstr "信息"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:479
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:833
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:914
msgid "Date"
-msgstr ""
+msgstr "日期"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:482
msgid "Type"
-msgstr ""
+msgstr "类型"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:485
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:776
msgid "User"
-msgstr ""
+msgstr "用户"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:488
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:689
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:710
msgid "Module"
-msgstr ""
+msgstr "模块"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:491
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:692
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:713
msgid "Action"
-msgstr ""
+msgstr "动作"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:494
msgid "Real Action"
-msgstr ""
+msgstr "真实动作"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:500
msgid "Result"
-msgstr ""
+msgstr "结果"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:503
msgid "Additional Info"
-msgstr ""
+msgstr "附加信息"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:506
msgid "Maintenence"
-msgstr ""
+msgstr "维护"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:509
msgid "This options let you delete files based on some options."
-msgstr ""
+msgstr "根据本选项删除你的文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:512
msgid "Please select one or more criteria for file deletion"
-msgstr ""
+msgstr "请选择一个或者多个文件删除的标准"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:515
msgid "Delete files older than"
-msgstr ""
+msgstr "删除超过日期的文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:518
msgid "days"
-msgstr ""
+msgstr "天"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:521
msgid "Which user name is"
-msgstr ""
+msgstr "用户名为"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:524
msgid "Which upload day is"
-msgstr ""
+msgstr "上传日期为"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:527
msgid "Which size is bigger than"
-msgstr ""
+msgstr "文件尺寸大于"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:530
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:800
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:824
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:860
msgid "Proceed"
-msgstr ""
+msgstr "继续"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:533
msgid "Expiration plugin"
-msgstr ""
+msgstr "过期插件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:536
msgid "To delete files marked as expired by the expire plugin press the \"Delete expired\" button."
-msgstr ""
+msgstr "选择\"删除过期\"按钮删除用过期插件标记为过期的文件。"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:539
msgid "Delete expired"
-msgstr ""
+msgstr "删除过期"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:542
msgid "Are you sure you want to delete the selected users?"
-msgstr ""
+msgstr "确认删除这些选中的用户么?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:545
msgid "Are you sure you want to delete the selected user?"
-msgstr ""
+msgstr "确认删除选中的用户么?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:548
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:995
msgid "Login"
-msgstr ""
+msgstr "登录"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:557
msgid "E-mail"
-msgstr ""
+msgstr "电子邮件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:569
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:656
-#, fuzzy
msgid "Plugins"
msgstr "插件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:572
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:659
-#, fuzzy
msgid "Files"
-msgstr "文件尺寸"
+msgstr "文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:575
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:662
msgid "Users"
-msgstr ""
+msgstr "用户"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:578
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:665
-#, fuzzy
msgid "Groups"
msgstr "组"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:581
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:668
msgid "Rights"
-msgstr ""
+msgstr "权限"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:584
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:671
msgid "Languages"
-msgstr ""
+msgstr "语言"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:587
msgid "Banned"
-msgstr ""
+msgstr "禁止"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:590
msgid "Logs"
-msgstr ""
+msgstr "日志"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:593
msgid "Deletion Result"
-msgstr ""
+msgstr "删除结果"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:596
msgid "The following files have been deleted."
-msgstr ""
+msgstr "如下文件已被删除。"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:599
msgid "The following files will be deleted, proceed?"
-msgstr ""
+msgstr "如下文件将被删除,是否继续?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:602
msgid "Yes, delete all"
-msgstr ""
+msgstr "是,删除所有"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:605
msgid "No files matched the criteria"
-msgstr ""
+msgstr "没有符合标准的文件"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:608
msgid "Back to Maintenance"
-msgstr ""
+msgstr "返回至维护"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:635
msgid "Are you sure you want to delete the selected groups?"
-msgstr ""
+msgstr "确认是否删除选择的这些群组?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:638
msgid "Are you sure you want to delete the selected group?"
-msgstr ""
+msgstr "确认是否删除选择的组?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:641
-#, fuzzy
msgid "Group Name"
-msgstr "组"
+msgstr "组名"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:650
msgid "Here you can administer"
-msgstr ""
+msgstr "管理界面"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:674
msgid "Banned IPs"
-msgstr ""
+msgstr "禁止IP列表"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:677
msgid "Logs / Statistics"
-msgstr ""
+msgstr "日志/分析"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:680
msgid "PLEASE BE CAREFULL WHEN MODIFING THE RIGHTS!"
-msgstr ""
+msgstr "请谨慎修改权限!"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:683
msgid "Editing rights for group"
-msgstr ""
+msgstr "编辑组的权限"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:695
msgid "Right"
-msgstr ""
+msgstr "权限"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:698
msgid "Resulting ACL"
@@ -763,86 +746,81 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:704
msgid "default"
-msgstr ""
+msgstr "默认"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:716
msgid "<< Back"
-msgstr ""
+msgstr "<<返回"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:719
msgid "Apply changes"
-msgstr ""
+msgstr "应用更改"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:722
-#, fuzzy
msgi...
[truncated message content] |
|
From: <ts...@us...> - 2009-03-07 19:16:44
|
Revision: 292
http://openupload.svn.sourceforge.net/openupload/?rev=292&view=rev
Author: tsdogs
Date: 2009-03-07 19:16:25 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
merge last translation update
Modified Paths:
--------------
branches/v0.4/lib/modules/default/admin.inc.php
branches/v0.4/locale/fr/LC_MESSAGES/openupload.mo
branches/v0.4/locale/fr/LC_MESSAGES/openupload.po
branches/v0.4/locale/fr.inc.php
branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.mo
branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.po
branches/v0.4/templates/default/locale/fr.inc.php
branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.mo
branches/v0.4/templates/default/locale/zh_CN.GBK/LC_MESSAGES/template.po
branches/v0.4/templates/default/locale/zh_CN.inc.php
Property Changed:
----------------
branches/v0.4/
Property changes on: branches/v0.4
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk:281-285,288
+ /trunk:281-285,288,290-291
Modified: branches/v0.4/lib/modules/default/admin.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/admin.inc.php 2009-03-07 19:05:46 UTC (rev 291)
+++ branches/v0.4/lib/modules/default/admin.inc.php 2009-03-07 19:16:25 UTC (rev 292)
@@ -120,18 +120,18 @@
$user['lang']=$_POST['adduserlang'];
$error = false;
if (strlen($_POST['adduserlogin'])<5) {
- app()->error('login name must be at least 5 char long!');
+ app()->error(tr('Login name must be at least 5 char long!'));
$error = true;
}
if (strlen($_POST['adduserpassword'])<5) {
- app()->error('password must be at least 5 char long!');
+ app()->error(tr('Password must be at least 5 char long!'));
$error = true;
} else if ($_POST['adduserpassword']!=$_POST['adduserrepassword']) {
- app()->error('Passwords do not correspond!');
+ app()->error(tr('Passwords do not correspond!'));
$error = true;
}
if (!validEmail($_POST['adduseremail'])) {
- app()->error('e-mail is not a valid address!');
+ app()->error(tr('e-mail is not a valid address!'));
$error = true;
}
if (!$error) {
@@ -207,10 +207,10 @@
$error = false;
if ($_POST['edituserpassword']!='') {
if (strlen($_POST['edituserpassword'])<5) {
- app()->error('password must be at least 5 char long!');
+ app()->error(tr('password must be at least 5 char long!'));
$error = true;
} else if ($_POST['edituserpassword']!=$_POST['edituserrepassword']) {
- app()->error('Passwords do not correspond!');
+ app()->error(tr('Passwords do not correspond!'));
$error = true;
}
if (!$error) {
@@ -219,7 +219,7 @@
}
}
if (!validEmail($_POST['edituseremail'])) {
- app()->error('e-mail is not a valid address!');
+ app()->error(tr('e-mail is not a valid address!'));
$error = true;
}
if (!$error) {
Modified: branches/v0.4/locale/fr/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Modified: branches/v0.4/locale/fr/LC_MESSAGES/openupload.po
===================================================================
--- branches/v0.4/locale/fr/LC_MESSAGES/openupload.po 2009-03-07 19:05:46 UTC (rev 291)
+++ branches/v0.4/locale/fr/LC_MESSAGES/openupload.po 2009-03-07 19:16:25 UTC (rev 292)
@@ -3,7 +3,7 @@
"Project-Id-Version: OpenUpload\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-03-03 18:12+0100\n"
-"PO-Revision-Date: 2009-03-06 22:45+0100\n"
+"PO-Revision-Date: 2009-03-07 13:32+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: Fabrice Crohas\n"
"MIME-Version: 1.0\n"
@@ -149,7 +149,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:40
msgid "File upload"
-msgstr "Envoi de fichiers"
+msgstr "Envoi de fichier"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:43
msgid "File download"
@@ -161,7 +161,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:53
msgid "File Upload"
-msgstr "Envoi de fichiers"
+msgstr "Envoi de fichier"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/files.inc.php:142
msgid "Upload failed for Unknown error code: %1"
@@ -259,7 +259,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:833
msgid "Configuration sucessfully saved!"
-msgstr "Inscription achevée avec succès. Bon divertissement!"
+msgstr "La configuration a été sauvegardé avec succés!"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:835
msgid "Configuration file could not be saved, please proceed with the download!"
@@ -272,7 +272,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:893
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:908
msgid "IP %1 was already in state: %2!"
-msgstr "IP %1 était déjà dans l'état: %1"
+msgstr "L'adresse IP %1 était déjà dans l'état: %1"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:984
msgid "ID"
@@ -280,7 +280,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:984
msgid "Language \"%1\" cannot be empty"
-msgstr "Le nom complet ne peut-être vide!"
+msgstr "La langue \"%1\" ne peut etre vide"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:987
msgid "Language \"%1\" already exists!"
@@ -294,7 +294,7 @@
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:995
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:999
msgid "Language \"%1\" cannot be empty!"
-msgstr "Le nom complet ne peut-être vide!"
+msgstr "La langue \"%1\" ne peut etre vide"
#: /home/alex/devel/php/openupload/trunk/lib/modules/default/admin.inc.php:995
msgid "Locale"
@@ -309,6 +309,7 @@
msgstr "ERREUR: La connexion à l'annuaire LDAP a échouée!"
#: /home/alex/devel/php/openupload/trunk/plugins/mimetypes.inc.php:6
+#, fuzzy
msgid "Limit the mimetypes a user can upload"
msgstr "Limite les types MIME des fichiers envoyés"
@@ -331,7 +332,7 @@
#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:7
msgid "Add captcha protection to file download and user registration"
-msgstr "Ajoute une protection Captcha au téléchargement de fichiers et à l'inscription des utilisateurs"
+msgstr "Ajoute une protection Captcha au téléchargement de fichier et à l'inscription des utilisateurs"
#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:40
#: /home/alex/devel/php/openupload/trunk/plugins/captcha.inc.php:58
@@ -344,7 +345,7 @@
#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:8
msgid "Command to be executed. One per line."
-msgstr "La commande ne peu pas etre exécuté. Une par ligne."
+msgstr "La commande ne peut pas etre exécuté. Une par ligne."
#: /home/alex/devel/php/openupload/trunk/plugins/compress.inc.php:9
msgid "Extensions corresponding to commands."
@@ -356,9 +357,10 @@
#: /home/alex/devel/php/openupload/trunk/plugins/filesize.inc.php:8
msgid "Limit the maximum size of a uploaded file"
-msgstr "Limite les types MIME des fichiers envoyés"
+msgstr "Limite la taille maximum des fichiers envoyés"
#: /home/alex/devel/php/openupload/trunk/plugins/filesize.inc.php:10
+#, fuzzy
msgid "Maximum File Size"
msgstr "Le fichier dépasse la taille maximum!"
@@ -394,7 +396,7 @@
#: /home/alex/devel/php/openupload/trunk/plugins/password.inc.php:7
msgid "Option to add password protection for file download"
-msgstr "Permet d'ajouter une protection par mot de passe aux fichier en téléchargement"
+msgstr "Permet d'ajouter une protection par mot de passe au fichier en téléchargement"
#: /home/alex/devel/php/openupload/trunk/plugins/password.inc.php:53
msgid "Wrong password!"
Modified: branches/v0.4/locale/fr.inc.php
===================================================================
--- branches/v0.4/locale/fr.inc.php 2009-03-07 19:05:46 UTC (rev 291)
+++ branches/v0.4/locale/fr.inc.php 2009-03-07 19:16:25 UTC (rev 292)
@@ -31,10 +31,10 @@
$tr["Password has been changed!"] = "Mot de passe modifié avec succès!";
$tr["My Files"] = "Mes fichiers";
$tr["Public Files"] = "Fichiers publiques";
-$tr["File upload"] = "Envoi de fichiers";
+$tr["File upload"] = "Envoi de fichier";
$tr["File download"] = "Téléchargement de fichiers";
$tr["File Removal"] = "Suppresion de fichiers";
-$tr["File Upload"] = "Envoi de fichiers";
+$tr["File Upload"] = "Envoi de fichier";
$tr["Upload failed for Unknown error code: %1"] = "L'envoi de fichier a échoué pour une raison inconnue. ERREUR: %1";
$tr["Maximum file size exceeded!"] = "Le fichier dépasse la taille maximum!";
$tr["Requested file does not exist!"] = "Le fichier demandé n'existe pas!";
@@ -54,15 +54,15 @@
$tr["Disable"] = "Désactiver";
$tr["Any"] = "Tout";
$tr["Options for this group already exsist, please use the edit function!"] = "Les options pour ce groupes existent déjà, merci d'utiliser la fonction d'édition!";
-$tr["Configuration sucessfully saved!"] = "Inscription achevée avec succès. Bon divertissement!";
+$tr["Configuration sucessfully saved!"] = "La configuration a été sauvegardé avec succés!";
$tr["Configuration file could not be saved, please proceed with the download!"] = "Le fichier de configuration ne peu etre sauvegardé, merci de continuer avec le téléchargement!";
$tr["IP %1 has been banned!"] = "L'adresse IP %1 a été bannie!";
-$tr["IP %1 was already in state: %2!"] = "IP %1 était déjà dans l'état: %1";
+$tr["IP %1 was already in state: %2!"] = "L'adresse IP %1 était déjà dans l'état: %1";
$tr["ID"] = "ID";
-$tr["Language \"%1\" cannot be empty"] = "Le nom complet ne peut-être vide!";
+$tr["Language \"%1\" cannot be empty"] = "La langue \"%1\" ne peut etre vide";
$tr["Language \"%1\" already exists!"] = "La Langue \"%1\" n'existe pas";
$tr["Name"] = "Nom";
-$tr["Language \"%1\" cannot be empty!"] = "Le nom complet ne peut-être vide!";
+$tr["Language \"%1\" cannot be empty!"] = "La langue \"%1\" ne peut etre vide";
$tr["Locale"] = "Localisation";
$tr["Charset"] = "Font";
$tr["LDAP connection failed!"] = "ERREUR: La connexion à l'annuaire LDAP a échouée!";
@@ -71,13 +71,13 @@
$tr["Types in message"] = "Types dans le message";
$tr["WARNING: no mime types defined. Plugin has been disabled!"] = "ATTENTION: pas de type MIME définit. Le module a été désactivé!";
$tr["This file type (%1) is not allowed on this site!"] = "L'envoi de ce type de fichiers (%1) n'est pas permis sur ce site!";
-$tr["Add captcha protection to file download and user registration"] = "Ajoute une protection Captcha au téléchargement de fichiers et à l'inscription des utilisateurs";
+$tr["Add captcha protection to file download and user registration"] = "Ajoute une protection Captcha au téléchargement de fichier et à l'inscription des utilisateurs";
$tr["Wrong captcha code! please try again."] = "Le code Captcha saisi est erroné! Merci de recommencer.";
$tr["Compress the uploaded files"] = "Compresser les fichiers envoyés";
-$tr["Command to be executed. One per line."] = "La commande ne peu pas etre exécuté. Une par ligne.";
+$tr["Command to be executed. One per line."] = "La commande ne peut pas etre exécuté. Une par ligne.";
$tr["Extensions corresponding to commands."] = "Extensions correspondant à la commande.";
$tr["Name of compression commands"] = "Nom de la commande pour la compression.";
-$tr["Limit the maximum size of a uploaded file"] = "Limite les types MIME des fichiers envoyés";
+$tr["Limit the maximum size of a uploaded file"] = "Limite la taille maximum des fichiers envoyés";
$tr["Maximum File Size"] = "Le fichier dépasse la taille maximum!";
$tr["Add option to send e-mail to the uploader or to another e-mail address"] = "Ajouter une option pour envoyer un courriel à l'expéditeur du fichier ou une autre adresse courriel.";
$tr["Your e-mail address isn't valid!"] = "Votre adresse de courriel est invalide!";
@@ -86,7 +86,7 @@
$tr["An upload was delivered to you"] = "Un fichier a été mis à votre disposition";
$tr["E-mail was sent!"] = "Le courrier a été envoyé!";
$tr["E-mail was sent to: %1!"] = "Le courrierl a été envoyé à: %1!";
-$tr["Option to add password protection for file download"] = "Permet d'ajouter une protection par mot de passe aux fichier en téléchargement";
+$tr["Option to add password protection for file download"] = "Permet d'ajouter une protection par mot de passe au fichier en téléchargement";
$tr["Wrong password!"] = "Mot de passe erroné!";
$tr["Maximum number of days an upload will be kept on the server."] = "Le nombre de jours maximum de conservation d'une donnée reçu sur le serveur.";
$tr["N. Of Days"] = "Nbr de jours";
Modified: branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Modified: branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.po
===================================================================
--- branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.po 2009-03-07 19:05:46 UTC (rev 291)
+++ branches/v0.4/templates/default/locale/fr/LC_MESSAGES/template.po 2009-03-07 19:16:25 UTC (rev 292)
@@ -3,7 +3,7 @@
"Project-Id-Version: OpenUpload default template\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-03-03 18:13+0100\n"
-"PO-Revision-Date: 2009-03-06 22:47+0100\n"
+"PO-Revision-Date: 2009-03-07 13:31+0100\n"
"Last-Translator: Alessandro Briosi <ts...@br...>\n"
"Language-Team: Fabrice Crohas\n"
"MIME-Version: 1.0\n"
@@ -36,15 +36,13 @@
msgstr "Recharger l'image"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:17
-#, fuzzy
msgid "Please enter the following captcha to proceed for the removal"
-msgstr "Merci de saisir le code Captcha pour accéder au téléchargement"
+msgstr "Merci de saisir le code Captcha pour continuer avec la suppression"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:23
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:44
-#, fuzzy
msgid "Protection"
-msgstr "Action"
+msgstr "Protection"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:26
#, fuzzy
@@ -87,9 +85,8 @@
msgstr "Protéger avec un mot de passe"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:59
-#, fuzzy
msgid "Send password in e-mail"
-msgstr "M'envoyer une copie du courriel"
+msgstr "M'envoyer le mot de passe par courriel"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:62
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:83
@@ -111,7 +108,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:71
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:92
msgid "User message"
-msgstr "Message"
+msgstr "Message utilisateur"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:74
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:95
@@ -134,7 +131,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:125
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:131
msgid "Send me an e-mail"
-msgstr "M'envoyer une copie du courriel"
+msgstr "M'envoyer un courriel"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:107
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:122
@@ -180,13 +177,13 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:158
msgid "Are you sure you want to delete the selected plugin?"
-msgstr "Êtes vous sur de vouloir supprimer les plugins sélectionnés ?"
+msgstr "Êtes vous sur de vouloir supprimer le plugins sélectionné ?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:161
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:275
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:767
msgid "S"
-msgstr ""
+msgstr "S"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:164
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:302
@@ -195,7 +192,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:827
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:905
msgid "ID"
-msgstr ""
+msgstr "ID"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:167
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:179
@@ -234,9 +231,8 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:563
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:647
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:785
-#, fuzzy
msgid "Actions"
-msgstr "Action"
+msgstr "Actions"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:188
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:620
@@ -286,9 +282,8 @@
msgstr "Groupe"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:218
-#, fuzzy
msgid "Rights set?"
-msgstr "Droits"
+msgstr "Droits mis ?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:221
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:686
@@ -318,9 +313,8 @@
msgstr "Paramètres"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:239
-#, fuzzy
msgid "Options"
-msgstr "Options des modules"
+msgstr "Options"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:242
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:734
@@ -393,13 +387,12 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:332
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:446
msgid "Browser recon"
-msgstr ""
+msgstr "Browser recon"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:335
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:449
-#, fuzzy
msgid "Charset"
-msgstr "Changer"
+msgstr "Font"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:344
msgid "Plugin does not have any option to be configured"
@@ -454,9 +447,8 @@
msgstr "Modèle de pied de page"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:392
-#, fuzzy
msgid "Maximum upload size (in MB)"
-msgstr "Taille maximale d'envoi"
+msgstr "Taille maximale d'envoi (en Mo)"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:395
msgid "Maximum download time (in Min)"
@@ -503,23 +495,20 @@
msgstr "Niveau de trace système"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:428
-#, fuzzy
msgid "Save Changes"
-msgstr "Changer"
+msgstr "Sauvegarder les changements"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:431
-#, fuzzy
msgid "Download config file"
-msgstr "Télécharger"
+msgstr "Télécharger le fichier de configuration"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:434
msgid "This are the configured settings for a review"
msgstr "Voici les paramètres configurés"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:458
-#, fuzzy
msgid "Filter"
-msgstr "Fichiers"
+msgstr "Filtres"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:461
msgid "All"
@@ -557,9 +546,8 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:485
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:776
-#, fuzzy
msgid "User"
-msgstr "Utilisateurs"
+msgstr "Utilisateur"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:488
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:689
@@ -574,9 +562,8 @@
msgstr "Action"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:494
-#, fuzzy
msgid "Real Action"
-msgstr "Action"
+msgstr "Action réel"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:500
msgid "Result"
@@ -584,7 +571,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:503
msgid "Additional Info"
-msgstr "Information additionnel"
+msgstr "Information additionnelle"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:506
msgid "Maintenence"
@@ -612,7 +599,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:524
msgid "Which upload day is"
-msgstr "A pour envoi journalier "
+msgstr "A pour date d'envoi"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:527
msgid "Which size is bigger than"
@@ -623,7 +610,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:824
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:860
msgid "Proceed"
-msgstr "Accepter"
+msgstr "Continuer"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:533
msgid "Expiration plugin"
@@ -682,18 +669,16 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:584
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:671
-#, fuzzy
msgid "Languages"
-msgstr "Langue"
+msgstr "Langues"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:587
msgid "Banned"
msgstr "Bannis"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:590
-#, fuzzy
msgid "Logs"
-msgstr "Envoyer"
+msgstr "Traces"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:593
msgid "Deletion Result"
@@ -728,9 +713,8 @@
msgstr "Etes vous sur de vouloir supprimer le groupe sélectionné ?"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:641
-#, fuzzy
msgid "Group Name"
-msgstr "Groupe"
+msgstr "Nom du groupe"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:650
msgid "Here you can administer"
@@ -759,11 +743,11 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:698
msgid "Resulting ACL"
-msgstr "Résultat de l'ACL"
+msgstr "Résultat du controle d'accés"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:701
msgid "From ACL"
-msgstr "Depuis l'ACL"
+msgstr "Depuis le controle d'accés"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:704
msgid "default"
@@ -778,9 +762,8 @@
msgstr "Appliquer les changements"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:722
-#, fuzzy
msgid "Files List"
-msgstr "Fichiers"
+msgstr "Liste des fichiers"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:725
msgid "Maintenance"
@@ -796,12 +779,11 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:770
msgid "Id"
-msgstr "Identifiant"
+msgstr "Id"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:782
-#, fuzzy
msgid "Upload Date"
-msgstr "Envoyer"
+msgstr "Date d'envoie"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:797
msgid "The file you requested the removal needs some input before you can proceed"
@@ -894,7 +876,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:890
msgid "Complete upload"
-msgstr "Envoyer"
+msgstr "Envoi complet"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:893
msgid "FILE HAS BEEN SUCCESSFULLY REMOVED"
@@ -921,7 +903,7 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:962
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:977
msgid "Open the following link in a browser to confirm your account."
-msgstr "Cliquez sur le lient suivant pour confirmer votre inscription."
+msgstr "Cliquez sur le lien suivant pour confirmer votre inscription."
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:965
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:980
@@ -930,11 +912,11 @@
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:986
msgid "User login"
-msgstr "Authentification"
+msgstr "Login utilisateur"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:989
msgid "User name"
-msgstr "Nom complet"
+msgstr "Nom utilisateur"
#: /home/alex/devel/php/openupload/trunk/templates/default/default.c:998
msgid "You don't have an account?"
Modified: branches/v0.4/templates/default/locale/fr.inc.php
===================================================================
--- branches/v0.4/templates/default/locale/fr.inc.php 2009-03-07 19:05:46 UTC (rev 291)
+++ branches/v0.4/templates/default/locale/fr.inc.php 2009-03-07 19:16:25 UTC (rev 292)
@@ -4,8 +4,8 @@
$tr["If you think this is a misconfiguration please send an email to the site owner"] = "Si vous pensez que c'est une erreur, merci d'envoyer un courriel au propriétaire du site";
$tr["Captcha code"] = "Code Captcha";
$tr["Reload Image"] = "Recharger l'image";
-$tr["Please enter the following captcha to proceed for the removal"] = "Merci de saisir le code Captcha pour accéder au téléchargement";
-$tr["Protection"] = "Action";
+$tr["Please enter the following captcha to proceed for the removal"] = "Merci de saisir le code Captcha pour continuer avec la suppression";
+$tr["Protection"] = "Protection";
$tr["Captcha"] = "Protéger par code Captcha";
$tr["Please enter the following captcha to proceed for the download"] = "Merci de saisir le code Captcha pour accéder au téléchargement";
$tr["Use Captcha"] = "Protéger par code Captcha";
@@ -14,14 +14,14 @@
$tr["Password"] = "Mot de passe";
$tr["The download is password protected."] = "Le fichier est protégé par un mot de passe.";
$tr["Password protect"] = "Protéger avec un mot de passe";
-$tr["Send password in e-mail"] = "M'envoyer une copie du courriel";
+$tr["Send password in e-mail"] = "M'envoyer le mot de passe par courriel";
$tr["You are receiving this message because someone uploaded a file on our OpenUpload server for you."] = "Vous recevez ce message car quelqu'un a mis un fichier à votre disposition sur notre serveur OpenUpload.";
$tr["Description"] = "Description";
-$tr["User message"] = "Message";
+$tr["User message"] = "Message utilisateur";
$tr["To download the file open the following link in a browser"] = "Pour télécharger le fichier, copier le lien suivant dans un navigateur internet";
$tr["To remove the file from our server open the following link in a browser"] = "Pour supprimer le fichier de notre serveur, copier le lient suivant dans un navigateur internet";
$tr["For complains please send an email to"] = "En cas d'abus, merci d'envoyer un email à ";
-$tr["Send me an e-mail"] = "M'envoyer une copie du courriel";
+$tr["Send me an e-mail"] = "M'envoyer un courriel";
$tr["Send"] = "Envoyer";
$tr["Send e-mail to"] = "Envoyer un courriel à";
$tr["Send remove link"] = "Envoyer un lien de suppression";
@@ -31,26 +31,27 @@
$tr["Expires on"] = "Expire le";
$tr["Only the following mime types are allowed"] = "Seul les types MIME suivants sont autorisés";
$tr["Are you sure you want to delete the selected plugins?"] = "Êtes vous sur de vouloir supprimer les plugins sélectionnés ?";
-$tr["Are you sure you want to delete the selected plugin?"] = "Êtes vous sur de vouloir supprimer les plugins sélectionnés ?";
-$tr["S"] = "";
-$tr["ID"] = "";
+$tr["Are you sure you want to delete the selected plugin?"] = "Êtes vous sur de vouloir supprimer le plugins sélectionné ?";
+$tr["S"] = "S";
+$tr["ID"] = "ID";
$tr["Plugin"] = "Module";
$tr["Group"] = "Groupe";
$tr["Access"] = "Accès";
-$tr["Actions"] = "Action";
+$tr["Actions"] = "Actions";
$tr["Add"] = "Ajouter";
$tr["IP"] = "Adresse IP";
$tr["Priority"] = "Priorité";
$tr["Confirm"] = "Confirmer";
$tr["Name"] = "Nom complet";
-$tr["Rights set?"] = "Droits";
+$tr["Gruppo"] = "Groupe";
+$tr["Rights set?"] = "Droits mis ?";
$tr["Any"] = "Tous";
$tr["Yes"] = "Oui";
$tr["No"] = "Non";
$tr["Plugins ACL"] = "Modules contrôle d'accès";
$tr["Plugins Options"] = "Options des modules";
$tr["Settings"] = "Paramètres";
-$tr["Options"] = "Options des modules";
+$tr["Options"] = "Options";
$tr["Login name"] = "Nom utilisateur";
$tr["Retype Password"] = "Re-saisir le mot de passe";
$tr["Full Name"] = "Nom complet";
@@ -62,8 +63,8 @@
$tr["Are you sure you want to delete the selected languages?"] = "Etes vous sur de vouloir supprimer les langues sélectionnés ?";
$tr["Are you sure you want to delete the selected language?"] = "Etes vous sur de vouloir supprimer la langue sélectionnée ?";
$tr["Locale"] = "Localisation";
-$tr["Browser recon"] = "";
-$tr["Charset"] = "Changer";
+$tr["Browser recon"] = "Browser recon";
+$tr["Charset"] = "Font";
$tr["Plugin does not have any option to be configured"] = "Ce plugin n'a aucunes options de configuration";
$tr["Translation module"] = "Module de traduction";
$tr["Select one"] = "En choisir un";
@@ -76,7 +77,7 @@
$tr["Confirm registration with e-mail"] = "Confirmer l'enregistrement par courriel";
$tr["Template"] = "Modèle";
$tr["Template Footer"] = "Modèle de pied de page";
-$tr["Maximum upload size (in MB)"] = "Taille maximale d'envoi";
+$tr["Maximum upload size (in MB)"] = "Taille maximale d'envoi (en Mo)";
$tr["Maximum download time (in Min)"] = "Temps de téléchargement maximum ( en min)";
$tr["0 disables it"] = "0 les désactives";
$tr["Max num. of file uploaded per upload"] = "Nombre maximum de fichiers envoyés par envoi";
@@ -88,10 +89,10 @@
$tr["Enable activity logging?"] = "Activer les traces sur l'activité ?";
$tr["Database logging level"] = "Activer les traces de la base de donnée";
$tr["Syslog logging level"] = "Niveau de trace système";
-$tr["Save Changes"] = "Changer";
-$tr["Download config file"] = "Télécharger";
+$tr["Save Changes"] = "Sauvegarder les changements";
+$tr["Download config file"] = "Télécharger le fichier de configuration";
$tr["This are the configured settings for a review"] = "Voici les paramètres configurés";
-$tr["Filter"] = ...
[truncated message content] |
|
From: <ts...@us...> - 2009-03-09 15:57:16
|
Revision: 297
http://openupload.svn.sourceforge.net/openupload/?rev=297&view=rev
Author: tsdogs
Date: 2009-03-09 15:57:15 +0000 (Mon, 09 Mar 2009)
Log Message:
-----------
add Chinese
Modified Paths:
--------------
branches/v0.4/sql/mysql/2_base.sql
branches/v0.4/sql/pgsql/2_base.sql
branches/v0.4/sql/txt/langs.txt
branches/v0.4/www/setup.inc.php
Modified: branches/v0.4/sql/mysql/2_base.sql
===================================================================
--- branches/v0.4/sql/mysql/2_base.sql 2009-03-09 15:50:33 UTC (rev 296)
+++ branches/v0.4/sql/mysql/2_base.sql 2009-03-09 15:57:15 UTC (rev 297)
@@ -36,6 +36,7 @@
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf8', 1);
+INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('zh_CN', '中文', 'zh_CN.utf8', '[zh];[zh-CN]', 'utf8', 1);
--
-- Dump dei dati per la tabella `users`
Modified: branches/v0.4/sql/pgsql/2_base.sql
===================================================================
--- branches/v0.4/sql/pgsql/2_base.sql 2009-03-09 15:50:33 UTC (rev 296)
+++ branches/v0.4/sql/pgsql/2_base.sql 2009-03-09 15:57:15 UTC (rev 297)
@@ -86,6 +86,7 @@
INSERT INTO langs VALUES ('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1);
INSERT INTO langs VALUES ('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1);
INSERT INTO langs VALUES ('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf8', 1);
+INSERT INTO langs VALUES ('zh_CN', '中文', 'zh_CN.utf8', '[zh];[zh-CN]', 'utf8', 1);
--
Modified: branches/v0.4/sql/txt/langs.txt
===================================================================
--- branches/v0.4/sql/txt/langs.txt 2009-03-09 15:50:33 UTC (rev 296)
+++ branches/v0.4/sql/txt/langs.txt 2009-03-09 15:57:15 UTC (rev 297)
@@ -3,3 +3,4 @@
it|Italiano|it_IT.utf8|[it];[it-IT]|utf8|1
fr|Français|fr_FR.utf8|[fr];[fr-FR]|utf8|1
de|Deutsch|de_DE.utf8|[de];[de-DE]|utf8|1
+zh_CN|中文|zh_CN.utf8|[zh];[zh-CN]|utf8|1
Modified: branches/v0.4/www/setup.inc.php
===================================================================
--- branches/v0.4/www/setup.inc.php 2009-03-09 15:50:33 UTC (rev 296)
+++ branches/v0.4/www/setup.inc.php 2009-03-09 15:57:15 UTC (rev 297)
@@ -227,6 +227,7 @@
array ('id' => 'it', 'name' => 'Italiano', 'locale' => 'it_IT.utf8', 'browser' => '[it];[it-IT]', 'charset' => 'utf8', 'active' => 1),
array ('id' => 'fr', 'name' => 'Français', 'locale' => 'fr_FR.utf8', 'browser' => '[fr];[fr-FR]', 'charset' => 'utf8', 'active' => 1),
array ('id' => 'de', 'name' => 'Deutsch', 'locale' => 'de_DE.utf8', 'browser' => '[de];[de-DE]', 'charset' => 'utf8', 'active' => 1),
+ array ('id' => 'zh_CN', 'name' => '中文', 'locale' => 'zh_CN.utf8', 'browser' => '[zh];[zh-CN]', 'charset' => 'utf8', 'active' => 1),
),
'users' => array (
array ( 'id' => 1, 'login' => '%1', 'password' => '%2', 'name' => 'Administrator', 'group_name' => '%3', 'email' => '%6',
@@ -279,7 +280,7 @@
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
- array('id' => 7, 'module' => 'auth', 'action' => 'register 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'auth', 'action' => 'register', 'group_name' => '*', 'access' => 'deny' ),
array('id' => 8, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
array('id' => 9, 'module' => 'files', 'action' => 'l', 'group_name' => '%5', 'access' => 'deny' ),
array('id' => 10, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-08-21 17:52:57
|
Revision: 330
http://openupload.svn.sourceforge.net/openupload/?rev=330&view=rev
Author: tsdogs
Date: 2009-08-21 17:52:47 +0000 (Fri, 21 Aug 2009)
Log Message:
-----------
add Brazilian Portuguese, by Leonardo F. Cardoso
Modified Paths:
--------------
branches/v0.4/sql/mysql/2_base.sql
branches/v0.4/sql/pgsql/2_base.sql
branches/v0.4/sql/txt/langs.txt
branches/v0.4/www/setup.inc.php
Added Paths:
-----------
branches/v0.4/locale/pt_BR/
branches/v0.4/locale/pt_BR/LC_MESSAGES/
branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.mo
branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.po
branches/v0.4/locale/pt_BR.inc.php
branches/v0.4/templates/default/locale/pt_BR/
branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/
branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.mo
branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.po
branches/v0.4/templates/default/locale/pt_BR.inc.php
Added: branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Property changes on: branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.mo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.po
===================================================================
--- branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.po (rev 0)
+++ branches/v0.4/locale/pt_BR/LC_MESSAGES/openupload.po 2009-08-21 17:52:47 UTC (rev 330)
@@ -0,0 +1,291 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenUpload\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+
+msgid "Login incorrect!"
+msgstr "Usuário / Senha incorretos."
+
+msgid "plugin include file not found: %1"
+msgstr "Arquivo de include de plugin não encontrado: %1"
+
+msgid "IP Banned"
+msgstr "IP Banido"
+
+msgid "THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"
+msgstr "OCORREU UM ERRO DE PERMISSÕES - ACESSO NEGADO. POR FAVOR, SELECIONE UMA DAS OPÇÕES PERMITIDAS"
+
+msgid "ERROR: database folder not found!"
+msgstr "ERRO: pasta do banco de dados não encontrada"
+
+msgid "ERROR: Could not create folder for %1 table!"
+msgstr "ERRO: não foi possível criar pasta para a tabela %1!"
+
+msgid "ERROR: Could not create file for %1 table!"
+msgstr "ERRO: não foi possível criar o arquivo para a tabela %1!"
+
+msgid "Unsupported query criteria %1"
+msgstr "Critério de consulta não suportado %1"
+
+msgid "Login"
+msgstr "Entrar"
+
+msgid "User registration"
+msgstr "Registro de usuário"
+
+msgid "User options"
+msgstr "Opções de usuário"
+
+msgid "Preferences"
+msgstr "Preferências"
+
+msgid "Logout"
+msgstr "Sair"
+
+msgid "Registration is not supported by Auth Module"
+msgstr "Inscrição não suportada pelo módulo de autenticação"
+
+msgid "Username already taken, choose a new value"
+msgstr "Nome de usuário já existe, por favor selecione outro"
+
+msgid "Login name must be at least 5 characters long!"
+msgstr "Login deve ter pelo menos 5 caracteres!"
+
+msgid "Login name contains an invalid character. Valid vharacters are %1"
+msgstr "Login contém caracteres inválidos. Os caracteres válidos são %1"
+
+msgid "Please insert Full Name"
+msgstr "Por favor informe nome completo"
+
+msgid "Please insert a valid e-mail!"
+msgstr "Por favor informe um endereço válido de e-mail!"
+
+msgid "Password must be at least 5 characters long!"
+msgstr "A senha deve ter pelo menos 5 caracteres!"
+
+msgid "Passwords do not match! please retype."
+msgstr "As senhas não conferem! Por favor, tente novamente."
+
+msgid "[%1] User registration confirmation e-mail"
+msgstr "[%1] E-mail de confirmação de registro de usuário"
+
+msgid "Registration completed successfully. Have fun!"
+msgstr "Registro concluído com sucesso."
+
+msgid "User profile change not supported by Auth Module"
+msgstr "Modificação do profile de usuário não é suportado pelo módulo de autenticação"
+
+msgid "Full Name cannot be empty!"
+msgstr "Nome completo não pode estar vazio!"
+
+msgid "Please enter a valid e-mail address!"
+msgstr "Por favor, informe um endereço de e-mail válido!"
+
+msgid "Password must be at least 5 charaters long!"
+msgstr "A senha deve ter pelo menos 5 caracteres!"
+
+msgid "Old password is wrong!"
+msgstr "A senha antiga está incorreta!"
+
+msgid "New passwords do not match!"
+msgstr "As novas senhas não conferem!"
+
+msgid "Password has been changed!"
+msgstr "A senha foi modificada com sucesso!"
+
+msgid "My Files"
+msgstr "Meus arquivos"
+
+msgid "Public Files"
+msgstr "Arquivos públicos"
+
+msgid "File upload"
+msgstr "Envio de arquivo"
+
+msgid "File download"
+msgstr "Download de arquivo"
+
+msgid "File Removal"
+msgstr "Remoção de arquivo"
+
+msgid "File Upload"
+msgstr "Envio de arquivo"
+
+msgid "Upload failed for Unknown error code: %1"
+msgstr "Envio de arquivo falhou devido a erro desconhecido: %1"
+
+msgid "Maximum file size exceeded!"
+msgstr "Excedido tamanho máximo de arquivo!"
+
+msgid "Requested file does not exist!"
+msgstr "O arquivo solicitado não existe!"
+
+msgid "Wrong file id!"
+msgstr "ID de arquivo não existe!"
+
+msgid "Administration"
+msgstr "Administração"
+
+msgid "User administration not supported by Auth Module"
+msgstr "Administração de usuários não é suportada pelo módulo Auth"
+
+msgid "Cannot delete yourself!"
+msgstr "Não é possível remover a si próprio!"
+
+msgid "Group administration not supported by Auth Module"
+msgstr "Administração de grupos não é suportada pelo módulo Auth"
+
+msgid "Please provide a valid group name!"
+msgstr "Por favor informe um nome válido de grupo!"
+
+msgid "Any group"
+msgstr "Todos os grupos"
+
+msgid "ANY"
+msgstr "TODOS"
+
+msgid "Allow"
+msgstr "Permitir"
+
+msgid "Deny"
+msgstr "Negar"
+
+msgid "Specified criteria is not valid!"
+msgstr "Critério especificado é inválido!"
+
+msgid "Please specify at least one criteria!"
+msgstr "Por favor, especifique pelo menos um critério!"
+
+msgid "Enable"
+msgstr "Habilitar"
+
+msgid "Disable"
+msgstr "Desabilitar"
+
+msgid "Any"
+msgstr "Todos"
+
+msgid "Options for this group already exsist, please use the edit function!"
+msgstr "Opções para esse grupo já existem, por favor utilize outra função de edição!"
+
+msgid "Configuration sucessfully saved!"
+msgstr "Configuração salva com sucesso!"
+
+msgid "Configuration file could not be saved, please proceed with the download!"
+msgstr "Arquivo de configuração não pode ser salvo, por favor prossiga com o download!"
+
+msgid "IP %1 has been banned!"
+msgstr "IP %1 está banido!"
+
+msgid "IP %1 was already in state: %2!"
+msgstr "IP %1 já está no estado: %2!"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Language \"%1\" cannot be empty"
+msgstr "Idioma \"%1\" não pode estar vazio"
+
+msgid "Language \"%1\" already exists!"
+msgstr "Idioma \"%1\" já existe!"
+
+msgid "Name"
+msgstr "Nome"
+
+msgid "Language \"%1\" cannot be empty!"
+msgstr "Idioma \"%1\" não pode estar vazio!"
+
+msgid "Locale"
+msgstr "Localização"
+
+msgid "Charset"
+msgstr "Charset"
+
+msgid "LDAP connection failed!"
+msgstr "Conexão LDAP falhou!"
+
+msgid "Limit the mimetypes a user can upload"
+msgstr "Limita os tipos MIME que um usuário pode enviar"
+
+msgid "Allowed mime types"
+msgstr "Tipos MIME permitidos"
+
+msgid "Types in message"
+msgstr "Tipos na mensagem"
+
+msgid "WARNING: no mime types defined. Plugin has been disabled!"
+msgstr "ATENÇÃO: nenhum tipo MIME definido. O plugin foi desativado!"
+
+msgid "This file type (%1) is not allowed on this site!"
+msgstr "Este tipo de arquivo (%1) não é permitido neste site!"
+
+msgid "Add captcha protection to file download and user registration"
+msgstr "Adicionar proteção captcha para download de arquivos e registro de usuários"
+
+msgid "Wrong captcha code! please try again."
+msgstr "Código captcha incorreto! Por favor tente novamente."
+
+msgid "Compress the uploaded files"
+msgstr "Comprimir os arquivos enviados"
+
+msgid "Command to be executed. One per line."
+msgstr "Comandos para serem executados. Um por linha"
+
+msgid "Extensions corresponding to commands."
+msgstr "Extensões correspondentes a comandos"
+
+msgid "Name of compression commands"
+msgstr "Nome dos comandos de compressão"
+
+msgid "Limit the maximum size of a uploaded file"
+msgstr "Limita o tamanho máximo de um arquivo enviado"
+
+msgid "Maximum File Size"
+msgstr "Tamanho máximo de arquivo"
+
+msgid "Add option to send e-mail to the uploader or to another e-mail address"
+msgstr "Adiciona opção de enviar e-mail para o usuário que realiza o envio e para outro endereço de e-mail"
+
+msgid "Your e-mail address isn't valid!"
+msgstr "Votre adresse de courriel est invalide!"
+
+msgid "Destination e-mail address isn't valid!"
+msgstr "Endereço de e-mail destino não é válido!"
+
+msgid "Information about your uploaded file: %1"
+msgstr "Informação relativa ao seu arquivo enviado: %1"
+
+msgid "An upload was delivered to you"
+msgstr "Um arquivo foi enviado para você"
+
+msgid "E-mail was sent!"
+msgstr "E-mail enviado!"
+
+msgid "E-mail was sent to: %1!"
+msgstr "E-mail enviado para: %1!"
+
+msgid "Option to add password protection for file download"
+msgstr "Opção para adicionar senha para o download de arquivo"
+
+msgid "Wrong password!"
+msgstr "Senha incorreta!"
+
+msgid "Maximum number of days an upload will be kept on the server."
+msgstr "Número máximo de dias que um arquivo será mantido no servidor."
+
+msgid "N. Of Days"
+msgstr "N. de dias"
+
+msgid "Files will be kept on our server for %1 days"
+msgstr "Arquivos serão mantidos no nossos servidores por %1 dias"
+
+msgid "Never"
+msgstr "Jamais"
+
Added: branches/v0.4/locale/pt_BR.inc.php
===================================================================
--- branches/v0.4/locale/pt_BR.inc.php (rev 0)
+++ branches/v0.4/locale/pt_BR.inc.php 2009-08-21 17:52:47 UTC (rev 330)
@@ -0,0 +1,96 @@
+<?php
+// Brazilian Portuguese - By Leonardo F. Cardoso - leo...@gm...
+$tr["Login incorrect!"] = "Usuário / Senha incorretos.";
+$tr["plugin include file not found: %1"] = "Arquivo de include de plugin não encontrado: %1";
+$tr["IP Banned"] = "IP Banido";
+$tr["THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!"] = "OCORREU UM ERRO DE PERMISSÕES - ACESSO NEGADO. POR FAVOR, SELECIONE UMA DAS OPÇÕES PERMITIDAS";
+$tr["ERROR: database folder not found!"] = "ERRO: pasta do banco de dados não encontrada";
+$tr["ERROR: Could not create folder for %1 table!"] = "ERRO: não foi possível criar pasta para a tabela %1!";
+$tr["ERROR: Could not create file for %1 table!"] = "ERRO: não foi possível criar o arquivo para a tabela %1!";
+$tr["Unsupported query criteria %1"] = "Critério de consulta não suportado %1";
+$tr["Login"] = "Entrar";
+$tr["User registration"] = "Registro de usuário";
+$tr["User options"] = "Opções de usuário";
+$tr["Preferences"] = "Preferências";
+$tr["Logout"] = "Sair";
+$tr["Registration is not supported by Auth Module"] = "Inscrição não suportada pelo módulo de autenticação";
+$tr["Username already taken, choose a new value"] = "Nome de usuário já existe, por favor selecione outro";
+$tr["Login name must be at least 5 characters long!"] = "Login deve ter pelo menos 5 caracteres!";
+$tr["Login name contains an invalid character. Valid vharacters are %1"] = "Login contém caracteres inválidos. Os caracteres válidos são %1";
+$tr["Please insert Full Name"] = "Por favor informe nome completo";
+$tr["Please insert a valid e-mail!"] = "Por favor informe um endereço válido de e-mail!";
+$tr["Password must be at least 5 characters long!"] = "A senha deve ter pelo menos 5 caracteres!";
+$tr["Passwords do not match! please retype."] = "As senhas não conferem! Por favor, tente novamente.";
+$tr["[%1] User registration confirmation e-mail"] = "[%1] E-mail de confirmação de registro de usuário";
+$tr["Registration completed successfully. Have fun!"] = "Registro concluído com sucesso.";
+$tr["User profile change not supported by Auth Module"] = "Modificação do profile de usuário não é suportado pelo módulo de autenticação";
+$tr["Full Name cannot be empty!"] = "Nome completo não pode estar vazio!";
+$tr["Please enter a valid e-mail address!"] = "Por favor, informe um endereço de e-mail válido!";
+$tr["Password must be at least 5 charaters long!"] = "A senha deve ter pelo menos 5 caracteres!";
+$tr["Old password is wrong!"] = "A senha antiga está incorreta!";
+$tr["New passwords do not match!"] = "As novas senhas não conferem!";
+$tr["Password has been changed!"] = "A senha foi modificada com sucesso!";
+$tr["My Files"] = "Meus arquivos";
+$tr["Public Files"] = "Arquivos públicos";
+$tr["File upload"] = "Envio de arquivo";
+$tr["File download"] = "Download de arquivo";
+$tr["File Removal"] = "Remoção de arquivo";
+$tr["File Upload"] = "Envio de arquivo";
+$tr["Upload failed for Unknown error code: %1"] = "Envio de arquivo falhou devido a erro desconhecido: %1";
+$tr["Maximum file size exceeded!"] = "Excedido tamanho máximo de arquivo!";
+$tr["Requested file does not exist!"] = "O arquivo solicitado não existe!";
+$tr["Wrong file id!"] = "ID de arquivo não existe!";
+$tr["Administration"] = "Administração";
+$tr["User administration not supported by Auth Module"] = "Administração de usuários não é suportada pelo módulo Auth";
+$tr["Cannot delete yourself!"] = "Não é possível remover a si próprio!";
+$tr["Group administration not supported by Auth Module"] = "Administração de grupos não é suportada pelo módulo Auth";
+$tr["Please provide a valid group name!"] = "Por favor informe um nome válido de grupo!";
+$tr["Any group"] = "Todos os grupos";
+$tr["ANY"] = "TODOS";
+$tr["Allow"] = "Permitir";
+$tr["Deny"] = "Negar";
+$tr["Specified criteria is not valid!"] = "Critério especificado é inválido!";
+$tr["Please specify at least one criteria!"] = "Por favor, especifique pelo menos um critério!";
+$tr["Enable"] = "Habilitar";
+$tr["Disable"] = "Desabilitar";
+$tr["Any"] = "Todos";
+$tr["Options for this group already exsist, please use the edit function!"] = "Opções para esse grupo já existem, por favor utilize outra função de edição!";
+$tr["Configuration sucessfully saved!"] = "Configuração salva com sucesso!";
+$tr["Configuration file could not be saved, please proceed with the download!"] = "Arquivo de configuração não pode ser salvo, por favor prossiga com o download!";
+$tr["IP %1 has been banned!"] = "IP %1 está banido!";
+$tr["IP %1 was already in state: %2!"] = "IP %1 já está no estado: %2!";
+$tr["ID"] = "ID";
+$tr["Language \"%1\" cannot be empty"] = "Idioma \"%1\" não pode estar vazio";
+$tr["Language \"%1\" already exists!"] = "Idioma \"%1\" já existe!";
+$tr["Name"] = "Nome";
+$tr["Language \"%1\" cannot be empty!"] = "Idioma \"%1\" não pode estar vazio!";
+$tr["Locale"] = "Localização";
+$tr["Charset"] = "Charset";
+$tr["LDAP connection failed!"] = "Conexão LDAP falhou!";
+$tr["Limit the mimetypes a user can upload"] = "Limita os tipos MIME que um usuário pode enviar";
+$tr["Allowed mime types"] = "Tipos MIME permitidos";
+$tr["Types in message"] = "Tipos na mensagem";
+$tr["WARNING: no mime types defined. Plugin has been disabled!"] = "ATENÇÃO: nenhum tipo MIME definido. O plugin foi desativado!";
+$tr["This file type (%1) is not allowed on this site!"] = "Este tipo de arquivo (%1) não é permitido neste site!";
+$tr["Add captcha protection to file download and user registration"] = "Adicionar proteção captcha para download de arquivos e registro de usuários";
+$tr["Wrong captcha code! please try again."] = "Código captcha incorreto! Por favor tente novamente.";
+$tr["Compress the uploaded files"] = "Comprimir os arquivos enviados";
+$tr["Command to be executed. One per line."] = "Comandos para serem executados. Um por linha";
+$tr["Extensions corresponding to commands."] = "Extensões correspondentes a comandos";
+$tr["Name of compression commands"] = "Nome dos comandos de compressão";
+$tr["Limit the maximum size of a uploaded file"] = "Limita o tamanho máximo de um arquivo enviado";
+$tr["Maximum File Size"] = "Tamanho máximo de arquivo";
+$tr["Add option to send e-mail to the uploader or to another e-mail address"] = "Adiciona opção de enviar e-mail para o usuário que realiza o envio e para outro endereço de e-mail";
+$tr["Your e-mail address isn't valid!"] = "Votre adresse de courriel est invalide!";
+$tr["Destination e-mail address isn't valid!"] = "Endereço de e-mail destino não é válido!";
+$tr["Information about your uploaded file: %1"] = "Informação relativa ao seu arquivo enviado: %1";
+$tr["An upload was delivered to you"] = "Um arquivo foi enviado para você";
+$tr["E-mail was sent!"] = "E-mail enviado!";
+$tr["E-mail was sent to: %1!"] = "E-mail enviado para: %1!";
+$tr["Option to add password protection for file download"] = "Opção para adicionar senha para o download de arquivo";
+$tr["Wrong password!"] = "Senha incorreta!";
+$tr["Maximum number of days an upload will be kept on the server."] = "Número máximo de dias que um arquivo será mantido no servidor.";
+$tr["N. Of Days"] = "N. de dias";
+$tr["Files will be kept on our server for %1 days"] = "Arquivos serão mantidos no nossos servidores por %1 dias";
+$tr["Never"] = "Jamais";
+?>
Modified: branches/v0.4/sql/mysql/2_base.sql
===================================================================
--- branches/v0.4/sql/mysql/2_base.sql 2009-07-03 17:31:29 UTC (rev 329)
+++ branches/v0.4/sql/mysql/2_base.sql 2009-08-21 17:52:47 UTC (rev 330)
@@ -36,6 +36,7 @@
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf-8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf-8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf-8', 1);
+INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('pt_BR', 'Português', 'pt_BR.utf8', '[pt];[pt-BR]', 'utf-8', 1);
INSERT INTO `langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('zh_CN', '中文', 'zh_CN.utf8', '[zh];[zh-CN]', 'utf-8', 1);
--
Modified: branches/v0.4/sql/pgsql/2_base.sql
===================================================================
--- branches/v0.4/sql/pgsql/2_base.sql 2009-07-03 17:31:29 UTC (rev 329)
+++ branches/v0.4/sql/pgsql/2_base.sql 2009-08-21 17:52:47 UTC (rev 330)
@@ -86,6 +86,7 @@
INSERT INTO langs VALUES ('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf-8', 1);
INSERT INTO langs VALUES ('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf-8', 1);
INSERT INTO langs VALUES ('de', 'Deutsch', 'de_DE.utf8', '[de];[de-DE]', 'utf-8', 1);
+INSERT INTO langs VALUES ('pt_BR', 'Português', 'pt_BR.utf8', '[pt];[pt-BR]', 'utf-8', 1);
INSERT INTO langs VALUES ('zh_CN', '中文', 'zh_CN.utf8', '[zh];[zh-CN]', 'utf-8', 1);
Modified: branches/v0.4/sql/txt/langs.txt
===================================================================
--- branches/v0.4/sql/txt/langs.txt 2009-07-03 17:31:29 UTC (rev 329)
+++ branches/v0.4/sql/txt/langs.txt 2009-08-21 17:52:47 UTC (rev 330)
@@ -3,4 +3,5 @@
it|Italiano|it_IT.utf8|[it];[it-IT]|utf-8|1
fr|Français|fr_FR.utf8|[fr];[fr-FR]|utf-8|1
de|Deutsch|de_DE.utf8|[de];[de-DE]|utf-8|1
+pt_BR|Português|pt_BR.utf8|[pt];[pt-BR]|utf-8|1
zh_CN|中文|zh_CN.utf8|[zh];[zh-CN]|utf-8|1
Added: branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.mo
===================================================================
(Binary files differ)
Property changes on: branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.mo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.po
===================================================================
--- branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.po (rev 0)
+++ branches/v0.4/templates/default/locale/pt_BR/LC_MESSAGES/template.po 2009-08-21 17:52:47 UTC (rev 330)
@@ -0,0 +1,621 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenUpload\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+
+msgid "Your IP has been blocked!"
+msgstr "Seu endereço IP foi bloqueado!"
+
+msgid "You cannot use this site."
+msgstr "Você não pode utilizar este site."
+
+msgid "If you think this is a misconfiguration please send an email to the site owner"
+msgstr "Se isso parecer um engano, por favor envie um email para o administrador"
+
+msgid "Captcha code"
+msgstr "Código Captcha"
+
+msgid "Reload Image"
+msgstr "Recarregar a imagem"
+
+msgid "Please enter the following captcha to proceed for the removal"
+msgstr "Por favor, digite o captcha para prosseguir com a remoção"
+
+msgid "Protection"
+msgstr "Proteção"
+
+msgid "Captcha"
+msgstr "Proteger com código Captcha"
+
+msgid "Please enter the following captcha to proceed for the download"
+msgstr "Por favor, digite o captcha para prosseguir com o download"
+
+msgid "Use Captcha"
+msgstr "Usar Captcha"
+
+msgid "Compress the files"
+msgstr "Comprimir os arquivos"
+
+msgid "No compression"
+msgstr "Sem compressão"
+
+msgid "Password"
+msgstr "Senha"
+
+msgid "The download is password protected."
+msgstr "O download é protegido por senha."
+
+msgid "Password protect"
+msgstr "Protegido por senha"
+
+msgid "Send password in e-mail"
+msgstr "Enviar a senha por e-mail"
+
+msgid "You are receiving this message because someone uploaded a file on our OpenUpload server for you."
+msgstr "Você recebeu este e-mail pois um novo arquivo foi disponibilizado para você nos nossos servidores."
+
+msgid "Description"
+msgstr "Descrição"
+
+msgid "User message"
+msgstr "Mensagem para o usuário"
+
+msgid "To download the file open the following link in a browser"
+msgstr "Para fazer o download, abra o seguinte link no seu navegador"
+
+msgid "To remove the file from our server open the following link in a browser"
+msgstr "Para remover o arquivo do servidor, abra o seguinte link no seu navegador"
+
+msgid "For complains please send an email to"
+msgstr "Em caso de abuso, por favor envie e-mail para "
+
+msgid "Send me an e-mail"
+msgstr "Me envie um e-mail"
+
+msgid "Send"
+msgstr "Enviar"
+
+msgid "Send e-mail to"
+msgstr "Enviar e-mail para"
+
+msgid "Send remove link"
+msgstr "Enviar link de remoção"
+
+msgid "e-mail Subject"
+msgstr "Assunto do e-mail"
+
+msgid "e-mail Message"
+msgstr "Mensagem do e-mail"
+
+msgid "Your e-mail address"
+msgstr "Seu endereço de e-mail"
+
+msgid "Expires on"
+msgstr "Expira em"
+
+msgid "Only the following mime types are allowed"
+msgstr "Apenas os seguintes tipos MIME são aceitos"
+
+msgid "Are you sure you want to delete the selected plugins?"
+msgstr "Tem certeza que deseja remover os plugins selecionados?"
+
+msgid "Are you sure you want to delete the selected plugin?"
+msgstr "Tem certeza que deseja remover o plugin selecionado?"
+
+msgid "S"
+msgstr "S"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Plugin"
+msgstr "Plugin"
+
+msgid "Group"
+msgstr "Grupo"
+
+msgid "Access"
+msgstr "Acesso"
+
+msgid "Actions"
+msgstr "Ações"
+
+msgid "Add"
+msgstr "Adicionar"
+
+msgid "IP"
+msgstr "Endereço IP"
+
+msgid "Priority"
+msgstr "Prioridade"
+
+msgid "Confirm"
+msgstr "Confirmar"
+
+msgid "Name"
+msgstr "Nome completo"
+
+msgid "Gruppo"
+msgstr "Grupo"
+
+msgid "Rights set?"
+msgstr "Privilégios configurados?"
+
+msgid "Any"
+msgstr "Todos"
+
+msgid "Yes"
+msgstr "Sim"
+
+msgid "No"
+msgstr "Não"
+
+msgid "Plugins ACL"
+msgstr "Plugins ACL"
+
+msgid "Plugins Options"
+msgstr "Opções dos plugins"
+
+msgid "Settings"
+msgstr "Configurações"
+
+msgid "Options"
+msgstr "Opções"
+
+msgid "Login name"
+msgstr "Login"
+
+msgid "Retype Password"
+msgstr "Redigite a senha"
+
+msgid "Full Name"
+msgstr "Nome completo"
+
+msgid "e-mail"
+msgstr "E-mail"
+
+msgid "Preferred language"
+msgstr "Idioma de preferência"
+
+msgid "Active"
+msgstr "Ativo"
+
+msgid "Are you sure you want to delete the selected banned ips?"
+msgstr "Tem certeza que deseja remover os IPs banidos selecionados?"
+
+msgid "Are you sure you want to delete the selected banned ip?"
+msgstr "Tem certeza que deseja remover o IP banido selecionado?"
+
+msgid "Are you sure you want to delete the selected languages?"
+msgstr "Tem certeza que deseja remover os idiomas selecionados?"
+
+msgid "Are you sure you want to delete the selected language?"
+msgstr "Tem certeza que deseja remover o idioma selecionado?"
+
+msgid "Locale"
+msgstr "Local"
+
+msgid "Browser recon"
+msgstr "Browser recon"
+
+msgid "Charset"
+msgstr "Charset"
+
+msgid "Plugin does not have any option to be configured"
+msgstr "Plugin não tem opções de configuração"
+
+msgid "Translation module"
+msgstr "Módulo de tradução"
+
+msgid "Select one"
+msgstr "Selecione um"
+
+msgid "Default language"
+msgstr "Idioma default"
+
+msgid "Authentication module"
+msgstr "Módulo de autenticação"
+
+msgid "(LDAP Configuration needs to be done<br /> by hand for now)"
+msgstr "(Por enquanto, a configuração LDAP deve ser feita manualmente)"
+
+msgid "Site title"
+msgstr "Título do site"
+
+msgid "WebMaster E-mail"
+msgstr "E-mail do webmaster (administrador do site)"
+
+msgid "Site E-mail"
+msgstr "E-mail do site"
+
+msgid "Confirm registration with e-mail"
+msgstr "Confirmar registro através de e-mail"
+
+msgid "Template"
+msgstr "Template"
+
+msgid "Template Footer"
+msgstr "Rodapé do Template"
+
+msgid "Maximum upload size (in MB)"
+msgstr "Tamanho máximo de upload (em MB)"
+
+msgid "Maximum download time (in Min)"
+msgstr "Tempo máximo de download (em minutos)"
+
+msgid "0 disables it"
+msgstr "0 torna desativado"
+
+msgid "Max num. of file uploaded per upload"
+msgstr "Número máximo de arquivos enviados por upload"
+
+msgid "Use shorter links?"
+msgstr "Utilizar links curtos?"
+
+msgid "Length of IDs (suggested min 6)"
+msgstr "Tamanho dos identificadores (mínimo sugerido de 6)"
+
+msgid "Use alphanumerical IDs?"
+msgstr "Utilizar identificadores alfanuméricos?"
+
+msgid "Allow unprotected file removal?"
+msgstr "Permitir remoção desprotegida de arquivos?"
+
+msgid "Upload tracking method"
+msgstr "Método de acompanhamento de upload"
+
+msgid "Enable activity logging?"
+msgstr "Habilitar registro de atividades?"
+
+msgid "Database logging level"
+msgstr "Nível de log no banco de dados"
+
+msgid "Syslog logging level"
+msgstr "Nível de log no Syslog"
+
+msgid "Save Changes"
+msgstr "Salvar modificações"
+
+msgid "Download config file"
+msgstr "Download do arquivo de configuração"
+
+msgid "This are the configured settings for a review"
+msgstr "Estas são as configurações atuais"
+
+msgid "Filter"
+msgstr "Filtros"
+
+msgid "All"
+msgstr "Todos"
+
+msgid "Errors"
+msgstr "Erros"
+
+msgid "Security"
+msgstr "Segurança"
+
+msgid "Warnings"
+msgstr "Alertas"
+
+msgid "Notice"
+msgstr "Notificação"
+
+msgid "Info"
+msgstr "Informação"
+
+msgid "Date"
+msgstr "Data"
+
+msgid "Type"
+msgstr "Tipo"
+
+msgid "User"
+msgstr "Usuário"
+
+msgid "Module"
+msgstr "Módulo"
+
+msgid "Action"
+msgstr "Ação"
+
+msgid "Real Action"
+msgstr "Ação real"
+
+msgid "Result"
+msgstr "Resultado"
+
+msgid "Additional Info"
+msgstr "Informação adicional"
+
+msgid "Maintenence"
+msgstr "Manutenção"
+
+msgid "This options let you delete files based on some options."
+msgstr "Estas opções permitem a remoção de arquivos baseada em algumas opções."
+
+msgid "Please select one or more criteria for file deletion"
+msgstr "Por favor, selecione um ou mais critérios para remoção de arquivos"
+
+msgid "Delete files older than"
+msgstr "Remover arquivos mais antigos que"
+
+msgid "days"
+msgstr "dias"
+
+msgid "Which user name is"
+msgstr "Que o nome do usuário seja"
+
+msgid "Which upload day is"
+msgstr "Que o dia de upload seja"
+
+msgid "Which size is bigger than"
+msgstr "Que o tamanho seja maior que"
+
+msgid "Proceed"
+msgstr "Continuar"
+
+msgid "Expiration plugin"
+msgstr "Plugin de expiração"
+
+msgid "To delete files marked as expired by the expire plugin press the \"Delete expired\" button."
+msgstr "Para apagar os arquivos expirados pelo plugin de expiração, clique no botão \"Apagar Expirados\"."
+
+msgid "Delete expired"
+msgstr "Apagar Expirados"
+
+msgid "Are you sure you want to delete the selected users?"
+msgstr "Tem certeza que deseja apagar os usuários selecionados?"
+
+msgid "Are you sure you want to delete the selected user?"
+msgstr "Tem certeza que deseja apagar o usuário selecionado?"
+
+msgid "Login"
+msgstr "Entrar"
+
+msgid "E-mail"
+msgstr "E-mail"
+
+msgid "Plugins"
+msgstr "Plugins"
+
+msgid "Files"
+msgstr "Arquivos"
+
+msgid "Users"
+msgstr "Usuários"
+
+msgid "Groups"
+msgstr "Grupos"
+
+msgid "Rights"
+msgstr "Permissões"
+
+msgid "Languages"
+msgstr "Idiomas"
+
+msgid "Banned"
+msgstr "Banidos"
+
+msgid "Logs"
+msgstr "Logs"
+
+msgid "Deletion Result"
+msgstr "Resultado da remoção"
+
+msgid "The following files have been deleted."
+msgstr "Os seguintes arquivos foram removidos."
+
+msgid "The following files will be deleted, proceed?"
+msgstr "Os seguintes arquivos serão removidos, continuar?"
+
+msgid "Yes, delete all"
+msgstr "Sim, remover todos"
+
+msgid "No files matched the criteria"
+msgstr "Nenhum arquivo atente ao critério"
+
+msgid "Back to Maintenance"
+msgstr "Retornar para Manutenção"
+
+msgid "Are you sure you want to delete the selected groups?"
+msgstr "Tem certeza que deseja remover os grupos selecionados?"
+
+msgid "Are you sure you want to delete the selected group?"
+msgstr "Tem certeza que deseja remover o grupo selecionado?"
+
+msgid "Group Name"
+msgstr "Nome do Grupo"
+
+msgid "Here you can administer"
+msgstr "Utilitár...
[truncated message content] |
|
From: <ts...@us...> - 2009-08-21 18:06:57
|
Revision: 333
http://openupload.svn.sourceforge.net/openupload/?rev=333&view=rev
Author: tsdogs
Date: 2009-08-21 18:06:47 +0000 (Fri, 21 Aug 2009)
Log Message:
-----------
Add MSSQL support, by Leonardo F. Cardoso
Modified Paths:
--------------
branches/v0.4/www/setup.inc.php
Added Paths:
-----------
branches/v0.4/lib/modules/db/mssql.inc.php
Added: branches/v0.4/lib/modules/db/mssql.inc.php
===================================================================
--- branches/v0.4/lib/modules/db/mssql.inc.php (rev 0)
+++ branches/v0.4/lib/modules/db/mssql.inc.php 2009-08-21 18:06:47 UTC (rev 333)
@@ -0,0 +1,275 @@
+<?php
+
+/*
+ * Code by Leonardo F. Cardoso - leo...@gm...
+ * 17 - August - 2009
+ *
+ * Known issues:
+ * - function mssql_escape_string is not with "Object Oriented" structure.
+ * - simulating "LIMIT / OFFSET" with bad performance
+ */
+
+/**
+ * Simulate mssql_escape_string
+ * @param $string_to_escape
+ * @return unknown_type
+ */
+function mssql_escape_string($string_to_escape) {
+ $replaced_string = str_replace("'","''",$string_to_escape);
+ return $replaced_string;
+}
+
+class mssqlDB extends dbBase {
+ var $config;
+ var $db;
+ var $prefix;
+
+
+ function mssqlDB($config = array()) {
+ $this->config = $config;
+ $this->prefix = $config['prefix'];
+ }
+
+ function init() {
+ $this->db = mssql_connect($this->config['host'], $this->config['user'], $this->config['password'])
+ or die('ERROR: connection to db failed!');
+ mssql_select_db($this->config['name']) or die('ERROR: database could not be opened.');
+ }
+
+ function free() {
+ mssql_close($this->db);
+ }
+
+ function newId($tbl,$field = 'id',$keys = array ()) {
+ $sql = 'SELECT max(['.$field.']) as newid FROM ['.$this->prefix.$tbl.']';
+ if (count($keys)>0) {
+ $where = '';
+ foreach ($keys as $k => $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$k.']=\''.(mssql_escape_string($v)).'\'';
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ $res = mssql_query($sql);
+ $newid = mssql_fetch_assoc($res);
+ mssql_free_result($res);
+ return $id['newid']+1;
+ }
+
+ function newRandomId($tbl,$field = 'id',$size = 30, $alpha = false) {
+ $found = true;
+ while ($found) {
+ $id = randomName($size,$size,$alpha);
+ $sql = 'SELECT '.$field.' FROM ['.$this->prefix.$tbl.'] WHERE ['.$field.']=\''.$id.'\'';
+ $res = mssql_query($sql);
+ $found = mssql_num_rows($res)>0;
+ mssql_free_result($res);
+ }
+ return $id;
+ }
+
+ function count($tbl,$keys = array()) {
+ $sql = 'SELECT count(*) AS num FROM ['.$this->prefix.$tbl.']';
+ if (count($keys)>0) {
+ $where = '';
+ foreach ($keys as $k => $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$k.']=\''.(mssql_escape_string($v)).'\'';
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ $res = mssql_query($sql);
+ $row = mssql_fetch_assoc($res);
+ mssql_free_result($res);
+ return $row['num'];
+ }
+
+ function read($tbl,$keys = array(), $sort = array(), $limit = '', $assoc = array()) {
+ $sql = 'SELECT * FROM ['.$this->prefix.$tbl.']';
+ if (count($keys)>0) {
+ $where = '';
+ foreach ($keys as $k => $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$k.']=\''.(mssql_escape_string($v)).'\'';
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ if (count($sort)>0) {
+ $sorting = '';
+ foreach ($sort as $s) {
+ if ($sorting!='') $sorting.=',';
+ $sorting .= $s;
+ }
+ $sql .= ' ORDER BY '.$sorting;
+ }
+
+ /* SQL Server doesn't have LIMIT/OFFSET
+ * Let's select limit+offset rows and let the code get the needed ones.
+ * Bad performance this way.
+ */
+ if ($limit != '') {
+
+ $l = explode(',',$limit);
+
+ $realLimit = $l[1];
+ $realOffset= $l[0];
+ $topClausule = $realLimit + $realOffset;
+
+ $sql = str_replace('SELECT * ', 'SELECT TOP ' . $topClausule . ' * ', $sql);
+
+ }
+
+ $res = mssql_query($sql);
+ if (!$res) { die('query failed: '.$sql); }
+ $result = array();
+
+ /* Let's ignore "offset" tuples */
+ for ($index = 0; $index < $realOffset; $index++) {
+ $row = mssql_fetch_assoc($res);
+ }
+
+ while ($row = mssql_fetch_assoc($res)) {
+ if (count($assoc)) { /* maybe there is a better way to do this? */
+ $str = '$result';
+ foreach ($assoc as $k) {
+ $str .= '[\''.$row[$k].'\']';
+ }
+ $str .= '=$row;';
+ eval($str);
+ } else {
+ $result[] = $row;
+ }
+ }
+
+ mssql_free_result($res);
+
+ return $result;
+ }
+
+ /* This is an extended function which extends the select criteria */
+ function readex($tbl,$criteria = array(), $sort = array(),$limit = '') {
+ $sql = 'SELECT * FROM ['.$this->prefix.$tbl.']';
+
+ if (count($criteria)>0) {
+ $where = '';
+ foreach ($criteria as $ands) {
+ $where_save = $where;
+ $where = '';
+ foreach ($ands as $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$v[0].']'.$v[1].'\''.(mssql_escape_string($v[2])).'\'';
+ }
+ if ($where_save!='') {
+ $where = $where_save.' OR ('.$where.')';
+ } else {
+ $where = '('.$where.')';
+ }
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ if (count($sort)>0) {
+ $sorting = '';
+ foreach ($sort as $s) {
+ if ($sorting!='') $sorting.=',';
+ $sorting .= $s;
+ }
+ $sql .= ' ORDER BY '.$sorting;
+ }
+
+ /* SQL Server doesn't have LIMIT/OFFSET
+ * Let's select limit+offset rows and let the code get the needed ones.
+ * Bad performance this way.
+ */
+ if ($limit != '') {
+
+ $l = explode(',',$limit);
+
+ $realLimit = $l[1];
+ $realOffset= $l[0];
+ $topClausule = $realLimit + $realOffset;
+
+ $sql = str_replace('SELECT * ', 'SELECT TOP ' . $topClausule . ' * ', $sql);
+
+ }
+
+ $res = mssql_query($sql);
+ if (!$res) { die('query failed: '.$sql); }
+ $result = array();
+
+ /* Let's ignore "offset" tuples */
+ for ($index = 0; $index < $realOffset; $index++) {
+ $row = mssql_fetch_assoc($res);
+ }
+
+ while ($row = mssql_fetch_assoc($res)) {
+ $result[] = $row;
+ }
+
+ mssql_free_result($res);
+ return $result;
+ }
+
+ function insert($tbl,$values,$fields = array()) {
+ $sql = 'INSERT INTO ['.$this->prefix.$tbl.']';
+ $flist = '';
+ $vlist = '';
+ if (count($fields)>0) {
+ foreach ($fields as $f) {
+ if ($flist!='') $flist .= ',';
+ if ($vlist!='') $vlist .= ',';
+ $flist .= '['.$f.']';
+ $vlist .= '\''.mssql_escape_string($values[$f]).'\'';
+ }
+ } else {
+ foreach ($values as $k => $v) {
+ if ($flist!='') $flist .= ',';
+ if ($vlist!='') $vlist .= ',';
+ $flist .= '['.$k.']';
+ $vlist .= '\''.mssql_escape_string($v).'\'';
+ }
+ }
+ $sql .= ' ('.$flist.') VALUES ('.$vlist.')';
+ mssql_query($sql) or die("ERROR: query failed: ".$sql);
+ }
+
+ function update($tbl,$values,$keys = array(),$fields = array()) {
+ $sql = 'UPDATE ['.$this->prefix.$tbl.']';
+ $set = '';
+ if (count($fields)>0) {
+ foreach ($fields as $f) {
+ if ($set!='') $set .= ',';
+ $set .= '['.$f.']=\''.mssql_escape_string($values[$f]).'\'';
+ }
+ } else {
+ foreach ($values as $k => $v) {
+ if ($set!='') $set .= ',';
+ $set .= '['.$k.']=\''.mssql_escape_string($v).'\'';
+ }
+ }
+ $sql .= ' SET '.$set;
+ if (count($keys)>0) { /* should always be */
+ $where = '';
+ foreach ($keys as $k => $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$k.']=\''.mssql_escape_string($v).'\'';
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ mssql_query($sql);
+ }
+
+ function delete($tbl,$keys = array()) {
+ $sql = 'DELETE FROM ['.$this->prefix.$tbl.']';
+ if (count($keys)>0) {
+ $where = '';
+ foreach ($keys as $k => $v) {
+ if ($where != '') $where .= ' AND ';
+ $where .= '['.$k.']=\''.mssql_escape_string($v).'\'';
+ }
+ $sql .= ' WHERE '.$where;
+ }
+ mssql_query($sql);
+ }
+}
+
+?>
Modified: branches/v0.4/www/setup.inc.php
===================================================================
--- branches/v0.4/www/setup.inc.php 2009-08-21 17:56:58 UTC (rev 332)
+++ branches/v0.4/www/setup.inc.php 2009-08-21 18:06:47 UTC (rev 333)
@@ -36,6 +36,16 @@
*/
+/**
+ * Simulate mssql_escape_string
+ * @param $string_to_escape
+ * @return unknown_type
+ */
+function mssql_escape_string($string_to_escape) {
+ $replaced_string = str_replace("'","''",$string_to_escape);
+ return $replaced_string;
+}
+
if (!defined('__VALID_CALLING_SCRIPT')) die('DIRECT ACCESS IS DENIED');
ob_start();
@@ -104,6 +114,17 @@
'droptable' => 'DROP TABLE IF EXISTS %1%2',
);
+//LCARD
+$MSSQL_QUERY = array (
+ 'dropdb' => 'DROP DATABASE "%1"',
+ 'createdb' => 'CREATE DATABASE "%1"',
+ 'dropuser' => '',
+ 'createuser' => '',
+ 'grant' => '',
+ 'droptable' => 'IF EXISTS (SELECT name FROM sysobjects WHERE name = \'%1%2\' AND xtype=\'U\' ) DROP TABLE %1%2',
+);
+//LCARD
+
$DB_STRUCTURE = array (
'acl' => array (
'fields' => array (
@@ -445,6 +466,14 @@
msg('POSTGRESQL Support: not found','fail');
msg('POSTGRESQL is needed if you plan to use postgresql');
}
+ //LCARD - must config PHP.INI
+ if (function_exists('mssql_connect')) {
+ msg('MSSQL Support: exsists','ok');
+ } else {
+ msg('MSSQL Support: not found','fail');
+ msg('MSSQL is needed if you plan to use mssql');
+ }
+ //LCARD
if (function_exists('ldap_connect')) {
msg('LDAP Support: exsists','ok');
} else {
@@ -977,6 +1006,7 @@
}
function dbconnect($host,$user,$pwd,$db,$debug = false) {
+
global $dbhandle;
global $CONFIG;
@@ -1003,6 +1033,15 @@
return false;
}
break;
+ // LCARD
+ case 'mssql':
+ $dbhandle = mssql_connect($host, $user, $pwd);
+ if (!(mssql_select_db($db, $dbhandle))) {
+ if ($debug) echo '<div id="message">Reason: '.mssql_get_last_message().'</div>';
+ return false;
+ }
+ break;
+ // LCARD
default:
msg('ERROR: dbtype: '.$CONFIG['database']['type'].' not yet supported','fail');
return false;
@@ -1031,6 +1070,16 @@
return false;
}
break;
+ //LCARD
+ case 'mssql':
+ // DEBUG ALL SQL SERVER QUERIES
+ // print "<br>$query<br>";
+ if (! mssql_query($query) ) {
+ if ($debug) echo '<div id="message">Query failed: '.$query.'<br />Reason: '.mssql_get_last_message().'</div>';
+ return false;
+ }
+ break;
+ //LCARD
}
return true;
}
@@ -1083,6 +1132,9 @@
$query .= ')';
return dbquery($query,array(),$debug);
break;
+
+
+
case 'pgsql':
$fieldlist = '';
foreach ($fields as $k => $f) {
@@ -1143,6 +1195,55 @@
}
return $res;
break;
+
+
+ //LCARD -Attention to IDENTITY fields
+ case 'mssql':
+ $fieldlist = '';
+ foreach ($fields as $k => $f) {
+ $field = '['.$k.']';
+ switch ($f['type']) {
+ case 'char':
+ $field .= ' VARCHAR('.$f['size'].')';
+ break;
+ case 'int':
+ $field .= ' INT';
+ break;
+ case 'text':
+ $field .= ' TEXT';
+ break;
+ case 'datetime':
+ $field .= ' DATETIME';
+ break;
+ case 'date':
+ $field .= ' DATE';
+ break;
+ }
+ $field .= ' '.$f['null'].' '.$f['extra'];
+ // AUTO_INCREMENT -> IDENTITY
+ $field = str_replace("auto_increment", "IDENTITY", $field);
+ $fieldlist .= $field.','."\n";
+ }
+ $query = 'CREATE TABLE ['.$table.'] ('.$fieldlist.')';
+ $res = dbquery($query,array(),$debug);
+ if ($res) { /* add the keys */
+ foreach ($keys as $n => $k) {
+ $key = '';
+ foreach ($k['fields'] as $f) {
+ if ($key!='') $key.=',';
+ $key .= $f;
+ }
+ if ($k['primary']) {
+ $query = 'ALTER TABLE ['.$table.'] ADD CONSTRAINT '.$table.'_pkey PRIMARY KEY ('.$key.')';
+ } else {
+ $query = 'CREATE '.($k['unique']?'UNIQUE ':'').'INDEX '.$table.'_'.$n.'_idx ON ['.$table.'] ('.$key.')';
+ }
+ $res = dbquery($query,array(),$debug);
+ }
+ }
+ return $res;
+ break;
+
}
return false;
}
@@ -1180,8 +1281,36 @@
}
$query = 'INSERT INTO %0'.$table.' ('.$fields.') VALUES ('.$values.')';
break;
+
+ //LCARD
+
+ case 'mssql':
+ $fields = '';
+ $values = '';
+ foreach ($data as $f => $v) {
+ if ($fields != '') $fields .= ',';
+ if ($values != '') $values .= ',';
+
+ // Don't put IDENTITY columns into the command
+ if ($DB_STRUCTURE[$table]['fields'][$f]['extra'] != 'auto_increment') {
+ $fields .= $f;
+ if ($DB_STRUCTURE[$table]['fields'][$f]['type']=='int')
+ $values .= $v;
+ else if ($DB_STRUCTURE[$table]['fields'][$f]['type']=='datetime')
+ $values .= 'getdate()';
+ else
+ $values .= '\''.mssql_escape_string($v).'\'';
+ }
+ }
+
+ $query = 'INSERT INTO %0'.$table.' ('.$fields.') VALUES ('.$values.')';
+
+ break;
+ //LCARD
}
+
return dbquery($query,$params,$debug);
+
}
@@ -1191,6 +1320,7 @@
global $_POST;
global $MYSQL_QUERY;
global $PGSQL_QUERY;
+ global $MSSQL_QUERY;
global $DB_STRUCTURE;
global $DB_DATA;
@@ -1215,6 +1345,12 @@
$query = $PGSQL_QUERY;
$dbn = 'postgres';
break;
+ // LCARD
+ case 'mssql':
+ $query = $MSSQL_QUERY;
+ $dbn = 'mssql';
+ break;
+ //LCARD
}
$error = false;
$debug = (isset($_POST['debug']))?true:false;
@@ -1277,8 +1413,10 @@
$params['%1']=$CONFIG['database']['prefix'];
foreach ($DB_STRUCTURE as $t => $q) {
$params['%2']=$t;
+
if (!dbquery($query['droptable'],$params,$debug))
$error = true;
+
if (!dbcreatetable($CONFIG['database']['prefix'].$t,$q['fields'],$q['keys'],$debug)) {
msg('Table creation FAILED: '.$t,'fail');
$error = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-08-28 11:43:58
|
Revision: 337
http://openupload.svn.sourceforge.net/openupload/?rev=337&view=rev
Author: tsdogs
Date: 2009-08-28 11:43:48 +0000 (Fri, 28 Aug 2009)
Log Message:
-----------
fix magic_quotes_gpc problems with strange user names and passwords.
Modified Paths:
--------------
branches/v0.4/lib/user.inc.php
branches/v0.4/www/setup.inc.php
Modified: branches/v0.4/lib/user.inc.php
===================================================================
--- branches/v0.4/lib/user.inc.php 2009-08-27 16:19:45 UTC (rev 336)
+++ branches/v0.4/lib/user.inc.php 2009-08-28 11:43:48 UTC (rev 337)
@@ -72,6 +72,11 @@
if (isset($_POST['username'])) {
$username = $_POST['username'];
$password = $_POST['pwd'];
+ if (ini_get('magic_quotes_gpc')) {
+ /* remove magic quoting from username and password */
+ $username = stripslashes($username);
+ $password = stripslashes($password);
+ }
}
if ($username != '') {
Modified: branches/v0.4/www/setup.inc.php
===================================================================
--- branches/v0.4/www/setup.inc.php 2009-08-27 16:19:45 UTC (rev 336)
+++ branches/v0.4/www/setup.inc.php 2009-08-28 11:43:48 UTC (rev 337)
@@ -403,6 +403,7 @@
$result[] = $d;
}
}
+ sort($result);
closedir($dir);
return $result;
}
@@ -454,6 +455,12 @@
msg('Though the application should work with this set please consider disabling it');
}
echo '<div id="message"><b>Optional Values</b></div>';
+ if (ini_get('magic_quotes_gpc')) {
+ msg('Magic Quotes: enabled','fail');
+ msg('It is strongly suggested to disable magic_quotes (which are deprecated now!)');
+ } else {
+ msg('Magic Quotes: disabled','ok');
+ }
if (function_exists('mysql_connect')) {
msg('MYSQL Support: exsists','ok');
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-08-28 13:09:35
|
Revision: 340
http://openupload.svn.sourceforge.net/openupload/?rev=340&view=rev
Author: tsdogs
Date: 2009-08-28 13:09:19 +0000 (Fri, 28 Aug 2009)
Log Message:
-----------
Handle mime types server side (if possible), and a couple of checks in the setup script.
Modified Paths:
--------------
branches/v0.4/lib/general.inc.php
branches/v0.4/lib/modules/default/files.inc.php
branches/v0.4/www/setup.inc.php
Modified: branches/v0.4/lib/general.inc.php
===================================================================
--- branches/v0.4/lib/general.inc.php 2009-08-28 12:58:04 UTC (rev 339)
+++ branches/v0.4/lib/general.inc.php 2009-08-28 13:09:19 UTC (rev 340)
@@ -269,7 +269,30 @@
return mail($to,$subject,$msg,$header,'-f "'.$from.'"');
}
+/* tries to use all available methods to determine a file mime type */
+function get_mime_type($file,$type) {
+ global $CONFIG;
+ $mime = $type;
+ if (function_exists('finfo_open')) {
+ if ($CONFIG['mime_magic_file']!='')
+ $finfo = finfo_open(FILEINFO_MIME, $CONFIG['mime_magic_file']);
+ else
+ $finfo = finfo_open(FILEINFO_MIME);
+ $mime = finfo_file($finfo,$file);
+ if (strpos($mime,';')) { /* remove the charset */
+ $mime = substr($mime,0,strpos($mime,';'));
+ }
+ if (strpos($mime,' ')) { /* remove the charset */
+ $mime = substr($mime,0,strpos($mime,' '));
+ }
+ finfo_close($finfo);
+ } else if (function_exists('mime_content_type')) {
+ $mime = mime_content_type($file);
+ } else { /* TODO: try to do it internally ??? */
+ }
+ return $mime;
+}
?>
Modified: branches/v0.4/lib/modules/default/files.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/files.inc.php 2009-08-28 12:58:04 UTC (rev 339)
+++ branches/v0.4/lib/modules/default/files.inc.php 2009-08-28 13:09:19 UTC (rev 340)
@@ -159,9 +159,14 @@
$tmpnamex = $tmpname.'_'.$i;
}
if (isset($_FILES[$u]) and $_FILES[$u]['tmp_name']!='') {
- move_uploaded_file($_FILES[$u]['tmp_name'],$tmpnamex);
+ /* fail if something goes wrong */
+ if (!move_uploaded_file($_FILES[$u]['tmp_name'],$tmpnamex)) {
+ $this->error(tr('Failed moving the file on the server, please check the configuration!'));
+ }
$_SESSION['user']['u'][$i]['tmp']=$tmpnamex;
- $_SESSION['user']['u'][$i]['mime']=$_FILES[$u]['type'];
+ /* get the file mime type, and do not rely on what the browser sends */
+ $mime = get_mime_type($tmpnamex,$_FILES[$u]['type']);
+ $_SESSION['user']['u'][$i]['mime']=$mime;
$_SESSION['user']['u'][$i]['name']=$_FILES[$u]['name'];
$_SESSION['user']['u'][$i]['size']=$_FILES[$u]['size'];
$_SESSION['user']['u'][$i]['ip']=$_SERVER['REMOTE_ADDR'];
Modified: branches/v0.4/www/setup.inc.php
===================================================================
--- branches/v0.4/www/setup.inc.php 2009-08-28 12:58:04 UTC (rev 339)
+++ branches/v0.4/www/setup.inc.php 2009-08-28 13:09:19 UTC (rev 340)
@@ -461,6 +461,17 @@
} else {
msg('Magic Quotes: disabled','ok');
}
+ if (function_exists('finfo_open')) {
+ msg('Fileinfo extension: installed','ok');
+ } else {
+ if (function_exists('mime_content_type')) {
+ msg('mime type php function: available','ok');
+ } else {
+ msg('mime type handling: not available','fail');
+ msg('This could lead problems with bogus browsers!');
+ }
+ msg('For correct mime types handling it\'s suggested to install the Fileinfo');
+ }
if (function_exists('mysql_connect')) {
msg('MYSQL Support: exsists','ok');
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2010-11-18 20:32:57
|
Revision: 383
http://openupload.svn.sourceforge.net/openupload/?rev=383&view=rev
Author: tsdogs
Date: 2010-11-18 20:32:51 +0000 (Thu, 18 Nov 2010)
Log Message:
-----------
escape the fields to prevent scripting attaks
Modified Paths:
--------------
branches/v0.4/lib/main.inc.php
branches/v0.4/lib/modules/default/auth.inc.php
branches/v0.4/lib/modules/default/files.inc.php
branches/v0.4/plugins/email.inc.php
branches/v0.4/templates/default/modules/admin/logs.tpl
Modified: branches/v0.4/lib/main.inc.php
===================================================================
--- branches/v0.4/lib/main.inc.php 2010-03-24 16:41:36 UTC (rev 382)
+++ branches/v0.4/lib/main.inc.php 2010-11-18 20:32:51 UTC (rev 383)
@@ -71,8 +71,8 @@
/* check if it was forced */
if (isset($_GET['lang'])) {
$user = $this->user->info();
- $user['lang']=$_GET['lang'];
- $this->user->setInfo('lang',$_GET['lang']);
+ $user['lang']=htmlentities($_GET['lang']);
+ $this->user->setInfo('lang',htmlentities($_GET['lang']));
}
/* configure the language */
@@ -176,9 +176,14 @@
if (isset($this->config['logging'])) {
if ($this->config['logging']['enabled']=='yes') {
$ip = $_SERVER['REMOTE_ADDR'];
- $login = $this->user->info('login');
- $module = $this->actions[$this->action];
- $action = $this->action;
+ $login = htmlentities($this->user->info('login'));
+ $module = $this->actions[htmlentities($this->action)];
+ $action = htmlentities($this->action);
+ $ip = htmlentities($ip);
+ $realaction = htmlentities($realaction);
+ $plugin = htmlentities($plugin);
+ $result = htmlentities($result);
+ $moreinfo = htmlentities($moreinfo);
if ($this->config['logging']['db_level']>=$this->loglevels[$level]['id']) {
if (is_object($this->db)) {
$this->db->insert('activitylog',
@@ -191,7 +196,7 @@
'realaction' => $realaction,
'plugin' => $plugin,
'result' => $result,
- 'moreinfo' => $moreinfo
+ 'moreinfo' => $moreinfo
) );
}
}
Modified: branches/v0.4/lib/modules/default/auth.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/auth.inc.php 2010-03-24 16:41:36 UTC (rev 382)
+++ branches/v0.4/lib/modules/default/auth.inc.php 2010-11-18 20:32:51 UTC (rev 383)
@@ -149,10 +149,10 @@
$failed = true;
}
$user['login'] = $_POST['registerlogin'];
- $user['name'] = $_POST['registername'];
+ $user['name'] = htmlentities($_POST['registername']);
$user['password'] = $_POST['registerpassword'];
$user['email'] = $_POST['registeremail'];
- $user['lang'] = $_POST['registerlang'];
+ $user['lang'] = htmlentities($_POST['registerlang']);
$user['group_name'] = app()->config['register']['default_group'];
$user['reg_date']=date('Y-m-d H:i:s');
$result = app()->pluginAction('registerConfirm',$user);
@@ -274,4 +274,4 @@
$this->tpl->assign('puser',$user);
}
}
-?>
\ No newline at end of file
+?>
Modified: branches/v0.4/lib/modules/default/files.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/files.inc.php 2010-03-24 16:41:36 UTC (rev 382)
+++ branches/v0.4/lib/modules/default/files.inc.php 2010-11-18 20:32:51 UTC (rev 383)
@@ -212,7 +212,7 @@
$this->prevStep();
for ($i = 0; $i<count($_SESSION['user']['u']); $i++) {
$finfo = $_SESSION['user']['u'][$i];
- $finfo['description'] = $_POST['description'];
+ $finfo['description'] = htmlentities($_POST['description']);
if ($i==0) {
$s = isset(app()->config['id_max_length'])?app()->config['id_max_length']:30;
$a = isset(app()->config['id_use_alpha'])?app()->config['id_use_alpha']=='yes':false;
@@ -562,4 +562,4 @@
}
}
-?>
\ No newline at end of file
+?>
Modified: branches/v0.4/plugins/email.inc.php
===================================================================
--- branches/v0.4/plugins/email.inc.php 2010-03-24 16:41:36 UTC (rev 382)
+++ branches/v0.4/plugins/email.inc.php 2010-11-18 20:32:51 UTC (rev 383)
@@ -26,8 +26,8 @@
$finfo[0]['emailfrom']=app()->config['site']['email'];
$finfo[0]['emailto']=$_POST['emailto'];
$finfo[0]['email_removelink']=$_POST['removelink'];
- $finfo[0]['subject']=$_POST['subject'];
- $finfo[0]['message']=$_POST['message'];
+ $finfo[0]['subject']=htmlentities($_POST['subject']);
+ $finfo[0]['message']=htmlentities($_POST['message']);
// TODO: Fix this mess with the e-mail sender
if ($_SESSION['user']['email']=='') {
if ($finfo[0]['emailme']=="yes") {
Modified: branches/v0.4/templates/default/modules/admin/logs.tpl
===================================================================
--- branches/v0.4/templates/default/modules/admin/logs.tpl 2010-03-24 16:41:36 UTC (rev 382)
+++ branches/v0.4/templates/default/modules/admin/logs.tpl 2010-11-18 20:32:51 UTC (rev 383)
@@ -49,7 +49,7 @@
<td id="{$rid}">{$l.realaction}</td>
<td id="{$rid}">{$l.plugin}</td>
<td id="{$rid}">{$l.result}</td>
- <td id="{$rid}">{$l.additional}</td>
+ <td id="{$rid}">{$l.moreinfo}</td>
</tr>
{/foreach}
-</table>
\ No newline at end of file
+</table>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2010-11-20 10:38:18
|
Revision: 385
http://openupload.svn.sourceforge.net/openupload/?rev=385&view=rev
Author: tsdogs
Date: 2010-11-20 10:38:11 +0000 (Sat, 20 Nov 2010)
Log Message:
-----------
add upgrade function
Modified Paths:
--------------
branches/v0.4/lib/modules/db/mssql.inc.php
branches/v0.4/lib/modules/db/mysql.inc.php
branches/v0.4/lib/modules/db/pgsql.inc.php
branches/v0.4/lib/modules/db/txt.inc.php
branches/v0.4/lib/modules/default/admin.inc.php
branches/v0.4/templates/default/modules/admin/admin.tpl
Added Paths:
-----------
branches/v0.4/UPGRADE
Added: branches/v0.4/UPGRADE
===================================================================
--- branches/v0.4/UPGRADE (rev 0)
+++ branches/v0.4/UPGRADE 2010-11-20 10:38:11 UTC (rev 385)
@@ -0,0 +1,23 @@
+IMPORTANT
+Before any upgrade be sure to have a backup of the database and the configuration.
+
+FROM v0.4.1 TO v0.4.2
+
+1. Replace all files in the following files and directories (www/config.inc.php does not need to be touched):
+* www
+* templates
+* lib
+* locale
+* plugins
+index.php
+upgrade.php
+
+You might need to reapply changes to the templates if you made any.
+
+2. Connect to your openupload installation and login as administrator:
+http://<yourserver>/<openupload>/
+
+3. Go to the administration page
+4. Follow the "Upgrade to v0.4.2" link
+5. IMPORTANT: check your logs for any error
+
Modified: branches/v0.4/lib/modules/db/mssql.inc.php
===================================================================
--- branches/v0.4/lib/modules/db/mssql.inc.php 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/lib/modules/db/mssql.inc.php 2010-11-20 10:38:11 UTC (rev 385)
@@ -229,7 +229,7 @@
}
}
$sql .= ' ('.$flist.') VALUES ('.$vlist.')';
- mssql_query($sql) or die("ERROR: query failed: ".$sql);
+ return mssql_query($sql) or die("ERROR: query failed: ".$sql);
}
function update($tbl,$values,$keys = array(),$fields = array()) {
@@ -255,7 +255,7 @@
}
$sql .= ' WHERE '.$where;
}
- mssql_query($sql);
+ return mssql_query($sql);
}
function delete($tbl,$keys = array()) {
@@ -268,7 +268,7 @@
}
$sql .= ' WHERE '.$where;
}
- mssql_query($sql);
+ return mssql_query($sql);
}
}
Modified: branches/v0.4/lib/modules/db/mysql.inc.php
===================================================================
--- branches/v0.4/lib/modules/db/mysql.inc.php 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/lib/modules/db/mysql.inc.php 2010-11-20 10:38:11 UTC (rev 385)
@@ -167,7 +167,7 @@
}
}
$sql .= ' ('.$flist.') VALUES ('.$vlist.')';
- mysql_query($sql);
+ return mysql_query($sql);
}
function update($tbl,$values,$keys = array(),$fields = array()) {
@@ -193,7 +193,7 @@
}
$sql .= ' WHERE '.$where;
}
- mysql_query($sql);
+ return mysql_query($sql);
}
function delete($tbl,$keys = array()) {
@@ -206,7 +206,7 @@
}
$sql .= ' WHERE '.$where;
}
- mysql_query($sql);
+ return mysql_query($sql);
}
}
Modified: branches/v0.4/lib/modules/db/pgsql.inc.php
===================================================================
--- branches/v0.4/lib/modules/db/pgsql.inc.php 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/lib/modules/db/pgsql.inc.php 2010-11-20 10:38:11 UTC (rev 385)
@@ -176,7 +176,7 @@
}
}
$sql .= ' ('.$flist.') VALUES ('.$vlist.')';
- pg_query($sql) or die("ERROR: query failed: ".$sql);
+ return pg_query($sql) or die("ERROR: query failed: ".$sql);
}
function update($tbl,$values,$keys = array(),$fields = array()) {
@@ -202,7 +202,7 @@
}
$sql .= ' WHERE '.$where;
}
- pg_query($sql);
+ return pg_query($sql);
}
function delete($tbl,$keys = array()) {
@@ -215,7 +215,7 @@
}
$sql .= ' WHERE '.$where;
}
- pg_query($sql);
+ return pg_query($sql);
}
}
Modified: branches/v0.4/lib/modules/db/txt.inc.php
===================================================================
--- branches/v0.4/lib/modules/db/txt.inc.php 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/lib/modules/db/txt.inc.php 2010-11-20 10:38:11 UTC (rev 385)
@@ -112,7 +112,7 @@
}
$x .= $r."\n";
}
- file_put_contents($file,$x);
+ return file_put_contents($file,$x);
}
function init() {
@@ -290,7 +290,7 @@
}
$rows[]=$row;
}
- $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
+ return $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
}
}
@@ -323,7 +323,7 @@
$rows[$i]=$row;
}
}
- $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
+ return $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
}
}
@@ -346,7 +346,7 @@
unset($rows[$i]);
}
}
- $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
+ return $this->writeTxt($file.'.txt',$rows,$this->tables[$tbl]['fields']);
}
}
Modified: branches/v0.4/lib/modules/default/admin.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/admin.inc.php 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/lib/modules/default/admin.inc.php 2010-11-20 10:38:11 UTC (rev 385)
@@ -73,6 +73,10 @@
"adminlogs" => array (
1 => "logs",
),
+ "adminupgrade" => array (
+ 1 => "upgrade",
+ 2 => "upgraderesult"
+ ),
);
var $page;
@@ -92,6 +96,10 @@
}
function admin() {
+ $v = app()->db->read('plugin_options',array('plugin' => 'upgrade', 'name' => 'version'));
+ if (count($v)==0) {
+ app()->tpl->assign('upgrade','true');
+ }
}
function users() {
@@ -1092,5 +1100,51 @@
}
+ function upgrade() {
+ $v = app()->db->read('plugin_options',array('plugin' => 'upgrade', 'name' => 'version'));
+ if (count($v)>0) {
+ app()->tpl->assign('version',$v);
+ }
+ }
+
+ function upgraderesult() {
+ global $_GET;
+
+ /* run the upgrade */
+ if (isset($_GET['upgrade'])) {
+ $errors = array();
+ $fields = array('');
+ $logs = app()->db->read('activitylog');
+ foreach ($logs as $l) {
+ foreach ($fields as $f) {
+ $l[$f]=htmlentities($l[$f]);
+ }
+ if (app()->db->update('activitylog',$l,array('id' => $l['id'])))
+ $errors[] = 'ERROR updating activitylog ID: '.$l['id'];
+ }
+ /* now update the files */
+ $files = app()->db->read('files');
+ foreach ($files as $f) {
+ $f['description']=htmlentities($f['description']);
+ if (!app()->db->update('files',$f,array('id' => $f['id'])))
+ $errors[] = 'ERROR updating files ID: '.$f['id'];
+ }
+ /* now the user names */
+ $users = app()->db->read('users');
+ foreach ($users as $u) {
+ $u['name']=htmlentities($u['name']);
+ if (app()->db->update('users',$u,array('login' => $u['login'])))
+ $errors[] = 'ERROR updating users ID: '.$u['login'];
+ }
+ app()->tpl->assign('upgradeerrors',$errors);
+ if (count($errors)==0) {
+ $x = array('plugin' => 'upgrade', 'group_name' => '*', 'name' => 'version', 'value' => '0.4.2');
+ app()->db->insert('plugin_options',$x);
+ }
+ } else {
+ app()->error('ERROR: No upgrade was RUN');
+ $this->nextStep(1);
+ }
+ }
}
?>
\ No newline at end of file
Modified: branches/v0.4/templates/default/modules/admin/admin.tpl
===================================================================
--- branches/v0.4/templates/default/modules/admin/admin.tpl 2010-11-20 10:37:34 UTC (rev 384)
+++ branches/v0.4/templates/default/modules/admin/admin.tpl 2010-11-20 10:38:11 UTC (rev 385)
@@ -15,5 +15,8 @@
<td align="center"><a href="{$script}?action=adminbanned"><img src="{tpl file=/img/admin/banned.png}" border="0" ><br />{tr}Banned IPs{/tr}</a></td>
<td align="center"><a href="{$script}?action=adminlogs"><img src="{tpl file=/img/admin/log.png}" border="0" ><br />{tr}Logs / Statistics{/tr}</td>
</tr>
+{if isset($upgrade)}
+<a href="{$script}?action=adminupgrade">Upgrade to 0.4.2</a>
+{/if}
{$plugins}
</table>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2010-11-20 11:17:43
|
Revision: 389
http://openupload.svn.sourceforge.net/openupload/?rev=389&view=rev
Author: tsdogs
Date: 2010-11-20 11:17:37 +0000 (Sat, 20 Nov 2010)
Log Message:
-----------
fix upgrade problems + add version option in setup
Modified Paths:
--------------
branches/v0.4/lib/modules/default/admin.inc.php
branches/v0.4/www/setup.inc.php
Modified: branches/v0.4/lib/modules/default/admin.inc.php
===================================================================
--- branches/v0.4/lib/modules/default/admin.inc.php 2010-11-20 10:52:58 UTC (rev 388)
+++ branches/v0.4/lib/modules/default/admin.inc.php 2010-11-20 11:17:37 UTC (rev 389)
@@ -1113,13 +1113,13 @@
/* run the upgrade */
if (isset($_GET['upgrade'])) {
$errors = array();
- $fields = array('');
+ $fields = array('ip','user_login','module','action','realaction','plugin','result','moreinfo');
$logs = app()->db->read('activitylog');
foreach ($logs as $l) {
foreach ($fields as $f) {
$l[$f]=htmlentities($l[$f]);
}
- if (app()->db->update('activitylog',$l,array('id' => $l['id'])))
+ if (!app()->db->update('activitylog',$l,array('id' => $l['id'])))
$errors[] = 'ERROR updating activitylog ID: '.$l['id'];
}
/* now update the files */
@@ -1133,8 +1133,8 @@
$users = app()->db->read('users');
foreach ($users as $u) {
$u['name']=htmlentities($u['name']);
- if (app()->db->update('users',$u,array('login' => $u['login'])))
- $errors[] = 'ERROR updating users ID: '.$u['login'];
+ if (!app()->db->update('users',$u,array('id' => $u['id'])))
+ $errors[] = 'ERROR updating user ID: '.$u['login'];
}
app()->tpl->assign('upgradeerrors',$errors);
if (count($errors)==0) {
Modified: branches/v0.4/www/setup.inc.php
===================================================================
--- branches/v0.4/www/setup.inc.php 2010-11-20 10:52:58 UTC (rev 388)
+++ branches/v0.4/www/setup.inc.php 2010-11-20 11:17:37 UTC (rev 389)
@@ -300,6 +300,7 @@
array ( 'id' => '1', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'message', 'value' => 'Pdf, Jpeg'),
array ( 'id' => '2', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'allowed', 'value' => 'application/pdf'."\n".'image/jpeg'),
array ( 'id' => '3', 'plugin' => 'expire', 'group_name' => '*', 'name' => 'days', 'value' => '30'),
+ array ( 'id' => '4', 'plugin' => 'upgrade', 'group_name' => '*', 'name' => 'version', 'value' => '0.4.2'),
),
),
'mode_1' => array ( /* Private mode */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|