Skip to content

Commit

Permalink
update for sync with English docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgun committed Jan 15, 2024
1 parent 6b81a44 commit 1cde258
Show file tree
Hide file tree
Showing 8 changed files with 300 additions and 299 deletions.
267 changes: 138 additions & 129 deletions appendices/ini.list.xml

Large diffs are not rendered by default.

28 changes: 25 additions & 3 deletions appendices/reserved.constants.core.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 37280533a76693adac626a37ffc8daa2276400ce Maintainer: nilgun Status: ready -->
<!-- EN-Revision: 140689d2196c7ce0b7cb6a3d822915eb8df8f51f Maintainer: nilgun Status: ready -->
<sect2 xml:id="reserved.constants.core" xmlns="http://docbook.org/ns/docbook">
<title>Çekirdekte Öntanımlı Sabitler</title>
<simpara>
Expand Down Expand Up @@ -79,14 +79,36 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.zend-thread-safe">
<term>
<constant>ZEND_THREAD_SAFE</constant>
(<type>bool</type>)
</term>
<listitem>
<simpara>
Geçerli PHP derlemesinin evreler açısından güvenli olup olmadığını gösterir.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.zend-debug-build">
<term>
<constant>ZEND_DEBUG_BUILD</constant>
(<type>bool</type>)
</term>
<listitem>
<simpara>
Geçerli PHP derlemesinin hata ayıklama derlemesi olup olmadığını gösterir.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.php-zts">
<term>
<constant>PHP_ZTS</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>

Geçerli PHP derlemesinin evreler açısından güvenli olup olmadığını gösterir.
</simpara>
</listitem>
</varlistentry>
Expand All @@ -97,7 +119,7 @@
</term>
<listitem>
<simpara>

Geçerli PHP derlemesinin hata ayıklama derlemesi olup olmadığını gösterir.
</simpara>
</listitem>
</varlistentry>
Expand Down
56 changes: 50 additions & 6 deletions language-snippets.ent
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 5a14f904d231d294e2e5b4fb5d2fc4d2fd9eddee Maintainer: nilgun Status: ready -->
<!-- EN-Revision: fe11910e25e7eba44959bd347ba946ffc4d56934 Maintainer: nilgun Status: ready -->
<!-- CREDITS: cumhuronat, tpug, antimon, flarecaster -->
<!ENTITY installation.enabled.disable 'Bu eklenti öntanımlı olarak etkindir.
Derleme sırasında bu seçenekle iptal edilebilir: '>
Expand Down Expand Up @@ -691,6 +691,12 @@ Yukarıdaki örneğin PHP 8.2 çıktısı:</para>'>
<!ENTITY example.outputs.82.similar '<para xmlns="http://docbook.org/ns/docbook">
Yukarıdaki örneğin PHP 8.2 çıktısı şuna benzer:</para>'>

<!ENTITY example.outputs.83 '<para xmlns="http://docbook.org/ns/docbook">
Yukarıdaki örneğin PHP 8.3 çıktısı:</para>'>

<!ENTITY example.outputs.83.similar '<para xmlns="http://docbook.org/ns/docbook">
Yukarıdaki örneğin PHP 8.3 çıktısı şuna benzer:</para>'>

<!ENTITY example.outputs.32bit '<para xmlns="http://docbook.org/ns/docbook">
Yukarıdaki örneğin 32 bitlik makinelerdeki çıktısı:</para>'>

Expand Down Expand Up @@ -1829,6 +1835,42 @@ içerir:</para>
</books>
]]></programlisting>'>

<!ENTITY dom.errors.hierarchy.parent '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><constant>DOM_HIERARCHY_REQUEST_ERR</constant></term>
<listitem>
<para>
Raised if the parent is of a type that does not allow children of the
type of one of the passed <parameter>nodes</parameter>, or if the node to
put in is one of this node&#39;s ancestors or this node itself.
</para>
</listitem>
</varlistentry>'>

<!ENTITY dom.errors.hierarchy.self '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><constant>DOM_HIERARCHY_REQUEST_ERR</constant></term>
<listitem>
<para>
Raised if this node is of a type that does not allow children of the
type of one of the passed <parameter>nodes</parameter>, or if the node to
put in is one of this node&#39;s ancestors or this node itself.
</para>
</listitem>
</varlistentry>'>

<!ENTITY dom.errors.wrong_document '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><constant>DOM_WRONG_DOCUMENT_ERR</constant></term>
<listitem>
<para>
Raised if one of the passed <parameter>nodes</parameter> was created from a different
document than the one that created this node.
</para>
</listitem>
</varlistentry>'>

<!ENTITY dom.changelog.previous_hierarchy_exception 'Previously this threw a
<classname xmlns="http://docbook.org/ns/docbook">DOMException</classname> with code
<constant xmlns="http://docbook.org/ns/docbook">DOM_HIERARCHY_REQUEST_ERR</constant>.'>

<!-- Dom entities -->
<!ENTITY dom.parameter.options '<para xmlns="http://docbook.org/ns/docbook">
<link linkend="libxml.constants">libxml seçenek sabitleri</link>nin
Expand Down Expand Up @@ -3457,7 +3499,7 @@ uster is used.</entry>
</row>
'>
<!ENTITY mongodb.option.encryption.kmsProviders '
<row xmlns="http://docbook.org/ns/docbook">
<row xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<entry>kmsProviders</entry>
<entry><type>array</type></entry>
<entry>
Expand All @@ -3469,6 +3511,12 @@ uster is used.</entry>
<literal>"kmip"</literal>, and <literal>"local"</literal>
and at least one must be specified.
</para>
<para>
If an empty document is specified for <literal>"aws"</literal>,
<literal>"azure"</literal>, or <literal>"gcp"</literal>, the driver
will attempt to configure the provider using
<link xlink:href="&url.mongodb.specs;/blob/master/source/client-side-encryption/client-side-encryption.rst#automatic-credentials">Automatic Credentials</link>.
</para>
<para>
The format for <literal>"aws"</literal> is as follows:
</para>
Expand Down Expand Up @@ -4126,10 +4174,6 @@ local: {
tanıtıcı. <type>int</type> türünde olanın, doğrudan ilgili sistem çağrısına
aktarılabilen bir dosya tanıtıcısı olduğu varsayılır.
</para>
<para>
Hemen hemen her durumda, <type>resource</type> türünde bir dosya özkaynağı
sağlamak istenir.
</para>
</listitem>
</varlistentry>'>

Expand Down
72 changes: 62 additions & 10 deletions language/enumerations.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 16b11ae4604f3c38f9011c46137ddcbf9238154b Maintainer: nilgun Status: ready -->
<!-- EN-Revision: 0f53e8f37b7bf8513c93e5e2d67e7787f26ed693 Maintainer: nilgun Status: ready -->
<chapter xml:id="language.enumerations" xmlns="http://docbook.org/ns/docbook">
<title>Sayılamalar</title>
<sect1 xml:id="language.enumerations.overview">
Expand Down Expand Up @@ -68,12 +68,19 @@ enum Deste
<programlisting role="php">
<![CDATA[
<?php
function kart_seç(Deste $deste) { ... }
function kart_seç(Deste $deste)
{
/* ... */
}
$val = Deste::Karolar;
// OK
kart_seç($val);
// OK
kart_seç(Deste::Sinekler);
// Tür hatası: kart_seç(): Bağımsız değişken #1 ($deste) Deste türünde olmalıyken string türünde
kart_seç('Sinekler');
?>
Expand Down Expand Up @@ -220,6 +227,7 @@ enum Deste: string
<programlisting role="php">
<![CDATA[
<?php
print Deste::Sinekler->value;
// Çıktısı: "S"
?>
Expand All @@ -234,6 +242,7 @@ print Deste::Sinekler->value;
<programlisting role="php">
<![CDATA[
<?php
$deste = Deste::Sinekler;
$ref = &$deste->value;
// hata: Deste::$value özelliğine gönderim sağlanamıyor
Expand Down Expand Up @@ -279,6 +288,7 @@ $ref = &$deste->value;
<programlisting role="php">
<![CDATA[
<?php
$record = get_stuff_from_database($id);
print $record['deste'];
$deste = Deste::from($record['deste']);
Expand Down Expand Up @@ -312,6 +322,7 @@ print $deste->value;
<programlisting role="php">
<![CDATA[
<?php
interface Renkli
{
public function renk(): string;
Expand All @@ -336,7 +347,11 @@ enum Deste implements Renkli
return "Dörtgen";
}
}
function boya(Renkli $c) { ... }
function boya(Renkli $c)
{
/* ... */
}
boya(Deste::Sinekler); // çalışır
print Deste::Karolar->kesim(); // "Dörtgen"
?>
Expand All @@ -358,6 +373,7 @@ print Deste::Karolar->kesim(); // "Dörtgen"
<programlisting role="php">
<![CDATA[
<?php
interface Renkli
{
public function renk(): string;
Expand Down Expand Up @@ -406,6 +422,7 @@ enum Deste: string implements Renkli
<programlisting role="php">
<![CDATA[
<?php
interface Renkli
{
public function renk(): string;
Expand Down Expand Up @@ -458,6 +475,7 @@ final class Deste implements UnitEnum, Renkli
<programlisting role="php">
<![CDATA[
<?php
enum Boyut
{
case Küçük;
Expand Down Expand Up @@ -495,6 +513,7 @@ enum Boyut
<programlisting role="php">
<![CDATA[
<?php
enum Boyut
{
case Küçük;
Expand All @@ -520,6 +539,7 @@ enum Boyut
<programlisting role="php">
<![CDATA[
<?php
interface Renkli
{
public function renk(): string;
Expand Down Expand Up @@ -573,26 +593,46 @@ enum Deste implements Renkli
<programlisting role="php">
<![CDATA[
<?php
// Bu tamamen geçerli bir sayılama tanımıdır.
enum Direction implements ArrayAccess
{
case Up;
case Down;
public function offsetGet($val) { ... }
public function offsetExists($val) { ... }
public function offsetSet($val) { throw new Exception(); }
public function offsetUnset($val) { throw new Exception(); }
public function offsetExists($offset): bool
{
return false;
}
public function offsetGet($offset): mixed
{
return null;
}
public function offsetSet($offset, $value): void
{
throw new Exception();
}
public function offsetUnset($offset): void
{
throw new Exception();
}
}
class Foo
{
// Buna izin verilir.
const Bar = Direction::Down;
const DOWN = Direction::Down;
// Buna izin verilmez, belirleyici olmayabilir.
const Bar = Direction::Up['short'];
const UP = Direction::Up['short'];
// Ölümcül Hata: enum üzerinde sabit ifadesi içinde [] kullanılamaz
}
// Bu, bir sabit ifadesi olmadığından tamamen geçerlidir.
$x = Direction::Up['short'];
var_dump("\$x: " . var_export($x, true));
$foo = new Foo();
?>
]]>
</programlisting>
Expand Down Expand Up @@ -663,6 +703,7 @@ $x = Direction::Up['short'];
<programlisting role="php">
<![CDATA[
<?php
$trefl = new Deste();
// Hata: enum Deste örneklenemez
$kör = (new ReflectionClass(Deste::class))->KurucusuzYeniÖrnek()
Expand All @@ -686,6 +727,7 @@ $kör = (new ReflectionClass(Deste::class))->KurucusuzYeniÖrnek()
<programlisting role="php">
<![CDATA[
<?php
Deste::cases();
// Şunları üretir: [Deste::Kupalar, Deste::Karolar, Deste::Sinekler, Deste::Maçalar]
?>
Expand All @@ -712,6 +754,7 @@ Deste::cases();
<programlisting role="php">
<![CDATA[
<?php
Deste::Kupalar === unserialize(serialize(Deste::Kupalar));
print serialize(Deste::Kupalar);
// E:14:"Deste::Kupalar";
Expand Down Expand Up @@ -740,6 +783,7 @@ print serialize(Deste::Kupalar);
<programlisting role="php">
<![CDATA[
<?php
enum Foo {
case Bar;
}
Expand Down Expand Up @@ -799,6 +843,7 @@ function bar(B $b) {
<programlisting role="php">
<![CDATA[
<?php
enum ErrorCode {
case SOMETHING_BROKE;
}
Expand Down Expand Up @@ -828,6 +873,7 @@ function quux(ErrorCode $errorCode)
<programlisting role="php">
<![CDATA[
<?php
// Sayılamaların değişmez olmadığı deneysel kod.
// Dikkat, bu kod aslında PHP'de çalışmaz.
enum MoreErrorCode extends ErrorCode {
Expand Down Expand Up @@ -869,12 +915,16 @@ fot(MoreErrorCode::PEBKAC);
<programlisting role="php">
<![CDATA[
<?php
enum Sırala
{
case Art;
case Azal;
}
function sorgu($alanlar, $süzgeç, Sırala $sırala = Sırala::Art) { ... }
function sorgu($alanlar, $süzgeç, Sırala $sırala = Sırala::Art)
{
/* ... */
}
?>
]]>
</programlisting>
Expand All @@ -896,6 +946,7 @@ function sorgu($alanlar, $süzgeç, Sırala $sırala = Sırala::Art) { ... }
<programlisting role="php">
<![CDATA[
<?php
enum UserStatus: string
{
case Pending = 'B';
Expand Down Expand Up @@ -936,6 +987,7 @@ enum UserStatus: string
<programlisting role="php">
<![CDATA[
<?php
foreach (UserStatus::cases() as $case) {
printf('<option value="%s">%s</option>\n', $case->value, $case->yafta());
}
Expand Down
Loading

0 comments on commit 1cde258

Please sign in to comment.