Skip to content

Commit 0adf42e

Browse files
author
Richard
authored
Translation update + Strings added (#888)
1 parent 5af016b commit 0adf42e

File tree

14 files changed

+384
-12
lines changed

14 files changed

+384
-12
lines changed

Files/Filesystem/ListedItem.cs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Files.Enums;
22
using System;
33
using System.ComponentModel;
4+
using System.IO;
45
using Windows.Storage;
56
using Windows.UI.Xaml.Media.Imaging;
67

@@ -130,22 +131,34 @@ public static string GetFriendlyDate(DateTimeOffset d)
130131
{
131132
return d.ToString(returnformat);
132133
}
134+
else if (elapsed.TotalDays > 2)
135+
{
136+
return string.Format(ResourceController.GetTranslation("DaysAgo"), elapsed.Days);
137+
}
133138
else if (elapsed.TotalDays > 1)
134139
{
135-
return $"{elapsed.Days} days ago";
140+
return string.Format(ResourceController.GetTranslation("DayAgo"), elapsed.Days);
141+
}
142+
else if (elapsed.TotalHours > 2)
143+
{
144+
return string.Format(ResourceController.GetTranslation("HoursAgo"), elapsed.Hours);
136145
}
137146
else if (elapsed.TotalHours > 1)
138147
{
139-
return $"{elapsed.Hours} hours ago";
148+
return string.Format(ResourceController.GetTranslation("HourAgo"), elapsed.Hours);
149+
}
150+
else if (elapsed.TotalMinutes > 2)
151+
{
152+
return string.Format(ResourceController.GetTranslation("MinutesAgo"), elapsed.Minutes);
140153
}
141154
else if (elapsed.TotalMinutes > 1)
142155
{
143-
return $"{elapsed.Minutes} minutes ago";
156+
return string.Format(ResourceController.GetTranslation("MinuteAgo"), elapsed.Minutes);
144157
}
145158
else
146159
{
147-
return $"{elapsed.Seconds} seconds ago";
148-
}
160+
return string.Format(ResourceController.GetTranslation("SecondsAgo"), elapsed.Seconds);
161+
}
149162
}
150163
}
151164
}

Files/MultilingualResources/Files.de-DE.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,34 @@
731731
<source>Enable Recycle Bin support</source>
732732
<target state="new">Enable Recycle Bin support</target>
733733
</trans-unit>
734+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
735+
<source>{0} days ago</source>
736+
<target state="new">{0} days ago</target>
737+
</trans-unit>
738+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
739+
<source>{0} hours ago</source>
740+
<target state="new">{0} hours ago</target>
741+
</trans-unit>
742+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
743+
<source>{0} day ago</source>
744+
<target state="new">{0} day ago</target>
745+
</trans-unit>
746+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
747+
<source>{0} hour ago</source>
748+
<target state="new">{0} hour ago</target>
749+
</trans-unit>
750+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
751+
<source>{0} minutes ago</source>
752+
<target state="new">{0} minutes ago</target>
753+
</trans-unit>
754+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
755+
<source>{0} minute ago</source>
756+
<target state="new">{0} minute ago</target>
757+
</trans-unit>
758+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
759+
<source>{0} seconds ago</source>
760+
<target state="new">{0} seconds ago</target>
761+
</trans-unit>
734762
</group>
735763
</body>
736764
</file>

Files/MultilingualResources/Files.es-ES.xlf

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</trans-unit>
1717
<trans-unit id="PropertiesItemPath.Text" translate="yes" xml:space="preserve">
1818
<source>Path:</source>
19-
<target state="translated">Destino:</target>
19+
<target state="translated">Ubicación:</target>
2020
</trans-unit>
2121
<trans-unit id="PropertiesItemSize.Text" translate="yes" xml:space="preserve">
2222
<source>Size:</source>
@@ -696,7 +696,7 @@
696696
</trans-unit>
697697
<trans-unit id="FileInUseDeleteDialog.Text" translate="yes" xml:space="preserve">
698698
<source>The file you're trying to delete is currently being used by an another application.</source>
699-
<target state="translated">El archivo no se puede eliminar porque otra aplicación tiene abierto el archivo</target>
699+
<target state="translated">El archivo no se puede eliminar porque otra aplicación tiene abierto el archivo.</target>
700700
</trans-unit>
701701
<trans-unit id="FileInUseDeleteDialog.Title" translate="yes" xml:space="preserve">
702702
<source>File is in use</source>
@@ -720,15 +720,43 @@
720720
</trans-unit>
721721
<trans-unit id="BaseLayoutContextFlyoutEmptyRecycleBin.Text" translate="yes" xml:space="preserve">
722722
<source>Empty recycle bin</source>
723-
<target state="new">Empty recycle bin</target>
723+
<target state="translated">Vaciar papelera de reciclaje</target>
724724
</trans-unit>
725725
<trans-unit id="BaseLayoutItemContextFlyoutRestore.Text" translate="yes" xml:space="preserve">
726726
<source>Restore</source>
727-
<target state="new">Restore</target>
727+
<target state="translated">Restaurar</target>
728728
</trans-unit>
729729
<trans-unit id="SettingsExperimentalRecycleBin.Text" translate="yes" xml:space="preserve">
730730
<source>Enable Recycle Bin support</source>
731-
<target state="new">Enable Recycle Bin support</target>
731+
<target state="translated">Mostrar la papelera de reciclaje en la barra lateral</target>
732+
</trans-unit>
733+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
734+
<source>{0} days ago</source>
735+
<target state="translated">Hace {0} días</target>
736+
</trans-unit>
737+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
738+
<source>{0} hours ago</source>
739+
<target state="translated">Hace {0} horas</target>
740+
</trans-unit>
741+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
742+
<source>{0} day ago</source>
743+
<target state="translated">Hace {0} día</target>
744+
</trans-unit>
745+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
746+
<source>{0} hour ago</source>
747+
<target state="translated">Hace {0} hora</target>
748+
</trans-unit>
749+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
750+
<source>{0} minutes ago</source>
751+
<target state="translated">Hace {0} minutos</target>
752+
</trans-unit>
753+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
754+
<source>{0} minute ago</source>
755+
<target state="translated">Hace {0} minuto</target>
756+
</trans-unit>
757+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
758+
<source>{0} seconds ago</source>
759+
<target state="translated">Hace {0} segundos</target>
732760
</trans-unit>
733761
</group>
734762
</body>

Files/MultilingualResources/Files.fr-FR.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,34 @@
732732
<source>Enable Recycle Bin support</source>
733733
<target state="new">Enable Recycle Bin support</target>
734734
</trans-unit>
735+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
736+
<source>{0} days ago</source>
737+
<target state="new">{0} days ago</target>
738+
</trans-unit>
739+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
740+
<source>{0} hours ago</source>
741+
<target state="new">{0} hours ago</target>
742+
</trans-unit>
743+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
744+
<source>{0} day ago</source>
745+
<target state="new">{0} day ago</target>
746+
</trans-unit>
747+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
748+
<source>{0} hour ago</source>
749+
<target state="new">{0} hour ago</target>
750+
</trans-unit>
751+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
752+
<source>{0} minutes ago</source>
753+
<target state="new">{0} minutes ago</target>
754+
</trans-unit>
755+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
756+
<source>{0} minute ago</source>
757+
<target state="new">{0} minute ago</target>
758+
</trans-unit>
759+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
760+
<source>{0} seconds ago</source>
761+
<target state="new">{0} seconds ago</target>
762+
</trans-unit>
735763
</group>
736764
</body>
737765
</file>

Files/MultilingualResources/Files.it-IT.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,34 @@
731731
<source>Enable Recycle Bin support</source>
732732
<target state="translated">Abilita il supporto al Cestino</target>
733733
</trans-unit>
734+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
735+
<source>{0} days ago</source>
736+
<target state="new">{0} days ago</target>
737+
</trans-unit>
738+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
739+
<source>{0} hours ago</source>
740+
<target state="new">{0} hours ago</target>
741+
</trans-unit>
742+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
743+
<source>{0} day ago</source>
744+
<target state="new">{0} day ago</target>
745+
</trans-unit>
746+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
747+
<source>{0} hour ago</source>
748+
<target state="new">{0} hour ago</target>
749+
</trans-unit>
750+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
751+
<source>{0} minutes ago</source>
752+
<target state="new">{0} minutes ago</target>
753+
</trans-unit>
754+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
755+
<source>{0} minute ago</source>
756+
<target state="new">{0} minute ago</target>
757+
</trans-unit>
758+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
759+
<source>{0} seconds ago</source>
760+
<target state="new">{0} seconds ago</target>
761+
</trans-unit>
734762
</group>
735763
</body>
736764
</file>

Files/MultilingualResources/Files.nl-NL.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,34 @@
732732
<source>Enable Recycle Bin support</source>
733733
<target state="new">Enable Recycle Bin support</target>
734734
</trans-unit>
735+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
736+
<source>{0} days ago</source>
737+
<target state="new">{0} days ago</target>
738+
</trans-unit>
739+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
740+
<source>{0} hours ago</source>
741+
<target state="new">{0} hours ago</target>
742+
</trans-unit>
743+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
744+
<source>{0} day ago</source>
745+
<target state="new">{0} day ago</target>
746+
</trans-unit>
747+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
748+
<source>{0} hour ago</source>
749+
<target state="new">{0} hour ago</target>
750+
</trans-unit>
751+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
752+
<source>{0} minutes ago</source>
753+
<target state="new">{0} minutes ago</target>
754+
</trans-unit>
755+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
756+
<source>{0} minute ago</source>
757+
<target state="new">{0} minute ago</target>
758+
</trans-unit>
759+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
760+
<source>{0} seconds ago</source>
761+
<target state="new">{0} seconds ago</target>
762+
</trans-unit>
735763
</group>
736764
</body>
737765
</file>

Files/MultilingualResources/Files.pl-PL.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,34 @@
732732
<source>Enable Recycle Bin support</source>
733733
<target state="new">Enable Recycle Bin support</target>
734734
</trans-unit>
735+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
736+
<source>{0} days ago</source>
737+
<target state="new">{0} days ago</target>
738+
</trans-unit>
739+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
740+
<source>{0} hours ago</source>
741+
<target state="new">{0} hours ago</target>
742+
</trans-unit>
743+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
744+
<source>{0} day ago</source>
745+
<target state="new">{0} day ago</target>
746+
</trans-unit>
747+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
748+
<source>{0} hour ago</source>
749+
<target state="new">{0} hour ago</target>
750+
</trans-unit>
751+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
752+
<source>{0} minutes ago</source>
753+
<target state="new">{0} minutes ago</target>
754+
</trans-unit>
755+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
756+
<source>{0} minute ago</source>
757+
<target state="new">{0} minute ago</target>
758+
</trans-unit>
759+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
760+
<source>{0} seconds ago</source>
761+
<target state="new">{0} seconds ago</target>
762+
</trans-unit>
735763
</group>
736764
</body>
737765
</file>

Files/MultilingualResources/Files.ru-RU.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,34 @@
730730
<source>Enable Recycle Bin support</source>
731731
<target state="new">Enable Recycle Bin support</target>
732732
</trans-unit>
733+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
734+
<source>{0} days ago</source>
735+
<target state="new">{0} days ago</target>
736+
</trans-unit>
737+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
738+
<source>{0} hours ago</source>
739+
<target state="new">{0} hours ago</target>
740+
</trans-unit>
741+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
742+
<source>{0} day ago</source>
743+
<target state="new">{0} day ago</target>
744+
</trans-unit>
745+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
746+
<source>{0} hour ago</source>
747+
<target state="new">{0} hour ago</target>
748+
</trans-unit>
749+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
750+
<source>{0} minutes ago</source>
751+
<target state="new">{0} minutes ago</target>
752+
</trans-unit>
753+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
754+
<source>{0} minute ago</source>
755+
<target state="new">{0} minute ago</target>
756+
</trans-unit>
757+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
758+
<source>{0} seconds ago</source>
759+
<target state="new">{0} seconds ago</target>
760+
</trans-unit>
733761
</group>
734762
</body>
735763
</file>

Files/MultilingualResources/Files.ta.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,34 @@
730730
<source>Enable Recycle Bin support</source>
731731
<target state="new">Enable Recycle Bin support</target>
732732
</trans-unit>
733+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
734+
<source>{0} days ago</source>
735+
<target state="new">{0} days ago</target>
736+
</trans-unit>
737+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
738+
<source>{0} hours ago</source>
739+
<target state="new">{0} hours ago</target>
740+
</trans-unit>
741+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
742+
<source>{0} day ago</source>
743+
<target state="new">{0} day ago</target>
744+
</trans-unit>
745+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
746+
<source>{0} hour ago</source>
747+
<target state="new">{0} hour ago</target>
748+
</trans-unit>
749+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
750+
<source>{0} minutes ago</source>
751+
<target state="new">{0} minutes ago</target>
752+
</trans-unit>
753+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
754+
<source>{0} minute ago</source>
755+
<target state="new">{0} minute ago</target>
756+
</trans-unit>
757+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
758+
<source>{0} seconds ago</source>
759+
<target state="new">{0} seconds ago</target>
760+
</trans-unit>
733761
</group>
734762
</body>
735763
</file>

Files/MultilingualResources/Files.tr-TR.xlf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,34 @@
732732
<source>Enable Recycle Bin support</source>
733733
<target state="new">Enable Recycle Bin support</target>
734734
</trans-unit>
735+
<trans-unit id="DaysAgo" translate="yes" xml:space="preserve">
736+
<source>{0} days ago</source>
737+
<target state="new">{0} days ago</target>
738+
</trans-unit>
739+
<trans-unit id="HoursAgo" translate="yes" xml:space="preserve">
740+
<source>{0} hours ago</source>
741+
<target state="new">{0} hours ago</target>
742+
</trans-unit>
743+
<trans-unit id="DayAgo" translate="yes" xml:space="preserve">
744+
<source>{0} day ago</source>
745+
<target state="new">{0} day ago</target>
746+
</trans-unit>
747+
<trans-unit id="HourAgo" translate="yes" xml:space="preserve">
748+
<source>{0} hour ago</source>
749+
<target state="new">{0} hour ago</target>
750+
</trans-unit>
751+
<trans-unit id="MinutesAgo" translate="yes" xml:space="preserve">
752+
<source>{0} minutes ago</source>
753+
<target state="new">{0} minutes ago</target>
754+
</trans-unit>
755+
<trans-unit id="MinuteAgo" translate="yes" xml:space="preserve">
756+
<source>{0} minute ago</source>
757+
<target state="new">{0} minute ago</target>
758+
</trans-unit>
759+
<trans-unit id="SecondsAgo" translate="yes" xml:space="preserve">
760+
<source>{0} seconds ago</source>
761+
<target state="new">{0} seconds ago</target>
762+
</trans-unit>
735763
</group>
736764
</body>
737765
</file>

0 commit comments

Comments
 (0)