-
-
Notifications
You must be signed in to change notification settings - Fork 504
How to: Translations
Check if language is already being worked on via this list
-
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
-
Open new issue and attach new localization file there. Issue will be notified when new strings are added into Playnite for translation.
-
Subscribe to localization updates issue, to be notified when English strings are being added/updated to update your translation.
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 time 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