strings: update german translations

Update german translations for the strings I can translate at least
okay.
This commit is contained in:
OxygenCobalt 2022-05-25 13:20:50 -06:00
parent 444e4299d6
commit ae62572760
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
4 changed files with 48 additions and 16 deletions

View file

@ -164,6 +164,10 @@ class MainActivity : AppCompatActivity() {
}
}
/**
* Apply blind padding to accommodate left/right window insets. This is done because
* implementing insets on *phone* landscape mode is pretty impractical.
*/
private fun WindowInsets.applyLeftRightInsets(contentView: View): WindowInsets {
val bars = systemBarInsetsCompat
contentView.updatePadding(left = bars.left, right = bars.right)

View file

@ -33,14 +33,13 @@ import org.oxycblt.auxio.util.newMainIntent
fun createDefaultWidget(context: Context) = createViews(context, R.layout.widget_default)
/**
* The thin widget is a weird outlier widget intended to work well on strange launchers or
* landscape grid launchers that allow really thin widget sizing.
* The thin widget is a weird outlier widget intended to work well on strange launchers or landscape
* grid launchers that allow really thin widget sizing.
*/
fun createThinWidget(context: Context, state: WidgetComponent.WidgetState) =
createViews(context, R.layout.widget_thin)
.applyMeta(context, state)
.applyBasicControls(context, state)
/**
* The small widget is for 2x2 widgets and just shows the cover art and playback controls. This is
* generally because a Medium widget is too large for this widget size and a text-only widget is too
@ -107,7 +106,7 @@ private fun RemoteViews.applyCover(
return this
}
private fun RemoteViews.applyBasicControls(
private fun RemoteViews.applyPlayPauseControls(
context: Context,
state: WidgetComponent.WidgetState
): RemoteViews {
@ -122,6 +121,15 @@ private fun RemoteViews.applyBasicControls(
R.drawable.ic_play
})
return this
}
private fun RemoteViews.applyBasicControls(
context: Context,
state: WidgetComponent.WidgetState
): RemoteViews {
applyPlayPauseControls(context, state)
setOnClickPendingIntent(
R.id.widget_skip_prev, context.newBroadcastIntent(PlaybackService.ACTION_SKIP_PREV))

View file

@ -54,7 +54,6 @@
</android.widget.RelativeLayout>
<android.widget.LinearLayout
android:id="@+id/widget_panel"
android:layout_width="0dp"
@ -69,8 +68,9 @@
<android.widget.LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/spacing_medium"
android:layout_weight="1"
android:layout_marginEnd="@dimen/spacing_small"
android:orientation="vertical">
<android.widget.TextView
@ -89,15 +89,15 @@
</android.widget.LinearLayout>
<android.widget.ImageButton
android:id="@+id/widget_play_pause"
style="@style/Widget.Auxio.PlaybackButton.AppWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="@dimen/size_btn_small"
android:minHeight="@dimen/size_btn_small"
android:contentDescription="@string/desc_play_pause"
android:src="@drawable/ic_play" />
<android.widget.ImageButton
android:id="@+id/widget_play_pause"
style="@style/Widget.Auxio.PlaybackButton.AppWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/desc_play_pause"
android:minWidth="@dimen/size_btn_small"
android:minHeight="@dimen/size_btn_small"
android:src="@drawable/ic_play" />
</android.widget.LinearLayout>

View file

@ -49,6 +49,8 @@
<string name="lbl_licenses">Lizenzen</string>
<string name="lbl_author">Entwickelt von OxygenCobalt</string>
<string name="lbl_off">Aus</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_title">Einstellungen</string>
@ -74,7 +76,9 @@
<string name="set_headset_autoplay">Kopfhörer automatische Wiedergabe</string>
<string name="set_headset_autoplay_desc">Beginne die Wiedergabe immer, wenn Kopfhörer verbunden sind (funktioniert nicht auf allen Geräten)</string>
<string name="set_replay_gain">ReplayGain</string>
<string name="lbl_off">Aus</string>
<string name="set_pre_amp_desc">Während Musikwiedergabe, Die Prälautverstärkung trifft zu dem aktuellem Abgleich</string>
<string name="set_pre_amp_with">Abgleich mit Metadaten</string>
<string name="set_pre_amp_without">Abgleich ohne Metadaten</string>
<string name="set_replay_gain_track">Titel bevorzugen</string>
<string name="set_replay_gain_album">Album bevorzugen</string>
@ -175,4 +179,20 @@
<string name="desc_clear_queue_item">Lied in der Warteschlange löschen</string>
<string name="desc_tab_handle">Tab versetzen</string>
<string name="def_artist">Unbekannter Künstler</string>
<string name="lbl_sort_duration">Dauer</string>
<string name="lbl_sort_count">Liedermenge</string>
<string name="lbl_sort_disc">Schallplatte</string>
<string name="lbl_sort_track">Titel</string>
<string name="lbl_ok">OK</string>
<string name="lbl_library_counts">Bibliotheke-statistiken</string>
<string name="set_replay_gain_dynamic">Dynamik</string>
<string name="clr_dynamic">Dynamiche farbe</string>
<string name="fmt_disc_no">Schallplatte %d</string>
<string name="fmt_db_pos">+%.1f dB</string>
<string name="fmt_db_neg">-%.1f dB</string>
<string name="fmt_albums_loaded">Geladene Alben: %d</string>
<string name="fmt_artists_loaded">Geladene Künstler: %d</string>
<string name="fmt_genres_loaded">Geladene Genres: %d</string>
<string name="fmt_total_duration">Gesamt</string>
<string name="set_pre_amp">ReplayGain prälautverstärkung</string>
</resources>