forked from electron/electron
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restore missing .lproj directories (electron#15721)
the empty lproj directories help macOS to understand what locales the app supports
- Loading branch information
Showing
7 changed files
with
51 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# usage: make_locale_dirs.py locale_dir [...] | ||
# | ||
# This script is intended to create empty locale directories (.lproj) in a | ||
# Cocoa .app bundle. The presence of these empty directories is sufficient to | ||
# convince Cocoa that the application supports the named localization, even if | ||
# an InfoPlist.strings file is not provided. Chrome uses these empty locale | ||
# directoires for its helper executable bundles, which do not otherwise | ||
# require any direct Cocoa locale support. | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def main(args): | ||
for dirname in args: | ||
os.makedirs(dirname) | ||
|
||
|
||
if __name__ == '__main__': | ||
main(sys.argv[1:]) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.