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')}} />
CSS禅意花园
[美] Dave Shea、Molly E. Holzschlag / 陈黎夫、山崺颋 / 人民邮电出版社 / 2007-6 / 49.00元
这本书的作者是世界著名的网站设计师,书中的范例来自网站设计领域最著名的网站——CSS Zen Garden(CSS禅意花园)。全书分为两个主要部分。第1章为第一部分,讨论网站“CSS禅意花同”及其最基本的主题,包含正确的标记结构和灵活性规划等。第二部分包括6章,占据了书中的大部分篇幅。 每章剖析“CSS禅意花园”收录的6件设计作品,这些作品围绕一个主要的设计概念展开,如文字的使用等。通过探索......一起来看看 《CSS禅意花园》 这本书的介绍吧!
