Changeset View
Changeset View
Standalone View
Standalone View
src/view/katestatusbar.cpp
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Line(s) | 511 | { | |||
---|---|---|---|---|---|
522 | } | 522 | } | ||
523 | 523 | | |||
524 | wordCountChanged(0, 0, 0, 0); | 524 | wordCountChanged(0, 0, 0, 0); | ||
525 | } | 525 | } | ||
526 | 526 | | |||
527 | void KateStatusBar::wordCountChanged(int wordsInDocument, int wordsInSelection, int charsInDocument, int charsInSelection) | 527 | void KateStatusBar::wordCountChanged(int wordsInDocument, int wordsInSelection, int charsInDocument, int charsInSelection) | ||
528 | { | 528 | { | ||
529 | if (m_wordCounter) { | 529 | if (m_wordCounter) { | ||
530 | m_wordCount = i18n("Words %1/%2, Chars %3/%4", wordsInDocument, wordsInSelection, charsInDocument, charsInSelection); | 530 | m_wordCount = i18nc( | ||
531 | "%1 and %3 are the selected words/chars count, %2 and %4 are the total words/chars count.", | ||||
532 | "Words %1/%2, Chars %3/%4", | ||||
533 | wordsInSelection, wordsInDocument, charsInSelection, charsInDocument | ||||
534 | ); | ||||
531 | } else { | 535 | } else { | ||
532 | m_wordCount.clear(); | 536 | m_wordCount.clear(); | ||
533 | } | 537 | } | ||
534 | 538 | | |||
535 | cursorPositionChanged(); | 539 | cursorPositionChanged(); | ||
536 | } | 540 | } | ||
537 | 541 | | |||
538 | void KateStatusBar::configChanged() | 542 | void KateStatusBar::configChanged() | ||
Show All 16 Lines |