Localize App Title for Windows Phone 8 App - visual-studio-2012

I try to localize my app title for a windows phone 8 app. I used following documentation from microsoft:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967550(v=vs.105).aspx#Loc_Download
I also created mui files for each language (de-DE, en-US, en-GB). On the root folder of my windows phone 8 project I add these files:
AppResLib.dll
AppResLib.dll.0407.mui
AppResLib.dll.0409.mui
AppResLib.dll.0809.mui
For each file I set the built action to content.
When I start the app and change the language of my phone, always the default language app title is shown. When I upload my xap file to a beta app in marktplace I get following validation errors:
2002: The localized title for en-gb is missing or empty. Update your
file and then try again.
2002: The localized title for en-us is
missing or empty. Update your file and then try again.
2002: The
localized title for de-DE is missing or empty. Update your file and
then try again.
2002: The localized title for de-de is missing or
empty. Update your file and then try again.
2000: Can’t open resource file: AppResLib.
Do you have any problems with localizate app title? Do everyone know, what I made wrong?
I´m happy for every info.
Thanks!

Looks like the AppTitle entry may be missing in AppResLib.rc file? Or Caption property value is not set?
One other thing to note, is that you need to update your title property in WMAppManifest.xml to something like
Title="#AppResLib.dll,-100"
and
<Title>#AppResLib.dll,-101</Title>
, where 100 and 101 are the values you use in AppResLib.rc.

Related

How to Embed text file in Adobe Flash for Adobe Air application

I've been searching for several days now a way to embed a data file, which is in text format, inside an app I'm trying to build in Adobe Flash for Adobe Air (for Android for now). The text file has a lot of data I want to use in my app, so I want to embed it inside the app, so when the app launches I can use it.
I've been reading about how to read and write text file in Flash and Adobe Air, but couldn't find a way to add this file to be part of my app. The Adobe Flash Library that is used for saving various assert (File > Import > Import to Library), doesn't support text file (only image, sound, video, and other graphic formats). Is there an other way to add a different (i.e. Text) file to the app?
As a last resort, and to help me proceed with the implementation, I tried manually copying the file to the Android "Documents" folder, and reading it from the app using this:
var myFile:File = File.documentsDirectory.resolvePath("MyText.txt");
var fileStream:FileStream = new FileStream();
fileStream.open(myFile, FileMode.READ);
var fileContents:String = fileStream.readUTFBytes(fileStream.bytesAvailable);
This worked on the PC when testing, but on Android it couldn't find my text file. I placed it in "My Files > Internal storage > Documents" (on Samsung phone). Is there a different "Documents" folder I should use to be found by documentsDirectory.resolvePath() function...
Anyway, as said, this was last resort solution, and much less preferred, because I don't want the users of my app to need to copy internal data files for the app to work, it should be part of the APK... So embedding the text file somehow inside the app is a much better solution, but I couldn't find a way to do that.
Thanks Organis for your answer, I didn't yet try it but I guess it should work.
I found another answer few hours ago, and will share it now, in case someone else encounters this problem.
You could embed a file from the "Publish Settings" dialog, then going into "AIR for Android Setting" (small wrench icon). On the "AIR for Android Setting" under "General" tab, at the bottom there is "Include files". You can click the [+] icon and add any file you want.
From the code you can access this file using standard file read method, using URLLoader & URLRequest functions and Event.COMPLETE to get the data when the file finishes loading.
see screenshot here

Opencart 2.0.3.1 Header Problems

So, I have modified the header.tpl file in OpenCart 2.0.3.1 by removing the wishlist, linking the telephone# as a click to call and added a custom class called "great-barbecue". It worked in one version that I earlier installed. When that whole thing went sideways, I started from scratch and now the wishlist still shows up, the phone# and icon are not "click to call" and my custom class is not appearing at all? Here is a link to the code I have for header.tpl in catalog/view/theme/default/template/common header template
My site chestersbbq.com/Groton
When I copy and paste the code I get an error telling me to indent all code with 4 spaces and I really don't have time for that, hence the link. I have tried it in all browsers and when I look at the source code for the page the wishlist is still there, the phone still links to contact and my custom html is not there. I don't know how to fix this.
nice site, I have found this in the open cart forums, it looks like you have to remove all instances of the wish list. Try this and let me know how it goes.
http://forum.opencart.com/viewtopic.php?t=32955

Page Title gets Duplicated in MEAN.io

Any idea why my page title is displaying twice? I am running a vanilla mean.io on openshift wih minor modifications other than basic modifications to a few values from default to custom (app name, meta tags such as keywords and description). Thanks in advance.
/nodejs/packages/system/server/views/includes/head.html:
6: {{appName}} - {{title}}
FYI - I simply deleted "{{appName}} -" from line 6 of
/nodejs/packages/system/server/views/includes/head.html
It appears that the tag is populated with the value of line 40 from
/nodejs/config/env/production.js:

Configuration required to get Sencha ExtJS TreeGrid example working

Can someone help explain what configuration I'm missing to get the Sencha Ext JS 4 framework TreeGrid sample working?
Here's what I've done so far:
Downloads:
http://php.iis.net > click "PHP on Windows" > install "PHP53.exe"
http://www.sencha.com > click "Products" > click "EXT JS 4" > extract zip file code and place into C:\source\ext-4.0.7-gpl
Turned on IIS 7 in Windows 7 Programs and Features
Created IIS 7 website in Windows 7:
- set physical path of website to "C:\source\ext-4.0.7-gpl" (setting root of site to *\docs seemed to break some of the examples)
- I didn't set any special bindings (just port 80) .. localhost is implied without setting it
To try and view the example, I did the following:
- navigate to http://localhost > click "View the Examples" > Scroll down to "Trees" section
- notice that the "Drag and Drop Reordering", "Multiple Trees", and "XML Tree" work in this section when you have PHP installed, but the "Tree Grid" and "Check Tree" do not. I'm mostly interested in the "TreeGrid".
What am I missing in my configuration or setup?
=========================================================
2/13/2012 #10:51pm
I thought I had this one solved, but apparently not. I left this project be for awhile, so I didn't confirm the answer. The treegrid.json file is definitely there, and it matches the file on the sencha.com extjs tree grid example json file.
Here is the URL to my tree grid example (copied from Sencha's example):
http://24.177.214.232:8888/examples/tree/treegrid.html
Here is the URL to the Sencha.com tree grid example:
http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tree/treegrid.html
if you inspect treegrid.js you'll see that it requires treegrid.json (JSON-formatted data file). when you visit http://24.177.214.232:8888/examples/tree/treegrid.json (which is the path where treegrid.js expects treegrid.json) you'll see, that there is no such file.
fix the path or create a data file : )
EDIT
you can find proper JSON here: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tree/treegrid.json
Apart from the other configuration described, I had to go into IIS and do the following before the Tree Grid worked:
click on the new site
click on MIME types
right click in open space > Add > File name extension: "json" ... MIME Type: "application/x-javascript"

I Need Help Modifying CKEditor's Default Image Property Paths

I am using CKEditor with Drupal 6.19. I have tried my installation with both CKFinder and IMCE. When an image is inserted from the image browser into the Image Properties window, CKEditor gets a url similar to:
/sites/example.com/files/images/my_image.jpg
I want CKEditor to simply have:
/files/images/my_image.jpg
file structure of my site is this:
/sites/all/modules/ckeditor/ckeditor
/sites/all/modules/ckeditor/ckfinder
/sites/all/modules/imce
/sites/example.com/files/images/my_mages.jpg
Is this url passed from the file browser, or a default in CKEditor?
If it is CKEditor, where do I find the code to change this, or is it even possible?
The URL suggested /sites/example.com/files/images/my_image.jpg is the correct path. Thats because all files are uploaded to the /sites/example.com/files/ folder. The behavior is correct and should not be modified. (Unless I've not understood your problem correctly or there is a very good reason why you want to store your images under DRUPAL_ROOT/files/images)

Resources