Localizing Title in Windows Phone Not Changing Title? - windows-phone-8

I have created a Win32 project for it according to this document and imported Italiona, Turkish and neutral DLL's to my WP application. Neutral is running correctly but when I chnage my emulator's or phone's language, title and tile title don't change.
What can be it's reason?
Thanks.

In Windows Phone 8.1 Win-RT you do not need a dll.
Here's a set of screenshots as a step by step guide:
http://s27.postimg.org/nz4xweo7n/Localize_App_Name.png

Make sure that you've add the control you wanted to change(In your case the Title) through the AppResources.resx of the respective language.
This should help you. Refer this one too.
http://www.c-sharpcorner.com/UploadFile/manish1231/windows-phone-8-app-localization/
http://msdn.microsoft.com/library/windows/apps/ff637520(v=vs.105).aspx
Hope it helps!

Try this post, It explains in detail how to localize your app quickly and easily.
You need to add Key Value pairs to the AppResource.resx file in the Resources folder. The values should be the Strings you need to translate to other languages and the key is used to call them in XAML or in code.
Install Multilingual App Toolkit and enable it in VS.
After you added the strings to the AppResources.resx file, you can use Multilingual App Toolkit to generate the other AppResources files for each of the languages you need to translate.
Then you can use Multilingual App Toolkit editor to either translate them automatically using Bing Translate or you can do it manually.

Related

Windows Phone 8.1 - DLL reference problems when using the camera

I'm trying to create a simple camera application according to the MSDN tutorial.
All I did was installing Visual Studio 2013 Update 3 and then created a new Visual C# \ Store-Apps \ Windows Phone-Apps \ Empty App Template and added the code to my MainPage.xaml.cs.
The first problem is, that it does not find the namespaces Microsoft.Xna.Framework.Media, System.IO.IsolatedStorage and Microsoft.Devices. According to the tutorial, I have to add the Xna DLL in the "Add references" .net Tab, but unfortunately, there is no .net tab. I only have the following categories:
-Assembly (All Assemblys are already references)
-Project
-Windows Phone 8.1 (only 5 DLLs, but different ones)
After a lot of searching, I found them in 'C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\MdilXapCompilev8.0\Framework', but there is no System.IO.IsolatedStorage DLL.
When I ommit this using directive, I end up getting an error because it does not know this.Dispatcher.
Am I missing something? Do I have to install anything else?
The problem is probably that the link you have provided concerns WP8.1 Silverlight and you might have chosen WP8.1 Runtime project. Those are different API's - XNA is not supported in RunTime, you also won't find Microsoft.Devices there.
If you want to create your Camera App for WP8.1 Silverlight encure that you have chosen (Windows Phone Silverlight) template. Otherwise, of course you can also write Camera App but with different API - you may take a look here,also you may find something useful here at blog.

IsolatedStorage in MvvmCross

I am creating an Android App using MvvmCross.
Before calling some service,I want my MvxActivity should first check app's isolated
storage whether that data is present in its isolatedStorage, if it is then it should
populate its UI controls(eg. ListView,Spinner etc.)by fetching data from
isojatedstorage otherwise call service and then populate them using data received from service.
How can i achieve this?
You can use File plugin for MvvmCross
https://github.com/MvvmCross/MvvmCross/wiki/MvvmCross-plugins#file
Another option is to use that plugin for Android (i didnt dig to deep inside), but for Windows Phone i had used this solution for downloading/storing images and here is my own lib for storing any text data in the isostorage (serialization/deserailzation is included).
I use PCLStorage, it's cross platform. Just search for it on NuGet.

What does static library and dynamic link library mean to WP8?

When reading about WP8 C++ project template, I see
Windows Phone Empty Dynamic Link Library
A project for creating a native dynamic-link library for a Windows
Phone app.
Windows Phone Empty Static Library
A project for creating a native static library for a Windows Phone
app.
What are static library and dynamic link library mean to WP8?
Supposed I have my Windows library source (openssl for example), do I need to convert to WP8 static library to be consumed by WP8 apps?
Whether I use WP8 static or dynamic link library, I must wrap them in WP8 runtime component in order for my app to consume, am I right ?
At the basic level, static and dynamic libraries are the same as any other Windows environment (so see this other SO question for more clarification).
For a WP8 app you will either need to produce:
A XAML .NET/Windows Runtime hybrid app.
A DirectX C++/C project (usually a game).
For 1. you would need to wrap up either your static .lib or .dll in a WP8 Runtime component, for your .NET side to consume.
For 2. it looks like you end up building a traditional .exe. In that case you would link directly to your .lib or .dll in the normal way. (I not so familiar with this one, so may be missing some subtleties here).
In any case it's easier to link everything if you have all the source code in VS and reference the projects that build .lib or .dll you need, rather than the referencing the binaries themselves.
That way you can ensure all the code is built to target the correct runtime environment (targetting the Phone APIs, using the correct CPU architecture). Also VS should then automatically add all dependencies into your final XAP package.

Can we use wxWidget to save a webpage onto the disk

I was using wget with system call (c++) to save a webpage from internet to my HD in a program. Now I want to use wxWidget to do the same. Is there anyway I can do that and still have the generic behaviour of wget? (i.e. i give a link to a pdf file n then a pdf file is saved)
I found this link http://wiki.wxwidgets.org/Download_a_file_from_internet
but I have no idea how to convert wxString to a pdf/mp3 file according to the url entered.
Could anyone help please. I am working on an open source project for the first time and I encountered this wxWidget just now
If you are happy using wget with a system call, then why not continue to do so?
wxWidgets is a GUI framework, with a lot of extra convenience functions included. You don't HAVE to use them. You can still use whatever C++ features, utilities and packages that your are familiar with.
Here is a link to Wget for Windows
You can use wxHTTP (as described here) or use wxURL and GetInputStream()

Embed type=application in html means?

Can someone please explain what does the following line of code exactly do? If I were to build my own Unity3D that exports a similar kind of applications for the browser, what should I do? E.g. should I register somewhere the type of these applications?
<embed type="application/vnd.unity" src="webplayer.unity3d">
This line belongs to this website http://unity3d.com/gallery/live-demos/index.html#bootcamp and is usually encountered for browser applications that have to use native computer resources. These apps are not Flash nor Javascript.
If I wanted to do that for my own software what process should I follow?
If someone could shed some light on that, it would be much appreciated!
The <embed> tag is used for adding applets to a page and is specific to Mozilla browsers.
The attributes of the tag depend on what exactly is being embedded (and because of this it's not included in HTML standards). In a Java applet for example, the version of the JRE that supports the MIME type defined in type will be used to run your applet.
The src attribute indicates the location of a file located somewhere other than the webserver (for example, downloaded by the user as a plugin) that is needed to run your applet.
Essentially, the tag indicates that the embedded file is a Unity app and once the user installs the plugin, will require the Unity 3D web player to launch. The link in the first part of this post has some examples for embedding Java apps (including how to do so and support other browsers), and the process is not dissimilar for other types of apps.
This is a MIME type indeed and for someone to use it for his or her own program a new MIME type should be registered which seems from the outside a long bureaucratic procedure. The way to do that can be found here: http://www.rfc-editor.org/rfc/rfc2048.txt