Changeset View
Changeset View
Standalone View
Standalone View
src/view/katestatusbar.cpp
Show First 20 Lines • Show All 531 Lines • ▼ Show 20 Line(s) | 521 | { | |||
---|---|---|---|---|---|
532 | } | 532 | } | ||
533 | 533 | | |||
534 | wordCountChanged(0, 0, 0, 0); | 534 | wordCountChanged(0, 0, 0, 0); | ||
535 | } | 535 | } | ||
536 | 536 | | |||
537 | void KateStatusBar::wordCountChanged(int wordsInDocument, int wordsInSelection, int charsInDocument, int charsInSelection) | 537 | void KateStatusBar::wordCountChanged(int wordsInDocument, int wordsInSelection, int charsInDocument, int charsInSelection) | ||
538 | { | 538 | { | ||
539 | if (m_wordCounter) { | 539 | if (m_wordCounter) { | ||
540 | m_wordCount = i18n("Words %1/%2, Chars %3/%4", wordsInDocument, wordsInSelection, charsInDocument, charsInSelection); | 540 | m_wordCount = i18nc( | ||
541 | "%1 and %3 are the selected words/chars count, %2 and %4 are the total words/chars count.", | ||||
542 | "Words %1/%2, Chars %3/%4", | ||||
543 | wordsInSelection, wordsInDocument, charsInSelection, charsInDocument | ||||
544 | ); | ||||
541 | } else { | 545 | } else { | ||
542 | m_wordCount.clear(); | 546 | m_wordCount.clear(); | ||
543 | } | 547 | } | ||
544 | 548 | | |||
545 | cursorPositionChanged(); | 549 | cursorPositionChanged(); | ||
546 | } | 550 | } | ||
547 | 551 | | |||
548 | void KateStatusBar::configChanged() | 552 | void KateStatusBar::configChanged() | ||
Show All 16 Lines |