Change AssemblyName Based on Localized CFBundleDisplayName with Xamarin.Mac - xamarin

Update:
Now it's an approved bug fo Xamarin.Mac. You can contribute from here:
https://github.com/xamarin/xamarin-macios/issues/7466
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.

Related

Xcode Widget Extension Cannot Preview in WatchOS

I am adding a Widget Extension (named Complication) to my WatchOS app. When creating the widget, I am not able to select an application in the field "Embed in Application". The app name shows up, but I can only select "None".
When I want to preview the widget, the following error message comes up:
AppExtensionNeedsContainingAppError:
ComplicationExtension.appex must be in an app
The app extension "ComplicationExtension.appex" needs to be embedded
in an app in order to use previews
What can I do to get it to work? I added the app in the Target Membership but that does not work. What am I missing?

Trying to change the name that appears under the launcher icon on my iOS phone

I have a XF application. I thought I had changed everything but the name that appears on the phone under the app icon when I try on my phone locally is still an old name.
When running Xamarin on a Mac OS, does anyone know where to go to change this name for the iOS app?
In Info.plist change the value for keys CFBundleName & CFBundleDisplayName.
<key>CFBundleDisplayName</key>
<string>MY_APP_NAME</string>
<key>CFBundleName</key>
<string>MY_APP_NAME</string>
Using Visual Studio 17.0.4 I just double clicked on the Info.plist in the Solution Explorer. On the Application tab there is an Application Name field where you can change the name that appears under the icon. This ends up changing the MY_APP_NAME under the CFBundleDisplayName.

How to change Xamarin UWP App Name

I have a Xamarin.Forms application that builds to Android, iOS, and UWP. On iOS the App Name shows up as just "AppName" under the icon. On UWP, however, the app name is "AppName.UWP".
How do I remove the .UWP in my app name?
I have tried editing the Assembly name, the namespace, etc, and none of it seems to be working.
There should be a "Package.appxmanifest" file in your UWP project. Open that up and you should see "Display name", "Short name", and "Package display name" among other settings. Hovering over the setting text will tell you what they each do. This Stack Overflow answer has some more information.
Application > Display name: Specifies the full name of the app.
Visual Assets > Short name: Specifies an abbreviated name for the app.
Packaging > Package display name: Specifies the app name that appears in the Store. When the package is uploaded to the Store, this name is replaced.
You can find all of the details on Microsoft's App package manifest page.

Localizing the app name on iOS x OSX

I have this app being created for iPhone, iPad and OSX.
In order to localize my app name, I have added the key "Application Has localized display name" key, like suggested by Apple, to my info.plist file.
I have added the InfoPlist.strings file and localized it to the several languages this app will support.
My problem is this: the app, a course, has to include "for Photoshop" at the end, something like "Course for Photoshop" on the OSX version but because iOS will truncate such a long file name, the name for iOS will be shorter.
My question is this:
can I add two InfoPlist.strings to the project? one for OSX and one for iOS?
I did all this and the name of the app inside Xcode Products (DerivedData/...bla) do not changes when I launch the app in other languages using the language argument. The name is always the english one. How do I force Xcode to build the .app name on products with the localized names?
#1. I haven't tried it but you could create another target. Each target can have individual info.plist files. Then you compile one version for iOS another version for OSX as I presume you have to do anyway.
#2. Have you tried to do a project->clean? And maybe uninstall the app and then install it again with xcode.

how to localize app title in mac pkg

I'm creating an app to run on Macbooks. I have successfully localized my app title using the Info.plist and Infoplist.strings so when it is installed, the localized title is displayed correctly in the Applications folder, and when I run the app, the localized title appears correctly in the menu bar.
However, when I run my package to install my app, everything appears to be localized automatically in the installer EXCEPT my app title. How can I get my app title to be localized in the installer?

Resources