File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -781,6 +781,23 @@ def Driver(
781
781
swiftshader = False
782
782
if locale is not None and locale_code is None :
783
783
locale_code = locale
784
+ if locale_code is None :
785
+ if '--locale="' in arg_join :
786
+ locale_code = (
787
+ arg_join .split ('--locale="' )[1 ].split ('"' )[0 ]
788
+ )
789
+ elif '--locale=' in arg_join :
790
+ locale_code = (
791
+ arg_join .split ('--locale=' )[1 ].split (' ' )[0 ]
792
+ )
793
+ elif '--locale-code="' in arg_join :
794
+ locale_code = (
795
+ arg_join .split ('--locale-code="' )[1 ].split ('"' )[0 ]
796
+ )
797
+ elif '--locale-code=' in arg_join :
798
+ locale_code = (
799
+ arg_join .split ('--locale-code=' )[1 ].split (' ' )[0 ]
800
+ )
784
801
if ad_block is not None and ad_block_on is None :
785
802
ad_block_on = ad_block
786
803
if ad_block_on is None :
Original file line number Diff line number Diff line change @@ -942,6 +942,23 @@ def SB(
942
942
swiftshader = False
943
943
if locale is not None and locale_code is None :
944
944
locale_code = locale
945
+ if locale_code is None :
946
+ if '--locale="' in arg_join :
947
+ locale_code = (
948
+ arg_join .split ('--locale="' )[1 ].split ('"' )[0 ]
949
+ )
950
+ elif '--locale=' in arg_join :
951
+ locale_code = (
952
+ arg_join .split ('--locale=' )[1 ].split (' ' )[0 ]
953
+ )
954
+ elif '--locale-code="' in arg_join :
955
+ locale_code = (
956
+ arg_join .split ('--locale-code="' )[1 ].split ('"' )[0 ]
957
+ )
958
+ elif '--locale-code=' in arg_join :
959
+ locale_code = (
960
+ arg_join .split ('--locale-code=' )[1 ].split (' ' )[0 ]
961
+ )
945
962
if ad_block is not None and ad_block_on is None :
946
963
ad_block_on = ad_block
947
964
if ad_block_on is None :
You can’t perform that action at this time.
0 commit comments