Skip to content

Commit bb5e3cb

Browse files
committed
Arabic templates, thanks to @agharbeia
1 parent d294876 commit bb5e3cb

9 files changed

Lines changed: 503 additions & 7 deletions

File tree

top/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
'lv': u'latviešu valoda',
5454
'el': u'ελληνικά',
5555
'fi': u'Suomenkielinen',
56+
'ar': u'العربية',
5657
'fa': u'فارسی',
5758
'cs': u'Česká',
5859
'or': u'ଓଡ଼ିଆ',

top/templates/ar_chart.dust

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>{?is_index}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية{:else}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية في {formatted_date}{/is_index}</title>
5+
<script src="{dir_depth}js/jquery.js"></script>
6+
<script src="{dir_depth}js/jquery.peity.min.js"></script>
7+
<script src="{dir_depth}js/jquery.jknav.js"></script>
8+
<script src="{dir_depth}js/jquery.hotkeys.js"></script>
9+
<link href="{dir_depth}css/fonts.css" rel="stylesheet" type="text/css">
10+
<link href="{dir_depth}css/chart.css" rel="stylesheet" type="text/css">
11+
<style>
12+
{#articles}
13+
.cover-{rank} {
14+
background: url({image_url});
15+
background-size: cover;
16+
background-position: 50%;
17+
}
18+
{/articles}
19+
</style>
20+
<script>
21+
22+
$(function() {
23+
$('.rank').jknav();
24+
$.jknav.init({speed: 'fast', circular: true});
25+
$('.sparkline').peity('line', {fill: null,
26+
width: 50,
27+
height: 14,
28+
stroke: 'rgba(116, 131, 138, 0.7)'})
29+
$('.row').hover(function() {
30+
$('.permalink', this).toggle();
31+
});
32+
});
33+
</script>
34+
<!--
35+
Generated: {meta.generated}
36+
Fetched: {meta.fetched}
37+
Total Traffic: {total_traffic_short}
38+
-->
39+
</head>
40+
<body>
41+
<div class="top-area">
42+
<div class="top container">
43+
<ul>
44+
<li><a href="#about">عن الخدمة</a></li>
45+
<li><a href="{dir_depth}about.html" id="other-langs">بلغات أخرى</a></li>
46+
<li><a href="{dir_depth}feeds/{lang}{project_lower}.rss">التلقيمة</a></li>
47+
<li><a href="http://blog.hatnote.com/">المدونة</a></li>
48+
</ul>
49+
</div>
50+
</div>
51+
52+
<div class="header">
53+
<div class="container">
54+
<h1>ويكيبيديا العربية <span class="ultra">المئة الأبرز</span></h1>
55+
<p>قائمة مقالات ويكيبيديا العربية الأكثر مطالعة تُحدَّث يوميا. <a href="#about" class="learn">التفاصيل</a>…</p>
56+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center date"><a href="{dir_depth}/{lang}/{project_lower}/{date.year}/{date.month}">{formatted_date}</a></p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
57+
<br style="clear: left;" />
58+
</div>
59+
</div>
60+
</div>
61+
62+
<div class="container">
63+
<ul>
64+
{#articles}
65+
<li class="row">
66+
<div class="column rank">
67+
<p><a href="{dir_depth}{current}#rank-{rank}">{local_rank}</a></p>
68+
</div>
69+
<a class="column cover-art cover-{rank}" href="{url}" target="_blank"></a>
70+
<div class="column label">
71+
<a id="rank-{rank}"></a>
72+
<a id="title-{article}"></a>
73+
<p class="sparkline-area"></p>
74+
<p class="title"><a href="{url}" target="_blank">{title}</a><a href="{dir_depth}{current}#title-{article}"><img class="permalink" src="{dir_depth}img/permalink.png"></a></p>
75+
<p class="summary">{summary}</p>
76+
<div class="meta-area">
77+
<p class="views">{local_views_short} مطالعات <span class="meta">({@gt key=streak_len value=1}<a href="{dir_depth}{prev}#title-{article}" class="yesterday">{/gt}{view_trend|s}{local_view_delta} منذ أمس{@gt key=streak_len value=1}</a>{/gt})</span><span class="sparkline">{#history}{.}{@sep},{/sep}{/history}, {views}</span></p>
78+
<p class="streak">{@gt key=streak_len value=1}{local_streak_len} أيام متواصلة{/gt}</p>
79+
<a href="http://twitter.com/share?text={tweet}&amp;url={permalink|uc}" target="_blank"><img class="twitter-icon" src="{dir_depth}img/twitter.png"></a>
80+
</div>
81+
</div>
82+
</li>
83+
{/articles}
84+
</ul>
85+
</div>
86+
87+
<div class="end-nav">
88+
<div class="container">
89+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center date"><a href="./">{formatted_date}</a></p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
90+
<br style="clear: left;" />
91+
</div>
92+
</div>
93+
</div>
94+
95+
<div class="footer-area">
96+
<div class="container footer">
97+
<h2>عن الخدمة</h2>
98+
<a name="about"></a>
99+
<p>طالع <a href="http://top.hatnote.com/ar/wikipedia">الأرشيف</a>.</p>
100+
<p>قائمة تُحدّث يوميا تضمّ صفحات ويكيبيديا الأكثر مطالعة، ينتجها <a href="https://twitter.com/sklaporte">ستيفن لابورت</a> و <a href="https://twitter.com/mhashemi">محمود هاشمي</a>. القائمة موجودة لويكيبيديات <a href="http://top.hatnote.com/about.html">لغات أخرى</a>. إذا أعجبتك هذه الخدمة فقد تعجبك <a href="http://weekly.hatnote.com">ويكليبيديا</a> و هو ملخّص أسبوعي لمقالات ويكيبيديا الأكثر تحريرًا. طالع المزيد في <a href="#">مدوّنة Hatnote</a>.</p>
101+
<p>هذه الصفحة توظّف <a href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\
102+
pageviews_top_project_access_year_month_day">واجهة ويكيبيديا البرمجية الجديدة لمطالَعات الصفحات</a> مع صور و مُلخَّصات مجلوبة باستخدام <a href="https://www.mediawiki.org/wiki/API:Query">واجهة تطبيقات ميدياويكي</a>. يوجد مزيد من الكود و الوثائق في <a href="https://github.com/hatnote/top">مستودع المشروع في GitHub</a></p>
103+
104+
<p>إذا أردت مطالعة قائمة الصفحات الأكثر مطالعة في ويكيبيديا لغة أخرى <a href="https://github.com/hatnote/top/issues">فضع طلبًا</a> و أعلمنا إن كنت قادرًا على المساعدة على ترجمة القوالب.</p>
105+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
106+
<p><a href="{dir_depth}feeds/{lang}{project_lower}.rss"><img src="{dir_depth}img/feed.png"></a> <a href="#top" class="up">&uarr; الرُّجوع للصفحة الأولى</a></p>
107+
</div>
108+
</div>
109+
110+
<script>
111+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
112+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
113+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
114+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
115+
ga('create', 'UA-40320359-1', 'hatnote.com');
116+
ga('send', 'pageview');
117+
</script>
118+
</body>
119+
</html>

top/templates/ar_index.dust

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>{^is_index}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية{:else}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية في {formatted_date}{/is_index}</title>
5+
<script src="{dir_depth}js/jquery.js"></script>
6+
<link href="{dir_depth}css/fonts.css" rel="stylesheet" type="text/css">
7+
<link href="{dir_depth}css/chart.css" rel="stylesheet" type="text/css">
8+
<script>
9+
10+
$(function() {
11+
12+
});
13+
</script>
14+
</head>
15+
<body>
16+
<div class="top-area">
17+
<div class="top container">
18+
<ul>
19+
<li><a href="#about">عن الخدمة</a></li>
20+
<li><a href="{dir_depth}about.html" id="other-langs">بلغات أخرى</a></li>
21+
<li><a href="{dir_depth}feeds/{lang}{project_lower}.rss">التلقيمة</a></li>
22+
<li><a href="#">المدونة</a></li>
23+
</ul>
24+
</div>
25+
</div>
26+
<div class="header">
27+
<div class="container">
28+
<h1><span class="ultra">المئة الأبرز</span></h1>
29+
<p>قائمة مقالات ويكيبيديا العربية الأكثر مطالعة تُحدَّث يوميا.</p>
30+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center">Available wikis</p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
31+
<br style="clear: left;" />
32+
</div>
33+
</div>
34+
35+
</div>
36+
37+
<div class="container">
38+
{?months}
39+
<ul>
40+
{#months}
41+
<li><a href="{month}/">{month_name}</a></li>
42+
{/months}
43+
</ul>
44+
{/months}
45+
{?years}
46+
<ul>
47+
{#years}
48+
<li><a href="{.}/">{.}</a></li>
49+
{/years}
50+
</ul>
51+
{/years}
52+
{?projects}
53+
<ul class="projects">
54+
{#projects}
55+
<li><a href="{.}/">{full_lang} {.}</a></li>
56+
{/projects}
57+
</ul>
58+
{/projects}
59+
</table>
60+
</div>
61+
62+
<div class="footer-area">
63+
<div class="container footer">
64+
<h2>عن الخدمة</h2>
65+
<a name="about"></a>
66+
<p>طالع <a href="http://top.hatnote.com/ar/wikipedia">الأرشيف</a>.</p>
67+
<p>قائمة تُحدّث يوميا تضمّ صفحات ويكيبيديا الأكثر مطالعة، ينتجها <a href="https://twitter.com/sklaporte">ستيفن لابورت</a> و <a href="https://twitter.com/mhashemi">محمود هاشمي</a>. القائمة موجودة لويكيبيديات <a href="http://top.hatnote.com/about.html">لغات أخرى</a>. إذا أعجبتك هذه الخدمة فقد تعجبك <a href="http://weekly.hatnote.com">ويكليبيديا</a> و هو ملخّص أسبوعي لمقالات ويكيبيديا الأكثر تحريرًا. طالع المزيد في <a href="#">مدوّنة Hatnote</a>.</p>
68+
<p>هذه الصفحة توظّف <a href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\
69+
pageviews_top_project_access_year_month_day">واجهة ويكيبيديا البرمجية الجديدة لمطالَعات الصفحات</a> مع صور و مُلخَّصات مجلوبة باستخدام <a href="https://www.mediawiki.org/wiki/API:Query">واجهة تطبيقات ميدياويكي</a>. يوجد مزيد من الكود و الوثائق في <a href="https://github.com/hatnote/top">مستودع المشروع في GitHub</a></p>
70+
71+
<p>إذا أردت مطالعة قائمة الصفحات الأكثر مطالعة في ويكيبيديا لغة أخرى <a href="https://github.com/hatnote/top/issues">فضع طلبًا</a> و أعلمنا إن كنت قادرًا على المساعدة على ترجمة القوالب.</p>
72+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
73+
<p><a href="#top" class="up">&uarr; الرُّجوع للصفحة الأولى</a></p>
74+
</div>
75+
</div>
76+
77+
<script>
78+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
79+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
80+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
81+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
82+
ga('create', 'UA-40320359-1', 'hatnote.com');
83+
ga('send', 'pageview');
84+
</script>
85+
</body>
86+
</html>

top/templates/ar_month_index.dust

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>{?is_index}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية{:else}المقالات المئة الأكثر مطالعة في ويكيبيديا العربية في {formatted_date}{/is_index}</title>
5+
<script src="{dir_depth}js/jquery.js"></script>
6+
<link href="{dir_depth}css/fonts.css" rel="stylesheet" type="text/css">
7+
<link href="{dir_depth}css/chart.css" rel="stylesheet" type="text/css">
8+
<!--
9+
Generated: {meta.generated}
10+
-->
11+
</head>
12+
13+
<body>
14+
<div class="top-area">
15+
<div class="top container">
16+
<ul>
17+
<li><a href="{dir_depth}about.html" id="other-langs">بلغات أخرى</a></li>
18+
<li><a href="http://blog.hatnote.com/post/135182048397/announcing-the-hatnote-top-100">المدونة</a></li>
19+
</ul>
20+
</div>
21+
</div>
22+
<div class="header">
23+
<div class="container">
24+
<h1>ويكيبيديا العربية <span class="ultra">المئة الأبرز</span></h1>
25+
<p>قائمة مقالات ويكيبيديا العربية الأكثر مطالعة تُحدَّث يوميا. <a href="#about" class="learn">التفاصيل</a>…</p>
26+
<div class="subtitle light">{?prev_month}<a class="issue_nav left" href="{dir_depth}{prev_month}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev_month}<p class="center">{month_name} {local_year} </p>{?next_month}<a class="issue_nav right" href="{dir_depth}{next_month}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next_month}
27+
<br style="clear: left;" />
28+
</div>
29+
</div>
30+
31+
</div>
32+
33+
<div class="container">
34+
<table class="month">
35+
<tr class="week">
36+
<td>{weekdays.mon}</td>
37+
<td>{weekdays.tues}</td>
38+
<td>{weekdays.wed}</td>
39+
<td>{weekdays.thurs}</td>
40+
<td>{weekdays.fri}</td>
41+
<td>{weekdays.sat}</td>
42+
<td>{weekdays.sun}</td>
43+
</tr>
44+
{#dates}
45+
<tr class="week">
46+
{#days}
47+
{@gt key=day value=0}
48+
<td class="day {^chart}none{/chart}">{?chart}<a href="{day}.html">{/chart}{local_day}{?chart}</a>{/chart}</td>
49+
{:else}
50+
<td class="day empty"></td>
51+
{/gt}
52+
{/days}
53+
</tr>
54+
{/dates}
55+
</table>
56+
</div>
57+
58+
<div class="footer-area">
59+
<div class="container footer">
60+
<h2>عن الخدمة</h2>
61+
<a name="about"></a>
62+
<p>طالع <a href="http://top.hatnote.com/ar/wikipedia">الأرشيف</a>.</p>
63+
<p>قائمة تُحدّث يوميا تضمّ صفحات ويكيبيديا الأكثر مطالعة، ينتجها <a href="https://twitter.com/sklaporte">ستيفن لابورت</a> و <a href="https://twitter.com/mhashemi">محمود هاشمي</a>. القائمة موجودة لويكيبيديات <a href="http://top.hatnote.com/about.html">لغات أخرى</a>. إذا أعجبتك هذه الخدمة فقد تعجبك <a href="http://weekly.hatnote.com">ويكليبيديا</a> و هو ملخّص أسبوعي لمقالات ويكيبيديا الأكثر تحريرًا. طالع المزيد في <a href="#">مدوّنة Hatnote</a>.</p>
64+
<p>هذه الصفحة توظّف <a href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\
65+
pageviews_top_project_access_year_month_day">واجهة ويكيبيديا البرمجية الجديدة لمطالَعات الصفحات</a> مع صور و مُلخَّصات مجلوبة باستخدام <a href="https://www.mediawiki.org/wiki/API:Query">واجهة تطبيقات ميدياويكي</a>. يوجد مزيد من الكود و الوثائق في <a href="https://github.com/hatnote/top">مستودع المشروع في GitHub</a></p>
66+
67+
<p>إذا أردت مطالعة قائمة الصفحات الأكثر مطالعة في ويكيبيديا لغة أخرى <a href="https://github.com/hatnote/top/issues">فضع طلبًا</a> و أعلمنا إن كنت قادرًا على المساعدة على ترجمة القوالب.</p>
68+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
69+
<p><a href="#top" class="up">&uarr; Back to top</a></p>
70+
</div>
71+
</div>
72+
73+
<script>
74+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
75+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
76+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
77+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
78+
ga('create', 'UA-40320359-1', 'hatnote.com');
79+
ga('send', 'pageview');
80+
</script>
81+
</body>
82+
</html>

0 commit comments

Comments
 (0)