From 800ef650ca0f9b29dad9142fb322e18196770a23 Mon Sep 17 00:00:00 2001 From: animyrch <42338841+animyrch@users.noreply.github.com> Date: Sat, 18 May 2019 10:16:04 +0200 Subject: [PATCH 1/2] update README removed dot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e5befc81e..0357b09c1c 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Spanish translation is maintained by [1950Labs](https://1950labs.com) and Vue.js ### Turkish -* Turkish translation is maintainted by [animyrch](http://blog.traductionturcfrancais.com). +* Turkish translation is maintainted by [animyrch](http://blog.traductionturcfrancais.com) * Translation Repo - [/animyrch/tr.vuejs.org](https://github.com/animyrch/tr.vuejs.org) ### Vietnamese From 15fcbcde115f15fcb3c9e720b7079a192bb9249a Mon Sep 17 00:00:00 2001 From: animyrch Date: Mon, 7 Oct 2019 22:54:16 +0200 Subject: [PATCH 2/2] Finalized translation of syntax.md --- src/v2/guide/syntax.md | 164 ++++++++++++++++++++--------------------- 1 file changed, 82 insertions(+), 82 deletions(-) mode change 100644 => 100755 src/v2/guide/syntax.md diff --git a/src/v2/guide/syntax.md b/src/v2/guide/syntax.md old mode 100644 new mode 100755 index afb7843152..100646ecb9 --- a/src/v2/guide/syntax.md +++ b/src/v2/guide/syntax.md @@ -1,215 +1,215 @@ --- -title: Template Syntax +title: Şablon Sentaksı type: guide order: 4 --- -Vue.js uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying Vue instance's data. All Vue.js templates are valid HTML that can be parsed by spec-compliant browsers and HTML parsers. +Vue.js, ekrana yansıtılan DOM modelini arka plandaki Vue örneğine ait verilere beyansal olarak bağlamayı sağlayan HTML tabanlı bir şablon sentaksı kullanır. Her Vue.js şablonu geçerli bir HTML kodu olup standartlara uyum gösteren tarayıcılar ve HTML derleyiciler tarafından okunabilir. -Under the hood, Vue compiles the templates into Virtual DOM render functions. Combined with the reactivity system, Vue is able to intelligently figure out the minimal number of components to re-render and apply the minimal amount of DOM manipulations when the app state changes. +Vue, şablonları kendiliğinden Sanal DOM modelleme fonksiyonları aracılığıyla derler. Otomatik tepki sisteminin de yardımıyla Vue yeniden modellenmesi gereken minimum sayıdaki bileşeni akıllıca tespit edebilir ve uygulamanın durumu değiştiğinde mümkün olan en az sayıda DOM değişikliğini gerçekleştirir. -If you are familiar with Virtual DOM concepts and prefer the raw power of JavaScript, you can also [directly write render functions](render-function.html) instead of templates, with optional JSX support. +Eğer Sanal DOM kavramlarına alışıksanız ve saf JavaScript’in gücünden yararlanmayı tercih ederseniz isteğe bağlı JSX desteği sayesinde şablona gerek olmaksızın [doğrudan modelleme fonksiyonları](render-function.html) yazabilirsiniz. -## Interpolations +## Değişken değer takibi -### Text +### Metin -The most basic form of data binding is text interpolation using the "Mustache" syntax (double curly braces): +Veri bağlamanın en basit şekli “Bıyık” sentaksı (ikişer adet süslü parantez) ile yazılan metin değerlerinin takibidir. ``` html -Message: {{ msg }} +Mesaj: {{ msg }} ``` -The mustache tag will be replaced with the value of the `msg` property on the corresponding data object. It will also be updated whenever the data object's `msg` property changes. +Bıyık etiketiyle çevrili kısım ilgili bileşenin veri nesnesi içerisinde yer alan `msg` özelliğinin değeri ile değiştirilecektir. Söz konusu veri nesnesinin `msg` özelliği ne zaman değişirse bu metin de güncellenir. -You can also perform one-time interpolations that do not update on data change by using the [v-once directive](../api/#v-once), but keep in mind this will also affect any other bindings on the same node: +Ayrıca [v-once direktifini](../api/#v-once) kullanarak değişken değerinin yalnızca bir defa kullanılmasını sağlayabilirsiniz. Fakat bu işlemin aynı HTML düğümü üzerindeki tüm bağlar üzerinde etkili olacağını unutmayın. ``` html -This will never change: {{ msg }} +Bu asla değişmeyecektir: {{ msg }} ``` -### Raw HTML +### Saf HTML -The double mustaches interprets the data as plain text, not HTML. In order to output real HTML, you will need to use the `v-html` directive: +Çift bıyık sentaksı verileri düz metin olarak yorumlar. HTML olarak değil. Gerçek HTML yazabilmek için `v-html` direktifini kullanmalısınız: ``` html -

Using mustaches: {{ rawHtml }}

-

Using v-html directive:

+

Bıyık ile kullanım: {{ safHtml }}

+

v-html direktifi ile kullanım:

``` {% raw %}
-

Using mustaches: {{ rawHtml }}

-

Using v-html directive:

+

Bıyık ile kullanım: {{ rawHtml }}

+

v-html direktifi ile kullanım:

{% endraw %} -The contents of the `span` will be replaced with the value of the `rawHtml` property, interpreted as plain HTML - data bindings are ignored. Note that you cannot use `v-html` to compose template partials, because Vue is not a string-based templating engine. Instead, components are preferred as the fundamental unit for UI reuse and composition. +`span` içerisindeki metin `rawHtml` özelliğinin değeri ile değiştirilecektir ve bu metin saf HTML olarak yorumlanacak olup veri bağları dikkate alınmayacaktır. `v-html` direktifi içerisinde dinamik şablon oluşturmak mümkün değildir zira Vue, dizgi tabanlı bir şablon motoru değildir. Bunun yerine kullanıcı arayüzü elemanlarının yeniden kullanımı ve birlikte kullanımına yönelik temel birim olarak bileşenler kullanılmaktadır. -

Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS vulnerabilities](https://en.wikipedia.org/wiki/Cross-site_scripting). Only use HTML interpolation on trusted content and **never** on user-provided content.

+

İçeriği belirsiz HTML girdilerinin internet sitenizde dinamik olarak modellenmesi son derece tehlikeli olabilir zira kolayca [XSS zafiyetleri](https://tr.wikipedia.org/wiki/Siteler_aras%C4%B1_betik_%C3%A7al%C4%B1%C5%9Ft%C4%B1rma) ile sonuçlanabilir. HTML değerlerinin takibi işlevini yalnızca güvenilir içerikler üzerinde kullanın ve **asla** kullanıcı tarafından temin edilen içerik üzerinde kullanmayın.<Çp> -### Attributes +### HTML Nitelikleri -Mustaches cannot be used inside HTML attributes. Instead, use a [v-bind directive](../api/#v-bind): +HTML nitelikleri içerisinde bıyık sentaksı kullanılamaz. Bunun yerine [v-bind direktifini](../api/#v-bind) kullanın: ``` html -

+
``` -In the case of boolean attributes, where their mere existence implies `true`, `v-bind` works a little differently. In this example: +Mevcut olmaları `true` anlamına gelen boole nitelikleri için `v-bind` biraz farklı faaliyet göstermektedir. Aşağıdaki örneğe bakalım: ``` html - + ``` -If `isButtonDisabled` has the value of `null`, `undefined`, or `false`, the `disabled` attribute will not even be included in the rendered `