mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix: Use concise Wikidata feedback message while keeping full UI text
This commit is contained in:
parent
bb21e4bdcd
commit
3a9afeee2f
2 changed files with 5 additions and 1 deletions
|
|
@ -63,7 +63,10 @@ class WikidataFeedback : BaseActivity() {
|
||||||
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
|
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
|
||||||
|
|
||||||
binding.appCompatButton.setOnClickListener {
|
binding.appCompatButton.setOnClickListener {
|
||||||
var desc = findViewById<RadioButton>(binding.radioGroup.checkedRadioButtonId).text
|
var desc = when (binding.radioGroup.checkedRadioButtonId) {
|
||||||
|
R.id.radioButton2 -> getString(R.string.is_at_a_different_place_wikidata, place)
|
||||||
|
else -> findViewById<RadioButton>(binding.radioGroup.checkedRadioButtonId).text
|
||||||
|
}
|
||||||
var det = binding.detailsEditText.text.toString()
|
var det = binding.detailsEditText.text.toString()
|
||||||
if (binding.radioGroup.checkedRadioButtonId == R.id.radioButton3 && binding.detailsEditText.text.isNullOrEmpty()) {
|
if (binding.radioGroup.checkedRadioButtonId == R.id.radioButton3 && binding.detailsEditText.text.isNullOrEmpty()) {
|
||||||
Toast
|
Toast
|
||||||
|
|
|
||||||
|
|
@ -832,6 +832,7 @@ Upload your first media by tapping on the add button.</string>
|
||||||
<string name="talk">Talk</string>
|
<string name="talk">Talk</string>
|
||||||
<string name="write_something_about_the_item">Write something about the \'%1$s\' item. It will be publicly visible.</string>
|
<string name="write_something_about_the_item">Write something about the \'%1$s\' item. It will be publicly visible.</string>
|
||||||
<string name="does_not_exist_anymore_no_picture_can_ever_be_taken_of_it">\'%1$s\' does not exist anymore, no picture can ever be taken of it.</string>
|
<string name="does_not_exist_anymore_no_picture_can_ever_be_taken_of_it">\'%1$s\' does not exist anymore, no picture can ever be taken of it.</string>
|
||||||
|
<string name="is_at_a_different_place_wikidata">\'%1$s\' is at a different place.</string>
|
||||||
<string name="is_at_a_different_place_please_specify_the_correct_place_below_if_possible_tell_us_the_correct_latitude_longitude">\'%1$s\' is at a different place. Please specify the correct place below, and if possible, write the correct latitude and longitude.</string>
|
<string name="is_at_a_different_place_please_specify_the_correct_place_below_if_possible_tell_us_the_correct_latitude_longitude">\'%1$s\' is at a different place. Please specify the correct place below, and if possible, write the correct latitude and longitude.</string>
|
||||||
<string name="other_problem_or_information_please_explain_below">Other problem or information (please explain below).</string>
|
<string name="other_problem_or_information_please_explain_below">Other problem or information (please explain below).</string>
|
||||||
<string name="feedback_destination_note">Your feedback gets posted to the following wiki page: <![CDATA[ <a href="https://commons.wikimedia.org/wiki/Commons:Mobile_app/Feedback">Commons:Mobile app/Feedback</a> ]]></string>
|
<string name="feedback_destination_note">Your feedback gets posted to the following wiki page: <![CDATA[ <a href="https://commons.wikimedia.org/wiki/Commons:Mobile_app/Feedback">Commons:Mobile app/Feedback</a> ]]></string>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue