translate message creation form

This commit is contained in:
Thibault Duplessis 2013-05-19 01:17:37 -03:00
parent 558b899111
commit 3776e24491
9 changed files with 20 additions and 9 deletions

View file

@ -10,7 +10,7 @@ title = "New forum topic") {
<h1>New topic</h1>
<form class="wide" action="@routes.ForumTopic.create(categ.slug)" method="POST" novalidate>
<label>
<span class="required">Subject</span>
<span class="required">@trans.subject()</span>
<input class="subject" value="@form("name").value" type="text" name="@form("name").name" id="@form("name").id">
@errMsg(form("name"))
</label>

View file

@ -7,7 +7,7 @@ title = trans.composeMessage.str()) {
<div class="center form">
<form action="@routes.Message.create()" method="post">
<div class="field_to">
<label for="@form("username").id">To:</label>
<label for="@form("username").id">@trans.recipient():</label>
<input
type="text"
data-provider="@routes.User.autocomplete"
@ -19,7 +19,7 @@ title = trans.composeMessage.str()) {
@errMsg(form("username"))
</div>
<div class="field_subject">
<label for="@form("subject").id">Subject:</label>
<label for="@form("subject").id">@trans.subject():</label>
<input
type="text"
required="required"
@ -36,7 +36,7 @@ title = trans.composeMessage.str()) {
@errMsg(form("text"))
</div>
<div class="actions">
<input class="send button" type="submit" value="Send" />
<input class="send button" type="submit" value="@trans.send()" />
<a class="cancel" href="@routes.Message.inbox()">@trans.cancel()</a>
</div>
</form>

View file

@ -32,7 +32,7 @@ title = trans.inbox.str()) {
<tr>
<td colspan="4">
<br />
No message!
@trans.noMessageHereYet()
</td>
</tr>
</tbody>

View file

@ -30,7 +30,7 @@ title = thread.name) {
@errMsg(form("text"))
</div>
<div class="actions">
<input class="send button" type="submit" value="Send" />
<input class="send button" type="submit" value="@trans.send()" />
<a class="cancel" href="@routes.Message.inbox(1)">@trans.cancel()</a>
</div>
</form>

View file

@ -121,6 +121,10 @@ chatRoom=Chat room
spectatorRoom=Spectator room
composeMessage=Compose message
sentMessages=Sent messages
noMessageHereYet=No message here yet
subject=Subject
recipient=Recipient
send=Send
incrementInSeconds=Increment in seconds
freeOnlineChess=Free Online Chess
spectators=Spectators:

View file

@ -121,6 +121,10 @@ chatRoom=Salon de discussion
spectatorRoom=Salon des spectateurs
composeMessage=Écrire un message
sentMessages=Messages envoyés
noMessageHereYet=Aucun message pour l'instant
subject=Sujet
recipient=Destinataire
send=Envoyer
incrementInSeconds=Incrément en secondes
freeOnlineChess=Jeu d'échecs gratuit en ligne
spectators=Spectateurs :

View file

@ -145,6 +145,10 @@ final class I18nKeys(translator: Translator) {
val spectatorRoom = new Key("spectatorRoom")
val composeMessage = new Key("composeMessage")
val sentMessages = new Key("sentMessages")
val noMessageHereYet = new Key("noMessageHereYet")
val subject = new Key("subject")
val recipient = new Key("recipient")
val send = new Key("send")
val incrementInSeconds = new Key("incrementInSeconds")
val freeOnlineChess = new Key("freeOnlineChess")
val spectators = new Key("spectators")
@ -209,5 +213,5 @@ final class I18nKeys(translator: Translator) {
val colorPlaysCheckmateInOne = new Key("colorPlaysCheckmateInOne")
val retry = new Key("retry")
def keys = List(playWithAFriend, inviteAFriendToPlayWithYou, playWithTheMachine, challengeTheArtificialIntelligence, toInviteSomeoneToPlayGiveThisUrl, gameOver, waitingForOpponent, waiting, yourTurn, aiNameLevelAiLevel, level, toggleTheChat, toggleSound, chat, resign, checkmate, stalemate, white, black, createAGame, noGameAvailableRightNowCreateOne, whiteIsVictorious, blackIsVictorious, playWithTheSameOpponentAgain, newOpponent, playWithAnotherOpponent, yourOpponentWantsToPlayANewGameWithYou, joinTheGame, whitePlays, blackPlays, theOtherPlayerHasLeftTheGameYouCanForceResignationOrWaitForHim, makeYourOpponentResign, forceResignation, talkInChat, theFirstPersonToComeOnThisUrlWillPlayWithYou, whiteCreatesTheGame, blackCreatesTheGame, whiteJoinsTheGame, blackJoinsTheGame, whiteResigned, blackResigned, whiteLeftTheGame, blackLeftTheGame, shareThisUrlToLetSpectatorsSeeTheGame, youAreViewingThisGameAsASpectator, replayAndAnalyse, computerAnalysisInProgress, theComputerAnalysisYouRequestedIsNowAvailable, theComputerAnalysisHasFailed, viewTheComputerAnalysis, requestAComputerAnalysis, blunders, mistakes, inaccuracies, viewGameStats, flipBoard, threefoldRepetition, claimADraw, offerDraw, draw, nbConnectedPlayers, talkAboutChessAndDiscussLichessFeaturesInTheForum, seeTheGamesBeingPlayedInRealTime, gamesBeingPlayedRightNow, viewAllNbGames, viewNbCheckmates, nbBookmarks, nbPopularGames, nbAnalysedGames, bookmarkedByNbPlayers, viewInFullSize, logOut, signIn, newToLichess, signUp, people, games, forum, searchInForum, chessPlayers, minutesPerSide, variant, timeControl, start, username, password, haveAnAccount, allYouNeedIsAUsernameAndAPassword, learnMoreAboutLichess, rank, gamesPlayed, declineInvitation, cancel, timeOut, drawOfferSent, drawOfferDeclined, drawOfferAccepted, drawOfferCanceled, yourOpponentOffersADraw, accept, decline, playingRightNow, abortGame, gameAborted, standard, unlimited, mode, casual, rated, thisGameIsRated, rematch, rematchOfferSent, rematchOfferAccepted, rematchOfferCanceled, rematchOfferDeclined, cancelRematchOffer, viewRematch, play, inbox, chatRoom, spectatorRoom, composeMessage, sentMessages, incrementInSeconds, freeOnlineChess, spectators, nbWins, nbLosses, nbDraws, exportGames, color, eloRange, giveNbSeconds, searchAPlayer, whoIsOnline, allPlayers, premoveEnabledClickAnywhereToCancel, thisPlayerUsesChessComputerAssistance, opening, takeback, proposeATakeback, takebackPropositionSent, takebackPropositionDeclined, takebackPropositionAccepted, takebackPropositionCanceled, yourOpponentProposesATakeback, bookmarkThisGame, toggleBackground, advancedSearch, tournament, tournamentPoints, viewTournament, freeOnlineChessGamePlayChessNowInACleanInterfaceNoRegistrationNoAdsNoPluginRequiredPlayChessWithComputerFriendsOrRandomOpponents, teams, nbMembers, allTeams, newTeam, myTeams, noTeamFound, joinTeam, quitTeam, anyoneCanJoin, aConfirmationIsRequiredToJoin, joiningPolicy, teamLeader, teamBestPlayers, teamRecentMembers, searchATeam, averageElo, location, settings, filterGames, reset, apply, leaderboard, pasteTheFenStringHere, pasteThePgnStringHere, fromPosition, continueFromHere, importGame, nbImportedGames, thisIsAChessCaptcha, clickOnTheBoardToMakeYourMove, notACheckmate, colorPlaysCheckmateInOne, retry)
def keys = List(playWithAFriend, inviteAFriendToPlayWithYou, playWithTheMachine, challengeTheArtificialIntelligence, toInviteSomeoneToPlayGiveThisUrl, gameOver, waitingForOpponent, waiting, yourTurn, aiNameLevelAiLevel, level, toggleTheChat, toggleSound, chat, resign, checkmate, stalemate, white, black, createAGame, noGameAvailableRightNowCreateOne, whiteIsVictorious, blackIsVictorious, playWithTheSameOpponentAgain, newOpponent, playWithAnotherOpponent, yourOpponentWantsToPlayANewGameWithYou, joinTheGame, whitePlays, blackPlays, theOtherPlayerHasLeftTheGameYouCanForceResignationOrWaitForHim, makeYourOpponentResign, forceResignation, talkInChat, theFirstPersonToComeOnThisUrlWillPlayWithYou, whiteCreatesTheGame, blackCreatesTheGame, whiteJoinsTheGame, blackJoinsTheGame, whiteResigned, blackResigned, whiteLeftTheGame, blackLeftTheGame, shareThisUrlToLetSpectatorsSeeTheGame, youAreViewingThisGameAsASpectator, replayAndAnalyse, computerAnalysisInProgress, theComputerAnalysisYouRequestedIsNowAvailable, theComputerAnalysisHasFailed, viewTheComputerAnalysis, requestAComputerAnalysis, blunders, mistakes, inaccuracies, viewGameStats, flipBoard, threefoldRepetition, claimADraw, offerDraw, draw, nbConnectedPlayers, talkAboutChessAndDiscussLichessFeaturesInTheForum, seeTheGamesBeingPlayedInRealTime, gamesBeingPlayedRightNow, viewAllNbGames, viewNbCheckmates, nbBookmarks, nbPopularGames, nbAnalysedGames, bookmarkedByNbPlayers, viewInFullSize, logOut, signIn, newToLichess, signUp, people, games, forum, searchInForum, chessPlayers, minutesPerSide, variant, timeControl, start, username, password, haveAnAccount, allYouNeedIsAUsernameAndAPassword, learnMoreAboutLichess, rank, gamesPlayed, declineInvitation, cancel, timeOut, drawOfferSent, drawOfferDeclined, drawOfferAccepted, drawOfferCanceled, yourOpponentOffersADraw, accept, decline, playingRightNow, abortGame, gameAborted, standard, unlimited, mode, casual, rated, thisGameIsRated, rematch, rematchOfferSent, rematchOfferAccepted, rematchOfferCanceled, rematchOfferDeclined, cancelRematchOffer, viewRematch, play, inbox, chatRoom, spectatorRoom, composeMessage, sentMessages, noMessageHereYet, subject, recipient, send, incrementInSeconds, freeOnlineChess, spectators, nbWins, nbLosses, nbDraws, exportGames, color, eloRange, giveNbSeconds, searchAPlayer, whoIsOnline, allPlayers, premoveEnabledClickAnywhereToCancel, thisPlayerUsesChessComputerAssistance, opening, takeback, proposeATakeback, takebackPropositionSent, takebackPropositionDeclined, takebackPropositionAccepted, takebackPropositionCanceled, yourOpponentProposesATakeback, bookmarkThisGame, toggleBackground, advancedSearch, tournament, tournamentPoints, viewTournament, freeOnlineChessGamePlayChessNowInACleanInterfaceNoRegistrationNoAdsNoPluginRequiredPlayChessWithComputerFriendsOrRandomOpponents, teams, nbMembers, allTeams, newTeam, myTeams, noTeamFound, joinTeam, quitTeam, anyoneCanJoin, aConfirmationIsRequiredToJoin, joiningPolicy, teamLeader, teamBestPlayers, teamRecentMembers, searchATeam, averageElo, location, settings, filterGames, reset, apply, leaderboard, pasteTheFenStringHere, pasteThePgnStringHere, fromPosition, continueFromHere, importGame, nbImportedGames, thisIsAChessCaptcha, clickOnTheBoardToMakeYourMove, notACheckmate, colorPlaysCheckmateInOne, retry)
}

View file

@ -70,7 +70,7 @@ div.sidebar a {
}
#lichess_message label {
float: left;
width: 60px;
width: 100px;
text-align: right;
margin-right: 10px;
vertical-align: middle;

1
todo
View file

@ -73,7 +73,6 @@ chess variants https://github.com/ornicar/lila/issues/2://github.com/ornicar/lil
publish scalastic 0.90.0-thib
stream game export
show fen only after game is finished http://en.lichess.org/forum/lichess-feedback/please-disable-live-fen-notation?page=1
I owe the admins decent tools
tell opponent chat is disabled
from MoralIntentions email:
- The possibility to use a practice board to play against yourself or to demonstrate something when you're giving chess lessons with your laptop or an interactive whiteboard (with the same features as and with a button beneath "Play with the machine" in Play).