Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 262 → Редакция 263

/trunk/changelog.php
25,7 → 25,7
 
$ID = $secure->wrapInt($_GET["id"]);
$skip = $secure->wrapInt($_GET["skip"]);
$pagetitle = _("Изменения");
$pagetitle = _("Changes");
 
if ($ID>0) {
$query =& $db->query("SELECT * FROM changelog WHERE log_id='$ID'");
32,7 → 32,7
$query->fetchInto($log, DB_FETCHMODE_ASSOC);
$result = "<h2>".$secure->stripStr($log["log_title"])."</h2>";
$result .= "<p>".$secure->stripStr($log["log_desc"])."</p>";
$result .= "<p class='time'>"._("Запись сделана")." ".$secure->stripStr($log["log_record"])." &bull; <a href='./changelog.php'>"._("Весь список изменений")."</a></p>";
$result .= "<p class='time'>"._("Recorded")." ".$secure->stripStr($log["log_record"])." &bull; <a href='./changelog.php'>"._("Full list of changes")."</a></p>";
} else {
$query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC");
if ($query->numRows()>0) {
/trunk/admin.php
34,32 → 34,32
 
switch ($err) {
case '1':
$error = _("Ошибка ввода пароля: старый пароль неверен!");
$error = _("Password error: the password is incorrect!");
break;
case '2':
$error = _("Ошибка ввода пароля: новые пароли не совпадают!");
$error = _("Password error: new passwords do not match!");
break;
}
 
$header = "<div id='head'><div class='title'>".$core->getSetting('codename',$db)." Admin Panel</div><div class='smalltitle'>version: ".$core->getSetting('version',$db)."</div></div>";
 
$login = "<div id='login'>"._("Вы вошли как").": admin <a class='dashed' href='./signout.php' style='color:red;'>["._("выход")."]</a></div>";
$login = "<div id='login'>"._("You are logged as").": admin <a class='dashed' href='./signout.php' style='color:red;'>["._("exit")."]</a></div>";
 
 
$menu_title = array ( _("Управление"), _("Справочники"), _("Настройки") );
$menu_title = array ( _("Management"), _("References"), _("Preferences") );
$menu_item = array (
1 => array ( "title" => $menu_title[1], "item" => _("Дистрибутивы") ),
2 => array ( "title" => $menu_title[1], "item" => _("Версии") ),
3 => array ( "title" => $menu_title[1], "item" => _("Источники") ),
4 => array ( "title" => $menu_title[0], "item" => _("Репозитории") ),
5 => array ( "title" => $menu_title[1], "item" => _("Секции") ),
6 => array ( "title" => $menu_title[1], "item" => _("Схемы") ),
7 => array ( "title" => $menu_title[1], "item" => _("Типы") ),
9 => array ( "title" => $menu_title[1], "item" => _("Зеркала") ),
20 => array ( "title" => $menu_title[2], "item" => _("Опции") ),
21 => array ( "title" => $menu_title[2], "item" => _("Интерфейсы") ),
22 => array ( "title" => $menu_title[2], "item" => _("Пароль") ),
23 => array ( "title" => $menu_title[2], "item" => _("Тема") ),
1 => array ( "title" => $menu_title[1], "item" => _("Distributives") ),
2 => array ( "title" => $menu_title[1], "item" => _("Versions") ),
3 => array ( "title" => $menu_title[1], "item" => _("Sources") ),
4 => array ( "title" => $menu_title[0], "item" => _("Repositories") ),
5 => array ( "title" => $menu_title[1], "item" => _("Sections") ),
6 => array ( "title" => $menu_title[1], "item" => _("Schemes") ),
7 => array ( "title" => $menu_title[1], "item" => _("Types") ),
9 => array ( "title" => $menu_title[1], "item" => _("Mirrors") ),
20 => array ( "title" => $menu_title[2], "item" => _("Options") ),
21 => array ( "title" => $menu_title[2], "item" => _("Interfaces") ),
22 => array ( "title" => $menu_title[2], "item" => _("Password") ),
23 => array ( "title" => $menu_title[2], "item" => _("Theme") ),
);
 
$menu = "
94,7 → 94,7
$dist =& $db->query("SELECT * FROM distribution");
if ($dist->numRows()>0) {
$display = "<div class='modulename'>".$menu_item[$mode]["title"]." :: <a href='admin.php?mode=".$mode."'>".$menu_item[$mode]["item"]."</a></div>";
$display .= "<table><tr><th>"._("Дистрибутив")."</th><th>"._("Действие")."</th><th>"._("Версии")."</th></tr>";
$display .= "<table><tr><th>"._("Distributive")."</th><th>"._("Action")."</th><th>"._("Versions")."</th></tr>";
while ($dist->fetchInto($info, DB_FETCHMODE_ASSOC)) {
$verlist = "";
$sreq =& $db->query("SELECT * FROM version WHERE dist_id='".$info["dist_id"]."'");
103,11 → 103,11
}
$verlist = substr($verlist, 0, -2);
$display .= "<tr><td>".$secure->stripStr($info['distname'])."</td>";
$display .= "<td><a href=".$admin."?mode=".$mode."&action=2&uid=".$info["dist_id"]."><img title='"._("Редактировать")."' src='$imgdir/edit.png' width='16' height='16'></a>";
$display .= "<a href=".$admin."?mode=".$mode."&action=3&uid=".$info["dist_id"]."><img title='"._("Удалить")."' src='$imgdir/delete.png' width='16' height='16'></a></td>";
$display .= "<td><a href=".$admin."?mode=".$mode."&action=2&uid=".$info["dist_id"]."><img title='"._("Edit")."' src='$imgdir/edit.png' width='16' height='16'></a>";
$display .= "<a href=".$admin."?mode=".$mode."&action=3&uid=".$info["dist_id"]."><img title='"._("Remove")."' src='$imgdir/delete.png' width='16' height='16'></a></td>";
$display .= "<td>".$verlist."</td></tr>";
}
$display .= "</table><p><a href='".$admin."?mode=".$mode."&action=1'><img src='$imgdir/add.png' width='16' height='16'>"._("Добавить новый дистрибутив")."</a></p>";
$display .= "</table><p><a href='".$admin."?mode=".$mode."&action=1'><img src='$imgdir/add.png' width='16' height='16'>"._("Add a new distro")."</a></p>";
}
break;
case '1':
118,15 → 118,15
$type .= "<option value='".$dtinfo["type_id"]."'>".$secure->stripStr($dtinfo["type"])."</option>";
}
$type .= "</select>\n";
$display = "<div class='modulename'><a href='admin.php?mode=1'>"._("Дистрибутивы")."</a> :: "._("Добавление нового apt-дистрибутива")."</div>";
$display = "<div class='modulename'><a href='admin.php?mode=1'>"._("Distributives")."</a> :: "._("Adding a new apt-distribution")."</div>";
$display .= "<form action='./process.php' method='POST' enctype='multipart/form-data'>\n";
$display .= "<input type='hidden' name='mode' value='".$mode."'>\n";
$display .= "<input type='hidden' name='act' value='".$act."'>\n";
$display .= _("Название дистрибутива").": <input type='text' name='distName'><br>\n";
$display .= _("Представление в строке User-Agent'а").": <input type='text' name='distUA'><br>\n";
$display .= _("Тип дистрибутива").": ".$type."<br>";
$display .= _("Логотип дистрибутива (Прозрачный PNG)").": <input type='file' name='distLOGO'><br>";
$display .= "<input type='submit' value='"._("Создать")."'></form>\n";
$display .= _("Name of distro").": <input type='text' name='distName'><br>\n";
$display .= _("User-Agent's string").": <input type='text' name='distUA'><br>\n";
$display .= _("Type of distro").": ".$type."<br>";
$display .= _("Logo of distro (Transparent PNG)").": <input type='file' name='distLOGO'><br>";
$display .= "<input type='submit' value='"._("Create")."'></form>\n";
break;
case '2':
// Правка существующего дистрибутива
142,28 → 142,28
}
}
$type .= "</select>\n";
$display = "<div class='modulename'><a href='admin.php?mode=".$mode."'>"._("Дистрибутивы")."</a> :: "._("Правка apt-дистрибутива")." <em class='".$secure->stripStr($info["distua"])."-em'>".$secure->stripStr($info["distname"])."</em></div>";
$display = "<div class='modulename'><a href='admin.php?mode=".$mode."'>"._("Distributives")."</a> :: "._("Editing apt-distribution")." <em class='".$secure->stripStr($info["distua"])."-em'>".$secure->stripStr($info["distname"])."</em></div>";
$display .= "<form action='./process.php' method='POST' enctype='multipart/form-data'>\n";
$display .= "<input type='hidden' name='mode' value='".$mode."'>\n";
$display .= "<input type='hidden' name='act' value='".$act."'>\n";
$display .= "<input type='hidden' name='distID' value='$uid'>\n";
$display .= _("Название дистрибутива").": <input type='text' name='distName' value='".$secure->stripStr($info["distname"])."'><br>\n";
$display .= _("Представление в строке User-Agent'a").": <input type='text' name='distUA' value='".$secure->stripStr($info["distua"])."'><br>\n";
$display .= _("Тип дистрибутива").": ".$type."<br>";
$display .= _("Логотип дистрибутива (Прозрачный PNG)").": <input type='file' name='distLOGO'><br>";
$display .= "<input type='submit' value='"._("Править")."'></form>\n";
$display .= _("Name of distro").": <input type='text' name='distName' value='".$secure->stripStr($info["distname"])."'><br>\n";
$display .= _("User-Agent's string").": <input type='text' name='distUA' value='".$secure->stripStr($info["distua"])."'><br>\n";
$display .= _("Type of distro").": ".$type."<br>";
$display .= _("Logo of distro (Transparent PNG)").": <input type='file' name='distLOGO'><br>";
$display .= "<input type='submit' value='"._("Edit")."'></form>\n";
break;
case '3':
// Удаление существующего дистрибутива
$dist =& $db->query("SELECT * FROM distribution WHERE dist_id='$uid'");
$dist->fetchInto($info, DB_FETCHMODE_ASSOC);
$display = "<div class='modulename'><a href='admin.php?mode=".$mode."'>"._("Дистрибутивы")."</a> :: "._("Удаление apt-дистрибутива")." <em class='".$secure->stripStr($info["distua"])."-em'>".$secure->stripStr($info["distname"])."</em></div>";
$display = "<div class='modulename'><a href='admin.php?mode=".$mode."'>"._("Distributives")."</a> :: "._("Removal of apt-distribution")." <em class='".$secure->stripStr($info["distua"])."-em'>".$secure->stripStr($info["distname"])."</em></div>";
$display .= "<form action='./process.php' method='POST'>\n";
$display .= "<input type='hidden' name='mode' value='".$mode."'>\n";
$display .= "<input type='hidden' name='act' value='".$act."'>\n";
$display .= "<input type='hidden' name='distID' value='$uid'>\n";
$display .= "<input type='hidden' name='distUA' value='".$secure->stripStr($info["distua"])."'>\n";
$display .= "<input type='submit' value='"._("Удалить")."'></form>\n";
$display .= "<input type='submit' value='"._("Remove")."'></form>\n";
break;
}
break;
/trunk/locale/ru_RU/LC_MESSAGES/ant.po
Новый файл
0,0 → 1,172
# translation of ant.po to Russian
# Copyright (C) 2009
# This file is distributed under the same license as the ant.po package.
#
# Alexander Wolf <alex.v.wolf@gmail.com>, 2009.
msgid ""
msgstr ""
"Project-Id-Version: ant\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-05-05 19:35+0700\n"
"PO-Revision-Date: 2009-05-05 19:43+0700\n"
"Last-Translator: Alexander Wolf <alex.v.wolf@gmail.com>\n"
"Language-Team: Russian <alex.v.wolf@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
 
#: admin.php:37
msgid "Password error: the password is incorrect!"
msgstr "Ошибка ввода пароля: старый пароль неверен!"
 
#: admin.php:40
msgid "Password error: new passwords do not match!"
msgstr "Ошибка ввода пароля: новые пароли не совпадают!"
 
#: admin.php:46
msgid "You are logged as"
msgstr "Вы вошли как"
 
#: admin.php:46
msgid "exit"
msgstr "выход"
 
#: admin.php:49
msgid "Management"
msgstr "Управление"
 
#: admin.php:49
msgid "References"
msgstr "Справочники"
 
#: admin.php:49
msgid "Preferences"
msgstr "Настройки"
 
#: admin.php:51 admin.php:121 admin.php:145 admin.php:160
msgid "Distributives"
msgstr "Дистрибутивы"
 
#: admin.php:52 admin.php:97
msgid "Versions"
msgstr "Версии"
 
#: admin.php:53
msgid "Sources"
msgstr "Источники"
 
#: admin.php:54
msgid "Repositories"
msgstr "Репозитории"
 
#: admin.php:55
msgid "Sections"
msgstr "Секции"
 
#: admin.php:56
msgid "Schemes"
msgstr "Схемы"
 
#: admin.php:57
msgid "Types"
msgstr "Типы"
 
#: admin.php:58
msgid "Mirrors"
msgstr "Зеркала"
 
#: admin.php:59
msgid "Options"
msgstr "Опции"
 
#: admin.php:60
msgid "Interfaces"
msgstr "Интерфейсы"
 
#: admin.php:61
msgid "Password"
msgstr "Пароль"
 
#: admin.php:62
msgid "Theme"
msgstr "Тема"
 
#: admin.php:97
msgid "Distributive"
msgstr "Дистрибутив"
 
#: admin.php:97
msgid "Action"
msgstr "Действие"
 
#: admin.php:106 admin.php:154
msgid "Edit"
msgstr "Редактировать"
 
#: admin.php:107 admin.php:166
msgid "Remove"
msgstr "Удалить"
 
#: admin.php:110
msgid "Add a new distro"
msgstr "Добавить новый дистрибутив"
 
#: admin.php:121
msgid "Adding a new apt-distribution"
msgstr "Добавление нового apt-дистрибутива"
 
#: admin.php:125 admin.php:150
msgid "Name of distro"
msgstr "Название дистрибутива"
 
#: admin.php:126 admin.php:151
msgid "User-Agent's string"
msgstr "Представление в строке User-Agent'а"
 
#: admin.php:127 admin.php:152
msgid "Type of distro"
msgstr "Тип дистрибутива"
 
#: admin.php:128 admin.php:153
msgid "Logo of distro (Transparent PNG)"
msgstr "Логотип дистрибутива (Прозрачный PNG)"
 
#: admin.php:129
msgid "Create"
msgstr "Создать"
 
#: admin.php:145
msgid "Editing apt-distribution"
msgstr "Правка apt-дистрибутива"
 
#: admin.php:160
msgid "Removal of apt-distribution"
msgstr "Удаление apt-дистрибутива"
 
#: changelog.php:28
msgid "Changes"
msgstr "Изменения"
 
#: changelog.php:35
msgid "Recorded"
msgstr "Запись сделана"
 
#: changelog.php:35
msgid "Full list of changes"
msgstr "Весь список изменений"
 
#: oops.php:28
msgid "There were some weird problems."
msgstr "Возникли какие-то непонятные проблемы."
 
#: oops.php:31
msgid "Something went wrong! I suspect that if a problem with configuration files."
msgstr "Что-то пошло не так! Подозреваю, что если проблемы с файлом конфигурации."
 
#: oops.php:34
msgid ""
"Authorization failed! I suspect that you have fun password. Try <a href='./"
"signin.php'>again</a>?"
msgstr "Авторизация не удалась! Подозреваю, что Вы забали пароль. Попробовать <a href='./signin.php'>еще раз</a>?"
 
/trunk/locale/ru_RU/LC_MESSAGES/ant.mo
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/locale/ru_RU/LC_MESSAGES/ant.mo
Новый файл
Изменения свойств:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: lib/config.inc.php
===================================================================
--- lib/config.inc.php (revision 262)
+++ lib/config.inc.php (revision 263)
@@ -31,7 +31,7 @@
$DBuser = "";
$DBpass = "";
-$LANG = "en_US.UTF-8";
+$LANG = "ru_RU.UTF-8";
$MOF = "ant";
?>
/trunk/oops.php
25,13 → 25,13
 
switch ($errata) {
case '0':
$errmsg = _("Возникли какие-то непонятные проблемы.");
$errmsg = _("There were some weird problems.");
break;
case '1':
$errmsg = _("Что-то пошло не так! Подозреваю, что если проблемы с файлом конфигурации.");
$errmsg = _("Something went wrong! I suspect that if a problem with configuration files.");
break;
case '2':
$errmsg = _("Авторизация не удалась! Подозреваю, что Вы забали пароль. Попробовать <a href='./signin.php'>еще раз</a>?");
$errmsg = _("Authorization failed! I suspect that you have fun password. Try <a href='./signin.php'>again</a>?");
break;
}