Skip to content

Commit

Permalink
resources: more accessibility in viewer (fixes #2631) (#2637)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Nov 6, 2023
1 parent d3010d9 commit 931c02a
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1134
versionName "0.11.34"
versionCode 1135
versionName "0.11.35"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_audio_player.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:contentDescription="@string/jcplayer_description"
android:gravity="center" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_exo_player_video.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<com.google.android.exoplayer2.ui.SimpleExoPlayerView
android:id="@+id/exo_player_simple"
android:layout_width="match_parent"
android:contentDescription="@string/video_player"
android:layout_height="match_parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_image_viewer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

<ImageView
android:id="@+id/imageViewer"
android:contentDescription="@string/image_resource"
android:layout_width="match_parent"
android:layout_height="match_parent" />

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_pdfreader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_mic"
android:contentDescription="@string/record_audio"
app:fab_label="Record Audio" />

<com.github.clans.fab.FloatingActionButton
android:id="@+id/fab_play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_play_white"
android:contentDescription="@string/play_audio"
app:fab_label="Play Audio" />
</com.github.clans.fab.FloatingActionMenu>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
3 changes: 3 additions & 0 deletions app/src/main/res/layout/content_web_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:padding="8dp"
android:contentDescription="@string/finish"
android:src="@android:drawable/ic_menu_close_clear_cancel"
ads:tint="#000000" />

Expand Down Expand Up @@ -61,12 +62,14 @@
android:id="@+id/pBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:contentDescription="@string/progress_bar"
android:layout_height="wrap_content" />

<WebView
android:id="@+id/wv"
android:layout_width="match_parent"
android:layout_height="0dp"
android:contentDescription="@string/web_view"
android:layout_weight="1" />

</LinearLayout>
6 changes: 6 additions & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -948,5 +948,11 @@
<string name="confirm_removal">تأكيد الحذف</string>
<string name="returning_user">مستخدم عائد</string>
<string name="send_to_nation">اسمح بمشاركة إنجازاتك مع الوطن</string>
<string name="jcplayer_description">مشغل الصوت</string>
<string name="image_resource">مصدر الصورة</string>
<string name="play_audio">تشغيل الصوت</string>
<string name="video_player">مشغل الفيديو</string>
<string name="progress_bar">شريط التقدم</string>
<string name="web_view">عرض الويب</string>

</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,11 @@
<string name="confirm_removal">Confirmar eliminación</string>
<string name="returning_user">Usuario recurrente</string>
<string name="send_to_nation">Permite que tus logros se compartan con la nación</string>
<string name="jcplayer_description">reproductor de audio</string>
<string name="image_resource">recurso de imagen</string>
<string name="play_audio">reproducir audio</string>
<string name="video_player">reproductor de video</string>
<string name="progress_bar">barra de progreso</string>
<string name="web_view">vista web</string>

</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,11 @@
<string name="confirm_removal">Confirmer la suppression</string>
<string name="returning_user">Utilisateur régulier</string>
<string name="send_to_nation">Autorisez la partage de vos réalisations avec la nation</string>
<string name="jcplayer_description">lecteur audio</string>
<string name="image_resource">ressource d\'image</string>
<string name="play_audio">lire l\'audio</string>
<string name="video_player">lecteur vidéo</string>
<string name="progress_bar">barre de progression</string>
<string name="web_view">vue web</string>

</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-ne/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,11 @@
<string name="confirm_removal">हटाउनु हेरदैछ</string>
<string name="returning_user">पुनराबृत्ति गर्ने प्रयोगकर्ता</string>
<string name="send_to_nation">तपाइको उपलब्धिहरूलाई देशसँग साझा गर्न अनुमति दिनुहोस्</string>
<string name="jcplayer_description">आडियो प्लेयर</string>
<string name="image_resource">तस्वीर स्रोत</string>
<string name="play_audio">आडियो प्ले गर्नुहोस्</string>
<string name="video_player">भिडियो प्लेयर</string>
<string name="progress_bar">प्रगति पट्टि</string>
<string name="web_view">वेब दृश्य</string>

</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-so/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -942,5 +942,11 @@
<string name="confirm_removal">Xaqiiji tirtirka</string>
<string name="returning_user">Isticmaale sare leh</string>
<string name="send_to_nation">Geli codbixiyeyaashaaga qaranka</string>
<string name="jcplayer_description">qalabka codka</string>
<string name="image_resource">deriska sawirka</string>
<string name="play_audio">bixi codka</string>
<string name="video_player">qalabka fiidyowga</string>
<string name="progress_bar">balka soo socda</string>
<string name="web_view">barashada webka</string>

</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1043,5 +1043,11 @@
<string name="confirm_removal">Confirm removal</string>
<string name="returning_user">Returning user</string>
<string name="send_to_nation">Allow your achievements to be shared with the nation</string>
<string name="jcplayer_description">audio player</string>
<string name="image_resource">image resource</string>
<string name="play_audio">play audio</string>
<string name="video_player">video player</string>
<string name="progress_bar">progress bar</string>
<string name="web_view">web view</string>

</resources>

0 comments on commit 931c02a

Please sign in to comment.