projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26897ec
)
Translate "NPS" also in engine output window
author
Byrial Jensen
<byrial@vip.cybercity.dk>
Sat, 14 Apr 2012 20:43:03 +0000
(22:43 +0200)
committer
Byrial Jensen
<byrial@vip.cybercity.dk>
Sun, 15 Apr 2012 00:55:49 +0000
(
02:55
+0200)
engineoutput.c
patch
|
blob
|
history
diff --git
a/engineoutput.c
b/engineoutput.c
index
157cabf
..
aa7cc49
100644
(file)
--- a/
engineoutput.c
+++ b/
engineoutput.c
@@
-503,10
+503,10
@@
UpdateControls (EngineOutputData *ed)
unsigned long nps_100 = ed->nodes / ed->time;
if( nps_100 < 100000 ) {
- snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "
NPS: %lu"
, nps_100 * 100 );
+ snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "
%s: %lu", _("NPS")
, nps_100 * 100 );
}
else {
- snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "
NPS: %.1fk"
, nps_100 / 10.0 );
+ snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "
%s: %.1fk", _("NPS")
, nps_100 / 10.0 );
}
}