Skip to content

Commit 32234b7

Browse files
committed
Fix screenshot creator script using wrong languages
1 parent 3ba6959 commit 32234b7

File tree

9 files changed

+4
-0
lines changed

9 files changed

+4
-0
lines changed
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
-5.6 KB
Loading
0 Bytes
Loading
-5.62 KB
Loading
-5.61 KB
Loading
-5.6 KB
Loading

screenshots/02_frameScreenshots.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ def generate_screenshots(language, font):
8585
simple_phone(texts["03.png"], 'background2.png', raw_screenshots_path + '/02.png', output_path + '/phone-screenshots/03.png', font)
8686
simple_phone(texts["04.png"], 'background1.png', raw_screenshots_path + '/04.png', output_path + '/phone-screenshots/04.png', font)
8787
simple_phone(texts["05.png"], 'background2.png', raw_screenshots_path + '/05.png', output_path + '/phone-screenshots/05.png', font)
88+
89+
if not Path(raw_screenshots_path + '/tablet.png').is_file():
90+
raw_screenshots_path = 'raw/en-US'
91+
8892
simple_tablet(texts["tablet.png"], raw_screenshots_path + '/tablet.png', output_path + '/large-tablet-screenshots/tablet.png', font)
8993
os.system('mogrify -resize 1120 "' + output_path + '/phone-screenshots/0*.png"')
9094
os.system('mogrify -resize 1120 "' + output_path + '/large-tablet-screenshots/tablet.png"')

0 commit comments

Comments
 (0)