Change AssemblyName Based on Localized CFBundleDisplayName with Xamarin.Mac RRS feed

  • Question

  • User131166 posted


    I coded a Xamarin.Mac app. I localized my app bundle name and bundle display name via InfoPlist.strings inside of "lproj" folders with the help of xCode.

    Localized bundle name is visible on menu via app name now:

    However, unlike Xamarin.iOS, Xamarin.Mac gets app Dock name from Assembly Name in Project options, not from "CFBundleDisplayName" :

    So, my app name on the dock icon could not response the localization settings, it stays unchanged.

    So the important thing is: How can I localize the "Assembly Name" in app options for Visual Studio Mac ? Thanks a lot.

    Friday, November 15, 2019 2:48 PM

All replies

  • User35201 posted

    You can not localize the assembly name, as that would require you to have different launchers for each langauge.

    If you have tokens in Info.plist file and in the InfoPlist.strings with CFBundleDisplayName, that should work. We aren't doing anything special inside Xamarin.Mac with application names. Consider filing an issue.

    Monday, November 18, 2019 1:39 PM
  • User131166 posted

    Thanks ChrisHamons. I open an issue for that at here: https://github.com/xamarin/xamarin-macios/issues/7466

    I have tokens in Info.plist file and in the InfoPlist.strings with CFBundleDisplayName of course :smile:


          Created by Berk Babadogan on 13.11.2019.
        /* Localized Bundle Display Name */
        "CFBundleDisplayName" = "Ankara Üniversitesi Radyosu";
        "CFBundleName" = "Ankara Üniversitesi Radyosu";


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <string>2019 Berk Babadogan</string>
    Monday, November 18, 2019 4:07 PM