-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the multi-language support, this includes: (#157)
* Added *.suo VS files to .gitignore. * Improved the multi-language support, this includes: - Added the possibility to specify which language is used. The specified language is saved in the configuration. - If a new/empty or older configuration is present without a specified language, the language is automatically determinated based on the system language. If the system language is supported by SoundSwitch this language is used. If not, English is used. - The language is loaded once at startup. If it's changed later inside the settings form a restart of the application is required. - Added German as third supported language. Code relevant changes: - New directory for all localization files /Localization. - Moved all control localizations from the *.Designer.cs files to it's own methods outside of the *.Designer.cs files. - Naming for all localizations is lowerCamelCase. - While updating the localizations i also changed some English texts. As a result these strings are untranslated now in French. - Tweaked some labels to support a different length - that's important if a string is in another language longer then in English. Important: - If ANY text inside the forms (designer) is changer or the other way around any English texts inside the *.resx files - they needed to be synchronized! Other by-the-way changes: - Minor code-style changes in various files which doesn't affect the functionality. - Synchronized all file headers and updated copyright notices. ToDo: - Update Readme.md and include Zeta Resource Editor project file for further translations as well as a new - for example - wiki article how language changes should be done. - Translate missing french strings. * Updated README.md. - Added Customized Sound Notification note. - Added Multi-Language Support section. - Added a preview image. - Minor changes. Included Zeta Resource Editor project file for further translations. Included ReSharper project settings - if someone else uses it. ToDo: - Create wiki article how language changes should be done. - Translate missing french strings. * The user will now be notified after changing the language that this requires a restart. - Added the possibility to restart the application right after changing the language. - Added a small script which removes various informations (like absolute file paths) from the Zeta Resource Editor project file. Run the script after opening/closing the *.zreproj project file.
- Loading branch information
1 parent
44b6184
commit 0bc54a4
Showing
117 changed files
with
5,871 additions
and
4,701 deletions.
There are no files selected for viewing
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,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></s:String></wpf:ResourceDictionary> |
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,37 @@ | ||
@echo off | ||
REM * | ||
REM * Removes various informations (like absolute file paths) from the Zeta Resource Editor project file. | ||
REM * Run this script if you opened the *.zreproj project file at least once. | ||
REM * | ||
set filename="SoundSwitch.zreproj" | ||
|
||
setlocal | ||
setlocal enableDelayedExpansion | ||
if not exist %filename% call :error "file" | ||
findstr /v "<userSetting </userSetting>" %filename% >%filename%.nouserdata || call :error %errorlevel%, "user" | ||
type "%filename%.nouserdata"|repl "absoluteFilePath=\q.*\q (/>)" "$1" x >%filename%.clean | ||
if not %errorlevel%==0 call :error %errorlevel%, "abspath" | ||
move /y %filename%.clean %filename% || call :error | ||
del %filename%.nouserdata || call :error | ||
|
||
echo %filename% successfully cleaned. | ||
goto :end | ||
|
||
:error | ||
if "%~1"=="file" ( | ||
echo %filename% doesn't exist. | ||
) else if "%~1"=="1" ( | ||
if "%~2"=="user" ( | ||
echo userSettings not found, skipped. | ||
) else if "%~2"=="abspath" ( | ||
echo absoluteFilePath attribute not found, skipped. | ||
) | ||
) else ( | ||
echo Unknown error occured. | ||
goto :end | ||
) | ||
exit /b 0 | ||
|
||
:end | ||
pause | ||
exit |
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
14 changes: 14 additions & 0 deletions
14
SoundSwitch/Framework/Audio/CachedSoundFileNotExistsException.cs
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
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
Oops, something went wrong.