Fix translations and online user sort

This commit is contained in:
Thibault Duplessis 2012-05-29 23:23:51 +02:00
parent 6eecd228fc
commit d42a72c1bc
7 changed files with 13 additions and 9 deletions

View file

@ -93,7 +93,7 @@ final class Reporting(
}
} onComplete {
case Left(a) println("Reporting: " + a.getMessage)
case a
case a display()
}
}
}
@ -110,7 +110,8 @@ final class Reporting(
"thread" -> nbThreads,
"load" -> loadAvg.toString.replace("0.", "."),
"mem" -> memory,
"AI" -> remoteAi.fold("1", "0")
"cpu" -> cpu,
"AI" -> remoteAi.isDefined.fold("1", "0")
))
if (displays % 8 == 0) println(data.header)
@ -125,7 +126,7 @@ final class Reporting(
nbPlaying,
game.nbHubs,
loadAvg.toString,
remoteAi.isDefined.fold(1, 0)
(remoteAi | 9999)
) mkString " "
private def monitorData = List(

View file

@ -24,7 +24,9 @@ class UserRepo(
}
def byIds(ids: Iterable[String]): IO[List[User]] = io {
find("_id" $in ids.map(normalize)).toList
find("_id" $in ids.map(normalize))
.sort(DBObject("elo" -> -1))
.toList
}
def username(userId: String): IO[Option[String]] = io {

View file

@ -7,7 +7,7 @@ gameOver=Partiet er ferdig
waitingForOpponent=Venter på motstandar
waiting=Venter
yourTurn=Din tur
aiNameLevelAiLevel=%s på nivå %ai_level
aiNameLevelAiLevel=%s på nivå %s
level=Nivå
toggleTheChat=Slå av og på prat
chat=Prat

View file

@ -7,7 +7,7 @@ gameOver=Spillet er slutt
waitingForOpponent=Venter på motstander
waiting=Venter
yourTurn=Din tur
aiNameLevelAiLevel=%s på nivå %ai_level
aiNameLevelAiLevel=%s på nivå %s
level=Nivå
toggleTheChat=Slå samtalen av og på
toggleSound=Lyd av/på

View file

@ -7,7 +7,7 @@ gameOver=Konec igre
waitingForOpponent=Čakam nasprotnika
waiting=Čakam
yourTurn=Ste na potezi
aiNameLevelAiLevel=Ime: %ai_name&, stopnja: %s
aiNameLevelAiLevel=Ime: %s, stopnja: %s
level=Stopnja:
toggleTheChat=Omogoči/onemogoči klepet
chat=Klepet

View file

@ -104,6 +104,6 @@ chatRoom=Phòng chat
composeMessage=Soạn tin nhắn
sentMessages=Gửi tin nhắn
spectators=Khán giả:
nbWins=%% nb thắng
nbLosses=% nb% thiệt hại
nbWins=%s thắng
nbLosses=%s thiệt hại
exportGames=xuất khẩu trò chơi

View file

@ -161,6 +161,7 @@
iframe.style.display = "none";
window.message = function (msg) {
console.debug(msg);
var ds = msg.split(";");
app.lastCall = (new Date()).getTime();
for(var i in ds) {