multiple extends tag

Romanian translation: mai multe etichete "extends"

14:04 May 26, 2012
English to Romanian translations [PRO]
Tech/Engineering - Computers (general) / limbaje de programare
English term or phrase: multiple extends tag
Twig supports multiple inheritance so it is possible to have multiple extends tag called per rendering.


Twig supports single inheritance so it can be only one extends tag called per rendering, but it also has a support for horizontal reuse.


Twig has a support for single inheritance so it can be only one extends tag called per rendering, but no support for horizontal reuse.

Din nou sper ca varianta in romana sa ma ajute in gasirea celei corecte in franceza
Aura Cherecheș
Local time: 03:46
Romanian translation:mai multe etichete "extends"
Explanation:
`extends` e un cuvant cheie in Twig (sistemul de templates PHP - http://twig.sensiolabs.org/doc/tags/extends.html). Deci nu se traduce. Un "`extends` tag" inseamna o eticheta `extends` - traducerea standard pentru "tag" este "eticheta" - vezi Wikipedia si Microsoft.

Nota: "multiple `extends` tag" e un typo. Corect e, desigur, "multiple `extends` tags".
Selected response from:

Dan Dascalescu
United States
Local time: 17:46
Grading comment
Multumesc
4 KudoZ points were awarded for this answer



Summary of answers provided
5mai multe etichete "extends"
Dan Dascalescu
4 -1mai multe repere „extend”
Florin Ular


Discussion entries: 1





  

Answers


3 days 16 mins   confidence: Answerer confidence 4/5Answerer confidence 4/5 peer agreement (net): -1
mai multe repere „extend”


Explanation:
<extend> este un reper Java, la fel ca reperele HTML spre exemplu, de genul , care marchează începutul/sfârșitul unui segment de text căruia să i se aplice un format anume (aici „bold”).

Reperul <extend> în Java: <extend>is used to extend a dynamic tag defined in an inherited dynamic tag library.
http://commons.apache.org/jelly/libs/define/tags.html

La fel ca în cazul reperelor HTML, nu se traduc.



Nu am ales „Highest - I am sure” pentru că textul tău spune „extends” tag, dar eu nu știu să existe reperul <extends>.
Iar formularea „multiple extends tag” ar trebui să fie „multimple <extend> tags”.






--------------------------------------------------
Note added at 3 days45 mins (2012-05-29 14:49:43 GMT)
--------------------------------------------------

Greșeala mea! Există și reperul „extends”.
Deci răspunsul ar fi: Mai multe repere „extends”, și nu „extend”.

„The extends tag is the key here. It tells the template engine that this template "extends" another template. When the template system evaluates this template, first it locates the parent. The extends tag should be the first tag in the template.”
http://twig.sensiolabs.org/doc/tags/extends.html



--------------------------------------------------
Note added at 3 days46 mins (2012-05-29 14:50:40 GMT)
--------------------------------------------------

A, și nu este de Java, de aceea nu-l găseam :)

--------------------------------------------------
Note added at 3 days52 mins (2012-05-29 14:57:07 GMT)
--------------------------------------------------

Uite un exemplu de eroare în care nu sunt permise mai multe repere „extends”:

I use Symfony 2 with Twig and my question is pretty straightforward:

In a view I want to extend one of the layouts based on a variable. If the variable is false I want to extend UdoWebsiteBundle::layout.html.twig and if it's true I want to extend UdoWebsiteBundle::layout_true.html.twig.

Here is the code I tried:

{% block layout_extender %}

{% if intro == 'false' %}
{% extends 'UdoWebsiteBundle::layout.html.twig' %}
{% else %}
{% extends 'UdoWebsiteBundle::layout_true.html.twig' %}
{% endif %}

{% endblock %}

I get this error:

***Multiple extends tags*** are forbidden in "UdoWebsiteBundle:home:home.html.twig" at line 7



Answer:

Try this one:

{% extends intro == 'false'
? 'UdoWebsiteBundle::layout.html.twig'
: 'UdoWebsiteBundle::layout_true.html.twig' %}

(I se recomandă o variantă cu un singur reper „extends”).




Florin Ular
Romania
Local time: 03:46
Native speaker of: Romanian
PRO pts in category: 34

Peer comments on this answer (and responses from the answerer)
disagree  Dan Dascalescu: Traducerea standard pt. "tag" e "eticheta". Postez un raspuns imediat.
158 days
  -> Și cine, mă rog, declară ca standard această traducere? În limbaj de specialitate (studii universitare) se numesc „repere”, pentru că marchează începutul și sfârșitul unui anumit tip de formatare etc. (vezi și în franceză, „balise/marqueur”).
Login to enter a peer comment (or grade)

161 days   confidence: Answerer confidence 5/5
mai multe etichete "extends"


Explanation:
`extends` e un cuvant cheie in Twig (sistemul de templates PHP - http://twig.sensiolabs.org/doc/tags/extends.html). Deci nu se traduce. Un "`extends` tag" inseamna o eticheta `extends` - traducerea standard pentru "tag" este "eticheta" - vezi Wikipedia si Microsoft.

Nota: "multiple `extends` tag" e un typo. Corect e, desigur, "multiple `extends` tags".


    Reference: http://ro.wikipedia.org/wiki/HyperText_Markup_Language
    https://www.microsoft.com/Language/en-US/Search.aspx?sString=follower&langID=ro-ro
Dan Dascalescu
United States
Local time: 17:46
Specializes in field
Native speaker of: Native in RomanianRomanian
PRO pts in category: 8
Grading comment
Multumesc
Login to enter a peer comment (or grade)



Login or register (free and only takes a few minutes) to participate in this question.

You will also have access to many other tools and opportunities designed for those who have language-related jobs (or are passionate about them). Participation is free and the site has a strict confidentiality policy.

KudoZ™ translation help

The KudoZ network provides a framework for translators and others to assist each other with translations or explanations of terms and short phrases.


See also:
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search