Commit bb8969f
committed
Share common markup for PHP 8.0 release page translations
Apart from the following exceptions, no content or translations have been changed.
Content and layout improvements:
* Added IDs to headings in section above footer for direct linking.
* Added `<code>` tag around operators and keywords for better readability.
* Moved Just-In-Time Compilation section to a half-width column rather than full-width. This is more consistent with the other release pages, and makes it easier to read the description on large screens since the paragraph isn't so excessively wide.
* Updated code examples to use 4-space indentation rather than 2-space, for consistency with all the other release pages.
* Updated the "New Classes, Interfaces, and Functions" section to show the actual class name for `WeakMap` and `PhpToken` (which removed the need for translation there).
* Moved both RFC links after the text for "Allow a trailing comma in parameter lists and closure use lists" for simplicity and consistency across translations.
Translation-specific fixes and changes:
* Fixed bug where header links in the French and Japanese translations unexpectedly switched to the English translation of the page (caused by incorrect `$_SERVER['BASE_PAGE']` value).
* French translation previously had a different code example for attributes, which didn't really make sense (it showed the same `/api/posts/{id}` Route attribute, but above a User class rather than on a `get` method in a PostsController class).
* Fixed incorrect Static Return Type RFC link in Portuguese translation.
* Fixed a couple minor spacing bugs in Spanish translation.
* Fixed missing blank lines in a few Chinese translation code blocks.
* Georgian translation previously changed strings/comments in the code examples for Union Types and Match Expression. If this is still wanted we could add translation strings to include in these code blocks, but I don't think it's worth it since the examples already have translated descriptions, and these code blocks weren't altered for any other languages.1 parent 95c7f62 commit bb8969f
26 files changed
+1482
-6024
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments