As i needed to add “Bulgarian” language as default lang on my libraries and to pull info from “themoviedb” in “Bulgarian” i looked at the files and found out how you can add your unsupported language in PMS on Windows.
Guide
-
Exit and stop PMS
-
Backup "Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65"
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\System.bundle\Contents” Edit “DefaultPrefs.json” and add “PO_RGN_XX” of your language where “XX” is your lang code. Make sure not to mess commas.
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\System.bundle\Contents\Strings” edit “en.json” and add " “PO_RGN_XX” : “XXXXXXX”," where XX is lang code and XXXXX is your country name in English.
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\TheMovieDB.bundle\Contents” Edit “DefaultPrefs.json” and add your country name in English in the list of countries you will see.
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\TheMovieDB.bundle\Contents\Code” Edit “init.py” and in Languages string add “Locale.Language.XXXXXXX” - XXXXX is your country name in English.
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\PlexMovie.bundle\Contents” Edit “DefaultPrefs.json” and add your country name in English in the list of countries you will see.
-
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\PlexMovie.bundle\Contents\Code” Edit “init.py” and in Languages string at the bottom add “Locale.Language.XXXXXXX” - XXXXX is your country name in English.
Do not touch the "IVA_LANGUAGES " countries list, scroll down. -
In “Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65\PlexMovie.bundle\Contents\Code” Edit "countrycode.py and in first column “COUNTRY_TO_CODE” add ““XXXXXX”: “XX”,” where XX is lang code and XXXXX is your country name in English.
-
Save the files (you may not have permission to save at that location so save elsewhere and copy/replace to the appropriate location). Make sure you don’t mess the syntax and commas.
-
Start PMS, if you did everything right, you now have your new language. Go to your library and change it to your language. To force all movies re-match with localized content you may need to remove the folder from your library and add it again (to delete old matches).
NOTE: Titles that are not translated from “themoviedb” will still be in English, you may go there and translate them yourself. Keep original backup of the files in case of update you may loose this.
Lets hope Plex team will add more languages officially.
