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

Working with #3129 issue #3146

Merged
merged 5 commits into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void shareScreen(Bitmap bitmap) {
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(Intent.EXTRA_STREAM, fileUri);
intent.setType("image/png");
startActivity(Intent.createChooser(intent, "Share image via"));
startActivity(Intent.createChooser(intent, getString(R.string.achiev_activity_share_screen)));
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be made generic, share_image_via

} catch (IOException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -316,8 +316,8 @@ private void setUploadProgress(int uploadCount){

private void setZeroAchievements() {
AlertDialog.Builder builder=new AlertDialog.Builder(this)
.setMessage("You haven't made any contributions yet")
.setPositiveButton("Ok", (dialog, which) -> {
.setMessage(getString(R.string.achiev_activity_set_zero_achiev))
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest spelling the full word achievements, even if that means a longer variable name.

.setPositiveButton(getString(R.string.ok), (dialog, which) -> {
Copy link
Collaborator

@ashishkumar468 ashishkumar468 Sep 5, 2019

Choose a reason for hiding this comment

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

Similarly this could be no_achievements_yet

Copy link
Collaborator

@ashishkumar468 ashishkumar468 Sep 5, 2019

Choose a reason for hiding this comment

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

I am sorry I meant, "no_achievements_yet" :)

Copy link
Member

Choose a reason for hiding this comment

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

I would say no_achievements_yet is grammatically better? :-)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, my bad, the same typo again, @PavelAplevich would be great if you could make it "no_achievements_yet"

});
AlertDialog dialog = builder.create();
dialog.show();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.widget.Toast;

import fr.free.nrw.commons.BuildConfig;
import fr.free.nrw.commons.R;
import fr.free.nrw.commons.theme.BaseActivity;
import timber.log.Timber;

Expand Down Expand Up @@ -39,7 +40,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
Timber.d("Overriding URL %s", url);

Toast toast = Toast.makeText(SignupActivity.this,
"Account created!", Toast.LENGTH_LONG);
R.string.sign_up_activity_account, Toast.LENGTH_LONG);
Copy link
Collaborator

Choose a reason for hiding this comment

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

account_created

toast.show();
// terminate on task completion.
finish();
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -575,4 +575,7 @@ Upload your first media by tapping on the add button.</string>
<string name="delete_helper_ask_reason_copyright_logo">Logo</string>
<string name="delete_helper_ask_reason_copyright_other">Other</string>
<string name="delete_helper_ask_alert_set_positive_button_reason">Because it is</string>
<string name="achiev_activity_share_screen">Share image via</string>
<string name="achiev_activity_set_zero_achiev">You haven\'t made any contributions yet</string>
<string name="sign_up_activity_account">Account created!</string>
</resources>