mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00:00
move string to donottranslate.xml and fix nits
This commit is contained in:
parent
50269d0f5e
commit
3e15c77a05
@ -566,8 +566,6 @@ public class DownloadDialog extends DialogFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onItemSelectedSetFileName() {
|
private void onItemSelectedSetFileName() {
|
||||||
final String setSubtitleLanguageCode = subtitleStreamsAdapter.getItem(selectedSubtitleIndex)
|
|
||||||
.getLanguageTag();
|
|
||||||
final String fileName = FilenameUtils.createFilename(getContext(),
|
final String fileName = FilenameUtils.createFilename(getContext(),
|
||||||
currentInfo.getName());
|
currentInfo.getName());
|
||||||
switch (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()) {
|
switch (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()) {
|
||||||
@ -576,7 +574,9 @@ public class DownloadDialog extends DialogFragment
|
|||||||
dialogBinding.fileName.setText(fileName);
|
dialogBinding.fileName.setText(fileName);
|
||||||
break;
|
break;
|
||||||
case R.id.subtitle_button:
|
case R.id.subtitle_button:
|
||||||
dialogBinding.fileName.setText(fileName + getString(
|
final String setSubtitleLanguageCode = subtitleStreamsAdapter
|
||||||
|
.getItem(selectedSubtitleIndex).getLanguageTag();
|
||||||
|
dialogBinding.fileName.setText(getString(
|
||||||
R.string.caption_file_name, fileName, setSubtitleLanguageCode));
|
R.string.caption_file_name, fileName, setSubtitleLanguageCode));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -27,4 +27,5 @@
|
|||||||
<string name="soundcloud">SoundCloud</string>
|
<string name="soundcloud">SoundCloud</string>
|
||||||
<string name="preferred_open_action_share_menu_title">@string/app_name</string>
|
<string name="preferred_open_action_share_menu_title">@string/app_name</string>
|
||||||
<string name="leakcanary">LeakCanary</string>
|
<string name="leakcanary">LeakCanary</string>
|
||||||
|
<string name="caption_file_name">%1$s-%2$s</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -452,7 +452,6 @@
|
|||||||
<string name="resize_zoom">Zoom</string>
|
<string name="resize_zoom">Zoom</string>
|
||||||
<string name="caption_auto_generated">Auto-generated</string>
|
<string name="caption_auto_generated">Auto-generated</string>
|
||||||
<!-- Caption Settings -->
|
<!-- Caption Settings -->
|
||||||
<string name="caption_file_name">%1$s-%2$s</string>
|
|
||||||
<string name="caption_setting_title">Captions</string>
|
<string name="caption_setting_title">Captions</string>
|
||||||
<string name="caption_setting_description">Modify player caption text scale and background styles. Requires app restart to take effect</string>
|
<string name="caption_setting_description">Modify player caption text scale and background styles. Requires app restart to take effect</string>
|
||||||
<!-- Debug Settings -->
|
<!-- Debug Settings -->
|
||||||
|
Loading…
Reference in New Issue
Block a user