Skip to content

Commit

Permalink
Update displays.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Mar 3, 2023
1 parent 8793411 commit 56f5212
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/displays.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,13 @@ def main():
elif os.path.isfile('/System/Library/SystemProfiler/SPDisplaysReporter.spreporter/Contents/Resources/English.lproj/Localizable.strings'):
localization = FoundationPlist.readPlist('/System/Library/SystemProfiler/SPDisplaysReporter.spreporter/Contents/Resources/English.lproj/Localizable.strings')
elif os.path.isfile('/System/Library/SystemProfiler/SPDisplaysReporter.spreporter/Contents/Resources/Localizable.loctable'):
localization = FoundationPlist.readPlist('/System/Library/SystemProfiler/SPDisplaysReporter.spreporter/Contents/Resources/Localizable.loctable')["en"]
localization_dict = FoundationPlist.readPlist('/System/Library/SystemProfiler/SPDisplaysReporter.spreporter/Contents/Resources/Localizable.loctable')
if "en" in localization_dict:
localization = localization_dict["en"]
elif "English" in localization_dict:
localization = localization_dict["English"]
else:
localization = {}
else:
localization = {}

Expand Down

0 comments on commit 56f5212

Please sign in to comment.