Skip to content

Commit 3d12309

Browse files
committed
simplify the properties dialog title by always saying "Properties"
1 parent 5cbc138 commit 3d12309

File tree

7 files changed

+1
-14
lines changed

7 files changed

+1
-14
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/PropertiesDialog.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class PropertiesDialog() {
2828
mResources = mContext.resources
2929

3030
val file = File(path)
31-
val title = if (file.isDirectory) R.string.directory_properties else R.string.file_properties
3231
mPropertyView = mInflater.inflate(R.layout.item_properties, null) as ViewGroup
3332

3433
addProperty(R.string.name, file.name)
@@ -48,7 +47,7 @@ class PropertiesDialog() {
4847
}
4948

5049
AlertDialog.Builder(context)
51-
.setTitle(mResources.getString(title))
50+
.setTitle(mResources.getString(R.string.properties))
5251
.setView(mPropertyView)
5352
.setPositiveButton(R.string.ok, null)
5453
.create()

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">File properties</string>
41-
<string name="directory_properties">Directory properties</string>
4240
<string name="name">Name</string>
4341
<string name="path">Path</string>
4442
<string name="size">Size</string>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">Proprietà file</string>
41-
<string name="directory_properties">Proprietà cartella</string>
4240
<string name="name">Nome</string>
4341
<string name="path">Percorso</string>
4442
<string name="size">Dimensione</string>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">File properties</string>
41-
<string name="directory_properties">Directory properties</string>
4240
<string name="name">Name</string>
4341
<string name="path">Path</string>
4442
<string name="size">Size</string>

app/src/main/res/values-pt-rPT/strings.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">Propriedades do ficheiro</string>
41-
<string name="directory_properties">Propriedades da pasta</string>
4240
<string name="name">Nome</string>
4341
<string name="path">Caminho</string>
4442
<string name="size">Tamanho</string>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">File properties</string>
41-
<string name="directory_properties">Directory properties</string>
4240
<string name="name">Name</string>
4341
<string name="path">Path</string>
4442
<string name="size">Size</string>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<string name="press_back_again">Press back again to exit</string>
3838

3939
<!-- File and directory properties -->
40-
<string name="file_properties">File properties</string>
41-
<string name="directory_properties">Directory properties</string>
4240
<string name="name">Name</string>
4341
<string name="path">Path</string>
4442
<string name="size">Size</string>

0 commit comments

Comments
 (0)