How can insert resurce string file in appcelerator alloy - appcelerator

I want to build my appcelerator application with multi-language.
So I have created one string.xml file and an "en" folder under i18n.
In my controller.js to get the text from this file, I use the following:
L(lang+"login_title")
But when I try to build my application all folders and files under i18n folder are automatically deleted.
What can I do?

Alloy 1.8 relocates i18n folder into app please read this post: relocates-i18n

Related

macOS app help document file folder disappeared

I am trying to build the help file for a macOS app.
I imported .help folder to resources
the content of title file index.html is
items in info.plist file related help file
built my app content resource folder
it looks like the builder only keeps the index.html and removes the folder .help
your comment welcome
You might try removing the .help folder and adding it again. It should appear as a single object (bundle), and not as folder (and definitely not as a project folder which are just containers for assets, like a loose index.html file).
What you want is the the entire .help folder as a single asset that gets copied to your finished application bundle. It should look like an opaque item in Xcode:
Then in your application's build phase setting, the entire .help folder should be copied, as a single entity, to the app's resources:
If you have individual .html or other help files included in any of the build phases, or selected as members of a target, remove them.
I imported .help folder to resources
Incorrectly. You imported it as a group. You should have imported it as a folder reference.

how to change android package name on phonegap build website

i am trying to upload my apk on google play store but i am seeing this error: You need to use a different package name because com.phonegap.www is used by a pre-installed application. To upload a pre-installed application, please contact Google Play Developer Support. Learn more.
You need to use a different package name because "com.phonegap.www" already exists in Google Play. i just export my project as html from anyflip book as maker i didn't follow the phonegap normal build, please tell me how to change my package nameenter image description here
Change it in your config file before you upload anything.
In the root folder you have a file called config.xml. The second line of that file starts with <widget and it has an attribute id="com.phonegap.www". Change it to your own domain name for the app you're building, or to any value that should be globally unique. Then zip your folder, upload it to PhoneGap and try again.

Xamarin Component Submission - Unable to extract XPKG archive on Windows

I am trying to create a xamarin XPKG for component submission as described here.
In Xamarin components store, Xamarin has provided a link to download .exe file for creating the Xamarin package which has to be extracted.
But, for some reason, I am unable to extract that file after downloading. It is not a zip file. What am I doing wrong?
The issue was that the proper file extension wasn't added when downloading the archive to Windows. The solution is to simply re-name the file and add .zip at the end.

Building CMS on top of CodeIgniter

Is it possible to build a CMS on top of CodeIgniter where the CMS files is separate from customization files? What I mean is, like CodeIgniter by default comes with 2 main folder, application and system folder. So, all your own files is placed in application folder so that next time you can easily update CodeIgniter by overriding the system folder and everything will still working fine.
So, can I store my files at custom folder?
E.g.:
system folder - codeigniter
my_system folder - CMS
application folder - All customization on each individual projects
You may use CodeIgniter's native application "Package", you can find the doc here : http://ellislab.com/codeigniter/user-guide/libraries/loader.html
You can store your file where you want expect system folder as you written. best approach is make folder on root named public or you want and put your file.
system folder contains everything codeigniter needs. application folder contains your specific code - it defaults to showing the welcome page.
consider naming your system folder with the codeigniter version number and date
makes it easier when you are upgrading
and you can easily switch to different versions directly from the index.php page by editing the file path to the folders

Download, save and show images with sencha touch and phonegap

I' have to download some images from a server folder and save in my sencha application to show them offline. I've found a phonegap plugin that download and save files in document folder of the app. Once I saved the images how can I show them in my sencha app?
You can probably have a store with the images mapping their paths and use those with the phonegap File Api.
For opening the file in device,you can use
window.plugins.fileOpener.open("file:///path_to file.jpg")
For more details refer to https://github.com/pwlin/cordova-plugin-file-opener2

Resources