Home Forums Software InstaDMG Changing localization of an image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #374312
    blake
    Participant

    Hey People,
    I have a need to change the localization of an instadmg created image after it’s been built. I see that in the instadmg script it sets an iso code.

    # Default ISO code for default install language. Script default is English.
    ISO_CODE=”en”

    I’m assuming that this is used by the installer to select which bit’s are installed. Can anybody confirm how this is used exactly?

    Also If anybody knows all the things to change an OS image from English to another language please share.. I’m writing a script that creates a user and sets the language of the OS on first boot. Currently doing some tests with the following commands but I’m not convinced thats all I need.

    changing from english to japanese
    defaults write NSGlobalDomain AppleLanguages “(ja, en, fr, de, es, it, nl, sv, nb, da, fi, pt, zh-Hans, zh-Hant, ko)”
    defaults write NSGlobalDomain AppleLocale “ja_JP”

    Thanks,
    Blake

    #374330
    knowmad
    Participant

    check out this thread:
    [url]https://www.afp548.com/forum/viewtopic.php?showtopic=22278[/url]

    #374345
    blake
    Participant

    Here is an update on the info I have currently..

    The InstaDMG variable I assume is passed to the installer command and is really only used during the package installation process.

    Localizing the image itself involves the user account and some .plists that normally get configured by setup. The script I’m working replaces the user creation packages because I want to ditto over the localized user template. I’m also setting these variables..

    /usr/bin/defaults write /Library/Preferences/.GlobalPreferences AppleLanguages “(ja, en, fr, de, es, it, nl, sv, nb, da, fi, pt, zh-Hans, zh-Hant, ko)”
    /usr/bin/defaults write /Library/Preferences/.GlobalPreferences AppleLocale “ja_JP”
    /usr/bin/defaults write /Library/Preferences/.GlobalPreferences Country “ja_JP”

    Blake

    #374494
    trondah
    Participant

    I can’t seem to get localization right, very little information is available on this. Do you have success with changing those variables in the system wide .GlobalPreferences?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed