Skip to content

Commit

Permalink
Merge pull request adobe#3584 from TomMalbran/tom/fix-issue-3583
Browse files Browse the repository at this point in the history
Fix adobe#3583: There is a grammar error with the string "1 lines"
  • Loading branch information
jasonsanjose committed Apr 29, 2013
2 parents a38bc91 + 534a90e commit 1459a7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/editor/EditorStatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ define(function (require, exports, module) {
}

function _updateFileInfo(editor) {
$fileInfo.text(StringUtils.format(Strings.STATUSBAR_LINE_COUNT, editor.lineCount()));
var lines = editor.lineCount();
$fileInfo.text(StringUtils.format(lines > 1 ? Strings.STATUSBAR_LINE_COUNT_PLURAL : Strings.STATUSBAR_LINE_COUNT_SINGULAR, lines));
}

function _updateIndentType() {
Expand Down
3 changes: 2 additions & 1 deletion src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ define({
"STATUSBAR_INDENT_SIZE_TOOLTIP_TABS" : "Click to change tab character width",
"STATUSBAR_SPACES" : "Spaces",
"STATUSBAR_TAB_SIZE" : "Tab Size",
"STATUSBAR_LINE_COUNT" : "{0} Lines",
"STATUSBAR_LINE_COUNT_SINGULAR" : "{0} Line",
"STATUSBAR_LINE_COUNT_PLURAL" : "{0} Lines",

/**
* Command Name Constants
Expand Down

0 comments on commit 1459a7a

Please sign in to comment.