Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strings for the validateUrl and validatePostName utils. #1145

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

camporter
Copy link
Contributor

Fixes #1129

Pulls in Mockito. I'm not sure what the feeling about doing so is.
Just wanted to be able to keep the tests while also mocking Context out.

Copy link
Contributor

@twizmwazin twizmwazin left a comment

Choose a reason for hiding this comment

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

Looks good besides some strings

@@ -303,7 +303,13 @@
<string name="sorttype_topweek">TopWeek</string>
<string name="sorttype_topyear">TopYear</string>
<string name="time_ago_ago">%1$s %2$s ago</string>
<string name="title">Title</string>
<string name="title_less_than_200_chars">Title cannot be > 200 chars</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

Title cannot be more than 200 characters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@@ -303,7 +303,13 @@
<string name="sorttype_topweek">TopWeek</string>
<string name="sorttype_topyear">TopYear</string>
<string name="time_ago_ago">%1$s %2$s ago</string>
<string name="title">Title</string>
<string name="title_less_than_200_chars">Title cannot be > 200 chars</string>
<string name="title_min_3_chars">"Title must be at least 3 chars</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

Title must be at least three characters Also note the extra double quote

<string name="topAppBar_back">Back</string>
<string name="url">Url</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

URL, also capitalize below

@camporter camporter force-pushed the url_and_title_util_strings branch from 18ebe6e to 15c4f33 Compare August 7, 2023 03:08
@twizmwazin twizmwazin merged commit c34b669 into LemmyNet:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validateUrl & validatePostName still hardcoded english text
3 participants