mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
i18n
This commit is contained in:
parent
fa56c0bf4c
commit
410168a44a
2 changed files with 18 additions and 7 deletions
|
@ -359,6 +359,8 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
// Write CSV data to output stream
|
// Write CSV data to output stream
|
||||||
outputStream.write(csvData.toByteArray())
|
outputStream.write(csvData.toByteArray())
|
||||||
outputStream.flush()
|
outputStream.flush()
|
||||||
|
|
||||||
|
context.toast(MR.strings.library_exported)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -380,10 +382,10 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
return Preference.PreferenceGroup(
|
return Preference.PreferenceGroup(
|
||||||
title = "Export",
|
title = stringResource(MR.strings.export),
|
||||||
preferenceItems = persistentListOf(
|
preferenceItems = persistentListOf(
|
||||||
Preference.PreferenceItem.TextPreference(
|
Preference.PreferenceItem.TextPreference(
|
||||||
title = "Library List",
|
title = stringResource(MR.strings.library_list),
|
||||||
onClick = { showDialog = true },
|
onClick = { showDialog = true },
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -391,7 +393,10 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun escapeCsvField(field: String): String {
|
private fun escapeCsvField(field: String): String {
|
||||||
return field.replace("\"", "\"\"").replace("\r\n", "\n").replace("\r", "\n")
|
return field
|
||||||
|
.replace("\"", "\"\"")
|
||||||
|
.replace("\r\n", "\n")
|
||||||
|
.replace("\r", "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
@ -409,7 +414,7 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = onDismissRequest,
|
onDismissRequest = onDismissRequest,
|
||||||
title = {
|
title = {
|
||||||
Text(text = "Select Fields")
|
Text(text = stringResource(MR.strings.migration_dialog_what_to_include))
|
||||||
},
|
},
|
||||||
text = {
|
text = {
|
||||||
Column {
|
Column {
|
||||||
|
@ -439,7 +444,7 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
onCheckedChange = { authorSelected = it },
|
onCheckedChange = { authorSelected = it },
|
||||||
enabled = titleSelected,
|
enabled = titleSelected,
|
||||||
)
|
)
|
||||||
Text(text = "Author")
|
Text(text = stringResource(MR.strings.author))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Artist checkbox, disabled if Title is not selected
|
// Artist checkbox, disabled if Title is not selected
|
||||||
|
@ -451,7 +456,7 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
onCheckedChange = { artistSelected = it },
|
onCheckedChange = { artistSelected = it },
|
||||||
enabled = titleSelected,
|
enabled = titleSelected,
|
||||||
)
|
)
|
||||||
Text(text = "Artist")
|
Text(text = stringResource(MR.strings.artist))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -462,7 +467,7 @@ object SettingsDataScreen : SearchableSettings {
|
||||||
onDismissRequest()
|
onDismissRequest()
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
Text(text = "Save")
|
Text(text = stringResource(MR.strings.action_save))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dismissButton = {
|
dismissButton = {
|
||||||
|
|
|
@ -554,6 +554,10 @@
|
||||||
<string name="cache_deleted">Cache cleared, %1$d files deleted</string>
|
<string name="cache_deleted">Cache cleared, %1$d files deleted</string>
|
||||||
<string name="cache_delete_error">Error occurred while clearing</string>
|
<string name="cache_delete_error">Error occurred while clearing</string>
|
||||||
<string name="pref_auto_clear_chapter_cache">Clear chapter cache on app launch</string>
|
<string name="pref_auto_clear_chapter_cache">Clear chapter cache on app launch</string>
|
||||||
|
<string name="export">Export</string>
|
||||||
|
<string name="library_list">Library List</string>
|
||||||
|
<string name="library_exported">Library Exported</string>
|
||||||
|
|
||||||
|
|
||||||
<!-- Sync section -->
|
<!-- Sync section -->
|
||||||
<string name="syncing_library">Syncing library</string>
|
<string name="syncing_library">Syncing library</string>
|
||||||
|
@ -668,6 +672,8 @@
|
||||||
<string name="ongoing">Ongoing</string>
|
<string name="ongoing">Ongoing</string>
|
||||||
<string name="unknown">Unknown</string>
|
<string name="unknown">Unknown</string>
|
||||||
<string name="unknown_author">Unknown author</string>
|
<string name="unknown_author">Unknown author</string>
|
||||||
|
<string name="author">Author</string>
|
||||||
|
<string name="artist">Artist</string>
|
||||||
<!-- reserved for #6163 -->
|
<!-- reserved for #6163 -->
|
||||||
<string name="unknown_status">Unknown status</string>
|
<string name="unknown_status">Unknown status</string>
|
||||||
<string name="licensed">Licensed</string>
|
<string name="licensed">Licensed</string>
|
||||||
|
|
Loading…
Reference in a new issue