I18n coverage improved

main
Inga 🏳‍🌈 14 years ago
parent d063253698
commit d1d747b20a
  1. 2
      Builder/IISMainHandler/build.txt
  2. 99
      templates/Messages.xslt
  3. 23
      templates/Modern/AvatarsSettings.xslt
  4. 6
      templates/Modern/Board.xslt
  5. 6
      templates/Modern/BoardAsThread.xslt
  6. 84
      templates/Modern/Boards.xslt
  7. 6
      templates/Modern/Conversation.xslt
  8. 6
      templates/Modern/Conversations.xslt
  9. 15
      templates/Modern/Exception.xslt

@ -28,6 +28,105 @@
<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:when test="$lang='ru'">Îòêëþ÷èòü àâàòàðêó</xsl:when>
<xsl:otherwise>Disable avatar</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_UploadNewAvatar"><xsl:choose>
<xsl:when test="$lang='ru'">Âûáåðèòå àâàòàðêó äëÿ çàãðóçêè</xsl:when>
<xsl:otherwise>Upload new avatar</xsl:otherwise>
</xsl:choose></xsl:template>
<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: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:template name="Messages_UploadButton"><xsl:choose>
<xsl:when test="$lang='ru'">Çàãðóçèòü!</xsl:when>
<xsl:otherwise>Upload!</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_NewAvatarFromUpload"><xsl:choose>
<xsl:when test="$lang='ru'">...èëè óêàæèòå íîìåð ôàéëà â àïëîàäå</xsl:when>
<xsl:otherwise>...or, alternatively, you may enter uploaded entry id</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_SubmitButton"><xsl:choose>
<xsl:when test="$lang='ru'">Îòïðàâèòü!</xsl:when>
<xsl:otherwise>Submit!</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_SetAvatarAsDefault"><xsl:choose>
<xsl:when test="$lang='ru'">Ñäåëàòü ñòàíäàðòíîé</xsl:when>
<xsl:otherwise>Make it my default avatar</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Remove"><xsl:choose>
<xsl:when test="$lang='ru'">Óäàëèòü</xsl:when>
<xsl:otherwise>Remove</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_PageOuter"><xsl:choose>
<xsl:when test="$lang='ru'">ñòðàíèöû</xsl:when>
<xsl:otherwise>pages</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_YouAreXXX">
<xsl:param name="userLink"/>
<xsl:choose>
<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:choose>
</xsl:template>
<xsl:template name="Messages_YouAreAnonymous"><xsl:choose>
<xsl:when test="$lang='ru'">Âû íå âîøëè â ôîðóì</xsl:when>
<xsl:otherwise>You are not logged in</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_TotalRegisteredUsers">
<xsl:param name="usersNumber"/>
<xsl:choose>
<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:choose>
</xsl:template>
<xsl:template name="Messages_TotalOnlineUsers">
<xsl:param name="threshold"/>
<xsl:param name="sessionsNumber"/>
<xsl:choose>
<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:choose>
</xsl:template>
<xsl:template name="Messages_LastPosts"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå ñîîáùåíèÿ</xsl:when>
<xsl:otherwise>Last posts</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LastThreads"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå òåìû</xsl:when>
<xsl:otherwise>Last threads</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LastReplies"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå îòâåòû íà ìîè ñîîáùåíèÿ</xsl:when>
<xsl:otherwise>Last replies to my posts</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_LastPollsParticipated"><xsl:choose>
<xsl:when test="$lang='ru'">Ïîñëåäíèå îïðîñû ñ ìîèì ó÷àñòèåì</xsl:when>
<xsl:otherwise>Last polls i've participated in</xsl:otherwise>
</xsl:choose></xsl:template>
<xsl:template name="Messages_Error"><xsl:choose>
<xsl:when test="$lang='ru'">Îøèáêà</xsl:when>
<xsl:otherwise>Error</xsl:otherwise>
</xsl:choose></xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -27,7 +27,8 @@
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/do/Avatars/SetAsDefault"> <form method="post" action="/do/Avatars/SetAsDefault">
<input type="hidden" name="uploadId" value=""/> <input type="hidden" name="uploadId" value=""/>
<input type="submit" class="buttons" value="Îòêëþ÷èòü àâàòàðêó"> <input type="submit" class="buttons">
<xsl:attribute name="value"><xsl:call-template name="Messages_DisableAvatar"/></xsl:attribute>
<xsl:if test="not(/root/currentAvatar)"> <xsl:if test="not(/root/currentAvatar)">
<xsl:attribute name="disabled">disabled</xsl:attribute> <xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if> </xsl:if>
@ -46,19 +47,21 @@
<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_UploadNewAvatar"/>
</td> </td>
</tr> </tr>
<tr class="darktable"> <tr class="darktable">
<td> <td>
<xsl:text>Ìàêñèìàëüíûé ðàçìåð ôàéëà &#8211; 80ÊÁ, äîïóñòèìûå ðàçðåøåíèÿ: gif, jpg, png, svg, jpe, jpeg, jfif, jif</xsl:text> <xsl:call-template name="Messages_MaxAvatarSize"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/do/Avatars/Add" enctype="multipart/form-data"> <form method="post" action="/do/Avatars/Add" enctype="multipart/form-data">
<input type="file" name="file" class="formboxes" /><br/> <input type="file" name="file" 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_UploadButton"/></xsl:attribute>
</input>
</form> </form>
</td> </td>
</tr> </tr>
@ -73,14 +76,16 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader"> <tr class="tdheader">
<td> <td>
<xsl:text>Èëè óêàæèòå íîìåð ôàéëà â àïëîàäå</xsl:text> <xsl:call-template name="Messages_NewAvatarFromUpload"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="lighttable"> <td class="lighttable">
<form method="post" action="/do/Avatars/Add"> <form method="post" action="/do/Avatars/Add">
<input type="text" name="uploadId"/><br/> <input type="text" name="uploadId"/><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_SubmitButton"/></xsl:attribute>
</input>
</form> </form>
</td> </td>
</tr> </tr>
@ -103,7 +108,8 @@
<input type="hidden" name="uploadId"> <input type="hidden" name="uploadId">
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
</input> </input>
<input type="submit" class="buttons" value="Ñäåëàòü ñòàíäàðòíîé"> <input type="submit" class="buttons">
<xsl:attribute name="value"><xsl:call-template name="Messages_SetAvatarAsDefault"/></xsl:attribute>
<xsl:if test="/root/currentAvatar/upload/id = id"> <xsl:if test="/root/currentAvatar/upload/id = id">
<xsl:attribute name="disabled">disabled</xsl:attribute> <xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if> </xsl:if>
@ -113,7 +119,8 @@
<input type="hidden" name="uploadId"> <input type="hidden" name="uploadId">
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
</input> </input>
<input type="submit" class="buttons" value="Óäàëèòü"> <input type="submit" class="buttons">
<xsl:attribute name="value"><xsl:call-template name="Messages_Remove"/></xsl:attribute>
<xsl:if test="/root/currentAvatar/upload/id = id"> <xsl:if test="/root/currentAvatar/upload/id = id">
<xsl:attribute name="disabled">disabled</xsl:attribute> <xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if> </xsl:if>

@ -15,7 +15,8 @@
</div> </div>
</xsl:if> </xsl:if>
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
</div> </div>
<div class="threadscontainer"> <div class="threadscontainer">
@ -29,7 +30,8 @@
</div> </div>
</div> </div>
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
</div> </div>
</xsl:template> </xsl:template>

@ -8,14 +8,16 @@
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</div> </div>
<div class="postscontainer"> <div class="postscontainer">
<xsl:apply-templates select="posts/post"/> <xsl:apply-templates select="posts/post"/>
</div> </div>
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</div> </div>
</xsl:template> </xsl:template>

@ -8,86 +8,62 @@
<div class="categoriescontainer"> <div class="categoriescontainer">
<xsl:apply-templates select="categories/category"/> <xsl:apply-templates select="categories/category"/>
</div> </div>
<br /> <p>
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td colspan="3" class="tdheader">
<b>Дополнительная информация</b>
</td>
</tr>
<tr class="lighttable">
<td width="45%" class="small" valign="top">
<xsl:choose> <xsl:choose>
<xsl:when test="session/user"> <xsl:when test="session/user">
<xsl:text>Вы вошли в форум как </xsl:text> <xsl:call-template name="Messages_YouAreXXX">
<xsl:with-param name="userLink">
<xsl:apply-templates select="session/user" mode="userLink"/> <xsl:apply-templates select="session/user" mode="userLink"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>Вы не вошли в форум</xsl:text> <xsl:call-template name="Messages_YouAreAnonymous"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<br /> <xsl:text>. </xsl:text>
<xsl:call-template name="Messages_TotalRegisteredUsers">
<xsl:with-param name="usersNumber">
<xsl:value-of select="totalRegistered"/> <xsl:value-of select="totalRegistered"/>
<xsl:text> Зарегистрированных пользователей.</xsl:text> </xsl:with-param>
<br /> </xsl:call-template>
<!--xsl:text>Приветствуем нового пользователя, </xsl:text> <xsl:text>. </xsl:text>
<a href="/showprofile.php?User=_PC&amp;What=ubbthreads">_PC</a> <xsl:call-template name="Messages_TotalOnlineUsers">
<br /--> <xsl:with-param name="threshold">
<xsl:text>За последние </xsl:text>
<xsl:value-of select="activity/threshold"/> <xsl:value-of select="activity/threshold"/>
<xsl:text> форум посещало </xsl:text> </xsl:with-param>
<xsl:with-param name="sessionsNumber">
<xsl:value-of select="activity/sessions"/> <xsl:value-of select="activity/sessions"/>
<xsl:text> зарегистрированных пользователей.</xsl:text> </xsl:with-param>
<br /> </xsl:call-template>
<a>Текущее время:</a><xsl:text> </xsl:text> <xsl:text>. </xsl:text>
<xsl:apply-templates select="currentDate" mode="dateTime"/> </p>
</td> <p>
<td width="30%" class="small" valign="top">
<a> <a>
<xsl:attribute name="href">/AllPosts/</xsl:attribute> <xsl:attribute name="href">/AllPosts/</xsl:attribute>
<xsl:text>Последние сообщения</xsl:text> <xsl:call-template name="Messages_LastPosts"/>
</a> </a>
<br /> <xsl:text>. </xsl:text>
<a> <a>
<xsl:attribute name="href">/AllThreads/</xsl:attribute> <xsl:attribute name="href">/AllThreads/</xsl:attribute>
<xsl:text>Последние темы</xsl:text> <xsl:call-template name="Messages_LastThreads"/>
</a> </a>
<br /> <xsl:text>. </xsl:text>
<a> <a>
<xsl:if test="session/user"> <xsl:if test="session/user">
<xsl:attribute name="href">/Users/User/<xsl:value-of select="session/user/id"/>/Replies/</xsl:attribute> <xsl:attribute name="href">/Users/User/<xsl:value-of select="session/user/id"/>/Replies/</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:text>Последние ответы на мои сообщения</xsl:text> <xsl:call-template name="Messages_LastReplies"/>
</a> </a>
<br /> <xsl:text>. </xsl:text>
<a> <a>
<xsl:if test="session/user"> <xsl:if test="session/user">
<xsl:attribute name="href">/Users/User/<xsl:value-of select="session/user/id"/>/PollsParticipated/</xsl:attribute> <xsl:attribute name="href">/Users/User/<xsl:value-of select="session/user/id"/>/PollsParticipated/</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:text>Последние опросы с моим участием</xsl:text> <xsl:call-template name="Messages_LastPollsParticipated"/>
</a> </a>
<br /> <xsl:text>. </xsl:text>
<a>Мои сообщения с оценками</a> </p>
<br />
<a>Рейтинги сообщений</a>
</td>
<td class="small" valign="top">
<b>Легенда:</b>
<br />
<img src="/static/images/newposts.gif" alt="*" />
<xsl:text>Новые сообщения</xsl:text>
<br />
<img src="/static/images/nonewposts.gif" alt="*" />
<xsl:text>Нет новых сообщений</xsl:text>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
<xsl:template match="category"> <xsl:template match="category">

@ -8,14 +8,16 @@
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</div> </div>
<div class="postscontainer"> <div class="postscontainer">
<xsl:apply-templates select="messages/message"/> <xsl:apply-templates select="messages/message"/>
</div> </div>
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</div> </div>
</xsl:template> </xsl:template>

@ -7,14 +7,16 @@
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/>
</div> </div>
<div class="conversationscontainer"> <div class="conversationscontainer">
<xsl:apply-templates select="conversations/conversation"/> <xsl:apply-templates select="conversations/conversation"/>
</div> </div>
<div> <div>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:call-template name="Messages_PageOuter"/>
<xsl:text>:</xsl:text>
<xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/>
</div> </div>
</xsl:template> </xsl:template>

@ -1,7 +1,7 @@
<?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_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>
@ -9,20 +9,17 @@
<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_Error"/>
</td> </td>
</tr> </tr>
<tr class="lighttable"> <tr class="lighttable">
<td> <td>
<xsl:text>Òèï îøèáêè: </xsl:text>
<xsl:value-of select="exception/type"/>
<br/>
<xsl:text>Ñîîáùåíèå îá îøèáêå: </xsl:text>
<xsl:value-of select="exception/message"/> <xsl:value-of select="exception/message"/>
<br/> <xsl:text> (</xsl:text>
<xsl:text>ID îøèáêè: </xsl:text> <xsl:value-of select="exception/type"/>
<xsl:text>, ID </xsl:text>
<xsl:value-of select="exception/guid"/> <xsl:value-of select="exception/guid"/>
<br/> <xsl:text>)</xsl:text>
</td> </td>
</tr> </tr>
</table> </table>

Loading…
Cancel
Save