Guide: How to add unsupported languages in library and agents.

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

  1. Exit and stop PMS

  2. Backup "Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bf240a65"

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

1 Like

Keep in mind that all those changes are reverted once Plex Server software is updated.

@OttoKerner said:
Keep in mind that all those changes are reverted once Plex Server software is updated.

Yes i know, but there is no other choice at the moment.

@navuho , I tried to use for Brazillian Portuguese, but no luck since there is only Portuguese in library language list. My Plex Server and The Movie Database Agent are already set to PT-BR, but it looks like those settings only affects Posters, since it’s being downloaded in PT-BR (maybe because I untick the option to download posters in library language…)

Some files already have Brazil:

  1. “PO_RGN_BR”,
  2. “PO_RGN_BR” : “Brazil”
  3. “Brazil”
  4. “Brazil”
  5. “Brazil”: “BR”,

I only had to add “Locale.Language.Brazil” (there was already “Locale.Language.Portuguese”) to 6. and 8.

for example, the movie 2:22 shows the poster in PT-BR (https://www.themoviedb.org/movie/269795-2-22?language=ptbr and https://www.themoviedb.org/movie/269795-2-22?language=pt-br), but the title and info comes from https://www.themoviedb.org/movie/269795-2-22?language=pt.

Do you have any suggestion?

Update: solved adding a “new” TheMovieDB replacing

"TMDB_MOVIE_SEARCH = ‘/search/movie?query=%s&year=%s&language=%s&include_adult=%s’
TMDB_MOVIE = ‘/movie/%s?append_to_response=releases,credits&language=%s’ "
to
“TMDB_MOVIE_SEARCH = ‘/search/movie?query=%s&year=%s&language=%s?pt-BR&include_adult=%s’
TMDB_MOVIE = '/movie/%s?append_to_response=releases,credits&language=%s?pt-BR” in “init.py”

and removing all others contries from “DefaultPrefs.json” .

Hi,

The last time plex updated i saw that the files and locations are changed, so you need to look for the new locations and all files.

Hi everybody, when I’m creating a new TV Shows folder on Plex server, I can’t select Catalan as a default language of TV Shows.

Please could anybody help me with making catalan as default language?

Many thanks

1 Like

Does anybody know how to add the language so it can be selected as a (Movie or TV Show) library language, or so it can be selected in Advanced Edit as a Metadata language.