Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/trans-unused
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ TRANS_DUMP = LILA_DIR / "bin" / "trans-dump.js"
def is_key_used(key: str) -> bool:
key = re.escape(key)
if key.islower(): # One word key
key_regex = f"\.{key}|{key}[\(,\"']" # Put a dot in front to reduce change of finding the word in commments. Will be not enough for very common keys such as `performance`
else: # Multiple word key, such as `invitationToClass`, missmatch with over variable names considered negligible
key_regex = f"\.{key}|{key}[\(,\"']" # Put a dot in front to reduce change of finding the word in comments. Will be not enough for very common keys such as `performance`
else: # Multiple word key, such as `invitationToClass`, mismatch with over variable names considered negligible
key_regex = f"{key}"
for dir_ in [APP_DIR, MODULE_DIR]: # Check App/ first because the majority of the translations are there
# grep -nr '.error.max*' modules --exclude=I18nKeys.scala --exclude-dir target
Expand Down
2 changes: 1 addition & 1 deletion modules/relay/src/main/RelayInputSanity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private object RelayInputSanity:

// DGT puts the kings in the center on game end
// and sends it as actual moves if the kings were close to the center
// so we need to remove the boggus king moves
// so we need to remove the bogus king moves
private def fixDgtKingsInTheCenter(games: RelayGames): RelayGames = games map { game =>
game.copy(
root = game.root.takeMainlineWhile: node =>
Expand Down
2 changes: 1 addition & 1 deletion modules/report/src/main/ReportApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ final class ReportApi(
.void
yield ()

// `seriousness` depends on the number of previous warnings, and number of games throwed away
// `seriousness` depends on the number of previous warnings, and number of games thrown away
def autoBoostReport(winnerId: UserId, loserId: UserId, seriousness: Int): Funit =
securityApi.shareAnIpOrFp(winnerId, loserId) zip
userRepo.pair(winnerId, loserId) zip getLichessReporter flatMap {
Expand Down
2 changes: 1 addition & 1 deletion modules/study/src/test/PgnFixtures.scala
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ outright to } 29. c4+!) 28... Qg6 29. Qa8! Bd7 30. Qg8+ { and ending with
Black's king on c1 and White being a piece up 7 moves later, but we have
already gone way too far from the game. }) (13. c5!? dxc5 14. e5 { was an
interesting positional sacrifice. A similar one occurred several moves later
in the game. Here White has not played d4-d5 yet, but the evalutation remains
in the game. Here White has not played d4-d5 yet, but the evaluation remains
the same after } 14... Qh6 (14... Qe7) 15. Rad1! Bg4 16. Qb3 { . Originally I
believed White to be slightly better here, but now I believe that it is sharp
but equal, with any result possible. } 16... b6 (16... Rab8!?) 17. Qa4!? { is an
Expand Down
2 changes: 1 addition & 1 deletion ui/common/src/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface DialogOpts {
attrs?: { dialog?: Attrs; view?: Attrs }; // optional attrs for dialog and view div
action?: Action | Action[]; // if present, add handlers to action buttons
onClose?: (dialog: Dialog) => void; // called when dialog closes
noCloseButton?: boolean; // if true, no upper right corener close button
noCloseButton?: boolean; // if true, no upper right corner close button
noClickAway?: boolean; // if true, no click-away-to-close
}

Expand Down
2 changes: 1 addition & 1 deletion ui/nvui/src/chess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export function pieceJumpingHandler(wrapSound: () => void, errorSound: () => voi
const $piece = $next ? $prevNextPieces.get(0) : $prevNextPieces.get($prevNextPieces.length - 1);
if ($piece) {
$piece.focus();
// if detected any matching piece; one is the pice being clicked on,
// if detected any matching piece; one is the piece being clicked on,
} else if ($allPieces.length >= 2) {
const $wrapPiece = $next ? $allPieces.get(0) : $allPieces.get($allPieces.length - 1);
$wrapPiece?.focus();
Expand Down