Skip to content

Commit 6a8475c

Browse files
committed
components css selector, debug, process, serializer, stopwatch, templating, yaml and using components translated
1 parent bd81978 commit 6a8475c

File tree

13 files changed

+685
-684
lines changed

13 files changed

+685
-684
lines changed

components/css_selector.rst

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,91 @@
22
single: CssSelector
33
single: Components; CssSelector
44

5-
The CssSelector Component
6-
=========================
5+
Komponenta CssSelector
6+
======================
77

8-
The CssSelector component converts CSS selectors to XPath expressions.
8+
Komponenta CssSelector pretvarja CSS izbirnike v izraze XPath.
99

10-
Installation
11-
------------
10+
Namestitev
11+
----------
1212

13-
You can install the component in 2 different ways:
13+
Komponento lahko namestite na 2 različna načina:
1414

15-
* :doc:`Install it via Composer </components/using_components>` (``symfony/css-selector`` on `Packagist`_);
16-
* Use the official Git repository (https://github.com/symfony/CssSelector).
15+
* :doc:`Namestite jo preko Composer-ja </components/using_components>` (``symfony/css-selector`` na `Packagist`_);
16+
* Uporabite uradni Git repozitorij (https://github.com/symfony/CssSelector).
1717

18-
Usage
19-
-----
18+
Uporaba
19+
-------
2020

21-
Why to Use CSS selectors?
22-
~~~~~~~~~~~~~~~~~~~~~~~~~
21+
Zakaj uporabiti CSS izbirnike?
22+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2323

24-
When you're parsing an HTML or an XML document, by far the most powerful
25-
method is XPath.
24+
Ko razčlenjujete HTML ali XML dokument, je daleč najmočnejša
25+
metoda XPath.
2626

27-
XPath expressions are incredibly flexible, so there is almost always an
28-
XPath expression that will find the element you need. Unfortunately, they
29-
can also become very complicated, and the learning curve is steep. Even common
30-
operations (such as finding an element with a particular class) can require
31-
long and unwieldy expressions.
27+
Izrazi XPath so izjemno fleksibilni, zato je skoraj vedno
28+
izraz XPath, ki bo našel element, ki ga potrebujete. Na žalost
29+
lahko postanejo tudi zelo komplicirani in krivulja učenja je strma. Celo pogoste
30+
operacije (kot je najdenje elementa z določenim razredom) lahko zahteva
31+
dolge in nepriročne izraze.
3232

33-
Many developers -- particularly web developers -- are more comfortable
34-
using CSS selectors to find elements. As well as working in stylesheets,
35-
CSS selectors are used in JavaScript with the ``querySelectorAll`` function
36-
and in popular JavaScript libraries such as jQuery, Prototype and MooTools.
33+
Mnogi razvijalci -- posebno spletni razvijalci -- so bolj domači
34+
pri uporabi CSS izbirnikov, da najdejo elemente. Kot tudi delo na stilih,
35+
so CSS izbirniki uporabljeni v JavaScript-u s funkcijo ``querySelectorAll``
36+
in v popularnih JavaScript knjižnicah kot je jQuery, Prototype in MooTools.
3737

38-
CSS selectors are less powerful than XPath, but far easier to write, read
39-
and understand. Since they are less powerful, almost all CSS selectors can
40-
be converted to an XPath equivalent. This XPath expression can then be used
41-
with other functions and classes that use XPath to find elements in a
42-
document.
38+
CSS izbirniki so manj močnejši kot XPath, vendar bolj enostavni za pisanje, branje
39+
in razumevanje. Ker so manj močnejši, so lahko skoraj vsi CSS izbirniki
40+
pretvorjeni v enakovreden XPath. Ta izraz XPath je lahko potem uporabljen
41+
z drugimi funkcijami in razredi, ki uporabljajo XPath, da najdejo elemente v
42+
dokumentu.
4343

44-
The CssSelector Component
45-
~~~~~~~~~~~~~~~~~~~~~~~~~
44+
Komponenta CssSelector
45+
~~~~~~~~~~~~~~~~~~~~~~
4646

47-
The component's only goal is to convert CSS selectors to their XPath
48-
equivalents::
47+
Edini cilj komponente je pretvorba izbirnikov CSS v njihove XPath
48+
ekvivalente::
4949

5050
use Symfony\Component\CssSelector\CssSelector;
5151

5252
print CssSelector::toXPath('div.item > h4 > a');
5353

54-
This gives the following output:
54+
To da sledeči izpis:
5555

5656
.. code-block:: text
5757
5858
descendant-or-self::div[@class and contains(concat(' ',normalize-space(@class), ' '), ' item ')]/h4/a
5959
60-
You can use this expression with, for instance, :phpclass:`DOMXPath` or
61-
:phpclass:`SimpleXMLElement` to find elements in a document.
60+
Ta izraz lahko uporabite skupaj z, na primer, :phpclass:`DOMCPath` ali
61+
:phpclass:`SimpleXMLElement`, da najdete elemente v dokumentu.
6262

6363
.. tip::
6464

65-
The :method:`Crawler::filter() <Symfony\\Component\\DomCrawler\\Crawler::filter>` method
66-
uses the CssSelector component to find elements based on a CSS selector
67-
string. See the :doc:`/components/dom_crawler` for more details.
65+
Metoda :method:`Crawler::filter() <Symfony\\Component\\DomCrawler\\Crawler::filter>`
66+
uporablja komponento CssSelector, da najde elemente na osnovi niza CSS izbirnika.
67+
Glejte :doc:`/components/dom_crawler` za več podrobnosti.
6868

69-
Limitations of the CssSelector Component
70-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
Omejitve komponente CssSelector
70+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7171

72-
Not all CSS selectors can be converted to XPath equivalents.
72+
Vsi izbirniki CSS ne morejo biti pretvorjeni v XPath ekvivalente.
7373

74-
There are several CSS selectors that only make sense in the context of a
75-
web-browser.
74+
Na voljo je nekaj izbirnikov CSS, ki imajo smisel samo v kontekstu
75+
spletnega brskalnika.
7676

77-
* link-state selectors: ``:link``, ``:visited``, ``:target``
78-
* selectors based on user action: ``:hover``, ``:focus``, ``:active``
79-
* UI-state selectors: ``:invalid``, ``:indeterminate`` (however, ``:enabled``,
80-
``:disabled``, ``:checked`` and ``:unchecked`` are available)
77+
* izbirniki link-state: ``:link``, ``:visited``, ``:target``
78+
* izbirniki na osnovi akcije uporabnika: ``:hover``, ``:focus``, ``:active``
79+
* izbirniki UI-state: ``:invalid``, ``:indeterminate`` (vendar, ``:enabled``,
80+
``:disabled``, ``:checked`` in ``:unchecked`` so na voljo)
8181

82-
Pseudo-elements (``:before``, ``:after``, ``:first-line``,
83-
``:first-letter``) are not supported because they select portions of text
84-
rather than elements.
82+
Psevdo elementi (``:before``, ``:after``, ``:first-line``,
83+
``:first-letter``) niso podprti, ker izbirajo dele tekstov,
84+
namesto elementov.
8585

86-
Several pseudo-classes are not yet supported:
86+
Nekaj psevdo-razredov še ni podprtih:
8787

8888
* ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type``,
89-
``*:nth-last-of-type``, ``*:only-of-type``. (These work with an element
90-
name (e.g. ``li:first-of-type``) but not with ``*``.
89+
``*:nth-last-of-type``, ``*:only-of-type``. (Te delujejo z imenom
90+
elementa (npr. ``li:first-of-type``) vendar ne z ``*``.
9191

9292
.. _Packagist: https://packagist.org/packages/symfony/css-selector

components/debug/class_loader.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
single: Class Loader; DebugClassLoader
33
single: Debug; DebugClassLoader
44

5-
Debugging a Class Loader
6-
========================
5+
Razhroščevanje Class Loader-ja
6+
==============================
77

88
.. versionadded:: 2.4
9-
The ``DebugClassLoader`` of the Debug component was introduced in Symfony 2.4.
10-
Previously, it was located in the ClassLoader component.
9+
``DebugClassLoader`` komponente Debug je bil predstavljen v Symfony 2.4.
10+
Pred tem je bil lociran v komponenti ClassLoader.
1111

12-
The :class:`Symfony\\Component\\Debug\\DebugClassLoader` attempts to
13-
throw more helpful exceptions when a class isn't found by the registered
14-
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced
15-
with a ``DebugClassLoader`` wrapper.
12+
:class:`Symfony\\Component\\Debug\\DebugClassLoader` poskuša
13+
vreči bolj pomagalne izjeme, ko razred ni najden v registrianih
14+
avtomatskih nalagalnikih. Vsi avtomatski nalagalniki, ki implementirajo metodo ``findFile()``, so zamenjani
15+
z ovitjem ``DebugClassLoader``.
1616

17-
Using the ``DebugClassLoader`` is as easy as calling its static
18-
:method:`Symfony\\Component\\Debug\\DebugClassLoader::enable` method::
17+
Uporaba ``DebugClassLoader`` je tako enostavna kot klic njene statične
18+
metode :method:`Symfony\\Component\\Debug\\DebugClassLoader::enable`::
1919

2020
use Symfony\Component\ClassLoader\DebugClassLoader;
2121

components/debug/introduction.rst

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,73 @@
22
single: Debug
33
single: Components; Debug
44

5-
The Debug Component
6-
===================
5+
Komponenta Debug
6+
================
77

8-
The Debug component provides tools to ease debugging PHP code.
8+
Komponenta Debug ponuja orodja za poenostavitev razhroščevanja kode PHP.
99

1010
.. versionadded:: 2.3
11-
The Debug component was introduced in Symfony 2.3. Previously, the classes
12-
were located in the HttpKernel component.
11+
Komponenta Debug je bila predstavljena v Symfony 2.3. Predtem so bili razredi
12+
licirani v komponenti HttpKernel.
1313

14-
Installation
15-
------------
14+
Namestitev
15+
----------
1616

17-
You can install the component in many different ways:
17+
Komponento lahko namestite na različne načine:
1818

19-
* Use the official Git repository (https://github.com/symfony/Debug);
20-
* :doc:`Install it via Composer </components/using_components>` (``symfony/debug`` on `Packagist`_).
19+
* Uporabite uradni Git repozitorij (https://github.com/symfony/Debug);
20+
* :doc:`Namestite jo preko Composer-ja </components/using_components>` (``symfony/debug`` na `Packagist`_).
2121

22-
Usage
23-
-----
22+
Uporaba
23+
-------
2424

25-
The Debug component provides several tools to help you debug PHP code.
26-
Enabling them all is as easy as it can get::
25+
Komponenta Debug ponuja nekaj orodij, ki vam pomagajo razhroščevati kodo PHP.
26+
Omogočiti vsa je najenostavnejše kot gre::
2727

2828
use Symfony\Component\Debug\Debug;
2929

3030
Debug::enable();
3131

32-
The :method:`Symfony\\Component\\Debug\\Debug::enable` method registers an
33-
error handler, an exception handler and
34-
:doc:`a special class loader </components/debug/class_loader>`.
32+
Metoda :method:`Symfony\\Component\\Debug\\Debug::enable` registrira
33+
hendler napak, hendler izjem in
34+
:doc:`posebni nalagalnik razredov </components/debug/class_loader>`.
3535

36-
Read the following sections for more information about the different available
37-
tools.
36+
Preberite sledeče sekcije za več informacij o različnih orodjih
37+
na voljo.
3838

3939
.. caution::
4040

41-
You should never enable the debug tools in a production environment as
42-
they might disclose sensitive information to the user.
41+
Nikoli ne bi smeli omogočiti razhroščevalnih orodij v produkcijskem okolju, saj
42+
lahko razkrijejo občutljive informacije uporabniku.
4343

44-
Enabling the Error Handler
44+
Omogočanje handlerja napak
4545
--------------------------
4646

47-
The :class:`Symfony\\Component\\Debug\\ErrorHandler` class catches PHP errors
48-
and converts them to exceptions (of class :phpclass:`ErrorException` or
49-
:class:`Symfony\\Component\\Debug\\Exception\\FatalErrorException` for PHP
50-
fatal errors)::
47+
Razred :class:`Symfony\\Component\\Debug\\ErrorHandler` ujame napake PHP
48+
in jih spremeni v izjeme (razreda :phpclass:`ErrorException` ali
49+
:class:`Symfony\\Component\\Debug\\Exception\\FatalErrorException` za PHP
50+
kritične napake)::
5151

5252
use Symfony\Component\Debug\ErrorHandler;
5353

5454
ErrorHandler::register();
5555

56-
Enabling the Exception Handler
57-
------------------------------
56+
Omogočanje hendlerja izjem
57+
--------------------------
5858

59-
The :class:`Symfony\\Component\\Debug\\ExceptionHandler` class catches
60-
uncaught PHP exceptions and converts them to a nice PHP response. It is useful
61-
in debug mode to replace the default PHP/XDebug output with something prettier
62-
and more useful::
59+
Razred :class:`Symfony\\Component\\Debug\\ExceptionHandler` ujame
60+
neujete izjeme PHP in jih pretvori v lepe odzive PHP. Je uporaben
61+
v razhroščevalnem načinu za zamenjavo privzetega PHP/XDebug izpisa z nekaj lepšega
62+
in bolj uporabnega::
6363

6464
use Symfony\Component\Debug\ExceptionHandler;
6565

6666
ExceptionHandler::register();
6767

6868
.. note::
6969

70-
If the :doc:`HttpFoundation component </components/http_foundation/introduction>` is
71-
available, the handler uses a Symfony Response object; if not, it falls
72-
back to a regular PHP response.
70+
Če je :doc:`komponenta HttpFoundation </components/http_foundation/introduction>`
71+
na voljo, hendler uporabi objekt Symfony Response; drugače pade
72+
nazaj na splošni PHP odziv.
7373

7474
.. _Packagist: https://packagist.org/packages/symfony/debug

0 commit comments

Comments
 (0)