forked from SonyWWS/ATF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EmbeddedResourceStringLocalizer: 1. Fixed a problem where translations would not be found if the Visual Studio folder name had both the language and culture specified, like "ja-JP". 2. No longer assumes that the source code strings are English. This allows for translating "programmer English" to "documentation writer English". Simple DOM Editor WPF Sample: added localization support by allowing the use of embedded resources. Added some Japanese translations. LocalizableStringExtractor tool: now processes source code directories of *.cs and *.xaml files, instead of assemblies. In *.xaml files, it looks for the 'Loc' extension.
- Loading branch information
Showing
47 changed files
with
11,461 additions
and
7,141 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This text file specifies the root directories to search code files for and | ||
# the resulting XML file to produce from those code files. | ||
# Each line has a pair of paths. The first is the path to a directory of code files. | ||
# The second path is the destination XML file. | ||
# The two paths must be separated by a single space. | ||
# Each path needs to be a relative path to the root ATF directory. | ||
# The root of the ATF directory is found by searching from LocalizableStringExtractor's starting | ||
# directory and going up the directory hierarchy until a directory name containing "atf" is | ||
# found. | ||
# Paths with spaces in them need double quotes around the path. | ||
Framework\Atf.Core Framework\Atf.Core\Resources\Localization.xml | ||
Framework\Atf.Gui Framework\Atf.Gui\Resources\Localization.xml | ||
Framework\Atf.Gui.OpenGL Framework\Atf.Gui.OpenGL\Resources\Localization.xml | ||
Framework\Atf.Gui.WinForms Framework\Atf.Gui.WinForms\Resources\Localization.xml | ||
Framework\Atf.Gui.Wpf Framework\Atf.Gui.Wpf\Resources\Localization.xml | ||
Framework\Atf.Perforce Framework\Atf.Perforce\Resources\Localization.xml | ||
"Samples\CircuitEditor" Samples\CircuitEditor\Resources\Localization.xml | ||
"Samples\CodeEditor" "Samples\CodeEditor\Resources\Localization.xml" | ||
"Samples\TimelineEditor" "Samples\TimelineEditor\Resources\Localization.xml" | ||
"Samples\SimpleDomEditorWpf" "Samples\SimpleDomEditorWpf\Resources\Localization.xml" |
661 changes: 486 additions & 175 deletions
661
DevTools/Localization/LocalizableStringExtractor/Extractor.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
</configuration> |
Oops, something went wrong.