Skip to content

Commit ce959f6

Browse files
authored
CodeMaid (#2047)
1 parent fe49c0c commit ce959f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+937
-423
lines changed

Files.Package/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4"
1010
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
1111
IgnorableNamespaces="uap uap5 mp rescap desktop4 desktop">
12-
<Identity Name="FilesDev" Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7" Version="0.15.4.0" />
12+
<Identity Name="FilesDev" Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7" Version="0.16.0.0" />
1313
<Properties>
1414
<DisplayName>Files - Dev</DisplayName>
1515
<PublisherDisplayName>Yair A</PublisherDisplayName>

Files/Converters/DateTimeOffsetToString.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using Windows.UI.Xaml.Data;
73

84
namespace Files.Converters
95
{
10-
class DateTimeOffsetToString : IValueConverter
6+
internal class DateTimeOffsetToString : IValueConverter
117
{
128
public object Convert(object value, Type targetType, object parameter, string language)
139
{
@@ -28,4 +24,4 @@ public object ConvertBack(object value, Type targetType, object parameter, strin
2824
}
2925
}
3026
}
31-
}
27+
}

Files/Converters/DoubleToString.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using Windows.UI.Xaml.Data;
73

84
namespace Files.Converters
95
{
10-
class DoubleToString : IValueConverter
6+
internal class DoubleToString : IValueConverter
117
{
128
public object Convert(object value, Type targetType, object parameter, string language)
139
{
@@ -28,4 +24,4 @@ public object ConvertBack(object value, Type targetType, object parameter, strin
2824
}
2925
}
3026
}
31-
}
27+
}

Files/Converters/StringArrayToString.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using Windows.UI.Xaml.Data;
73

84
namespace Files.Converters
95
{
10-
class StringArrayToString : IValueConverter
6+
internal class StringArrayToString : IValueConverter
117
{
128
public object Convert(object value, Type targetType, object parameter, string language)
139
{
14-
var array = value as string[];
10+
var array = value as string[];
1511

1612
if (array == null || !(array is string[]))
1713
return "";
@@ -28,4 +24,4 @@ public object ConvertBack(object value, Type targetType, object parameter, strin
2824
return (value as string).Split("; ");
2925
}
3026
}
31-
}
27+
}

Files/Converters/UInt32ToString.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using Windows.UI.Xaml.Data;
73

84
namespace Files.Converters
95
{
10-
class UInt32ToString : IValueConverter
6+
internal class UInt32ToString : IValueConverter
117
{
128
public object Convert(object value, Type targetType, object parameter, string language)
139
{
14-
if(value != null)
10+
if (value != null)
1511
return value.ToString();
1612
return "";
1713
}
@@ -28,4 +24,4 @@ public object ConvertBack(object value, Type targetType, object parameter, strin
2824
}
2925
}
3026
}
31-
}
27+
}

Files/Dialogs/AddItemDialog.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
<StackPanel Orientation="Vertical" Spacing="25">
2020
<Grid x:Name="SubtitleArea">
21-
<TextBlock x:Name="Description" x:Uid="AddDialogDescription" Text="Choose a type for this new item below" />
21+
<TextBlock
22+
x:Name="Description"
23+
x:Uid="AddDialogDescription"
24+
Text="Choose a type for this new item below" />
2225
</Grid>
2326
<Grid x:Name="SelectionListContent" HorizontalAlignment="Stretch">
2427
<StackPanel>

Files/Filesystem/ListedItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@ public ShortcutItem(string folderRelativeId) : base(folderRelativeId)
235235
public bool RunAsAdmin { get; set; }
236236
public bool IsUrl { get; set; }
237237
}
238-
}
238+
}

Files/Filesystem/PropertiesData.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using Windows.UI.Xaml;
1+
using Windows.UI.Xaml;
72

83
namespace Files.Filesystem
94
{
@@ -26,4 +21,4 @@ public PropertiesData(string property, object data)
2621
Data = data;
2722
}
2823
}
29-
}
24+
}

Files/MultilingualResources/Files.de-DE.xlf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,15 +1286,15 @@
12861286
</trans-unit>
12871287
<trans-unit id="NewItemButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12881288
<source>Create new item</source>
1289-
<target state="new">Create new item</target>
1289+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Neues Element erstellen</target>
12901290
</trans-unit>
12911291
<trans-unit id="NavBackButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12921292
<source>Navigate backwards</source>
12931293
<target state="new">Navigate backwards</target>
12941294
</trans-unit>
12951295
<trans-unit id="NavForwardButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12961296
<source>Navigate forward</source>
1297-
<target state="new">Navigate forward</target>
1297+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Vorwärts navigieren</target>
12981298
</trans-unit>
12991299
<trans-unit id="NavResfreshButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
13001300
<source>Refresh the directory</source>
@@ -1310,7 +1310,7 @@
13101310
</trans-unit>
13111311
<trans-unit id="SidebarSettingsButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
13121312
<source>Settings</source>
1313-
<target state="new">Settings</target>
1313+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Einstellungen</target>
13141314
</trans-unit>
13151315
</group>
13161316
</body>

Files/MultilingualResources/Files.es-ES.xlf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,47 +1252,47 @@
12521252
</trans-unit>
12531253
<trans-unit id="AddDialog.PrimaryButtonText" translate="yes" xml:space="preserve">
12541254
<source>Cancel</source>
1255-
<target state="new">Cancel</target>
1255+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Cancelar</target>
12561256
</trans-unit>
12571257
<trans-unit id="AddDialogListBitmapHeader" translate="yes" xml:space="preserve">
12581258
<source>Bitmap Image</source>
1259-
<target state="new">Bitmap Image</target>
1259+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Imagen de mapa de bits</target>
12601260
</trans-unit>
12611261
<trans-unit id="AddDialogListBitmapSubHeader" translate="yes" xml:space="preserve">
12621262
<source>Creates an empty bitmap image file</source>
12631263
<target state="new">Creates an empty bitmap image file</target>
12641264
</trans-unit>
12651265
<trans-unit id="AddDialogListFolderHeader" translate="yes" xml:space="preserve">
12661266
<source>Folder</source>
1267-
<target state="new">Folder</target>
1267+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Carpeta</target>
12681268
</trans-unit>
12691269
<trans-unit id="AddDialogListFolderSubHeader" translate="yes" xml:space="preserve">
12701270
<source>Creates an empty folder</source>
12711271
<target state="new">Creates an empty folder</target>
12721272
</trans-unit>
12731273
<trans-unit id="AddDialogListTextFileHeader" translate="yes" xml:space="preserve">
12741274
<source>Text Document</source>
1275-
<target state="new">Text Document</target>
1275+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Documento de texto</target>
12761276
</trans-unit>
12771277
<trans-unit id="AddDialogListTextFileSubHeader" translate="yes" xml:space="preserve">
12781278
<source>Creates an empty text file</source>
1279-
<target state="new">Creates an empty text file</target>
1279+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Crea un archivo de texto vacío.</target>
12801280
</trans-unit>
12811281
<trans-unit id="BaseLayoutContextFlyoutLayoutMode.Text" translate="yes" xml:space="preserve">
12821282
<source>Layout mode</source>
12831283
<target state="needs-review-translation" state-qualifier="tm-suggestion">Modo de diseño</target>
12841284
</trans-unit>
12851285
<trans-unit id="NewItemButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12861286
<source>Create new item</source>
1287-
<target state="new">Create new item</target>
1287+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Crear elemento</target>
12881288
</trans-unit>
12891289
<trans-unit id="NavBackButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12901290
<source>Navigate backwards</source>
12911291
<target state="new">Navigate backwards</target>
12921292
</trans-unit>
12931293
<trans-unit id="NavForwardButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12941294
<source>Navigate forward</source>
1295-
<target state="new">Navigate forward</target>
1295+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Navegar hacia delante</target>
12961296
</trans-unit>
12971297
<trans-unit id="NavResfreshButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
12981298
<source>Refresh the directory</source>
@@ -1308,7 +1308,7 @@
13081308
</trans-unit>
13091309
<trans-unit id="SidebarSettingsButton.AutomationProperties.Name" translate="yes" xml:space="preserve">
13101310
<source>Settings</source>
1311-
<target state="new">Settings</target>
1311+
<target state="needs-review-translation" state-qualifier="tm-suggestion">Configuración</target>
13121312
</trans-unit>
13131313
</group>
13141314
</body>

0 commit comments

Comments
 (0)