From d183769fd1b4e1cfe6d086c8fe3ce14f62b6a583 Mon Sep 17 00:00:00 2001 From: Splimter Date: Fri, 29 Mar 2019 13:23:01 +0100 Subject: [PATCH 1/2] Done Translating-accessibility.md --- content/docs/accessibility.md | 337 +++++++++++++++++----------------- 1 file changed, 164 insertions(+), 173 deletions(-) diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index e6cacba3b..5c9205749 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -4,29 +4,29 @@ title: Accessibility permalink: docs/accessibility.html --- -## Why Accessibility? {#why-accessibility} +## الفائدة من سهولة الوصول؟ {#why-accessibility} -Web accessibility (also referred to as [**a11y**](https://en.wiktionary.org/wiki/a11y)) is the design and creation of websites that can be used by everyone. Accessibility support is necessary to allow assistive technology to interpret web pages. +سهولة الوصول للويب (Web accessibility) والتي يشار إليها أيضًا بالرمز [**a11y**](https://en.wiktionary.org/wiki/a11y)) هي تصميم وإنشاء مواقع يُمكِن استخدامها من قبل أي شخص. يكون دعم سهولة الوصول ضروريًّا للسماح للتقنيات المساعدة بالتعامل مع صفحات الويب. -React fully supports building accessible websites, often by using standard HTML techniques. +تدعم React بشكلٍ كامل بناء مواقع سهلة الوصول، وذلك عن طريق استخدام تقنيات HTML المعياريّة عادةً. -## Standards and Guidelines {#standards-and-guidelines} +## المعايير والتوجيهات {#standards-and-guidelines} ### WCAG {#wcag} -The [Web Content Accessibility Guidelines](https://www.w3.org/WAI/intro/wcag) provides guidelines for creating accessible web sites. +تزوّدنا [توجيهات سهولة الوصول لمحتوى الويب (Web Content Accessibility Guidelines)](https://www.w3.org/WAI/intro/wcag) بتوجيهات لإنشاء مواقع سهلة الوصول. -The following WCAG checklists provide an overview: +تعطينا القوائم التالية فكرة عامة حول ذلك: -- [WCAG checklist from Wuhcag](https://www.wuhcag.com/wcag-checklist/) -- [WCAG checklist from WebAIM](https://webaim.org/standards/wcag/checklist) -- [Checklist from The A11Y Project](https://a11yproject.com/checklist.html) +- [قائمة التوجيهات المُقدَّمة من Wuhcag](https://www.wuhcag.com/wcag-checklist/) +- [قائمة التوجيهات المُقدَّمة من WebAIM](https://webaim.org/standards/wcag/checklist) +- [قائمة التوجيهات من مشروع A11Y](https://a11yproject.com/checklist.html) ### WAI-ARIA {#wai-aria} -The [Web Accessibility Initiative - Accessible Rich Internet Applications](https://www.w3.org/WAI/intro/aria) document contains techniques for building fully accessible JavaScript widgets. +يحتوي مستند [دليل سهولة الوصول - تطبيقات الإنترنت سهلة الوصول (Web Accessibility Initiative - Accessible Rich Internet Applications )](https://www.w3.org/WAI/intro/aria) على تقنيات لبناء أدوات ذكية في JavaScript سهلة الوصول بشكلٍ كامل. -Note that all `aria-*` HTML attributes are fully supported in JSX. Whereas most DOM properties and attributes in React are camelCased, these attributes should be hyphen-cased (also known as kebab-case, lisp-case, etc) as they are in plain HTML: +انتبه إلى أنّ خاصيّات `aria-*` في HTML ليست كلّها مدعومة بشكلٍ كامل في JSX. وفي حين أنّ معظم خاصيّات DOM تُكتَب في React بشكل camelCase، ينبغي كتابة خاصيّات `aria-*`‎ بحالة hyphen-cased (والتي تُعرَف أيضًا بحالة kebab-case، أو lisp-case، إلخ..) كما هي حالتها في HTML: ```javascript{3,4} ``` -## Semantic HTML {#semantic-html} -Semantic HTML is the foundation of accessibility in a web application. Using the various HTML elements to reinforce the meaning of information -in our websites will often give us accessibility for free. +## HTML الخاصة بدلالات الألفاظ (Semantic HTML) {#semantic-html} +وهي تهتم بتقديم المعنى الدلالي لكل عنصر من عناصر HTML بدلًا من الاهتمام فقط بما يُمثِّله هذا العنصر. وهي أساس سهولة الوصول في تطبيقات الويب. +حيث يُعطينا استخدام عناصر HTML المتنوعة لتعزيز المعنى الدلالي للمعلومات في مواقعنا سهولة للوصول بشكلٍ مجاني. -- [MDN HTML elements reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) +- [مرجع عناصر HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) -Sometimes we break HTML semantics when we add `
` elements to our JSX to make our React code work, especially when working with lists (`
    `, `
      ` and `
      `) and the HTML ``. -In these cases we should rather use [React Fragments](/docs/fragments.html) to group together multiple elements. +أحيانًا نخرق دلالات HTML عندما نُضيف عناصر `
      ` إلى JSX لجعل شيفرة React تعمل، خاصّة عند التعامل مع القوائم (`
        `, `
          ` و `
          `) والجدول `
      `. + في هذه الحالات يجب أن نستخدم [الأجزاء (Fragments)](/docs/fragments.html) في React لتجميع عناصر متعددة معًا. -For example, +على سبيل المثال: ```javascript{1,5,8} import React, { Fragment } from 'react'; @@ -73,14 +73,14 @@ function Glossary(props) { } ``` -You can map a collection of items to an array of fragments as you would any other type of element as well: +تستطيع تعيين مجموعة من العناصر إلى مصفوفة من الأجزاء (fragments) كما ستفعل مع أي نوع آخر من العناصر: ```javascript{6,9} function Glossary(props) { return (
      {props.items.map(item => ( - // Fragments should also have a `key` prop when mapping collections + // يجب أن تمتلك الأجزاء أيضًا خاصية مفتاح عند تعيين المجموعات
      {item.term}
      {item.description}
      @@ -91,7 +91,7 @@ function Glossary(props) { } ``` -When you don't need any props on the Fragment tag you can use the [short syntax](/docs/fragments.html#short-syntax), if your tooling supports it: +عندما لا تحتاج أي خاصيّات ضمن الوسم Fragment تستطيع أيضًا استخدام [الصياغة المختصرة](/docs/fragments.html#short-syntax), إن كانت أدواتك تدعمها: ```javascript{3,6} function ListItem({ item }) { @@ -104,83 +104,83 @@ function ListItem({ item }) { } ``` -For more info, see [the Fragments documentation](/docs/fragments.html). +للمزيد من المعلومات انظر إلى [توثيق الأجزاء في React](/docs/fragments.html). -## Accessible Forms {#accessible-forms} +## الحقول (Forms) سهلة الوصول {#accessible-forms} -### Labeling {#labeling} -Every HTML form control, such as `` and `