%D \module
%D   [       file=lang-ara,
%D        version=2008.06.20,
%D          title=\CONTEXT\ Language Macros,
%D       subtitle=Arabic Languages,
%D         author=Khaled Hosny,
%D           date=\currentdate,
%D      copyright=PRAGMA-ADE]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Language Macros / Arabic Languages}

\unprotect

\definesystemconstant {arabic}
\definesystemvariable {ar}

\installlanguage
  [\s!ar]
  [\c!spacing=\v!broad,
   \c!leftsentence=---,
   \c!rightsentence=---,
   \c!leftsubsentence=---,
   \c!rightsubsentence=---,
   \c!leftquote=\upperleftsinglesixquote,
   \c!rightquote=\upperrightsingleninequote,
   \c!leftquotation=\upperleftdoublesixquote,
   \c!rightquotation=\upperrightdoubleninequote,
   \c!date={\v!day,\ ,\v!month,{،\ },\v!year}]

\installlanguage [\s!arabic] [\s!ar]

% Just aliases to "ar" for now

\installlanguage[\s!ar-ae][\c!default=\s!ar] % U.A.E.
\installlanguage[\s!ar-bh][\c!default=\s!ar] % Bahrain
\installlanguage[\s!ar-eg][\c!default=\s!ar] % Egypt
\installlanguage[\s!ar-in][\c!default=\s!ar] % India?
\installlanguage[\s!ar-kw][\c!default=\s!ar] % Kuwait
\installlanguage[\s!ar-ly][\c!default=\s!ar] % Libya
\installlanguage[\s!ar-om][\c!default=\s!ar] % Oman
\installlanguage[\s!ar-qa][\c!default=\s!ar] % Qatar
\installlanguage[\s!ar-sa][\c!default=\s!ar] % Saudi Arabia
\installlanguage[\s!ar-sd][\c!default=\s!ar] % Sudan
\installlanguage[\s!ar-tn][\c!default=\s!ar] % Tunisia
\installlanguage[\s!ar-ye][\c!default=\s!ar] % Yemen

% Syriac months

\installlanguage[\s!ar-sy][\c!default=\s!ar]    % Syria
\installlanguage[\s!ar-iq][\c!default=\s!ar-sy] % Iraq
\installlanguage[\s!ar-jo][\c!default=\s!ar-sy] % Jordan
\installlanguage[\s!ar-lb][\c!default=\s!ar-sy] % Lebanon

% Maghribi months

\installlanguage[\s!ar-dz][\c!default=\s!ar] % Algeria
\installlanguage[\s!ar-ma][\c!default=\s!ar] % Morocco

\setupheadtext  [\s!ar] [\v!content=المحتويات]
\setupheadtext  [\s!ar] [\v!tables=الجداول]
\setupheadtext  [\s!ar] [\v!figures=الأشكال]
\setupheadtext  [\s!ar] [\v!graphics=الرسوم]
\setupheadtext  [\s!ar] [\v!intermezzi=فسح]
\setupheadtext  [\s!ar] [\v!index=الفهرس]
\setupheadtext  [\s!ar] [\v!abbreviations=الاختصارات]
\setupheadtext  [\s!ar] [\v!logos=الشعارات]
\setupheadtext  [\s!ar] [\v!units=الوحدات]
\setuplabeltext [\s!ar] [\v!table=جدول ]
\setuplabeltext [\s!ar] [\v!figure=شكل ]
\setuplabeltext [\s!ar] [\v!intermezzo=فسحة ]
\setuplabeltext [\s!ar] [\v!graphic=رسم ]

%D We don't set these here. One can do that in a style.

\setuplabeltext [\s!ar] [\v!chapter=] % باب
\setuplabeltext [\s!ar] [\v!section=] % فصل or قسم
\setuplabeltext [\s!ar] [\v!subsection=] % فصل أدنى
\setuplabeltext [\s!ar] [\v!subsubsection=] % فصل أ دنى أدنى
\setuplabeltext [\s!ar] [\v!subsubsubsection=] % فصل أدنى أدنى أدنى
\setuplabeltext [\s!ar] [\v!appendix=] % ملحق
\setuplabeltext [\s!ar] [\v!part=جزء ]
\setuplabeltext [\s!ar] [\v!line=سطر ]
\setuplabeltext [\s!ar] [\v!lines=السطور ]

\setuplabeltext [\s!ar] [\v!january=يناير]
\setuplabeltext [\s!ar] [\v!february=فبراير]
\setuplabeltext [\s!ar] [\v!march=مارس]
\setuplabeltext [\s!ar] [\v!april=أبريل]
\setuplabeltext [\s!ar] [\v!may=مايو]
\setuplabeltext [\s!ar] [\v!june=يونيو]
\setuplabeltext [\s!ar] [\v!july=يوليو]
\setuplabeltext [\s!ar] [\v!august=أغسطس]
\setuplabeltext [\s!ar] [\v!september=سبتمبر]
\setuplabeltext [\s!ar] [\v!october=أكتوبر]
\setuplabeltext [\s!ar] [\v!november=نوفمبر]
\setuplabeltext [\s!ar] [\v!december=ديسمبر]

\setuplabeltext [\s!ar-sy] [\v!january=كانون الثاني]
\setuplabeltext [\s!ar-sy] [\v!february=شباط]
\setuplabeltext [\s!ar-sy] [\v!march=آذار]
\setuplabeltext [\s!ar-sy] [\v!april=نيسان]
\setuplabeltext [\s!ar-sy] [\v!may=أيار]
\setuplabeltext [\s!ar-sy] [\v!june=حزيران]
\setuplabeltext [\s!ar-sy] [\v!july=تموز]
\setuplabeltext [\s!ar-sy] [\v!august=آب]
\setuplabeltext [\s!ar-sy] [\v!september=أيلول]
\setuplabeltext [\s!ar-sy] [\v!october=تشرين الأول]
\setuplabeltext [\s!ar-sy] [\v!november=تشرين الثاني]
\setuplabeltext [\s!ar-sy] [\v!december=كانون الأول]

\setuplabeltext [\s!ar-ma] [\v!may=ماي]
\setuplabeltext [\s!ar-ma] [\v!july=يوليوز]
\setuplabeltext [\s!ar-ma] [\v!august=غشت]
\setuplabeltext [\s!ar-ma] [\v!september=شتنبر]
\setuplabeltext [\s!ar-ma] [\v!november=نونبر]
\setuplabeltext [\s!ar-ma] [\v!december=دجنبر]

\setuplabeltext [\s!ar-dz] [\v!january=جانفي]
\setuplabeltext [\s!ar-dz] [\v!february=فيفري]
\setuplabeltext [\s!ar-dz] [\v!april=أفريل]
\setuplabeltext [\s!ar-dz] [\v!may=ماي]
\setuplabeltext [\s!ar-dz] [\v!june=جوان]
\setuplabeltext [\s!ar-dz] [\v!july=جويلة]
\setuplabeltext [\s!ar-dz] [\v!august=أوت]

\setuplabeltext [\s!ar] [\v!sunday=الأحد]
\setuplabeltext [\s!ar] [\v!monday=الاثنين]
\setuplabeltext [\s!ar] [\v!tuesday=الثلاثاء]
\setuplabeltext [\s!ar] [\v!wednesday=الأربعاء]
\setuplabeltext [\s!ar] [\v!thursday=الخميس]
\setuplabeltext [\s!ar] [\v!friday=الجمعة]
\setuplabeltext [\s!ar] [\v!saturday=السبت]

%D Rather new ...

\setuplabeltext [\s!ar] [\v!page=صفحة ]
\setuplabeltext [\s!ar] [\v!atpage=في صفحة ]
\setuplabeltext [\s!ar] [\v!hencefore=كما وضحنا سابقا]
\setuplabeltext [\s!ar] [\v!hereafter=كما نوضح لاحقا]
\setuplabeltext [\s!ar] [\v!see=انظر ]

%D ... and to be completed!

%D \ShowAllLanguageValues [\s!ar] [arabic] {Arabic} {horn} % engelse humor

\protect \endinput
