Skip to content

Commit

Permalink
add select folder string localization
Browse files Browse the repository at this point in the history
  • Loading branch information
United600 committed Jun 1, 2024
1 parent e12954e commit b473c85
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CharacterMap/CharacterMap/Controls/OpenFolderDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<TextBlock Margin="0 -8 0 0" HorizontalAlignment="Center">
<Run Text="{core:Localizer Key=DigOpenFolderContent/PrefixLabel}" d:Text="Found" />
<Run Text="{x:Bind TemplateSettings.Count, Mode=OneWay}" />
<Run Text="{x:Bind TemplateSettings.Count, Mode=OneWay}" d:Text="11" />
<Run Text="{core:Localizer Key=DigOpenFolderContent/SuffixLabel}" d:Text="font files" />
</TextBlock>
</StackPanel>
Expand Down
4 changes: 2 additions & 2 deletions CharacterMap/CharacterMap/Controls/OpenFolderDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CharacterMap.Controls;
public class OpenFolderDialogTemplateSettings : ViewModelBase
{
public bool CanContinue => HasFolder is true && IsLoading is false;
public string Contents { get => Get<string>(() => "Select Folder"); set => Set(value); }
public string Contents { get => Get<string>(() => Localization.Get("DigOpenFolderContent/SelectFolderButtonContent")); set => Set(value); }
public bool HasFolder { get => GetV(false); set => Set(value); }
public bool IsLoading { get => GetV(false); set => Set(value); }
public bool AllowZip { get => GetV(false); set => Set(value); }
Expand All @@ -28,7 +28,7 @@ public void SetFolder(StorageFolder folder)
else
{
HasFolder = false;
Contents = "Select Folder";
Contents = Localization.Get("DigOpenFolderContent/SelectFolderButtonContent");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2225,6 +2225,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Ordner auswählen</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="new">Select Folder</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Sélectionner un dossier</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Selezione cartella</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Wybierz folder</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,10 @@ Caso contrário, "Todos os tipos de letra" é selecionado por predefinição em
<source>To modify smart collections use the edit button above.</source>
<target state="translated">Para modificar as coleções inteligentes, utilize o botão de editar acima.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Selecionar pasta</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">Выбор папки</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">கோப்புறையைத் தேர்ந்தெடு</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">เลือกโฟลเดอร์r</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</source>
<source>To modify smart collections use the edit button above.</source>
<target state="translated">要修改智能收藏集,请点击上方的编辑按钮。</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">选择文件夹</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,10 @@ Otherwise, "All Fonts" is selected by default on every launch.</target>
<source>To modify smart collections use the edit button above.</source>
<target state="new">To modify smart collections use the edit button above.</target>
</trans-unit>
<trans-unit id="DigOpenFolderContent.SelectFolderButtonContent" translate="yes" xml:space="preserve">
<source>Select Folder</source>
<target state="translated">選取資料夾</target>
</trans-unit>
</group>
</body>
</file>
Expand Down
3 changes: 3 additions & 0 deletions CharacterMap/CharacterMap/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1767,4 +1767,7 @@ Otherwise, "All Fonts" is selected by default on every launch.</value>
<data name="SmartCollectionEditHint.Text" xml:space="preserve">
<value>To modify smart collections use the edit button above.</value>
</data>
<data name="DigOpenFolderContent.SelectFolderButtonContent" xml:space="preserve">
<value>Select Folder</value>
</data>
</root>
3 changes: 3 additions & 0 deletions CharacterMap/CharacterMap/Strings/pt-PT/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1602,4 +1602,7 @@ Caso contrário, "Todos os tipos de letra" é selecionado por predefinição em
<data name="SmartCollectionEditHint.Text" xml:space="preserve">
<value>Para modificar as coleções inteligentes, utilize o botão de editar acima.</value>
</data>
<data name="DigOpenFolderContent.SelectFolderButtonContent" xml:space="preserve">
<value>Selecionar pasta</value>
</data>
</root>

0 comments on commit b473c85

Please sign in to comment.