NativeScript 国际化插件 NativeLang
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: Android
- 软件首页: https://github.com/alejonext/NativeLang
软件介绍
NativeLang 是 NativeScript 的国际化插件。
创建文件:
├── app <----------------- run npm install from here │ ├── App_Resources │ │ └── ... │ ├── tns_modules │ │ └── ... │ ├── app.css │ ├── app.js │ ├── main-page.js │ ├── main-page.xml │ ├── main-view-model.js │ ├── node_modules │ │ └── nativelang <-- The install will place the module's code here │ │ └── ... │ └── package.json <---- The install will register “nativelang" as a dependency here └── platforms ├── android │ └── res │ ├── values <---------- English │ | └── strings.xml │ ├── values-es <------- Spanish │ | └── strings.xml │ └── values-fr <------- Fransih │ └── strings.xml └── ios
文件:
<!-- platforms/android/res/values/strings.xml --> <?xml version="1.0" encoding="UTF-8"?> <resources> <string name="app_name" formatted="false">Example 1</string> <string name="other" formatted="false">Other</string> ... More strings </resources> <!-- platforms/android/res/values-es/strings.xml --> <?xml version="1.0" encoding="UTF-8"?> <resources> <string name="app_name" formatted="false">Ejemplo 1</string> <string name="other" formatted="false">Otro</string> ... Y mas cadenas </resources>
使用:
app/app.js
GLOBAL.L = require( "./node_modules/nativelang/lib" )();
xml
<Label text={{ L('other')}} />
iOS Web应用开发
皮基 (Andrea Picchi) / 罗晴明 / 人民邮电出版社 / 2013-8-1 / CNY 79.00
本书介绍了如何使用Web标准技术来为iPhone和iPad制作Web应用。书中利用最前沿的Web和移动技术,演示了如何使用HTML5来完成繁重的基础工作,如何使用CSS3来制作外观,以及如何使用JavaScript来为移动网站或Web应用添加程序逻辑。 通过阅读本书,读者可以掌握面向移动的项目的开发流程。作者逐章递进,引导读者了解iOS设计与开发的各个步骤。读者可以学习到如下知识: 设......一起来看看 《iOS Web应用开发》 这本书的介绍吧!
