من ويكيبيديا، الموسوعة الحرة
Index: welcome.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/welcome.py,v
retrieving revision 1.10
diff -u -r1.10 welcome.py
--- welcome.py 19 May 2007 18:17:24 -0000 1.10
+++ welcome.py 28 May 2007 20:01:26 -0000
@@ -45,7 +45,7 @@
-nlog Use this parameter if you do not want the bot to log all
welcomed users (default: False)
- -limit[:#] Use this parameter to define how may users should be
+ -limit[:#] Use this parameter to define how many users should be
checked (default:50)
-numberlog[:#] The number of users to welcome before refreshing the
@@ -158,6 +158,7 @@
#The page where the bot will save the log (f.e. Wikipedia:Welcome log).
logbook = {
'commons':str(project) + ":Welcome log" ,
+ 'ar':str(project) + ":سجل الترحيب" ,
'de':str(project) + ":Willkommen log",
'en':str(project) + ":Welcome log" ,
'it':str(project) + ":Benvenuto log",
@@ -167,6 +168,7 @@
#The edit summary for the welcome message (f.e. Welcome!)
summary = {
'commons':'Welcome!',
+ 'ar':'مرحبا!',
'de':'Herzlich Willkommen!',
'en':'Welcome!',
'it':'Benvenuto!',
@@ -176,6 +178,7 @@
# The text for the welcome message (f.e. {{welcome}})
netext = {
'commons':'{{subst:welcome}}',
+ 'ar':'{{نسخ:ترحيب1}}--~~~~',
'de':'{{Benutzer:Filnik/Willkommen}}\nViele Grüsse --~~~~',
'en':'{{subst:welcome}}--~~~~',
'it':'{{subst:benve|~~~~}}',
@@ -185,6 +188,7 @@
# The edit summary for updating the welcome log (f.e. Updating log)
summary2 = {
'commons':'Updating log',
+ 'ar':'تحديث السجل',
'de':'Ich neu bearbeite den Logfile',
'en':'Updating log',
'it':'Aggiorno il log',
@@ -194,6 +198,7 @@
# Contributions in the wiki language (f.e. Contribs)
con = {
'commons':'Contribs',
+ 'ar':'مساهمات',
'de':'Beitraege',
'en':'Contribs',
'it':'Contributi',
@@ -203,6 +208,7 @@
# The page where the bot will report users with a possibly bad username.
report_page = {
'commons':str(project) + ':Administrators\' noticeboard/User problems/Usernames to be checked',
+ 'ar':str(project) + ':إخطار الإداريين/أسماء مستخدمين للفحص',
'de':'Benutzer:Filnik/Report',
'en':str(project) + ':Administrator intervention against vandalism',
'it':'Utente:Filbot/Report',
@@ -212,6 +218,7 @@
# The edit summary for reporting a possibly bad username.
comment = {
'commons':'Adding a username that needs to be checked',
+ 'ar':'إضافة اسم مستخدم يحتاج للفحص',
'de':'Adding a username that needs to be checked',
'en':'Adding a username that needs to be checked',
'it':'Aggiunto utente da controllare',
@@ -221,6 +228,7 @@
# The page where the bot reads the real-time bad words page.
bad_pag = {
'commons':str(project) + ':Welcome log/Bad_names',
+ 'ar':str(project) + ':سجل الترحيب/أسماء سيئة',
'en':str(project) + ':Welcome log/Bad_names',
'it':'Utente:Filbot/Bad_words',
'nl':str(project) + ':Logboek_welkom/Bad_names',
@@ -230,6 +238,7 @@
# The text for reporting a possibly bad username (f.e. *[[Talk_page:Username|Username]])
report_text = {
'commons':"\n*{{user3|%s}}" + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.localtime()),
+ 'ar':"\n*{{user13|%s}}" + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.localtime()),
'de':'\n*[[Benutzer_Diskussion:%s]] ' + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.localtime()),
'en':'\n*{{Userlinks|%s}} ' + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.localtime()),
'it':"\n*[[Discussioni utente:%s]] " + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.localtime()),
@@ -238,7 +247,7 @@
}
# Add your project (in alphabetical order) if you want that the bot start
-project_inserted = ['commons', 'de', 'en', 'it', 'nl', 'no']
+project_inserted = ['commons', 'ar', 'de', 'en', 'it', 'nl', 'no']
# Ok, that's all. What is below, is the rest of code, now the code is fixed and it will run correctly in your project ;)
################################################################################################################################################