Skip to content

Commit

Permalink
add localization
Browse files Browse the repository at this point in the history
  • Loading branch information
duchuule committed Sep 8, 2015
1 parent eb747e6 commit acf277e
Show file tree
Hide file tree
Showing 11 changed files with 482 additions and 16 deletions.
33 changes: 22 additions & 11 deletions CheatPane.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@
Height="48"
Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}">
<TextBlock x:Name="title"
Style="{StaticResource PageTitleTextBlockStyle}" Text="CHEATS"/>
Style="{StaticResource PageTitleTextBlockStyle}"
Text="CHEATS"
x:Uid="CHEATS"/>
</Grid>
<TextBlock x:Name="txtNoROM" Visibility="Collapsed"
Grid.Row="1"
Margin="12,8,12,4"
Text="Please start a rom first." />
Text="Please start a rom first."
x:Uid="StartARom"/>

<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto"
Expand All @@ -77,9 +80,10 @@
>


<TextBlock Grid.Row="0" Text="Add"
<TextBlock Grid.Row="0" Text="**Add"
Style="{ThemeResource TitleTextBlockStyle}"
Margin="0,8,0,4"
x:Uid="Add"
/>
<TextBlock Grid.Row="0" Text="invisible text to stretch the panel invisible text to stretch the panel invisible text to stretch the panel"
Height="0"
Expand All @@ -89,7 +93,8 @@
Margin="0,4,0,4"
x:Name="descLabel"
HorizontalAlignment="Left"
Text="This emulator supports Gameshark, CodeBreaker and GameGenie codes." />
Text="**This emulator supports Gameshark, CodeBreaker and GameGenie codes."
x:Uid="CheatInstruction"/>

<Grid>
<Grid.RowDefinitions>
Expand All @@ -103,15 +108,17 @@
</Grid.ColumnDefinitions>

<TextBlock Grid.Row="0" Grid.Column="0"
Text="Description:"
Text="**Description:"
VerticalAlignment="Center"
x:Uid="Description"
/>
<TextBox Grid.Row="0" Grid.Column="1"
Name="descBox" Margin="0,4,0,4"
/>
<TextBlock Grid.Row="1" Grid.Column="0"
Text="Code:" VerticalAlignment="Top"
Margin="0,4,0,0"/>
Text="**Code:" VerticalAlignment="Top"
Margin="0,4,0,0"
x:Uid="Code"/>

<TextBox
Name="codeBox" AcceptsReturn="True"
Expand All @@ -120,10 +127,11 @@
/>


<Button Grid.Row="3" Content="Add"
<Button Grid.Row="3" Content="**Add"
HorizontalAlignment="Stretch"
Margin="0,4,0,4" Name="addButton"
Click="addButton_Click" />
Click="addButton_Click"
x:Uid="AddBtn"/>
</Grid>


Expand All @@ -139,12 +147,15 @@
<CollectionViewSource x:Name="cvsAllCheats"/>
</StackPanel.Resources>

<TextBlock Text="List"
<TextBlock Text="**List"
Style="{ThemeResource TitleTextBlockStyle}"
Margin="0,8,0,4"
x:Uid="List"
/>

<TextBlock x:Name="txtNoCheat" Text="No cheat code has been entered."
<TextBlock x:Name="txtNoCheat"
Text="No cheat code has been entered."
x:Uid="NoCheat"
Visibility="Collapsed"
Margin="0,4,0,4" />

Expand Down
60 changes: 60 additions & 0 deletions MultilingualResources/VBA10.qps-ploc.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en-US" target-language="qps-ploc" original="VBA10_Multilingual.prilog.xml" tool-id="MultilingualAppToolkit" product-name="VBA10" product-version="1.0.0.0" build-num="0">
<header>
<tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="3.1.1250.0" tool-company="Microsoft" />
</header>
<body>
<group id="Resources">
<trans-unit id="Resources\StartARom\Text" translate="yes" xml:space="preserve">
<source>Please start a rom first.</source>
<target state="new">Please start a rom first.</target>
</trans-unit>
<trans-unit id="Resources\SelectState\Label" translate="yes" xml:space="preserve">
<source>Select State</source>
<target state="new">Select State</target>
</trans-unit>
<trans-unit id="Resources\Save\Label" translate="yes" xml:space="preserve">
<source>Save</source>
<target state="new">Save</target>
</trans-unit>
<trans-unit id="Resources\Reset\Label" translate="yes" xml:space="preserve">
<source>Reset</source>
<target state="new">Reset</target>
</trans-unit>
<trans-unit id="Resources\NoCheat\Text" translate="yes" xml:space="preserve">
<source>No cheat code has been entered.</source>
<target state="new">No cheat code has been entered.</target>
</trans-unit>
<trans-unit id="Resources\Load\Label" translate="yes" xml:space="preserve">
<source>Load</source>
<target state="new">Load</target>
</trans-unit>
<trans-unit id="Resources\Description\Text" translate="yes" xml:space="preserve">
<source>Description:</source>
<target state="new">Description:</target>
</trans-unit>
<trans-unit id="Resources\Code\Text" translate="yes" xml:space="preserve">
<source>Code:</source>
<target state="new">Code:</target>
</trans-unit>
<trans-unit id="Resources\CHEATS\Text" translate="yes" xml:space="preserve">
<source>CHEATS</source>
<target state="new">CHEATS</target>
</trans-unit>
<trans-unit id="Resources\CheatInstruction\Text" translate="yes" xml:space="preserve">
<source>This emulator supports Gameshark, CodeBreaker and GameGenie codes.</source>
<target state="new">This emulator supports Gameshark, CodeBreaker and GameGenie codes.</target>
</trans-unit>
<trans-unit id="Resources\AddROM\Content" translate="yes" xml:space="preserve">
<source>Add ROM</source>
<target state="new">Add ROM</target>
</trans-unit>
<trans-unit id="Resources\Add\Content" translate="yes" xml:space="preserve">
<source>Add</source>
<target state="new">Add</target>
</trans-unit>
</group>
</body>
</file>
</xliff>
60 changes: 60 additions & 0 deletions MultilingualResources/VBA10.vi-VN.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en-US" target-language="vi-VN" original="VBA10_Multilingual.prilog.xml" tool-id="MultilingualAppToolkit" product-name="VBA10" product-version="1.0.0.0" build-num="0">
<header>
<tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="3.1.1250.0" tool-company="Microsoft" />
</header>
<body>
<group id="Resources">
<trans-unit id="Resources\StartARom\Text" translate="yes" xml:space="preserve">
<source>Please start a rom first.</source>
<target state="new">Please start a rom first.</target>
</trans-unit>
<trans-unit id="Resources\SelectState\Label" translate="yes" xml:space="preserve">
<source>Select State</source>
<target state="new">Select State</target>
</trans-unit>
<trans-unit id="Resources\Save\Label" translate="yes" xml:space="preserve">
<source>Save</source>
<target state="new">Save</target>
</trans-unit>
<trans-unit id="Resources\Reset\Label" translate="yes" xml:space="preserve">
<source>Reset</source>
<target state="new">Reset</target>
</trans-unit>
<trans-unit id="Resources\NoCheat\Text" translate="yes" xml:space="preserve">
<source>No cheat code has been entered.</source>
<target state="new">No cheat code has been entered.</target>
</trans-unit>
<trans-unit id="Resources\Load\Label" translate="yes" xml:space="preserve">
<source>Load</source>
<target state="new">Load</target>
</trans-unit>
<trans-unit id="Resources\Description\Text" translate="yes" xml:space="preserve">
<source>Description:</source>
<target state="new">Description:</target>
</trans-unit>
<trans-unit id="Resources\Code\Text" translate="yes" xml:space="preserve">
<source>Code:</source>
<target state="new">Code:</target>
</trans-unit>
<trans-unit id="Resources\CHEATS\Text" translate="yes" xml:space="preserve">
<source>CHEATS</source>
<target state="new">CHEATS</target>
</trans-unit>
<trans-unit id="Resources\CheatInstruction\Text" translate="yes" xml:space="preserve">
<source>This emulator supports Gameshark, CodeBreaker and GameGenie codes.</source>
<target state="new">This emulator supports Gameshark, CodeBreaker and GameGenie codes.</target>
</trans-unit>
<trans-unit id="Resources\AddROM\Content" translate="yes" xml:space="preserve">
<source>Add ROM</source>
<target state="new">Add ROM</target>
</trans-unit>
<trans-unit id="Resources\Add\Content" translate="yes" xml:space="preserve">
<source>Add</source>
<target state="new">Add</target>
</trans-unit>
</group>
</body>
</file>
</xliff>
16 changes: 11 additions & 5 deletions SelectROMPane.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@

<!--<AppBarSeparator/>-->
<AppBarButton Icon="Save" Label="Save" x:Name="saveBtn"
Click="saveBtn_Click" IsTabStop="False"/>
Click="saveBtn_Click" IsTabStop="False"
x:Uid="Save"/>
<AppBarButton Icon="AllApps" Label="Select State" x:Name="selectStateBtn"
Click="selectStateBtn_Click" IsTabStop="False"/>
Click="selectStateBtn_Click" IsTabStop="False"
x:Uid="SelectState"/>
<AppBarButton Icon="Sync" Label="Reset" x:Name="resetBtn"
Click="resetBtn_Click" IsTabStop="False"/>
Click="resetBtn_Click" IsTabStop="False"
x:Uid="Reset"/>
<AppBarButton Icon="Undo" Label="Load" x:Name="loadBtn"
Click="loadBtn_Click" IsTabStop="False"/>
Click="loadBtn_Click" IsTabStop="False"
x:Uid="Load"/>
<AppBarButton x:Name="spacerBtn" IsEnabled="False" Width="1000"/>
<!--<CommandBar.SecondaryCommands>
<AppBarButton Label="Menu Item 1"/>
Expand Down Expand Up @@ -227,7 +231,9 @@
</ListBox.ItemTemplate>
</ListBox>

<Button x:Name="addROMbtn" HorizontalAlignment="Center"
<Button x:Name="addROMbtn"
HorizontalAlignment="Center"
x:Uid="AddROM"
Content="Add ROM"
Width="120" Height="40"
Margin="0,12,0,12"
Expand Down
Loading

0 comments on commit acf277e

Please sign in to comment.