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

Added 'no results' and '1 result' to search dialog #4853

Merged
merged 3 commits into from
Aug 21, 2013

Conversation

cornedor
Copy link

Fixed #4784. A "No results" message will appear when there are no results and a "1 result" message when there is only 1 result.

@@ -112,6 +112,8 @@ define({
// Find, Replace, Find in Files
"SEARCH_REGEXP_INFO" : "Use /re/ syntax for regexp search",
"FIND_RESULT_COUNT" : "{0} results",
"FIND_RESULT_COUNT_SINGLE" : "1 result",
"FIND_NO_RESULTS" : "No results",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is wrong here. Make sure you're using spaces everywhere and not tab characters.

@ghost ghost assigned peterflynn Aug 21, 2013
@peterflynn
Copy link
Member

@cornedor Looks good except for that one formatting glitch

if (resultCount === 0) {
$("#find-counter").text(StringUtils.format(Strings.FIND_NO_RESULTS));
} else if (resultCount === 1) {
$("#find-counter").text(StringUtils.format(Strings.FIND_RESULT_COUNT_SINGLE));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really need to use StringUtils.format on this 2 if.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @TomMalbran! Sorry I missed that in the original review...

@cornedor
Copy link
Author

Must have missed the tab button, also removed the useless StringUtils.format.

@peterflynn
Copy link
Member

Good to go now -- thanks!

peterflynn added a commit that referenced this pull request Aug 21, 2013
Add 'no results' and '1 result' strings for Find bar
@peterflynn peterflynn merged commit a0fbad5 into adobe:master Aug 21, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core][Find]: String FIND_RESULT_COUNT should be changed to singular when the result is singular number.
3 participants