Skip to content

Commit

Permalink
Use lang file
Browse files Browse the repository at this point in the history
  • Loading branch information
saundefined committed Oct 4, 2023
1 parent 04806ba commit 91b09fa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 31 deletions.
27 changes: 27 additions & 0 deletions releases/8.3/languages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,35 @@
'main_subtitle' => 'PHP 8.3 is a major update of the PHP language.<br class="display-none-md">It contains many new features, including Readonly amendments, Typed class constants, Randomizer additions, performance improvements and more.',
'upgrade_now' => 'Upgrade to PHP 8.3 now!',

'readonly_title' => 'Readonly amendments',
'typed_class_constants_title' => 'Typed class constants',
'override_title' => '<code>#[\Override]</code> attribute',
'randomizer_getbytesfromstring_title' => 'New <code>Randomizer::getBytesFromString()</code> method',
'randomizer_getfloat_nextfloat_title' => 'New <code>Randomizer::getFloat()</code> and <code>Randomizer::nextFloat()</code> methods',
'randomizer_getfloat_nextfloat_description' => 'The algorithm used is the γ-section algorithm as published in:
<a href="https://doi.org/10.1145/3503512" target="_blank" rel="noopener noreferrer">Drawing Random
Floating-Point Numbers from an Interval</a>.
Frédéric Goualard, ACM Trans. Model. Comput. Simul., 32:3, 2022.',
'dynamic_class_constant_fetch_title' => 'Dynamic class constant fetch',

'new_classes_title' => 'New Classes, Interfaces, and Functions',
'new_json_validate' => 'New <code>json_validate()</code> function.',
'new_ldap' => 'New <code>ldap_connect_wallet()</code>, and <code>ldap_exop_sync()</code> functions.',
'new_mb_str_pad' => 'New <code>mb_str_pad()</code> function.',
'new_posix' => 'New <code>posix_sysconf()</code>, <code>posix_pathconf()</code>, <code>posix_fpathconf()</code>, and <code>posix_eaccess()</code> functions.',
'new_reflection' => 'New <code>ReflectionMethod::createFromMethodName()</code> method.',
'new_socket' => 'New <code>socket_atmark()</code> function.',
'new_str' => 'New <code>str_increment()</code>, <code>str_decrement()</code>, and <code>stream_context_set_options()</code> functions.',
'new_ziparchive' => 'New <code>ZipArchive::getArchiveFlag()</code> function.',

'bc_title' => 'Deprecations and backward compatibility breaks',
'bc_datetime' => 'More Appropriate Date/Time Exceptions.',
'bc_arrays' => 'Negative indices in arrays.',
'bc_range' => 'Changes to the <code>range()</code> function.',
'bc_traits' => 'Traits and static properties.',
'bc_umultipledecimalseparators' => 'The <code>U_MULTIPLE_DECIMAL_SEPERATORS</code> constant had been deprecated in favor of <code>U_MULTIPLE_DECIMAL_SEPARATORS</code>.',
'bc_mtrand' => 'The <code>MT_RAND_PHP</code> Mt19937 variant is deprecated.',
'bc_reflection' => '<code>ReflectionClass::getStaticProperties()</code> is no longer nullable.',

'footer_title' => 'Better performance, better syntax, improved type safety.',
'footer_description' => '<p>For source downloads of PHP 8.3 please visit the <a href="/downloads">downloads</a> page. Windows binaries can be found on the <a href="https://windows.php.net/download">PHP for Windows</a> site. The list of changes is recorded in the <a href="/ChangeLog-8.php#PHP_8_3">ChangeLog</a>.</p>
Expand Down
53 changes: 22 additions & 31 deletions releases/8.3/release.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ common_header(message('common_header', $lang));
<section class="php8-section center">
<div class="php8-compare">
<h2 class="php8-h2" id="readonly_classes">
Readonly amendments
<?= message('readonly_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/readonly_amendments">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -122,7 +122,7 @@ PHP

<div class="php8-compare">
<h2 class="php8-h2" id="typed_class_constants">
Typed class constants
<?= message('typed_class_constants_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/typed_class_constants">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -168,7 +168,7 @@ PHP

<div class="php8-compare">
<h2 class="php8-h2" id="override_attribute">
<code>#[\Override]</code> attribute
<?= message('override_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/marking_overriden_methods">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -238,7 +238,7 @@ PHP

<div class="php8-compare">
<h2 class="php8-h2" id="randomizer_get_bytes_from_string">
New <code>Randomizer::getBytesFromString()</code> method
<?= message('randomizer_getbytesfromstring_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/randomizer_additions#getbytesfromstring">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -302,7 +302,7 @@ PHP

<div class="php8-compare">
<h2 class="php8-h2" id="randomizer_get_float">
New <code>Randomizer::getFloat()</code> and <code>Randomizer::nextFloat()</code> methods
<?= message('randomizer_getfloat_nextfloat_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/randomizer_additions#getfloat">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -358,15 +358,12 @@ PHP
</div>

<div class="php8-compare__content">
The algorithm used is the γ-section algorithm as published in:
<a href="https://doi.org/10.1145/3503512" target="_blank" rel="noopener noreferrer">Drawing Random
Floating-Point Numbers from an Interval</a>.
Frédéric Goualard, ACM Trans. Model. Comput. Simul., 32:3, 2022.
<?= message('randomizer_getfloat_nextfloat_description', $lang) ?>
</div>

<div class="php8-compare">
<h2 class="php8-h2" id="dynamic_class_constant_fetch">
Dynamic class constant fetch
<?= message('dynamic_class_constant_fetch_title', $lang) ?>
<a class="php8-rfc" href="https://wiki.php.net/rfc/dynamic_class_constant_fetch">RFC</a>
</h2>
<div class="php8-compare__main">
Expand Down Expand Up @@ -415,19 +412,14 @@ PHP
<h2 class="php8-h2" id="other_new_things"><?= message('new_classes_title', $lang) ?></h2>
<div class="php8-compare__content php8-compare__content--block">
<ul>
<li>New <code>json_validate()</code> function.</li>
<li>New <code>ldap_connect_wallet()</code>, and <code>ldap_exop_sync()</code> functions.</li>
<li>New <code>mb_str_pad()</code> function.</li>
<li>New <code>posix_sysconf()</code>, <code>posix_pathconf()</code>, <code>posix_fpathconf()</code>,
and
<code>posix_eaccess()</code> functions.
</li>
<li>New <code>ReflectionMethod::createFromMethodName()</code> method.</li>
<li>New <code>socket_atmark()</code> function.</li>
<li>New <code>str_increment()</code>, <code>str_decrement()</code>, and
<code>stream_context_set_options()</code> functions.
</li>
<li>New <code>ZipArchive::getArchiveFlag()</code> function.</li>
<li><?= message('new_json_validate', $lang) ?></li>
<li><?= message('new_ldap', $lang) ?></li>
<li><?= message('new_mb_str_pad', $lang) ?></li>
<li><?= message('new_posix', $lang) ?></li>
<li><?= message('new_reflection', $lang) ?></li>
<li><?= message('new_socket', $lang) ?></li>
<li><?= message('new_str', $lang) ?></li>
<li><?= message('new_ziparchive', $lang) ?></li>
</ul>
</div>
</div>
Expand All @@ -436,14 +428,13 @@ PHP
<h2 class="php8-h2" id="deprecations_and_bc_breaks"><?= message('bc_title', $lang) ?></h2>
<div class="php8-compare__content">
<ul>
<li>More Appropriate Date/Time Exceptions.</li>
<li>Negative indices in arrays.</li>
<li>Changes to the <code>range()</code> function.</li>
<li>Traits and static properties.</li>
<li>The <code>U_MULTIPLE_DECIMAL_SEPERATORS</code> constant had been deprecated in favor of <code>U_MULTIPLE_DECIMAL_SEPARATORS</code>.
</li>
<li>The <code>MT_RAND_PHP</code> Mt19937 variant is deprecated.</li>
<li><code>ReflectionClass::getStaticProperties()</code> is no longer nullable.</li>
<li><?= message('bc_datetime', $lang) ?></li>
<li><?= message('bc_arrays', $lang) ?></li>
<li><?= message('bc_range', $lang) ?></li>
<li><?= message('bc_traits', $lang) ?></li>
<li><?= message('bc_umultipledecimalseparators', $lang) ?></li>
<li><?= message('bc_mtrand', $lang) ?></li>
<li><?= message('bc_reflection', $lang) ?></li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 91b09fa

Please sign in to comment.