Атрибут xml:lang

By Андрей

From Opera 15 onward, Opera 11 & 12’s extension format is no longer supported, and instead, we’ve switched to Chromium’s extension model. Check out our new documentation for developing extensions for Opera 15 and higher and start building your own extensions.

Описание

Атрибут xml:lang указывает язык текста элемента. Атрибут является необязательным и его следует применять лишь с целью локализации расширения.

Пример

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="http://example.com/myExtension" version="1.0">
 ...
  <span xml:lang="en">
    TODO: Add some cool features.
  </span>
  <span xml:lang="ja">
    TODO: クールな機能を追加する。
  </span>
  ...
</widget>

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

No new comments accepted.