From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pl/mozilla/tech/xul/stringbundle/index.html | 177 ++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 files/pl/mozilla/tech/xul/stringbundle/index.html (limited to 'files/pl/mozilla/tech/xul/stringbundle') diff --git a/files/pl/mozilla/tech/xul/stringbundle/index.html b/files/pl/mozilla/tech/xul/stringbundle/index.html new file mode 100644 index 0000000000..8fae486ca7 --- /dev/null +++ b/files/pl/mozilla/tech/xul/stringbundle/index.html @@ -0,0 +1,177 @@ +--- +title: stringbundle +slug: Mozilla/Tech/XUL/stringbundle +tags: + - Dokumentacja_XUL + - Elementy_XUL +translation_of: Archive/Mozilla/XUL/stringbundle +--- +
+ « Dokumentacja XUL [ + Przykłady | + Atrybuty | + Własności | + Metody | + Podobne ] +

Element, który może być stosowany do wczytania zasobów zlokalizowanych z plików własności. Stringbundles powinien być umieszczony wewnątrz elementu stringbundleset. +

Plik własności jest listą par własności klucz-wartość (każda oddzielona linią). Klucz i wartość są oddzielone znakiem równości. Na przykład, następująca definicja dwóch własności:

+
message.displayError=An error occured trying to display this message
+message.nameAlreadyUsed=The name %s is already being used by another account.
+
+

Dodatkowe informacje są dostępne w kursie XUL. +

+
Atrybuty
src +
+
Własności
appLocale, src, stringBundle, strings +
+
Metody
getFormattedString, getString +
+

Przykłady

+

(potrzebny przykład) +

+

Atrybuty

+

+ +
+
+ src
+
+ Typ: URL
+
+ Adres URL zawartości do wyświetlenia w elemencie.
+
+ +

 

+
+ + + + + + +

Dziedziczy z elementu XUL
+align, +allowevents, +allownegativeassertions, +class, +coalesceduplicatearcs, +collapsed, +container, +containment, +context, +contextmenu, +datasources, +dir, +empty, +equalsize, +flags, +flex, +height, +hidden, +id, +insertafter, +insertbefore, +left, +maxheight, +maxwidth, +menu, +minheight, +minwidth, +mousethrough, +observes, +ordinal, +orient, +pack, +persist, +popup, +position, +preference-editable, +querytype, +ref, +removeelement, +sortDirection, +sortResource, +sortResource2, +statustext, +style, +template, +tooltip, +tooltiptext, +top, +uri, +wait-cursor, +width

+
+

+

Własności

+

+

+
+
+ appLocale
+
+ Typ: nsILocale
+
+ Zwraca obiekt XPCOM, który przechowuje informacje o lokalnych użytkownikach. To jest obiekt, który implementuje nsILocale.
+
+ + +
+
+
+
+ src
+
+ Typ: + + URL +
+
+ Pobiera i ustawia wartość atrybutu src.
+
+
+
+
+ stringBundle
+
+ Typ: + + nsIStringBundle +
+
+ Zwraca łańcuch znaków obiekt paczki XPCOM, który implementuje nsIStringBundle.
+
+
+
+
+ strings
+
+ Typ: + + nsISimpleEnumerator +
+
+ Wyliczenie wszystkich ciągów w paczce ciągów. Zawiera obiekty nsIPropertyElement.
+
+

+

Metody

+

+

+
+ getString( key )
+
+ Zwraca typ: + + string +
+
+ Zwraca łańcuch znaków z daną nazwą key z łańcucha znaków paczki (boundle).
+
+ +

Dziedziczy z elementu XUL
blur, click, doCommand, focus, getElementsByAttribute

Dziedziczy z elementu DOM
addEventListener(), appendChild(), dispatchEvent(), getAttribute(), getAttributeNode(), getAttributeNodeNS(), getAttributeNS(), getElementsByTagName(), getElementsByTagNameNS(), hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isSupported(), normalize(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS()

+

+

Podobne

+

TBD +

+
+
-- cgit v1.2.3-54-g00ecf