Reputation: 94
I have a XAP file but it has no language specified and the App is in Dutch. The XAP is built by PhoneGap Build.
I downloaded the xap file, unzipped it and changed the WMAppManifest.xml file.
I've added, to the specifications:
<DefaultLanguage xmlns="" code="nl-NL" />
Just like it says: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769509(v=vs.105).aspx#BKMK_DEFAULTLANGUAGEandLANGUAGESelements
But after uploading the xap file it get turned down because DefaultLanguage isn't allowed there.
EDITED; Added the complete file:
<?xml version='1.0' encoding='UTF-8'?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<DefaultLanguage xmlns="" code="nl-NL" />
<App ProductID="{01bc12cd-49ae-bffa-004d-858ebc07ee7c}" RuntimeType="Silverlight" Title="Gaandeweg" Version="1.0.2.0" Publisher="Bart Lamot" xmlns="" Genre="apps.normal" Author="Bart Lamot" Description="Dit...">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_CONTACTS"/>
<Capability Name="ID_CAP_IDENTITY_DEVICE"/>
<Capability Name="ID_CAP_ISV_CAMERA"/>
<Capability Name="ID_CAP_LOCATION"/>
<Capability Name="ID_CAP_MICROPHONE"/>
<Capability Name="ID_CAP_NETWORKING"/>
<Capability Name="ID_HW_FRONTCAMERA"/>
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
</Capabilities>
<Tasks>
<DefaultTask NavigationPage="MainPage.xaml" Name="_default"/>
</Tasks>
<Tokens>
<PrimaryToken TaskName="_default" TokenID="Cordova_1._5._0_Starter1Token">
<TemplateType5>
<BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
<Count>0</Count>
<Title>Cordova_1._5._0_Starter1</Title>
</TemplateType5>
</PrimaryToken>
</Tokens>
</App>
</Deployment>
<!-- WPSDK Version 7.1.7720.0 -->
Upvotes: 0
Views: 2189
Reputation: 16826
Since you are working on a Windows Phone 7.1 application, DefaultLanguage
element is not supported in WMAppManifest.xml. Instead, you need to use [assembly: NeutralResourcesLanguageAttribute("en-US")]
in AssemblyInfo.cs.
Look at the XML namespace - for 7.1 you have http://schemas.microsoft.com/windowsphone/2009/deployment
. For DefaultLanguage to work, you need http://schemas.microsoft.com/windowsphone/2012/deployment
(Windows Phone 8 apps).
Upvotes: 2