Creating Applications with Mozilla-Chapter 11. Localization-P3

Tham khảo tài liệu 'creating applications with mozilla-chapter 11. localization-p3', công nghệ thông tin, quản trị web phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 11. Localization-P3 . Localizable Resources in HTML As a web application Mozilla permits seamless integration of web content both local and remote in many formats. If you have verbose text that just needs to be displayed somewhere in the framework of your application HTML or XML content may be ideal for this purpose. Through the use of XUL content widgets such as iframe and browser you have ready-made frames to slot your content into iframe src flex 1 Therefore a simple modification of with a local language leaves the main application untouched. Some other uses of HTML or XML content include an About dialog page Help pages a wizard interface or a getting started introduction page. . Localizable Resources in RDF Strings to be converted in RDF content can take more than one form. You can use entities directly in your RDF file or have the text inline in your node descriptions. Whichever method you choose you must ensure that the file is installed in the right place in the tree and registered correctly for the application to pick up on it. As an XML markup RDF can handle inline entity definitions. These entity definitions have been covered thoroughly in the chapter so far. Example 11- 8 looks at localizable strings contained directly in RDF node descriptions. This example is taken from the Help table of contents in the Mozilla tree. Example 11-8. RDF Description node with localizable text rdf Description about nav-doc nc subheadings rdf Seq rdf li rdf Description ID nav-doc-language nc name Language and Translation Services nc link chrome help locale nav_lan guage rdf li rdf Seq nc subheadings rdf Description The text in the nc name attribute is the text that will be changed. Note that this issue of text in RDF is separate from the topic of using RDF as the mechanism in the chrome registry to register your locale and set up a switching mechanism. This difference is addressed in the next section. . The Chrome .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.