-
Notifications
You must be signed in to change notification settings - Fork 35
Language
YDL-UI supports multiple languages, the current user-interface language can be changed in Settings > General
.
The ydl-ui_i18n repository contains all locale files for YDL-UI.
YDL-UI will search for locale files within a directory called locales
located in the same folder as the ydl-ui.json
config file. Any file with the filename pattern *.<language_code>.json
will be loaded from this directory.
The language code can be neutral (e.g. en
or zh
), specific (e.g. en-us
or zh-Hans
), or generic text.
The language selection dropdown (in the Settings
window) will display the language/country for each locale file. Generic text or codes unrecognized by your system will be displayed as plain text in the dropdown.
Locale files use a JSON key-value format, each key represents a specific user-interface component. Certain entries support the use of templates, these are words wrapped in braces and will be replaced before being displayed.
"preset_dialog.edit": "Edit Download Preset - {PresetName}"
The template {PresetName}
will be replaced with the name of the preset before being displayed in the user-interface.
Refer to the default locale file for available templates.
Some entry values contain an ampersand (&
) the character after this ampersand represents the access key for the control.
"menustrip.file": "&File"
Alt+F
will activate this menustrip button.
"menustrip.file.exit": "E&xit"
Alt+X
will activate this menustrip button (while the file menustrip is open).