-
-
Notifications
You must be signed in to change notification settings - Fork 504
How to: Translations
Josef Nemec edited this page Dec 16, 2017
·
9 revisions
-
Copy and rename English localization file
english.xaml
fromLocalization
folder -
Edit new file and change following strings:
-
LocalizationLanguage
- should be the same as name of new file without extension -
LocalizationString
- display string of new language (will be visible in settings window when changing language)
-
-
Translate all strings in new file
- Keep formating of strings marked with
xml:space="preserve"
, especially new lines and white spaces. Otherwise text may not display properly in application.
- Keep formating of strings marked with
-
Start Playnite and test that new localization file works properly
-
Submit pull request with new localization file
- Alternatively open new issue and attach new localization file there, if you don't have working Git setup
To update localization file with new strings (after new Playnite update adds new strings into english.xaml), do following:
-
Download UpdateLocFiles.ps1 script
-
If this is first you are running PowerShell script, start PowerShell as administrator and type following:
Set-ExecutionPolicy Unrestricted
-
Execute script with following parameters:
-
SourceDictionary
- full path toenglish.xaml
file -
TargetDictionary
- full path to localization file that should be updated with new strings
-
Example:
.\UpdateLocFiles.ps1 -SourceDictionary "c:\Playnite\Localization\english.xaml" -TargetDictionary "c:\Playnite\Localization\czech.xaml"
- Localization file should be now updated with all missing strings from original English version