Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 1459a7a

Browse files
committed
Merge pull request #3584 from TomMalbran/tom/fix-issue-3583
Fix #3583: There is a grammar error with the string "1 lines"
2 parents a38bc91 + 534a90e commit 1459a7a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/editor/EditorStatusBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ define(function (require, exports, module) {
5454
}
5555

5656
function _updateFileInfo(editor) {
57-
$fileInfo.text(StringUtils.format(Strings.STATUSBAR_LINE_COUNT, editor.lineCount()));
57+
var lines = editor.lineCount();
58+
$fileInfo.text(StringUtils.format(lines > 1 ? Strings.STATUSBAR_LINE_COUNT_PLURAL : Strings.STATUSBAR_LINE_COUNT_SINGULAR, lines));
5859
}
5960

6061
function _updateIndentType() {

src/nls/root/strings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ define({
157157
"STATUSBAR_INDENT_SIZE_TOOLTIP_TABS" : "Click to change tab character width",
158158
"STATUSBAR_SPACES" : "Spaces",
159159
"STATUSBAR_TAB_SIZE" : "Tab Size",
160-
"STATUSBAR_LINE_COUNT" : "{0} Lines",
160+
"STATUSBAR_LINE_COUNT_SINGULAR" : "{0} Line",
161+
"STATUSBAR_LINE_COUNT_PLURAL" : "{0} Lines",
161162

162163
/**
163164
* Command Name Constants

0 commit comments

Comments
 (0)