-
Notifications
You must be signed in to change notification settings - Fork 4
/
SIC_1.2.sh
executable file
·3599 lines (3417 loc) · 231 KB
/
SIC_1.2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/sh
# SIC.sh
#
#
# Created by Duncan McCracken on 05/06/11.
# Email Bug Reports to [email protected]
#
# Thanks to: Tomos Tyler; Charles Edge and Alan Gordon for their feedback and
# ideas when this was a personal project.
#
# Copyright 2011 Mondada Pty Ltd. All rights reserved.
#
# Changes in 1.2rc10
# Added code to enable the language chooser in vanilla images created by install.
# Added a rudimentary progress indicator to the install package function.
# Added an additional line to the image cleanup to remove the Spotlight folder.
# Changed the default image size to match a 64 GB SSD, to ensure the images will
# restore to smaller drives.
#
# Changes in 1.2rc9
# Updated the source selection function to differentiate between installers
# and devices in the create image section - thanks Mika Viikki.
#
# Changes in 1.2rc8
# Lion install.
# Fixed an issue with the FirstBootPath, not being prefixed with the target
# volume - thanks Mika Viikki.
# Updated the code for calculating the device name when imaging a device, if
# there are more than the standard partitions created by the installation
# process - thanks Mika Viikki.
# Updated the code that validates the packages against the currently mounted
# image to avoid it skipping packages in some situations - thanks Mika Viikki.
#
# Changes in 1.2rc7
# Updated the naming of exported masters, to retain original build and append
# the update build to the filename.
# Updated behaviour when exiting 'level 2' menus to not retain the selections,
# this seems to yield a faster workflow and avoids snow/lion variances.
# Updated Remote Management function to issue kickstart command on first boot
# - thanks Mark Hatch.
# Updated create image function to eliminate a 'resource busy' error when
# running SIC under Lion.
# Added support for the additional languages in Lion.
# Updated the references to the GeoKit.framework to use the target image
# rather than the current running system.
# Updated attach image function to use a different mechanism to calculate the
# volume name, which eliminates an error in Lion, and allows for clean-up of
# the recovery partition - thanks Mika Viikki.
#
# Changes in 1.2rc6
# Credit given where credit was due. :)
# Fixed a bug that caused a few errors on first run, while setting default
# preferences.
# Adjusted the code for setting password on Lion systems (supressed a false
# error, which is generated by code that was intended to handle snow leopard
# behaviour) - thanks Mark Hatch.
# Tuned some of the behaviours relating to image and package selection to
# prevent constant mounting / unmounting of images, and retained selection of
# the last installed package.
# Added a Press any key to the completion of the package install to allow the
# viewing of results.
# Added a check to prevent system configuration of a server image, this does
# not end well.
#
# Changes in 1.2rc5
# Added code to create the Packages directory, if it doesn't exist.
#
# Changes in 1.2rc4
# Updated create image function to create the library folder prior to imaging a
# device - Thanks Erik Berglund.
# Change the default response for custom package install to "No".
# Added code to check the build number prior to export and update name
# accordingly.
#
# Changes in 1.2rc3
# Added Install Package Feature.
# Updated Create Image menu to auto detect install or device.
# Updated menu functions to hide disabled items.
# Updated validation of image size function to allow floating point numbers.
# Updated create image from device to handle resource busy error - Thanks
# Erik Berglund.
#
# To Do, this version
# Add support for additional languages in Lion.
#
# Proposed features for version 1.5
# Add Software Update settings option.
# Add support for "install package at system startup".
# Record package install history.
# Update auto-login function for user creation, when multiple accounts exist.
# Add support for multiple configuration (shadow) files.
# Add support for Directory binding.
# Add support for a directory-based administrative group.
# Add unattended option.
# Add help section.
# The following default variables are used if the system fails to get a property
# These can all be set in preferences, there is no need to edit the script
# Image Library Path
LibraryPath="/Users/Shared/SIC/Library"
# Export Path
ExportPath="/Users/Shared/SIC/Masters"
# Package Path
PackagePath="/Users/Shared/SIC/Packages"
# Image Size (GB)
ImageSize="56.5"
minImageSize="5"
maxImageSize="2048"
# Volume Name
VolumeName="Macintosh HD"
# Main Language
AppleLanguage="en"
# Country Name
CountryName="U.S."
# Keyboard Layout
AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US"
InputMode=""
# Set date and time automatically
ntpdDisabled="true"
# Time Zone
TimezoneAuto="false"
# Remote Login
sshdDisabled="true"
# Remote Management
RemoteManagement="false"
# Computer Name
ComputerName="Model and MAC Address"
# Full Name
RealName="Local Administrator"
# Account name
RecordName="localadmin"
# User ID
UniqueID=501
# Group ID
PrimaryGroupID=20
# Password
Password=""
# Automatic Login
AutoLogin="false"
# Password Hint
AuthenticationHint=""
# Login shell
UserShell="/bin/bash"
# Home Directory
NFSHomeDirectory="/var/localadmin"
# FirstBoot Script Path
FirstBootPath="/usr/libexec/FirstBoot"
# ${0}: Path to this script
scriptName=`basename "${0}"`
# Version
SICVersion="1.2rc12"
function display_Title {
# ${1}: Title
clear
# printf "\033c"
printf "\033[1mSystem Image Creator (SIC) ${SICVersion}\033[m\n"
printf "\n\033[1m${1}\033[m\n\n"
}
function display_Options {
# ${1}: Text above selection list
# ${2}: Text for prompt
printf "${1}\n\n"
PS3=`printf "\n${2}"`
}
function press_anyKey {
# ${1}: Message to display above prompt
if [ -n "${1}" ] ; then echo "${1}" ; echo ; fi
read -sn 1 -p "Press any key to continue..." anyKey < /dev/tty
echo
}
function set_osName {
# ${1}: System Minor Version
case ${1} in
7 ) osName="lion" ;;
6 ) osName="snowleopard" ;;
5 ) osName="leopard" ;;
* ) osName="" ;;
esac
}
function privelege_Check {
if [ `id -u` -ne 0 ] ; then
echo "${scriptName} must be run with root privileges, exiting."
exit 1
fi
}
function get_LibraryPath {
prefLibraryPath=`defaults read ~/Library/Preferences/au.com.mondada.SIC "LibraryPath" 2>/dev/null`
if [ -n "${prefLibraryPath}" ] ; then
if [ -e "${prefLibraryPath}" ] ; then
LibraryPath="${prefLibraryPath}"
else
printf "Warning: Library Path missing, reverting to default\n"
fi
fi
echo "LibraryPath: ${LibraryPath}"
}
function get_ExportPath {
prefExportPath=`defaults read ~/Library/Preferences/au.com.mondada.SIC "ExportPath" 2>/dev/null`
if [ -n "${prefExportPath}" ] ; then
if [ -e "${prefExportPath}" ] ; then
ExportPath="${prefExportPath}"
else
printf "Warning: Export Path missing, reverting to default\n"
fi
fi
echo "ExportPath: ${ExportPath}"
}
function get_PackagePath {
prefPackagePath=`defaults read ~/Library/Preferences/au.com.mondada.SIC "PackagePath" 2>/dev/null`
if [ -n "${prefPackagePath}" ] ; then
if [ -e "${prefPackagePath}" ] ; then
PackagePath="${prefPackagePath}"
else
printf "Warning: Export Path missing, reverting to default\n"
fi
fi
echo "PackagePath: ${PackagePath}"
}
function save_LibraryPath {
defaults write ~/Library/Preferences/au.com.mondada.SIC "LibraryPath" -string "${LibraryPath}"
}
function save_ExportPath {
defaults write ~/Library/Preferences/au.com.mondada.SIC "ExportPath" -string "${ExportPath}"
}
function save_PackagePath {
defaults write ~/Library/Preferences/au.com.mondada.SIC "PackagePath" -string "${PackagePath}"
}
function display_LibraryPath {
echo "Library Path: ${LibraryPath}"
}
function display_ExportPath {
echo "Export Path: ${ExportPath}"
}
function display_PackagePath {
echo "Package Path: ${PackagePath}"
}
function check_Path {
# ${1}: Path to validate
validPath=0
# Check for invalid characters
escapedPath="${1//[\$\(\)\[\]\`\~\?\*\#\\\!\|\'\"]/_}"
if [ "${1}" != "${escapedPath}" ] ; then
printf "\nThe specified path cannot contain the following characters: \033[1m\$()[]\`~?*#\!|'\"\033[m\n" ; validPath=1 ; return 1
fi
# Check that it's absolute
relativePath=`echo "${1}" | awk -F "/" '{print $1}'`
if [ -n "${relativePath}" ] ; then
printf "\nThe specified path must be absolute, please enter an absolute path\n" ; validPath=1 ; return 1
fi
# Check the volume exists
if echo "${1}" | grep -q "/Volumes/" ; then
volumeName=`echo "${1}" | awk -F "/Volumes/" '{print $NF}' | awk -F "/" '{print $1}'`
if [ ! -d "/Volumes/${volumeName}" ] ; then
printf "\nThe specified volume cannot be found, please enter a valid path\n" ; validPath=1 ; return 1
fi
fi
# Check that the path is unique
if [ "${1}" == "${LibraryPath}" ] || [ "${1}" == "${ExportPath}" ] ; then
printf "\nThe library and export paths cannot be the same, please enter a unique path\n" ; validPath=1 ; return 1
fi
return 0
}
function set_LibraryPath {
display_Title "Library Path"
printf "Library Path (${LibraryPath}): " ; read newLibraryPath
if [ -z "${newLibraryPath}" ] || [ "${newLibraryPath}" == "${LibraryPath}" ] ; then return 0 ; fi
check_Path "${newLibraryPath}"
while [ ${validPath} -ne 0 ] ; do
printf "\nLibrary Path (${LibraryPath}): " ; read newLibraryPath
if [ -z "${newLibraryPath}" ] || [ "${newLibraryPath}" == "${LibraryPath}" ] ; then return 0 ; fi
check_Path "${newLibraryPath}"
done
LibraryPath="${newLibraryPath}"
}
function set_ExportPath {
display_Title "Export Path"
printf "Export Path (${ExportPath}): " ; read newExportPath
if [ -z "${newExportPath}" ] || [ "${newExportPath}" == "${ExportPath}" ] ; then return 0 ; fi
check_Path "${newExportPath}"
while [ ${validPath} -ne 0 ] ; do
printf "\nExport Path (${ExportPath}): " ; read newExportPath
if [ -z "${newExportPath}" ] || [ "${newExportPath}" == "${ExportPath}" ] ; then return 0 ; fi
check_Path "${newExportPath}"
done
ExportPath="${newExportPath}"
}
function set_PackagePath {
display_Title "Package Path"
printf "Package Path (${PackagePath}): " ; read newPackagePath
if [ -z "${newPackagePath}" ] || [ "${newPackagePath}" == "${PackagePath}" ] ; then return 0 ; fi
check_Path "${newPackagePath}"
while [ ${validPath} -ne 0 ] ; do
printf "\nExport Path (${PackagePath}): " ; read newPackagePath
if [ -z "${newPackagePath}" ] || [ "${newPackagePath}" == "${PackagePath}" ] ; then return 0 ; fi
check_Path "${newPackagePath}"
done
PackagePath="${newPackagePath}"
}
function get_DefaultPaths {
get_LibraryPath
get_ExportPath
get_PackagePath
}
function save_DefaultPaths {
save_LibraryPath
save_ExportPath
save_PackagePath
}
function display_DefaultPaths {
display_LibraryPath
display_ExportPath
display_PackagePath
}
function menu_DefaultPaths {
pathOptions=( "Library Path" "Export Path" "Package Path" "Previous Menu" )
while [ "${pathOption}" != "Previous Menu" ] ; do
display_Title "Default Paths"
display_DefaultPaths
echo
display_Options "Options" "Select an option: "
select pathOption in "${pathOptions[@]}" ; do
case "${pathOption}" in
"Library Path" ) set_LibraryPath ; pathOption="" ; break ;;
"Export Path" ) set_ExportPath ; pathOption="" ; break ;;
"Package Path" ) set_PackagePath ; pathOption="" ; break ;;
"Previous Menu" ) break ;;
esac
done
done
pathOption=""
}
function get_ImageSize {
prefImageSize=`defaults read ~/Library/Preferences/au.com.mondada.SIC "ImageSize" 2>/dev/null`
if [ -n "${prefImageSize}" ] ; then ImageSize="${prefImageSize}" ; fi
echo "ImageSize: ${ImageSize}"
}
function save_ImageSize {
defaults write ~/Library/Preferences/au.com.mondada.SIC "ImageSize" -float "${ImageSize}"
}
function display_ImageSize {
echo "Image Size: ${ImageSize} GB"
}
function check_Size {
# ${1}: Size to validate
validSize=0
# Remove invalid characters
newImageSize="${1//[^0-9.]/}"
# Validate the clean string to ensure its numeric
isValid=$( echo "scale=0; ${newImageSize}/${newImageSize} + 1" | bc -l 2>/dev/null )
if [ ${isValid} -gt 1 ] ; then
# Check that it's larger than 5 GB
if [ $( echo "${newImageSize} < ${minImageSize}" | bc 2>/dev/null ) -ne 0 ] ; then printf "\nMac OS X requires at least \033[1m${minImageSize}\033[m GB of free space to install.\n" ; ImageSize="${minImageSize}" ; validSize=1 ; return 1 ; fi
# Check that it's smaller than 2 TB
if [ $( echo "${newImageSize} > ${maxImageSize}" | bc 2>/dev/null ) -ne 0 ] ; then printf "\nThe maximum image size is \033[1m${maxImageSize}\033[m GB.\n" ; ImageSize="${maxImageSize}" ; validSize=1 ; return 1 ; fi
return 0
else
printf "\n\033[1m${1}\033[m is not a valid value, please enter a numeric value.\n" ; validSize=1 ; return 1
fi
}
function set_ImageSize {
display_Title "Image Size"
printf "Image Size (${ImageSize}): " ; read newImageSize
if [ -z "${newImageSize}" ] || [ "${newImageSize}" == "${ImageSize}" ] ; then return 0 ; fi
check_Size "${newImageSize}"
while [ ${validSize} -ne 0 ] ; do
printf "\nImage Size (${ImageSize}): " ; read newImageSize
if [ -z "${newImageSize}" ] || [ "${newImageSize}" == "${ImageSize}" ] ; then return 0 ; fi
check_Size "${newImageSize}"
done
ImageSize="${newImageSize}"
}
function get_VolumeName {
prefVolumeName=`defaults read ~/Library/Preferences/au.com.mondada.SIC "VolumeName" 2>/dev/null`
if [ -n "${prefVolumeName}" ] ; then VolumeName="${prefVolumeName}" ; fi
echo "VolumeName: ${VolumeName}"
}
function save_VolumeName {
defaults write ~/Library/Preferences/au.com.mondada.SIC "VolumeName" -string "${VolumeName}"
}
function display_VolumeName {
echo "Volume Name: ${VolumeName}"
}
function check_VolumeName {
# ${1}: Volume Name to validate
validName=0
# Check for invalid characters
escapedName="${1//[\$\(\)\[\]\`\~\?\*\#\\\!\|\'\"]/_}"
if [ "${1}" != "${escapedName}" ] ; then printf "\nThe volume name cannot contain the following characters: \033[1m\$()[]\`~?*#\!|'\"\033[m\n" ; validName=1 ; return 1 ; fi
return 0
}
function set_VolumeName {
display_Title "Volume Name"
printf "Volume Name (${VolumeName}): " ; read newVolumeName
if [ -z "${newVolumeName}" ] || [ "${newVolumeName}" == "${VolumeName}" ] ; then return 0 ; fi
newVolumeName="${newVolumeName//\//:}"
check_VolumeName "${newVolumeName}"
while [ ${validName} -ne 0 ] ; do
printf "Volume Name (${VolumeName}): " ; read newVolumeName
if [ -z "${newVolumeName}" ] || [ "${newVolumeName}" == "${VolumeName}" ] ; then return 0 ; fi
newVolumeName="${newVolumeName//\//:}"
check_VolumeName "${newVolumeName}"
done
VolumeName="${newVolumeName}"
}
function get_ImageSettings {
get_ImageSize
get_VolumeName
}
function save_ImageSettings {
save_ImageSize
save_VolumeName
}
function display_ImageSettings {
display_ImageSize
display_VolumeName
}
function menu_ImageSettings {
imageOptions=( "Image Size" "Volume Name" "Previous Menu" )
while [ "${imageOption}" != "Previous Menu" ] ; do
display_Title "Image Settings"
display_ImageSettings
echo
display_Options "Options" "Select an option: "
select imageOption in "${imageOptions[@]}" ; do
case "${imageOption}" in
"Image Size" ) set_ImageSize ; imageOption="" ; break ;;
"Volume Name" ) set_VolumeName ; imageOption="" ; break ;;
"Previous Menu" ) break ;;
esac
done
done
imageOption=""
}
function set_AppleLanguage {
# ${1}: mainLanguage
case "${1}" in
"English" ) AppleLanguage="en" ; defaultCountryNames=( "United States" "Canada" "United Kingdom" "Australia" "New Zealand" "Ireland" ) ; UserTemplate="English" ;;
"Japanese" ) AppleLanguage="ja" ; defaultCountryNames=( "Japan" ) ; UserTemplate="Japanese" ;;
"French" ) AppleLanguage="fr" ; defaultCountryNames=( "Belgium" "Canada" "France" "Luxembourg" "Switzerland" ) ; UserTemplate="French" ;;
"German" ) AppleLanguage="de" ; defaultCountryNames=( "Germany" "Luxembourg" "Austria" "Switzerland" ) ; UserTemplate="German" ;;
"Spanish" ) AppleLanguage="es" ; defaultCountryNames=( "Antigua and Barbuda" "Argentina" "Chile" "Costa Rica" "Spain" "Philippines" "Mexico" "Panama" "Dominican Republic" "Venezuela" ) ; UserTemplate="Spanish" ;;
"Italian" ) AppleLanguage="it" ; defaultCountryNames=( "Italy" ) ; UserTemplate="Italian" ;;
"Dutch" ) AppleLanguage="nl" ; defaultCountryNames=( "Netherlands" "Belgium" ) ; UserTemplate="Dutch" ;;
"Swedish" ) AppleLanguage="sv" ; defaultCountryNames=( "Sweden" ) ; UserTemplate="sv" ;;
"Norwegian" ) AppleLanguage="nb" ; defaultCountryNames=( "Norway" ) ; UserTemplate="no" ;;
"Danish" ) AppleLanguage="da" ; defaultCountryNames=( "Denmark" ) ; UserTemplate="da" ;;
"Finnish" ) AppleLanguage="fi" ; defaultCountryNames=( "Finland" ) ; UserTemplate="fi" ;;
"Polish" ) AppleLanguage="pl" ; defaultCountryNames=( "Poland" ) ; UserTemplate="pl" ;;
"Portuguese" ) AppleLanguage="pt" ; defaultCountryNames=( "Brazil" "Portugal" ) ; UserTemplate="pt" ;;
"Portuguese (Portugal)" ) AppleLanguage="pt-PT" ; defaultCountryNames=( "Portugal" ) ; UserTemplate="pt_PT" ;;
"Russian" ) AppleLanguage="ru" ; defaultCountryNames=( "Russia" "Belarus" "Estonia" "Kazakhstan" "Kyrgyzstan" "Latvia" "Svalbard and Jan Mayen" "Tajikistan" "Ukraine" "Uzbekistan" ) ; UserTemplate="ru" ;;
"Chinese (Simplified)" ) AppleLanguage="zh-Hans" ; defaultCountryNames=( "China" ) ; UserTemplate="zh_CN" ;;
"Chinese (Traditional)" ) AppleLanguage="zh-Hant" ; defaultCountryNames=( "China" ) ; UserTemplate="zh_TW" ;;
"Korean" ) AppleLanguage="ko" ; defaultCountryNames=( "South Korea" ) ; UserTemplate="ko" ;;
esac
}
function set_mainLanguage {
# ${1}: AppleLanguage
case "${1}" in
"en" ) mainLanguage="English" ;;
"ja" ) mainLanguage="Japanese" ;;
"fr" ) mainLanguage="French" ;;
"de" ) mainLanguage="German" ;;
"es" ) mainLanguage="Spanish" ;;
"it" ) mainLanguage="Italian" ;;
"nl" ) mainLanguage="Dutch" ;;
"sv" ) mainLanguage="Swedish" ;;
"nb" ) mainLanguage="Norwegian" ;;
"da" ) mainLanguage="Danish" ;;
"fi" ) mainLanguage="Finnish" ;;
"pl" ) mainLanguage="Polish" ;;
"pt" ) mainLanguage="Portuguese" ;;
"pt-PT" ) mainLanguage="Portuguese (Portugal)" ;;
"ru" ) mainLanguage="Russian" ;;
"zh-Hans" ) mainLanguage="Chinese (Simplified)" ;;
"zh-Hant" ) mainLanguage="Chinese (Traditional)" ;;
"ko" ) mainLanguage="Korean" ;;
"ar" ) mainLanguage="Arabic" ;;
"cs" ) mainLanguage="Czech" ;;
"hu" ) mainLanguage="Hungarian" ;;
esac
set_AppleLanguage "${mainLanguage}"
}
function get_AppleLanguage {
prefAppleLanguage=`defaults read ~/Library/Preferences/au.com.mondada.SIC "AppleLanguage" 2>/dev/null`
if [ -z "${prefAppleLanguage}" ] ; then prefAppleLanguage=`/usr/libexec/PlistBuddy -c "Print ':AppleLanguages:0'" "/Library/Preferences/.GlobalPreferences.plist" 2>/dev/null` ; fi
if [ -n "${prefAppleLanguage}" ] ; then AppleLanguage="${prefAppleLanguage}" ; fi
echo "AppleLanguage: ${AppleLanguage}"
set_mainLanguage "${AppleLanguage}"
}
function save_AppleLanguage {
defaults write ~/Library/Preferences/au.com.mondada.SIC "AppleLanguage" -string "${AppleLanguage}"
}
function display_mainLanguage {
echo "Language: ${mainLanguage}"
}
function set_Languages {
if [ -n "${targDisk}" ] ; then
Languages=( "English" )
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.ja.plist" ] ; then Languages=( "${Languages[@]}" "Japanese" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.fr.plist" ] ; then Languages=( "${Languages[@]}" "French" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.de.plist" ] ; then Languages=( "${Languages[@]}" "German" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.es.plist" ] ; then Languages=( "${Languages[@]}" "Spanish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.it.plist" ] ; then Languages=( "${Languages[@]}" "Italian" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.pt.plist" ] ; then Languages=( "${Languages[@]}" "Portuguese" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.pt_PT.plist" ] ; then Languages=( "${Languages[@]}" "Portuguese (Portugal)" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.nl.plist" ] ; then Languages=( "${Languages[@]}" "Dutch" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.sv.plist" ] ; then Languages=( "${Languages[@]}" "Swedish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.no.plist" ] ; then Languages=( "${Languages[@]}" "Norwegian" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.da.plist" ] ; then Languages=( "${Languages[@]}" "Danish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.fi.plist" ] ; then Languages=( "${Languages[@]}" "Finnish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.ru.plist" ] ; then Languages=( "${Languages[@]}" "Russian" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.pl.plist" ] ; then Languages=( "${Languages[@]}" "Polish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.tr.plist" ] ; then Languages=( "${Languages[@]}" "Turkish" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.zh_CN.plist" ] ; then Languages=( "${Languages[@]}" "Chinese (Simplified)" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.zh_TW.plist" ] ; then Languages=( "${Languages[@]}" "Chinese (Traditional)" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.ko.plist" ] ; then Languages=( "${Languages[@]}" "Korean" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.ar.plist" ] ; then Languages=( "${Languages[@]}" "Arabic" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.cs.plist" ] ; then Languages=( "${Languages[@]}" "Czech" ) ; fi
if [ -e "/Volumes/${targDisk}/private/var/db/receipts/com.apple.MacOSX.lang.hu.plist" ] ; then Languages=( "${Languages[@]}" "Hungarian" ) ; fi
else
Languages=( "English" "Japanese" "French" "German" "Spanish" "Italian" "Portuguese" "Portuguese (Portugal)" "Dutch" "Swedish" "Norwegian" "Danish" "Finnish" "Russian" "Polish" "Chinese (Simplified)" "Chinese (Traditional)" "Korean" )
fi
langAvailable=0 ; for Element in "${Languages[@]}" ; do if [ "${Language}" == "${Element}" ] ; then langAvailable=1 ; break ; fi ; done
if [ ${langAvailable} -eq 0 ] ; then Language="${Languages[0]}" ; fi
}
function select_mainLanguage {
set_Languages
display_Title "Select Language"
display_mainLanguage
display_Options "Languages" "Select the main language you wish to use: "
select newLanguage in "${Languages[@]}" ; do
if [ -n "${newLanguage}" ] ; then break ; fi
done
mainLanguage="${newLanguage}" ; newLanguage=""
set_AppleLanguage "${mainLanguage}"
}
function set_Country {
case "${1}" in
"United States" ) Country="US" ; defaultKeyboardLayouts=( "U.S." "Canadian English" ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Canada" ) Country="CA" ; defaultKeyboardLayouts=( "U.S." "British" "Canadian English" "Canadian French - CSA" ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=6094817 ;;
"United Kingdom" ) Country="GB" ; defaultKeyboardLayouts=( "U.S." "British" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2643743 ;;
"Australia" ) Country="AU" ; defaultKeyboardLayouts=( "U.S." "Australian" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2172517 ;;
"New Zealand" ) Country="NZ" ; defaultKeyboardLayouts=( "U.S." "Australian" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2179537 ;;
"Ireland" ) Country="IE" ; defaultKeyboardLayouts=( "U.S." "British" "Irish" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2964574 ;;
"Afghanistan" ) Country="AF" ; defaultKeyboardLayouts=( "U.S." "Afghan Dari" "Afghan Pashto" "Afghan Uzbek " ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1138958 ;;
"Albania" ) Country="AL" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3183875 ;;
"Algeria" ) Country="DZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2507480 ;;
"American Samoa" ) Country="AS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5881576 ;;
"Andorra" ) Country="AD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3041563 ;;
"Angola" ) Country="AO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2240449 ;;
"Anguilla" ) Country="AI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3573374 ;;
"Antarctica" ) Country="AQ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Antigua and Barbuda" ) Country="AG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3576022 ;;
"Argentina" ) Country="AR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3435910 ;;
"Armenia" ) Country="AM" ; defaultKeyboardLayouts=( "U.S." "Armenian - HM QWERTY" "Armenian - Western QWERTY" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=616052 ;;
"Aruba" ) Country="AW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3577154 ;;
"Austria" ) Country="AT" ; defaultKeyboardLayouts=( "U.S." "Austrian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2761369 ;;
"Azerbaijan" ) Country="AZ" ; defaultKeyboardLayouts=( "U.S." "Azeri" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=587084 ;;
"Bahamas" ) Country="BS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3571824 ;;
"Bahrain" ) Country="BH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=290340 ;;
"Bangladesh" ) Country="BD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1185241 ;;
"Barbados" ) Country="BB" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3374036 ;;
"Belarus" ) Country="BY" ; defaultKeyboardLayouts=( "U.S." "Byelorussian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=625144 ;;
"Belgium" ) Country="BE" ; defaultKeyboardLayouts=( "U.S." "Belgian" "French" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2800866 ;;
"Belize" ) Country="BZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3582672 ;;
"Benin" ) Country="BJ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2392087 ;;
"Bermuda" ) Country="BM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3573197 ;;
"Bhutan" ) Country="BT" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1252416 ;;
"Bolivia" ) Country="BO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3911925 ;;
"Bosnia and Herzegovina" ) Country="BA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3191281 ;;
"Botswana" ) Country="BW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=933773 ;;
"Bouvet Island" ) Country="BV" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Brazil" ) Country="BR" ; defaultKeyboardLayouts=( "U.S." "Brazilian" "U.S. International - PC" ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3469058 ;;
"British Indian Ocean Territory" ) Country="IO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"British Virgin Islands" ) Country="VG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3577430 ;;
"Brunei" ) Country="BN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1820906 ;;
"Bulgaria" ) Country="BG" ; defaultKeyboardLayouts=( "U.S." "Bulgarian" "Bulgarian - Phonetic" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=727011 ;;
"Burkina Faso" ) Country="BF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2357048 ;;
"Burundi" ) Country="BI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=425378 ;;
"Cambodia" ) Country="KH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1821306 ;;
"Cameroon" ) Country="CM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2220957 ;;
"Cape Verde" ) Country="CV" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3374333 ;;
"Cayman Islands" ) Country="KY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3580661 ;;
"Central African Republic" ) Country="CF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2389853 ;;
"Chad" ) Country="TD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2427123 ;;
"Chile" ) Country="CL" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3871336 ;;
"China" ) Country="CN" ; defaultKeyboardLayouts=( "U.S." "Chinese - Simplified" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1816670 ;;
"Christmas Island" ) Country="CX" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2078127 ;;
"Cocos Islands" ) Country="CC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Cocos [Keeling] Islands" ) Country="CC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Colombia" ) Country="CO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3688689 ;;
"Comoros" ) Country="KM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=921772 ;;
"Congo - Brazzaville" ) Country="CG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2260535 ;;
"Congo - Kinshasa" ) Country="CD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2314302 ;;
"Cook Islands" ) Country="CK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4035715 ;;
"Costa Rica" ) Country="CR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3621849 ;;
"Côte d'Ivoire" ) Country="CI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2279755 ;;
"Croatia" ) Country="HR" ; defaultKeyboardLayouts=( "U.S." "Croatian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3186886 ;;
"Cyprus" ) Country="CY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=146268 ;;
"Czech Republic" ) Country="CZ" ; defaultKeyboardLayouts=( "U.S." "Czech - QWERTY" "Czech" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3067696 ;;
"Denmark" ) Country="DK" ; defaultKeyboardLayouts=( "U.S." "Danish" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2618425 ;;
"Djibouti" ) Country="DJ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=223817 ;;
"Dominica" ) Country="DM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3575635 ;;
"Dominican Republic" ) Country="DO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3492908 ;;
"Ecuador" ) Country="EC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3652462 ;;
"Egypt" ) Country="EG" ; defaultKeyboardLayouts=( "U.S." "Arabic" "Arabic - PC" "Arabic - QWERTY" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=360630 ;;
"El Salvador" ) Country="SV" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3583361 ;;
"Equatorial Guinea" ) Country="GQ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2309527 ;;
"Eritrea" ) Country="ER" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=343300 ;;
"Estonia" ) Country="EE" ; defaultKeyboardLayouts=( "U.S." "Estonian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=588409 ;;
"Ethiopia" ) Country="ET" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=344979 ;;
"Falkland Islands" ) Country="FK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3426691 ;;
"Faroe Islands" ) Country="FO" ; defaultKeyboardLayouts=( "U.S." "Faroese" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2611396 ;;
"Fiji" ) Country="FJ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2198148 ;;
"Finland" ) Country="FI" ; defaultKeyboardLayouts=( "U.S." "Finnish" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=658225 ;;
"France" ) Country="FR" ; defaultKeyboardLayouts=( "U.S." "French" "French - Numerical" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2988507 ;;
"French Guiana" ) Country="GF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3382160 ;;
"French Polynesia" ) Country="PF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4033936 ;;
"French Southern Territories" ) Country="TF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Gabon" ) Country="GA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2399697 ;;
"Gambia" ) Country="GM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2413876 ;;
"Georgia" ) Country="GE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=611717 ;;
"Germany" ) Country="DE" ; defaultKeyboardLayouts=( "U.S." "German" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2950159 ;;
"Ghana" ) Country="GH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2306104 ;;
"Gibraltar" ) Country="GI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2411585 ;;
"Greece" ) Country="GR" ; defaultKeyboardLayouts=( "U.S." "Greek" "Greek Polytonic" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=264371 ;;
"Greenland" ) Country="GL" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3421319 ;;
"Grenada" ) Country="GD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3579925 ;;
"Guadeloupe" ) Country="GP" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3579732 ;;
"Guam" ) Country="GU" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=4044012 ;;
"Guatemala" ) Country="GT" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3598132 ;;
"Guinea" ) Country="GN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2422465 ;;
"Guinea-Bissau" ) Country="GW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2374775 ;;
"Guyana" ) Country="GY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3378644 ;;
"Haiti" ) Country="HT" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3718426 ;;
"Heard Island and McDonald Islands" ) Country="HM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Honduras" ) Country="HN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3600949 ;;
"Hong Kong SAR China" ) Country="HK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1819729 ;;
"Hungary" ) Country="HU" ; defaultKeyboardLayouts=( "U.S." "Hungarian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3054643 ;;
"Iceland" ) Country="IS" ; defaultKeyboardLayouts=( "U.S." "Icelandic" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3413829 ;;
"India" ) Country="IN" ; defaultKeyboardLayouts=( "U.S." "Devanagari" "Devanagari - QWERTY" "Gurmukhi" "Gurmukhi -QWERTY" "Gujarati" "Gujarati - QWERTY" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1261481 ;;
"Indonesia" ) Country="ID" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1642911 ;;
"Iraq" ) Country="IQ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=98182 ;;
"Israel" ) Country="IL" ; defaultKeyboardLayouts=( "U.S." "Hebrew" "Hebrew - QWERTY" ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Italy" ) Country="IT" ; defaultKeyboardLayouts=( "U.S." "Italian - Pro" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3169070 ;;
"Ivory Coast" ) Country="CI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2279755 ;;
"Jamaica" ) Country="JM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3489854 ;;
"Japan" ) Country="JP" ; defaultKeyboardLayouts=( "U.S." "Kotoeri" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1850147 ;;
"Jordan" ) Country="JO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=250441 ;;
"Kazakhstan" ) Country="KZ" ; defaultKeyboardLayouts=( "U.S." "Kazakh" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1526273 ;;
"Kenya" ) Country="KE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=184745 ;;
"Kiribati" ) Country="KI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2110257 ;;
"Kuwait" ) Country="KW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=285787 ;;
"Kyrgyzstan" ) Country="KG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1528675 ;;
"Laos" ) Country="LA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1651944 ;;
"Latvia" ) Country="LV" ; defaultKeyboardLayouts=( "U.S." "Latvian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=456172 ;;
"Lebanon" ) Country="LB" ; defaultKeyboardLayouts=( "U.S." "Arabic" "Arabic - PC" "Arabic - QWERTY" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=276781 ;;
"Lesotho" ) Country="LS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=932505 ;;
"Liberia" ) Country="LR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2274895 ;;
"Liechtenstein" ) Country="LI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3042030 ;;
"Lithuania" ) Country="LT" ; defaultKeyboardLayouts=( "U.S." "Lithuanian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=593116 ;;
"Luxembourg" ) Country="LU" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2960316 ;;
"Macau SAR China" ) Country="MO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1821274 ;;
"Macedonia" ) Country="MK" ; defaultKeyboardLayouts=( "U.S." "Macedonian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=785842 ;;
"Madagascar" ) Country="MG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=1070940 ;;
"Malawi" ) Country="MW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=927967 ;;
"Malaysia" ) Country="MY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1735161 ;;
"Maldives" ) Country="MV" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1282027 ;;
"Mali" ) Country="ML" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2460596 ;;
"Malta" ) Country="MT" ; defaultKeyboardLayouts=( "U.S." "Maltese" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2562305 ;;
"Marshall Islands" ) Country="MH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2113779 ;;
"Martinique" ) Country="MQ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3570675 ;;
"Mauritania" ) Country="MR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2377450 ;;
"Mauritius" ) Country="MU" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=934154 ;;
"Mayotte" ) Country="YT" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=921815 ;;
"Mexico" ) Country="MX" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3530597 ;;
"Micronesia" ) Country="FM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2081986 ;;
"Moldova" ) Country="MD" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=618426 ;;
"Monaco" ) Country="MC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2993458 ;;
"Mongolia" ) Country="MN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2028462 ;;
"Montenegro" ) Country="ME" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3193044 ;;
"Montserrat" ) Country="MS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3578069 ;;
"Morocco" ) Country="MA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2538475 ;;
"Mozambique" ) Country="MZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=1040652 ;;
"Myanmar" ) Country="MM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1298824 ;;
"Myanmar [Burma]" ) Country="MM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1298824 ;;
"Namibia" ) Country="NA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3352136 ;;
"Nauru" ) Country="NR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Nepal" ) Country="NP" ; defaultKeyboardLayouts=( "U.S." "Nepali" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1283240 ;;
"Netherlands" ) Country="NL" ; defaultKeyboardLayouts=( "U.S." "Dutch" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2759794 ;;
"Netherlands Antilles" ) Country="AN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3513090 ;;
"New Caledonia" ) Country="NC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2139521 ;;
"Nicaragua" ) Country="NI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3617763 ;;
"Niger" ) Country="NE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2440485 ;;
"Nigeria" ) Country="NG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2352778 ;;
"Niue" ) Country="NU" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4036284 ;;
"Norfolk Island" ) Country="NF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2161314 ;;
"Northern Mariana Islands" ) Country="MP" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Norway" ) Country="NO" ; defaultKeyboardLayouts=( "U.S." "Norwegian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3143244 ;;
"Oman" ) Country="OM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=287286 ;;
"Pakistan" ) Country="PK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1176615 ;;
"Palau" ) Country="PW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1559446 ;;
"Palestinian Territory" ) Country="PS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Palestinian Territories" ) Country="PS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Panama" ) Country="PA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3703443 ;;
"Papua New Guinea" ) Country="PG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2088122 ;;
"Paraguay" ) Country="PY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3439389 ;;
"Peru" ) Country="PE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3936456 ;;
"Philippines" ) Country="PH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1701668 ;;
"Pitcairn" ) Country="PN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4030723 ;;
"Pitcairn Islands" ) Country="PN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4030723 ;;
"Poland" ) Country="PL" ; defaultKeyboardLayouts=( "U.S." "Polish Pro" "Polish" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=756135 ;;
"Portugal" ) Country="PT" ; defaultKeyboardLayouts=( "U.S." "Portuguese" "Brazilian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2267057 ;;
"Puerto Rico" ) Country="PR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4568127 ;;
"Qatar" ) Country="QA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=290030 ;;
"Reunion" ) Country="RE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=935264 ;;
"Réunion" ) Country="RE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=935264 ;;
"Romania" ) Country="RO" ; defaultKeyboardLayouts=( "U.S." "Romanian - Standard" "Romanian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=683506 ;;
"Russia" ) Country="RU" ; defaultKeyboardLayouts=( "U.S." "Russian" "Russian - Phonetic" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=524901 ;;
"Rwanda" ) Country="RW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=202061 ;;
"Saint Helena" ) Country="SH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3370903 ;;
"Saint Kitts and Nevis" ) Country="KN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3575551 ;;
"Saint Lucia" ) Country="LC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3576812 ;;
"Saint Pierre and Miquelon" ) Country="PM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3424934 ;;
"Saint Vincent and the Grenadines" ) Country="VC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3577887 ;;
"Samoa" ) Country="WS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=4035413 ;;
"San Marino" ) Country="SM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3168070 ;;
"Sao Tome and Principe" ) Country="ST" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2410763 ;;
"São Tomé and Príncipe" ) Country="ST" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2410763 ;;
"Saudi Arabia" ) Country="SA" ; defaultKeyboardLayouts=( "U.S." "Arabic" "Arabic - PC" "Arabic - QWERTY" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=108410 ;;
"Senegal" ) Country="SN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2253354 ;;
"Serbia" ) Country="RS" ; defaultKeyboardLayouts=( "U.S." "Serbian" "Serbian - Latin" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=792680 ;;
"Seychelles" ) Country="SC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=241131 ;;
"Sierra Leone" ) Country="SL" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2409306 ;;
"Singapore" ) Country="SG" ; defaultKeyboardLayouts=( "U.S." "Chinese - Simplified" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1880252 ;;
"Slovakia" ) Country="SK" ; defaultKeyboardLayouts=( "U.S." "Slovak" "Slovak - QWERTY" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3060972 ;;
"Slovenia" ) Country="SI" ; defaultKeyboardLayouts=( "U.S." "Slovenian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3196359 ;;
"Solomon Islands" ) Country="SB" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2108502 ;;
"Somalia" ) Country="SO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=53654 ;;
"South Africa" ) Country="ZA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=964137 ;;
"South Georgia and the South Sandwich Islands" ) Country="GS" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3426466 ;;
"South Korea" ) Country="KR" ; defaultKeyboardLayouts=( "U.S." "Hangul" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1835848 ;;
"Spain" ) Country="ES" ; defaultKeyboardLayouts=( "U.S." "Spanish - ISO" "Spanish" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=3117735 ;;
"Sri Lanka" ) Country="LK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1248991 ;;
"Suriname" ) Country="SR" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3383330 ;;
"Svalbard and Jan Mayen" ) Country="SJ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2729907 ;;
"Swaziland" ) Country="SZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=934985 ;;
"Sweden" ) Country="SE" ; defaultKeyboardLayouts=( "U.S." "Swedish - Pro" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2673730 ;;
"Switzerland" ) Country="CH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2661552 ;;
"Taiwan" ) Country="TW" ; defaultKeyboardLayouts=( "U.S." "Chinese - Traditional" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1668341 ;;
"Tajikistan" ) Country="TJ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1221874 ;;
"Tanzania" ) Country="TZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=160196 ;;
"Thailand" ) Country="TH" ; defaultKeyboardLayouts=( "U.S." "Thai" "Thai - PattaChote" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1609350 ;;
"Togo" ) Country="TG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2365267 ;;
"Tokelau" ) Country="TK" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Tonga" ) Country="TO" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=4032402 ;;
"Trinidad and Tobago" ) Country="TT" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3573890 ;;
"Tunisia" ) Country="TN" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=2464470 ;;
"Turkey" ) Country="TR" ; defaultKeyboardLayouts=( "U.S." "Turkish" "Turkish - QWERTY" "Turkish - QWERTY PC" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=323786 ;;
"Turkmenistan" ) Country="TM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=162183 ;;
"Turks and Caicos Islands" ) Country="TC" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3576994 ;;
"Tuvalu" ) Country="TV" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2110394 ;;
"U.S. Minor Outlying Islands" ) Country="UM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"U.S. Virgin Islands" ) Country="VI" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Uganda" ) Country="UG" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=232422 ;;
"Ukraine" ) Country="UA" ; defaultKeyboardLayouts=( "U.S." "Ukrainian" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=703448 ;;
"United Arab Emirates" ) Country="AE" ; defaultKeyboardLayouts=( "U.S." "Arabic" "Arabic - PC" "Arabic - QWERTY" ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=292968 ;;
"United States Minor Outlying Islands" ) Country="UM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Uruguay" ) Country="UY" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3441575 ;;
"Uzbekistan" ) Country="UZ" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1512569 ;;
"Vanuatu" ) Country="VU" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=2135171 ;;
"Vatican" ) Country="VA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=6691831 ;;
"Vatican City" ) Country="VA" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=6691831 ;;
"Venezuela" ) Country="VE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=3646738 ;;
"Vietnam" ) Country="VN" ; defaultKeyboardLayouts=( "U.S." "Vietnamese" ) ; defaultNTPServer="time.asia.apple.com" ; defaultGeonameID=1581130 ;;
"Wallis and Futuna" ) Country="WF" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Western Sahara" ) Country="EH" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.apple.com" ; defaultGeonameID=5341145 ;;
"Yemen" ) Country="YE" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=71137 ;;
"Zambia" ) Country="ZM" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=909137 ;;
"Zimbabwe" ) Country="ZW" ; defaultKeyboardLayouts=( "U.S." ) ; defaultNTPServer="time.euro.apple.com" ; defaultGeonameID=890299 ;;
esac
defaultKeyboardLayouts=( "${defaultKeyboardLayouts[@]}" "Show All" )
AppleLocale="${AppleLanguage}_${Country}"
}
function get_CountryName {
prefCountryName=`defaults read ~/Library/Preferences/au.com.mondada.SIC "CountryName" 2>/dev/null`
if [ -z "${prefCountryName}" ] ; then prefCountryName=`/usr/libexec/PlistBuddy -c "Print ':Address:CountryName'" "/var/db/.AppleSetupDone" 2>/dev/null` ; fi
if [ -n "${prefCountryName}" ] ; then CountryName="${prefCountryName}" ; fi
echo "CountryName: ${CountryName}"
set_Country "${CountryName}"
}
function save_CountryName {
defaults write ~/Library/Preferences/au.com.mondada.SIC "CountryName" -string "${CountryName}"
}
function display_CountryName {
echo "Country Name: ${CountryName}"
}
function select_CountryName {
CountryNames=( "${defaultCountryNames[@]}" "Show All" )
display_Title "Select Country"
display_CountryName
display_Options "Countries" "Select the country or region you wish to use: "
select newCountryName in "${CountryNames[@]}" ; do
while [ "${newCountryName}" == "Show All" ] ; do
if [ -n "${targDisk}" ] ; then
osMinorVersion=`defaults read "/Volumes/${targDisk}/System/Library/CoreServices/SystemVersion" ProductVersion | awk -F "." '{print $2}'`
else
osMinorVersion=`defaults read "/System/Library/CoreServices/SystemVersion" ProductVersion | awk -F "." '{print $2}'`
fi
case ${osMinorVersion} in
7 ) allCountryNames=( "United States" "Canada" "United Kingdom" "Australia" "New Zealand" "Ireland" "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antarctica" "Antigua and Barbuda" "Argentina" "Armenia" "Aruba" "Austria" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bosnia and Herzegovina" "Botswana" "Bouvet Island" "Brazil" "British Indian Ocean Territory" "British Virgin Islands" "Brunei" "Bulgaria" "Burkina Faso" "Burundi" "Cambodia" "Cameroon" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Christmas Island" "Cocos [Keeling] Islands" "Colombia" "Comoros" "Congo - Brazzaville" "Congo - Kinshasa" "Cook Islands" "Costa Rica" "Côte d'Ivoire" "Croatia" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Falkland Islands" "Faroe Islands" "Fiji" "Finland" "France" "French Guiana" "French Polynesia" "French Southern Territories" "Gabon" "Gambia" "Georgia" "Germany" "Ghana" "Gibraltar" "Greece" "Greenland" "Grenada" "Guadeloupe" "Guam" "Guatemala" "Guinea" "Guinea-Bissau" "Guyana" "Haiti" "Heard Island and McDonald Islands" "Honduras" "Hong Kong SAR China" "Hungary" "Iceland" "India" "Indonesia" "Iraq" "Israel" "Italy" "Jamaica" "Japan" "Jordan" "Kazakhstan" "Kenya" "Kiribati" "Kuwait" "Kyrgyzstan" "Laos" "Latvia" "Lebanon" "Lesotho" "Liberia" "Liechtenstein" "Lithuania" "Luxembourg" "Macau SAR China" "Macedonia" "Madagascar" "Malawi" "Malaysia" "Maldives" "Mali" "Malta" "Marshall Islands" "Martinique" "Mauritania" "Mauritius" "Mayotte" "Mexico" "Micronesia" "Moldova" "Monaco" "Mongolia" "Montenegro" "Montserrat" "Morocco" "Mozambique" "Myanmar [Burma]" "Namibia" "Nauru" "Nepal" "Netherlands" "Netherlands Antilles" "New Caledonia" "Nicaragua" "Niger" "Nigeria" "Niue" "Norfolk Island" "Northern Mariana Islands" "Norway" "Oman" "Pakistan" "Palau" "Palestinian Territories" "Panama" "Papua New Guinea" "Paraguay" "Peru" "Philippines" "Pitcairn Islands" "Poland" "Portugal" "Puerto Rico" "Qatar" "Réunion" "Romania" "Russia" "Rwanda" "Saint Helena" "Saint Kitts and Nevis" "Saint Lucia" "Saint Pierre and Miquelon" "Saint Vincent and the Grenadines" "Samoa" "San Marino" "São Tomé and Príncipe" "Saudi Arabia" "Senegal" "Serbia" "Seychelles" "Sierra Leone" "Singapore" "Slovakia" "Slovenia" "Solomon Islands" "Somalia" "South Africa" "South Georgia and the South Sandwich Islands" "South Korea" "Spain" "Sri Lanka" "Suriname" "Svalbard and Jan Mayen" "Swaziland" "Sweden" "Switzerland" "Taiwan" "Tajikistan" "Tanzania" "Thailand" "Togo" "Tokelau" "Tonga" "Trinidad and Tobago" "Tunisia" "Turkey" "Turkmenistan" "Turks and Caicos Islands" "Tuvalu" "U.S. Minor Outlying Islands" "U.S. Virgin Islands" "Uganda" "Ukraine" "United Arab Emirates" "Uruguay" "Uzbekistan" "Vanuatu" "Vatican City" "Venezuela" "Vietnam" "Wallis and Futuna" "Western Sahara" "Yemen" "Zambia" "Zimbabwe" ) ;;
* ) allCountryNames=( "United States" "Canada" "United Kingdom" "Australia" "New Zealand" "Ireland" "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antarctica" "Antigua and Barbuda" "Argentina" "Armenia" "Aruba" "Austria" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bosnia and Herzegovina" "Botswana" "Bouvet Island" "Brazil" "British Indian Ocean Territory" "British Virgin Islands" "Brunei" "Bulgaria" "Burkina Faso" "Burundi" "Cambodia" "Cameroon" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Christmas Island" "Cocos Islands" "Colombia" "Comoros" "Congo - Brazzaville" "Congo - Kinshasa" "Cook Islands" "Costa Rica" "Croatia" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Falkland Islands" "Faroe Islands" "Fiji" "Finland" "France" "French Guiana" "French Polynesia" "French Southern Territories" "Gabon" "Gambia" "Georgia" "Germany" "Ghana" "Gibraltar" "Greece" "Greenland" "Grenada" "Guadeloupe" "Guam" "Guatemala" "Guinea" "Guinea-Bissau" "Guyana" "Haiti" "Heard Island and McDonald Islands" "Honduras" "Hong Kong SAR China" "Hungary" "Iceland" "India" "Indonesia" "Iraq" "Israel" "Italy" "Ivory Coast" "Jamaica" "Japan" "Jordan" "Kazakhstan" "Kenya" "Kiribati" "Kuwait" "Kyrgyzstan" "Laos" "Latvia" "Lebanon" "Lesotho" "Liberia" "Liechtenstein" "Lithuania" "Luxembourg" "Macau SAR China" "Macedonia" "Madagascar" "Malawi" "Malaysia" "Maldives" "Mali" "Malta" "Marshall Islands" "Martinique" "Mauritania" "Mauritius" "Mayotte" "Mexico" "Micronesia" "Moldova" "Monaco" "Mongolia" "Montserrat" "Morocco" "Mozambique" "Myanmar" "Namibia" "Nauru" "Nepal" "Netherlands" "Netherlands Antilles" "New Caledonia" "Nicaragua" "Niger" "Nigeria" "Niue" "Norfolk Island" "Northern Mariana Islands" "Norway" "Oman" "Pakistan" "Palau" "Palestinian Territory" "Panama" "Papua New Guinea" "Paraguay" "Peru" "Philippines" "Pitcairn" "Poland" "Portugal" "Puerto Rico" "Qatar" "Reunion" "Romania" "Russia" "Rwanda" "Saint Helena" "Saint Kitts and Nevis" "Saint Lucia" "Saint Pierre and Miquelon" "Saint Vincent and the Grenadines" "Samoa" "San Marino" "Sao Tome and Principe" "Saudi Arabia" "Senegal" "Seychelles" "Sierra Leone" "Singapore" "Slovakia" "Slovenia" "Solomon Islands" "Somalia" "South Africa" "South Georgia and the South Sandwich Islands" "South Korea" "Spain" "Sri Lanka" "Suriname" "Svalbard and Jan Mayen" "Swaziland" "Sweden" "Switzerland" "Taiwan" "Tajikistan" "Tanzania" "Thailand" "Togo" "Tokelau" "Tonga" "Trinidad and Tobago" "Tunisia" "Turkey" "Turkmenistan" "Turks and Caicos Islands" "Tuvalu" "U.S. Virgin Islands" "Uganda" "Ukraine" "United Arab Emirates" "United States Minor Outlying Islands" "Uruguay" "Uzbekistan" "Vanuatu" "Vatican" "Venezuela" "Vietnam" "Wallis and Futuna" "Western Sahara" "Yemen" "Zambia" "Zimbabwe" ) ;;
esac
CountryNames=( "${defaultCountryNames[@]}" )
for Element in "${allCountryNames[@]}" ; do
addCountryName=1
for defaultCountryName in "${defaultCountryNames[@]}" ; do if [ "${Element}" == "${defaultCountryName}" ] ; then addCountryName=0 ; break ; fi ; done
if [ ${addCountryName} -eq 1 ] ; then CountryNames=( "${CountryNames[@]}" "${Element}" ) ; fi
done
display_Title "Select Country"
display_CountryName
display_Options "Countries" "Select the country or region you wish to use: "
select newCountryName in "${CountryNames[@]}" ; do
if [ -n "${newCountryName}" ] ; then break ; fi
done
done
if [ -n "${newCountryName}" ] ; then break ; fi
done
CountryName="${newCountryName}" ; newCountryName=""
set_Country "${CountryName}"
}
function set_InputSources {
unset TypingStyles[@]
unset BundleIDs[@]
unset InputModes[@]
unset InputSourceKinds[@]
unset KeyboardLayoutIDs[@]
unset KeyboardLayoutNames[@]
case "${1}" in
"U.S." ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=0 ; KeyboardLayoutNames[0]="U.S." ;;
"Afghan Dari" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.AfghanDari" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-2902 ; KeyboardLayoutNames[0]="Afghan Dari" ;;
"Afghan Pashto" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.AfghanPashto" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-2904 ; KeyboardLayoutNames[0]="Afghan Pashto" ;;
"Afghan Uzbek" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.AfghanUzbek" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-2903 ; KeyboardLayoutNames[0]="Afghan Uzbek" ;;
"Arabic" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Arabic" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-17920 ; KeyboardLayoutNames[0]="Arabic" ;;
"Arabic - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.ArabicPC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-17921 ; KeyboardLayoutNames[0]="Arabic PC" ;;
"Arabic - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Arabic-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18000 ; KeyboardLayoutNames[0]="Arabic-QWERTY" ;;
"Armenian - HM QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Armenian-HMQWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-28161 ; KeyboardLayoutNames[0]="Armenian-HM QWERTY" ;;
"Armenian - Western QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Armenian-WesternQWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-28164 ; KeyboardLayoutNames[0]="Armenian-Western QWERTY" ;;
"Australian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Australian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=15 ; KeyboardLayoutNames[0]="Australian" ;;
"Austrian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Austrian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=92 ; KeyboardLayoutNames[0]="Austrian" ;;
"Azeri" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Azeri" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-49 ; KeyboardLayoutNames[0]="Azeri" ;;
"Belgian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Belgian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=6 ; KeyboardLayoutNames[0]="Belgian" ;;
"Brazilian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Brazilian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=71 ; KeyboardLayoutNames[0]="Brazilian" ;;
"British" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.British" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=2 ; KeyboardLayoutNames[0]="British" ;;
"Bulgarian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Bulgarian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19528 ; KeyboardLayoutNames[0]="Bulgarian" ;;
"Bulgarian - Phonetic" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Bulgarian-Phonetic" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19529 ; KeyboardLayoutNames[0]="Bulgarian - Phonetic" ;;
"Byelorussian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Byelorussian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19517 ; KeyboardLayoutNames[0]="Byelorussian" ;;
"Canadian English" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Canadian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=29 ; KeyboardLayoutNames[0]="Canadian" ;;
"Canadian French - CSA" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Canadian-CSA" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=80 ; KeyboardLayoutNames[0]="Canadian - CSA" ;;
"Cherokee - Nation" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Cherokee-Nation" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26112 ; KeyboardLayoutNames[0]="Cherokee-Nation" ;;
"Cherokee - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Cherokee-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26113 ; KeyboardLayoutNames[0]="Cherokee-QWERTY" ;;
"Chinese - Simplified" ) TypingStyles=( "Pinyin - Simplified" "Wubi Hua" "Wubi Xing" ) ; AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ; AppleDefaultAsciiInputSource=0 ;;
"Chinese - Traditional" ) TypingStyles=( "Zhuyin" "Cangjie" "Dayi Pro" "Jianyi" "Pinyin - Traditional" ) ; AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ; AppleDefaultAsciiInputSource=0 ;;
"Croatian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Croatian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-68 ; KeyboardLayoutNames[0]="Croatian" ;;
"Croatian - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Croatian-PC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-69 ; KeyboardLayoutNames[0]="Croatian-PC" ;;
"Czech" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Czech" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30776 ; KeyboardLayoutNames[0]="Czech" ;;
"Czech - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Czech-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30778 ; KeyboardLayoutNames[0]="Czech-QWERTY" ;;
"Danish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Danish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=9 ; KeyboardLayoutNames[0]="Danish" ;;
"Devanagari" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Devanagari" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-20480 ; KeyboardLayoutNames[0]="Devanagari" ;;
"Devanagari - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Devanagari-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-20481 ; KeyboardLayoutNames[0]="Devanagari-QWERTY" ;;
"Dutch" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Dutch" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=26 ; KeyboardLayoutNames[0]="Dutch" ;;
"Dvorak" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Dvorak" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=16300 ; KeyboardLayoutNames[0]="Dvorak" ;;
"Dvorak - Left" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Dvorak-Left" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=16302 ; KeyboardLayoutNames[0]="Dvorak - Left" ;;
"Dvorak - Qwerty ⌘" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.DVORAK-QWERTYCMD" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=16301 ; KeyboardLayoutNames[0]="DVORAK - QWERTY CMD" ;;
"Dvorak - Right" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Dvorak-Right" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=16303 ; KeyboardLayoutNames[0]="Dvorak - Right" ;;
"Estonian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Estonian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30764 ; KeyboardLayoutNames[0]="Estonian" ;;
"Faroese" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Faroese" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-47 ; KeyboardLayoutNames[0]="Faroese" ;;
"Finnish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Finnish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=17 ; KeyboardLayoutNames[0]="Finnish" ;;
"Finnish Extended" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.FinnishExtended" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-17 ; KeyboardLayoutNames[0]="Finnish Extended" ;;
"Finnish Sami - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.FinnishSami-PC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18 ; KeyboardLayoutNames[0]="FinnishSami-PC" ;;
"French" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.French" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=1 ; KeyboardLayoutNames[0]="French" ;;
"French - Numerical" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.French-numerical" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=1111 ; KeyboardLayoutNames[0]="French - numerical" ;;
"German" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.German" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=3 ; KeyboardLayoutNames[0]="German" ;;
"Greek" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Greek" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18944 ; KeyboardLayoutNames[0]="Greek" ;;
"Greek Polytonic" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.GreekPolytonic" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18945 ; KeyboardLayoutNames[0]="Greek Polytonic" ;;
"Gujarati" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Gujarati" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-21504 ; KeyboardLayoutNames[0]="Gujarati" ;;
"Gujarati - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Gujarati-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-21505 ; KeyboardLayoutNames[0]="Gujarati-QWERTY" ;;
"Gurmukhi" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Gurmukhi" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-20992 ; KeyboardLayoutNames[0]="Gurmukhi" ;;
"Gurmukhi - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Gurmukhi-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-20993 ; KeyboardLayoutNames[0]="Gurmukhi-QWERTY" ;;
"Hangul" ) TypingStyles=( "3-Set Korean" "2-Set Korean" "HNC Romaja" "390 Sebulshik" "GongjinCheong Romaja" ) ; AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ; AppleDefaultAsciiInputSource=0 ;;
"Hawaiian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Hawaiian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-50 ; KeyboardLayoutNames[0]="Hawaiian" ;;
"Hebrew" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Hebrew" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18432 ; KeyboardLayoutNames[0]="Hebrew" ;;
"Hebrew - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Hebrew-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-18500 ; KeyboardLayoutNames[0]="Hebrew-QWERTY" ;;
"Hungarian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Hungarian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30763 ; KeyboardLayoutNames[0]="Hungarian" ;;
"Icelandic" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Icelandic" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-21 ; KeyboardLayoutNames[0]="Icelandic" ;;
"Inuktitut - Nunavut" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Inuktitut-Nunavut" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-30604 ; KeyboardLayoutNames[0]="Inuktitut-Nunavut" ;;
"Inuktitut - Nutaaq" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Inuktitut-Nutaaq" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-30602 ; KeyboardLayoutNames[0]="Inuktitut-Nutaaq" ;;
"Inuktitut - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Inuktitut-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-30600 ; KeyboardLayoutNames[0]="Inuktitut-QWERTY" ;;
"Inuttitut Nunavik" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.InuttitutNunavik" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-30603 ; KeyboardLayoutNames[0]="Inuttitut Nunavik" ;;
"Irish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Irish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=50 ; KeyboardLayoutNames[0]="Irish" ;;
"Irish Extended" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.IrishExtended" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-500 ; KeyboardLayoutNames[0]="Irish Extended" ;;
"Italian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Italian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=4 ; KeyboardLayoutNames[0]="Italian" ;;
"Italian - Pro" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Italian-Pro" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=223 ; KeyboardLayoutNames[0]="Italian - Pro" ;;
"Jawi - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Jawi-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-19000 ; KeyboardLayoutNames[0]="Jawi-QWERTY" ;;
"Kazakh" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Kazakh" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-19501 ; KeyboardLayoutNames[0]="Kazakh" ;;
"Kotoeri" ) TypingStyles=( "Romaji" "Kana" ) ; AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ;;
"Latvian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Latvian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30765 ; KeyboardLayoutNames[0]="Latvian" ;;
"Lithuanian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Lithuanian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30761 ; KeyboardLayoutNames[0]="Lithuanian" ;;
"Macedonian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Macedonian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19523 ; KeyboardLayoutNames[0]="Macedonian" ;;
"Maltese" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Maltese" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-501 ; KeyboardLayoutNames[0]="Maltese" ;;
"Maori" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Maori" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-51 ; KeyboardLayoutNames[0]="Maori" ;;
"Nepali" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Nepali" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-20484 ; KeyboardLayoutNames[0]="Nepali" ;;
"Northern Sami" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.NorthernSami" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-1200 ; KeyboardLayoutNames[0]="Northern Sami" ;;
"Norwegian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Norwegian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=12 ; KeyboardLayoutNames[0]="Norwegian" ;;
"Norwegian Extended" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.NorwegianExtended" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-12 ; KeyboardLayoutNames[0]="Norwegian Extended" ;;
"Norwegian Sami - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.NorwegianSami-PC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-13 ; KeyboardLayoutNames[0]="NorwegianSami-PC" ;;
"Persian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Persian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-17960 ; KeyboardLayoutNames[0]="Persian" ;;
"Persian - ISIRI 2901" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Persian-ISIRI2901" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-2901 ; KeyboardLayoutNames[0]="Persian-ISIRI 2901" ;;
"Persian - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Persian-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-1959 ; KeyboardLayoutNames[0]="Persian-QWERTY" ;;
"Polish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Polish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30762 ; KeyboardLayoutNames[0]="Polish" ;;
"Polish Pro" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.PolishPro" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30788 ; KeyboardLayoutNames[0]="Polish Pro" ;;
"Portuguese" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Portuguese" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=10 ; KeyboardLayoutNames[0]="Portuguese" ;;
"Romanian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Romanian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-39 ; KeyboardLayoutNames[0]="Romanian" ;;
"Romanian - Standard" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Romanian-Standard" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-38 ; KeyboardLayoutNames[0]="Romanian-Standard" ;;
"Russian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Russian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19456 ; KeyboardLayoutNames[0]="Russian" ;;
"Russian - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.RussianWin" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19458 ; KeyboardLayoutNames[0]="RussianWin" ;;
"Russian - Phonetic" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Russian-Phonetic" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19457 ; KeyboardLayoutNames[0]="Russian - Phonetic" ;;
"Sami - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Sami-PC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-1201 ; KeyboardLayoutNames[0]="Sami-PC" ;;
"Serbian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Serbian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19521 ; KeyboardLayoutNames[0]="Serbian" ;;
"Serbian - Latin" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Serbian-Latin" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-19521 ; KeyboardLayoutNames[0]="Serbian-Latin" ;;
"Slovak" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Slovak" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30777 ; KeyboardLayoutNames[0]="Slovak" ;;
"Slovak - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Slovak-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=30779 ; KeyboardLayoutNames[0]="Slovak-QWERTY" ;;
"Slovenian" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Slovenian" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-66 ; KeyboardLayoutNames[0]="Slovenian" ;;
"Spanish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Spanish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=8 ; KeyboardLayoutNames[0]="Spanish" ;;
"Spanish - ISO" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Spanish-ISO" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=87 ; KeyboardLayoutNames[0]="Spanish - ISO" ;;
"Swedish" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Swedish" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=224 ; KeyboardLayoutNames[0]="Swedish" ;;
"Swedish - Pro" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Swedish-Pro" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=7 ; KeyboardLayoutNames[0]="Swedish - Pro" ;;
"Swedish Sami - PC" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.SwedishSami-PC" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-15 ; KeyboardLayoutNames[0]="SwedishSami-PC" ;;
"Swiss French" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.SwissFrench" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=18 ; KeyboardLayoutNames[0]="Swiss French" ;;
"Swiss German" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.SwissGerman" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=19 ; KeyboardLayoutNames[0]="Swiss German" ;;
"Tamil Input Method" ) TypingStyles=( "Anjal" "Tamil99" ) ; AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.US" ; AppleDefaultAsciiInputSource=0 ;;
"Thai" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Thai" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26624 ; KeyboardLayoutNames[0]="Thai" ;;
"Thai - PattaChote" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Thai-PattaChote" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26626 ; KeyboardLayoutNames[0]="Thai-PattaChote" ;;
"Tibetan - Otani" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.TibetanOtaniUS" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26628 ; KeyboardLayoutNames[0]="TibetanOtaniUS" ;;
"Tibetan - QWERTY" ) AppleCurrentKeyboardLayoutInputSourceID="com.apple.keylayout.Tibetan-QWERTY" ; AppleDefaultAsciiInputSource=0 ; AppleSelectedInputSources=0 ; InputSourceKinds[0]="Keyboard Layout" ; KeyboardLayoutIDs[0]=-26625 ; KeyboardLayoutNames[0]="Tibetan-QWERTY" ;;