mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-19 04:58:47 -04:00
Translations : expose self update string for translation
This commit is contained in:
@@ -296,14 +296,15 @@ public class AuroraActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
protected void showAddRepoDialog(Update update) {
|
||||
final String changelog = TextUtil.emptyIfNull(update.getChangelog());
|
||||
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this)
|
||||
.setTitle("New update available")
|
||||
.setTitle(getString(R.string.dialog_title_self_update))
|
||||
.setMessage(new StringBuilder()
|
||||
.append(update.getVersionName())
|
||||
.append("\nChangelog:\n")
|
||||
.append(TextUtil.emptyIfNull(update.getChangelog()))
|
||||
.append("\n")
|
||||
.append("Do you wish to update now ?")
|
||||
.append("\n\n")
|
||||
.append(changelog.isEmpty() ? getString(R.string.details_no_changes) : changelog)
|
||||
.append("\n\n")
|
||||
.append(getString(R.string.dialog_desc_self_update))
|
||||
.toString())
|
||||
.setPositiveButton(getString(android.R.string.yes), (dialog, which) -> {
|
||||
Intent intent = new Intent(this, SelfUpdateService.class);
|
||||
|
||||
@@ -153,6 +153,8 @@
|
||||
<string name="details_you_rated_this_app">Your rating</string>
|
||||
|
||||
<string name="dialog_title_logout">Log out ?</string>
|
||||
<string name="dialog_title_self_update">New update available</string>
|
||||
<string name="dialog_desc_self_update">Do you wish to update now ?</string>
|
||||
|
||||
<string name="download_cancel_all">Cancel all</string>
|
||||
<string name="download_canceled">Canceled</string>
|
||||
|
||||
Reference in New Issue
Block a user