Skip to content

Commit ba983ff

Browse files
committed
start making "Open as plain text" more dynamic, add other file types
1 parent de0c4ba commit ba983ff

File tree

28 files changed

+211
-29
lines changed

28 files changed

+211
-29
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
9292
R.id.cab_copy_path -> copyPath()
9393
R.id.cab_set_as -> setAs()
9494
R.id.cab_open_with -> openWith()
95-
R.id.cab_open_as_text -> openAsText()
95+
R.id.cab_open_as -> openAsText()
9696
R.id.cab_copy_to -> copyMoveTo(true)
9797
R.id.cab_move_to -> copyMoveTo(false)
9898
R.id.cab_compress -> compressSelection()

app/src/main/res/menu/cab.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
android:title="@string/open_with"
4545
app:showAsAction="never"/>
4646
<item
47-
android:id="@+id/cab_open_as_text"
48-
android:title="@string/open_as_text"
47+
android:id="@+id/cab_open_as"
48+
android:title="@string/open_as"
4949
app:showAsAction="never"/>
5050
<item
5151
android:id="@+id/cab_copy_to"

app/src/main/res/values-ar/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">الذهاب الى الرئيسية</string>
88
<string name="set_as_home_folder">تعيين كمجلد رئيسي</string>
99
<string name="home_folder_updated">تم تحديث المجلد الرئيسي</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">نسخ المسار الى الحافظة</string>
1211
<string name="path_copied">تم نسخ المسار</string>
1312
<string name="select_audio_file">الرجاء تحديد ملف صوتي</string>
1413
<string name="search_folder">Search folder</string>
1514
<string name="rooted_device_only">This operation works only on rooted devices</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">ضغط</string>
1926
<string name="decompress">فك الضغط</string>

app/src/main/res/values-az/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Əsas qovluğa qayıt</string>
88
<string name="set_as_home_folder">Əsas qovluq kimi təyin et</string>
99
<string name="home_folder_updated">Əsas qovluq yeniləndi</string>
10-
<string name="open_as_text">Mətn kimi aç</string>
1110
<string name="copy_path">Məkanı kopyala</string>
1211
<string name="path_copied">Məkan kopyalandı</string>
1312
<string name="select_audio_file">Xahiş olunur səs faylı seçin</string>
1413
<string name="search_folder">Qovluq axtar</string>
1514
<string name="rooted_device_only">Bu əməliyyat yalnız root\'lu cihazlarda işləyir</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Sıxışdır</string>
1926
<string name="decompress">Çıxar</string>

app/src/main/res/values-cs/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Jít do domovské složky</string>
88
<string name="set_as_home_folder">Nastavit jako domovskou složku</string>
99
<string name="home_folder_updated">Domovská složka aktualizována</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">Copy path to clipboard</string>
1211
<string name="path_copied">Path copied</string>
1312
<string name="select_audio_file">Please select an audio file</string>
1413
<string name="search_folder">Search folder</string>
1514
<string name="rooted_device_only">This operation works only on rooted devices</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Compress</string>
1926
<string name="decompress">Decompress</string>

app/src/main/res/values-da/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Gå til hjemmemappen</string>
88
<string name="set_as_home_folder">Sæt som hjemmemappe</string>
99
<string name="home_folder_updated">Hjemmemappe opdateret</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">Kopier sti til udklipsholderen</string>
1211
<string name="path_copied">Sti kopieret</string>
1312
<string name="select_audio_file">Vælg en lydfil</string>
1413
<string name="search_folder">Søg mappe</string>
1514
<string name="rooted_device_only">This operation works only on rooted devices</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Komprimer</string>
1926
<string name="decompress">Dekomprimer</string>

app/src/main/res/values-de/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Gehe zum Home-Ordner</string>
88
<string name="set_as_home_folder">Als Home-Ordner setzen</string>
99
<string name="home_folder_updated">Home-Ordner aktualisiert</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">Kopiere Pfad in die Zwischenablage</string>
1211
<string name="path_copied">Pfad kopiert</string>
1312
<string name="select_audio_file">Bitte wähle eine Audiodatei aus</string>
1413
<string name="search_folder">Ordner suchen</string>
1514
<string name="rooted_device_only">Dies kann nur auf gerooteten Geräten durchgeführt werden</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Komprimieren</string>
1926
<string name="decompress">Entpacken</string>

app/src/main/res/values-el/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Μετάβαση στον αρχικό φάκελο</string>
88
<string name="set_as_home_folder">Ορισμός ως αρχικού φακέλου</string>
99
<string name="home_folder_updated">Ο Αρχικός φάκελος ενημερώθηκε</string>
10-
<string name="open_as_text">Άνοιγμα ως απλό κείμενο</string>
1110
<string name="copy_path">Αντιγραφή διαδρομής στο πρόχειρο</string>
1211
<string name="path_copied">Η διαδρομή αντιγράφηκε</string>
1312
<string name="select_audio_file">Επιλέξτε ένα αρχείο ήχου</string>
1413
<string name="search_folder">Αναζήτηση φακέλου</string>
1514
<string name="rooted_device_only">Αυτή η λειτουργία λειτουργεί μόνο σε συσκευές με πρόσβαση στον ριζικό κατάλογο.</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Συμπίεση</string>
1926
<string name="decompress">Αποσυμπίεση</string>

app/src/main/res/values-es/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Ir a carpeta principal</string>
88
<string name="set_as_home_folder">Establecer como carpeta principal</string>
99
<string name="home_folder_updated">Carpeta principal actualizada</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">Copy path to clipboard</string>
1211
<string name="path_copied">Path copied</string>
1312
<string name="select_audio_file">Please select an audio file</string>
1413
<string name="search_folder">Search folder</string>
1514
<string name="rooted_device_only">This operation works only on rooted devices</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Compress</string>
1926
<string name="decompress">Decompress</string>

app/src/main/res/values-fr/strings.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
<string name="go_to_home_folder">Aller au dossier par défaut</string>
88
<string name="set_as_home_folder">Définir en tant que dossier par défaut</string>
99
<string name="home_folder_updated">Dossier par défaut mis à jour</string>
10-
<string name="open_as_text">Open as Plain Text</string>
1110
<string name="copy_path">Copier le chemin du fichier dans le presse-papiers</string>
1211
<string name="path_copied">Chemin du fichier copié</string>
1312
<string name="select_audio_file">Veuillez sélectionner un fichier audio</string>
1413
<string name="search_folder">Chercher dans le dossier</string>
1514
<string name="rooted_device_only">This operation works only on rooted devices</string>
1615

16+
<!-- Open as -->
17+
<string name="open_as">Open as</string>
18+
<string name="text_file">Text file</string>
19+
<string name="image_file">Image file</string>
20+
<string name="audio_file">Audio file</string>
21+
<string name="video_file">Video file</string>
22+
<string name="other_file">Other file</string>
23+
1724
<!-- Compression -->
1825
<string name="compress">Compresser</string>
1926
<string name="decompress">Décompresser</string>

0 commit comments

Comments
 (0)