More of i18n and l10n

main
Inga 🏳‍🌈 14 years ago
parent cb8ca52613
commit 1bf4766ec4
  1. 2
      Builder/IISMainHandler/build.txt
  2. 165
      templates/Messages.xslt
  3. 4
      templates/Modern/Boards.xslt
  4. 4
      templates/Modern/Conversations.xslt
  5. 4
      templates/Modern/Exception.xslt
  6. 22
      templates/Modern/LocalNetworks.xslt
  7. 73
      templates/Modern/Login.xslt
  8. 5
      templates/Modern/MigrateAccount.xslt

@ -1,95 +1,95 @@
<?xml version="1.0" encoding="Windows-1251"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="lang">ru</xsl:variable> <xsl:variable name="lang">en</xsl:variable>
<xsl:template name="Messages_AllPosts"><xsl:choose> <xsl:template name="Messages_AllPosts"><xsl:choose>
<xsl:when test="$lang='ru'">Âñå ñîîáùåíèÿ</xsl:when> <xsl:when test="$lang='ru'">Все сообщения</xsl:when>
<xsl:otherwise>All posts</xsl:otherwise> <xsl:otherwise>All posts</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_AllThreads"><xsl:choose> <xsl:template name="Messages_AllThreads"><xsl:choose>
<xsl:when test="$lang='ru'">Âñå òåìû</xsl:when> <xsl:when test="$lang='ru'">Все темы</xsl:when>
<xsl:otherwise>All threads</xsl:otherwise> <xsl:otherwise>All threads</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_PageOuterTitle"><xsl:choose> <xsl:template name="Messages_PageOuterTitle"><xsl:choose>
<xsl:when test="$lang='ru'">ñòðàíèöû</xsl:when> <xsl:when test="$lang='ru'">страницы</xsl:when>
<xsl:otherwise>pages</xsl:otherwise> <xsl:otherwise>pages</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_AvatarsSettings"><xsl:choose> <xsl:template name="Messages_AvatarsSettings"><xsl:choose>
<xsl:when test="$lang='ru'">Íàñòðîéêà àâàòàðîê</xsl:when> <xsl:when test="$lang='ru'">Настройка аватарок</xsl:when>
<xsl:otherwise>Avatars settings</xsl:otherwise> <xsl:otherwise>Avatars settings</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_CurrentAvatars"><xsl:choose> <xsl:template name="Messages_CurrentAvatars"><xsl:choose>
<xsl:when test="$lang='ru'">Çàãðóæåííûå àâàòàðêè</xsl:when> <xsl:when test="$lang='ru'">Загруженные аватарки</xsl:when>
<xsl:otherwise>Current avatars</xsl:otherwise> <xsl:otherwise>Current avatars</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_DisableAvatar"><xsl:choose> <xsl:template name="Messages_DisableAvatar"><xsl:choose>
<xsl:when test="$lang='ru'">Îòêëþ÷èòü àâàòàðêó</xsl:when> <xsl:when test="$lang='ru'">Отключить аватарку</xsl:when>
<xsl:otherwise>Disable avatar</xsl:otherwise> <xsl:otherwise>Disable avatar</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_UploadNewAvatar"><xsl:choose> <xsl:template name="Messages_UploadNewAvatar"><xsl:choose>
<xsl:when test="$lang='ru'">Âûáåðèòå àâàòàðêó äëÿ çàãðóçêè</xsl:when> <xsl:when test="$lang='ru'">Выберите аватарку для загрузки</xsl:when>
<xsl:otherwise>Upload new avatar</xsl:otherwise> <xsl:otherwise>Upload new avatar</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_MaxAvatarSize"><xsl:choose> <xsl:template name="Messages_MaxAvatarSize"><xsl:choose>
<xsl:when test="$lang='ru'">Ìàêñèìàëüíûé ðàçìåð ôàéëà &#8211; 80ÊÁ, äîïóñòèìûå ðàçðåøåíèÿ: gif, jpg, png, svg, jpe, jpeg, jfif, jif</xsl:when> <xsl:when test="$lang='ru'">Максимальный размер файла &#8211; 80КБ, допустимые разрешения: gif, jpg, png, svg, jpe, jpeg, jfif, jif</xsl:when>
<xsl:otherwise>File size should be less than 80KB; only gif, jpg, png, svg, jpe, jpeg, jfif, jif are allowed</xsl:otherwise> <xsl:otherwise>File size should be less than 80KB; only gif, jpg, png, svg, jpe, jpeg, jfif, jif are allowed</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_UploadButton"><xsl:choose> <xsl:template name="Messages_UploadButton"><xsl:choose>
<xsl:when test="$lang='ru'">Çàãðóçèòü!</xsl:when> <xsl:when test="$lang='ru'">Загрузить!</xsl:when>
<xsl:otherwise>Upload!</xsl:otherwise> <xsl:otherwise>Upload!</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_NewAvatarFromUpload"><xsl:choose> <xsl:template name="Messages_NewAvatarFromUpload"><xsl:choose>
<xsl:when test="$lang='ru'">...èëè óêàæèòå íîìåð ôàéëà â àïëîàäå</xsl:when> <xsl:when test="$lang='ru'">...или укажите номер файла в аплоаде</xsl:when>
<xsl:otherwise>...or, alternatively, you may enter uploaded entry id</xsl:otherwise> <xsl:otherwise>...or, alternatively, you may enter uploaded entry id</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_SubmitButton"><xsl:choose> <xsl:template name="Messages_SubmitButton"><xsl:choose>
<xsl:when test="$lang='ru'">Îòïðàâèòü!</xsl:when> <xsl:when test="$lang='ru'">Отправить!</xsl:when>
<xsl:otherwise>Submit!</xsl:otherwise> <xsl:otherwise>Submit!</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_SetAvatarAsDefault"><xsl:choose> <xsl:template name="Messages_SetAvatarAsDefault"><xsl:choose>
<xsl:when test="$lang='ru'">Ñäåëàòü ñòàíäàðòíîé</xsl:when> <xsl:when test="$lang='ru'">Сделать стандартной</xsl:when>
<xsl:otherwise>Make it my default avatar</xsl:otherwise> <xsl:otherwise>Make it my default avatar</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_Remove"><xsl:choose> <xsl:template name="Messages_Remove"><xsl:choose>
<xsl:when test="$lang='ru'">Óäàëèòü</xsl:when> <xsl:when test="$lang='ru'">Удалить</xsl:when>
<xsl:otherwise>Remove</xsl:otherwise> <xsl:otherwise>Remove</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_PageOuter"><xsl:choose> <xsl:template name="Messages_PageOuter"><xsl:choose>
<xsl:when test="$lang='ru'">ñòðàíèöû</xsl:when> <xsl:when test="$lang='ru'">страницы</xsl:when>
<xsl:otherwise>pages</xsl:otherwise> <xsl:otherwise>pages</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_YouAreXXX"> <xsl:template name="Messages_YouAreXXX">
<xsl:param name="userLink"/> <xsl:param name="userLink"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$lang='ru'">Âû âîøëè â ôîðóì êàê <xsl:copy-of select="$userLink"/></xsl:when> <xsl:when test="$lang='ru'">Вы вошли в форум как <xsl:copy-of select="$userLink"/></xsl:when>
<xsl:otherwise>You are using <xsl:copy-of select="$userLink"/> username</xsl:otherwise> <xsl:otherwise>You are using <xsl:copy-of select="$userLink"/> username</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="Messages_YouAreAnonymous"><xsl:choose> <xsl:template name="Messages_YouAreAnonymous"><xsl:choose>
<xsl:when test="$lang='ru'">Âû íå âîøëè â ôîðóì</xsl:when> <xsl:when test="$lang='ru'">Вы не вошли в форум</xsl:when>
<xsl:otherwise>You are not logged in</xsl:otherwise> <xsl:otherwise>You are not logged in</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_TotalRegisteredUsers"> <xsl:template name="Messages_TotalRegisteredUsers">
<xsl:param name="usersNumber"/> <xsl:param name="usersNumber"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$lang='ru'"><xsl:value-of select="$usersNumber"/> çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé</xsl:when> <xsl:when test="$lang='ru'"><xsl:value-of select="$usersNumber"/> зарегистрированных пользователей</xsl:when>
<xsl:otherwise>Total <xsl:value-of select="$usersNumber"/> users registered</xsl:otherwise> <xsl:otherwise>Total <xsl:value-of select="$usersNumber"/> users registered</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
@ -98,35 +98,148 @@
<xsl:param name="threshold"/> <xsl:param name="threshold"/>
<xsl:param name="sessionsNumber"/> <xsl:param name="sessionsNumber"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$lang='ru'">Çà ïîñëåäíèå <xsl:value-of select="$threshold"/> ìèíóò ôîðóì ïîñåùàëî <xsl:value-of select="$sessionsNumber"/> çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé</xsl:when> <xsl:when test="$lang='ru'">За последние <xsl:value-of select="$threshold"/> минут форум посещало <xsl:value-of select="$sessionsNumber"/> зарегистрированных пользователей</xsl:when>
<xsl:otherwise>There were <xsl:value-of select="$sessionsNumber"/> registered users active during last <xsl:value-of select="$threshold"/> minutes</xsl:otherwise> <xsl:otherwise>There were <xsl:value-of select="$sessionsNumber"/> registered users active during last <xsl:value-of select="$threshold"/> minutes</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="Messages_LastPosts"><xsl:choose> <xsl:template name="Messages_LastPosts"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå ñîîáùåíèÿ</xsl:when> <xsl:when test="$lang='ru'">Последние сообщения</xsl:when>
<xsl:otherwise>Last posts</xsl:otherwise> <xsl:otherwise>Last posts</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_LastThreads"><xsl:choose> <xsl:template name="Messages_LastThreads"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå òåìû</xsl:when> <xsl:when test="$lang='ru'">Последние темы</xsl:when>
<xsl:otherwise>Last threads</xsl:otherwise> <xsl:otherwise>Last threads</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_LastReplies"><xsl:choose> <xsl:template name="Messages_LastReplies"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå îòâåòû íà ìîè ñîîáùåíèÿ</xsl:when> <xsl:when test="$lang='ru'">Последние ответы на мои сообщения</xsl:when>
<xsl:otherwise>Last replies to my posts</xsl:otherwise> <xsl:otherwise>Last replies to my posts</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_LastPollsParticipated"><xsl:choose> <xsl:template name="Messages_LastPollsParticipated"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå îïðîñû ñ ìîèì ó÷àñòèåì</xsl:when> <xsl:when test="$lang='ru'">Последние опросы с моим участием</xsl:when>
<xsl:otherwise>Last polls i've participated in</xsl:otherwise> <xsl:otherwise>Last polls i've participated in</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
<xsl:template name="Messages_Error"><xsl:choose> <xsl:template name="Messages_Error"><xsl:choose>
<xsl:when test="$lang='ru'">Îøèáêà</xsl:when> <xsl:when test="$lang='ru'">Ошибка</xsl:when>
<xsl:otherwise>Error</xsl:otherwise> <xsl:otherwise>Error</xsl:otherwise>
</xsl:choose></xsl:template> </xsl:choose></xsl:template>
</xsl:stylesheet> <xsl:template name="Messages_Boards"><xsl:choose>
<xsl:when test="$lang='ru'">Разделы</xsl:when>
<xsl:otherwise>Boards</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_PrivateMessages"><xsl:choose>
<xsl:when test="$lang='ru'">Личные сообщения</xsl:when>
<xsl:otherwise>Private messages</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LocalNetworks"><xsl:choose>
<xsl:when test="$lang='ru'">Список разрешённых подсетей.</xsl:when>
<xsl:otherwise>List of qualified subnets.</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Subnet"><xsl:choose>
<xsl:when test="$lang='ru'">Подсеть</xsl:when>
<xsl:otherwise>Subnet</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Description"><xsl:choose>
<xsl:when test="$lang='ru'">Описание</xsl:when>
<xsl:otherwise>Description</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_State"><xsl:choose>
<xsl:when test="$lang='ru'">Состояние</xsl:when>
<xsl:otherwise>State</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Enabled"><xsl:choose>
<xsl:when test="$lang='ru'">Включено</xsl:when>
<xsl:otherwise>Enabled</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Disabled"><xsl:choose>
<xsl:when test="$lang='ru'">Отключено</xsl:when>
<xsl:otherwise>Disabled</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Login"><xsl:choose>
<xsl:when test="$lang='ru'">Вход</xsl:when>
<xsl:otherwise>Login</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LoginText"><xsl:choose>
<xsl:when test="$lang='ru'">Если вы уже зарегистрированы, введите ваши логин и пароль.</xsl:when>
<xsl:otherwise>Registered users please enter your user name and password.</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LoginMigrationText"><xsl:choose>
<xsl:when test="$lang='ru'">Если вы ещё не пользовались этим форумом, но пришли со старого форум.локала &#8211; вы можете создать пароль в форме миграции.</xsl:when>
<xsl:otherwise>Users of forum.local please use the migration form below if not already.</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Username"><xsl:choose>
<xsl:when test="$lang='ru'">Логин</xsl:when>
<xsl:otherwise>User name</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Password"><xsl:choose>
<xsl:when test="$lang='ru'">Пароль</xsl:when>
<xsl:otherwise>Password</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_NewPassword"><xsl:choose>
<xsl:when test="$lang='ru'">Новый пароль</xsl:when>
<xsl:otherwise>New password</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_NewPasswordRepeat"><xsl:choose>
<xsl:when test="$lang='ru'">Повторите новый пароль</xsl:when>
<xsl:otherwise>Repeat new password</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_AccountEmail"><xsl:choose>
<xsl:when test="$lang='ru'">e-mail для восстановления пароля (необязательно)</xsl:when>
<xsl:otherwise>e-mail</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Migration">
<xsl:param name="userName"/>
<xsl:choose>
<xsl:when test="$lang='ru'">Миграция<xsl:if test="$userName"> пользователя <xsl:value-of select="$userName"/></xsl:if></xsl:when>
<xsl:otherwise>First-time migration<xsl:if test="$userName"> for user <xsl:value-of select="$userName"/></xsl:if></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="Messages_MigrationText"><xsl:choose>
<xsl:when test="$lang='ru'">Если вы пришли со старого форум.локала &#8211; введите свой логин.</xsl:when>
<xsl:otherwise>Users of forum.local please enter your forum.local user name.</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Registration"><xsl:choose>
<xsl:when test="$lang='ru'">Регистрация</xsl:when>
<xsl:otherwise>First-time registration</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_IpForbidden">
<xsl:param name="ip"/>
<xsl:choose>
<xsl:when test="$lang='ru'">Ваш IP <xsl:value-of select="$ip"/> не входит в список разрешённых подсетей. Если вы считаете, что это ошибка, свяжитесь с администратором форума.</xsl:when>
<xsl:otherwise>Registration from your IP <xsl:value-of select="$ip"/> is not allowed. If you believe this is a mistake, contact the forum administrator.</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="Messages_IpAllowed">
<xsl:param name="ip"/>
<xsl:choose>
<xsl:when test="$lang='ru'">Ваш IP <xsl:value-of select="$ip"/> входит в список разрешённых подсетей.</xsl:when>
<xsl:otherwise>Registration from your IP <xsl:value-of select="$ip"/> is allowed.</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

@ -2,7 +2,9 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\BoardInfo.xslt"/> <xsl:import href="elems\BoardInfo.xslt"/>
<xsl:template name="specificTitle">Đŕçäĺëű</xsl:template> <xsl:template name="specificTitle">
<xsl:call-template name="Messages_Boards"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<div class="categoriescontainer"> <div class="categoriescontainer">

@ -2,7 +2,9 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\ConversationInfo.xslt"/> <xsl:import href="elems\ConversationInfo.xslt"/>
<xsl:template name="specificTitle">Ëč÷íűĺ ńîîáůĺíč˙</xsl:template> <xsl:template name="specificTitle">
<xsl:call-template name="Messages_PrivateMessages"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="Windows-1251"?> <?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle"><xsl:call-template name="Messages_Error"/></xsl:template> <xsl:template name="specificTitle">
<xsl:call-template name="Messages_Error"/>
</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="Windows-1251"?> <?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Ëîêàëüíûå ñåòè</xsl:template> <xsl:template name="specificTitle">
<xsl:call-template name="Messages_LocalNetworks"/>
</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -13,7 +15,7 @@
<tr class="darktable"> <tr class="darktable">
<td align="left" width="33%"> <td align="left" width="33%">
<font class="catandforum"> <font class="catandforum">
<xsl:text>Ëîêàëüíûå ñåòè</xsl:text> <xsl:call-template name="Messages_LocalNetworks"/>
</font> </font>
</td> </td>
</tr> </tr>
@ -28,9 +30,15 @@
<xsl:if test="localNetworks/localNetwork"> <xsl:if test="localNetworks/localNetwork">
<table width="95%" align="center" class="tableborders" border="1"> <table width="95%" align="center" class="tableborders" border="1">
<tr> <tr>
<td class="tdheader" align="center" width="15%">Ïîäñåòü</td> <td class="tdheader" align="center" width="15%">
<td class="tdheader" width="70%">Îïèñàíèå</td> <xsl:call-template name="Messages_Subnet"/>
<td class="tdheader" align="center" width="15%">Ñîñòîÿíèå</td> </td>
<td class="tdheader" width="70%">
<xsl:call-template name="Messages_Description"/>
</td>
<td class="tdheader" align="center" width="15%">
<xsl:call-template name="Messages_State"/>
</td>
</tr> </tr>
<xsl:apply-templates select="localNetworks/localNetwork"/> <xsl:apply-templates select="localNetworks/localNetwork"/>
</table> </table>
@ -57,10 +65,10 @@
<td align="center"> <td align="center">
<xsl:choose> <xsl:choose>
<xsl:when test="isEnabled='true'"> <xsl:when test="isEnabled='true'">
<xsl:text>Âêëþ÷åíà</xsl:text> <xsl:call-template name="Messages_Enabled"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>Îòêëþ÷åíà</xsl:text> <xsl:call-template name="Messages_Disabled"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</td> </td>

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="Windows-1251"?> <?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Вход</xsl:template> <xsl:template name="specificTitle">
<xsl:call-template name="Messages_Login"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
@ -10,24 +12,30 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr> <tr>
<td class="tdheader"> <td class="tdheader">
<xsl:text>Вход</xsl:text> <xsl:call-template name="Messages_Login"/>
</td> </td>
</tr> </tr>
<tr class="darktable"> <tr class="darktable">
<td> <td>
<xsl:text>Введите ваше имя пользователя и пароль для регистрации в форуме.</xsl:text> <xsl:call-template name="Messages_LoginText"/>
<br/> <xsl:if test="isMigrationEnabled='true'">
<xsl:text>Если вы ещё не пользовались этим форумом, но пришли со старого форум.локала &#8211; вы можете создать пароль в форме миграции.</xsl:text> <br/>
<xsl:call-template name="Messages_LoginMigrationText"/>
</xsl:if>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/do/Login/"> <form method="post" action="/do/Login/">
<xsl:text>Логин</xsl:text><br /> <xsl:call-template name="Messages_Username"/>
<br/>
<input type="text" name="name" class="formboxes" /><br/> <input type="text" name="name" class="formboxes" /><br/>
<xsl:text>Пароль</xsl:text><br/> <xsl:call-template name="Messages_Password"/>
<br/>
<input type="password" name="password" class="formboxes" /><br/> <input type="password" name="password" class="formboxes" /><br/>
<input type="submit" name="buttlogin" value="Войти!" class="buttons" /> <input type="submit" name="buttlogin" class="buttons">
<xsl:attribute name="value"><xsl:call-template name="Messages_Login"/></xsl:attribute>
</input>
</form> </form>
</td> </td>
</tr> </tr>
@ -43,20 +51,23 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr> <tr>
<td class="tdheader"> <td class="tdheader">
<xsl:text>Миграция</xsl:text> <xsl:call-template name="Messages_Migration"/>
</td> </td>
</tr> </tr>
<tr class="darktable"> <tr class="darktable">
<td> <td>
<xsl:text>Если вы пришли со старого форум.локала &#8211; введите свой логин.</xsl:text> <xsl:call-template name="Messages_MigrationText"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/My/Login/Migrate/"> <form method="post" action="/My/Login/Migrate/">
<xsl:text>Логин</xsl:text><br /> <xsl:call-template name="Messages_Username"/>
<br/>
<input type="text" name="username" class="formboxes" /><br/> <input type="text" name="username" class="formboxes" /><br/>
<input type="submit" name="buttlogin" value="Далее" class="buttons" /> <input type="submit" name="buttlogin" class="buttons">
<xsl:attribute name="value"><xsl:call-template name="Messages_Migration"/></xsl:attribute>
</input>
</form> </form>
</td> </td>
</tr> </tr>
@ -72,41 +83,45 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr> <tr>
<td class="tdheader"> <td class="tdheader">
<xsl:text>Регистрация</xsl:text> <xsl:call-template name="Messages_Registration"/>
</td> </td>
</tr> </tr>
<tr class="darktable"> <tr class="darktable">
<td> <td>
<xsl:choose> <xsl:choose>
<xsl:when test="isLocalNetwork='false'"> <xsl:when test="isLocalNetwork='false'">
<xsl:text>Ваш IP </xsl:text> <xsl:call-template name="Messages_IpForbidden">
<xsl:value-of select="ip"/> <xsl:with-param name="ip"><xsl:value-of select="ip"/></xsl:with-param>
<xsl:text> не входит в список разрешённых подсетей.</xsl:text> </xsl:call-template>
<br/>
<xsl:text>Если вы считаете, что это ошибка, сообщите администратору свой IP-адрес и описание сети (общежитие/учебный корпус, университет и прочее).</xsl:text>
<br/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>Ваш IP </xsl:text> <xsl:call-template name="Messages_IpForbidden">
<xsl:value-of select="ip"/> <xsl:with-param name="ip"><xsl:value-of select="ip"/></xsl:with-param>
<xsl:text> входит в список разрешённых подсетей.</xsl:text> </xsl:call-template>
<br/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<a href="/Maintenance/LocalNetworks/">Список разрешённых подсетей</a> <br/>
<a href="/Maintenance/LocalNetworks/">
<xsl:call-template name="Messages_LocalNetworks"/>
</a>
</td> </td>
</tr> </tr>
<xsl:if test="isLocalNetwork='true'"> <xsl:if test="isLocalNetwork='true'">
<tr> <tr>
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/do/Register/"> <form method="post" action="/do/Register/">
<xsl:text>Имя пользователя</xsl:text><br/> <xsl:call-template name="Messages_Username"/>
<br/>
<input type="text" name="login" class="formboxes" maxlength="16"/><br/> <input type="text" name="login" class="formboxes" maxlength="16"/><br/>
<xsl:text>Новый пароль</xsl:text><br /> <xsl:call-template name="Messages_NewPassword"/>
<input type="password" name="password" class="formboxes" /><br/> <br/>
<xsl:text>Повторите пароль</xsl:text><br/> <input type="password" name="password" class="formboxes"/>
<br/>
<xsl:call-template name="Messages_NewPasswordRepeat"/>
<br/>
<input type="password" name="password2" class="formboxes" /><br/> <input type="password" name="password2" class="formboxes" /><br/>
<xsl:text>e-mail для восстановления пароля (необязательно)</xsl:text><br/> <xsl:call-template name="Messages_AccountEmail"/>
<br/>
<input type="text" name="registrationEmail" class="formboxes" /> <input type="text" name="registrationEmail" class="formboxes" />
<br/> <br/>
<input type="checkbox" name="constitution" value="constitution" id="constitution"/> <input type="checkbox" name="constitution" value="constitution" id="constitution"/>

@ -10,8 +10,9 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr> <tr>
<td class="tdheader"> <td class="tdheader">
<xsl:text>Ìèãðàöèÿ ïîëüçîâàòåëÿ </xsl:text> <xsl:call-template name="Messages_Migration">
<xsl:value-of select="migrationInfo/account/user/name"/> <xsl:with-param name="userName"><xsl:value-of select="migrationInfo/account/user/name"/></xsl:with-param>
</xsl:call-template>
</td> </td>
</tr> </tr>
<tr class="darktable"> <tr class="darktable">

Loading…
Cancel
Save