14:04 May 26, 2012 |
English to Romanian translations [PRO] Tech/Engineering - Computers (general) / limbaje de programare | |||||||
---|---|---|---|---|---|---|---|
|
| ||||||
| Selected response from: Dan Dascalescu United States Local time: 17:46 | ||||||
Grading comment
|
Summary of answers provided | ||||
---|---|---|---|---|
5 | mai multe etichete "extends" |
| ||
4 -1 | mai multe repere „extend” |
|
Discussion entries: 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”). |
| |
Login to enter a peer comment (or grade) |
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 |
| |
Grading comment
| ||
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.