사용자:풀빵/한글welcome.py
위키백과 ― 우리 모두의 백과사전.
편집버튼을 누르세요 <pre> root@grandela1:~/work/pywikipedia# svn diff welcome.py Index: welcome.py =================================================================== --- welcome.py (revision 4284) +++ welcome.py (working copy) @@ -14,12 +14,12 @@ Ensure you have community support before running this bot! URLs to current implementations: -* Arabic Wikipedia: http://ar.wikipedia.org/wiki/ويكيبيديا:سجل الترحيب +* Arabic Wikipedia: http://ar.wikipedia.org/wiki/?????????:??? ??????? * Wikimedia Commons: http://commons.wikimedia.org/wiki/Commons:Welcome_log * Dutch Wikipedia: http://nl.wikipedia.org/wiki/Wikipedia:Logboek_welkom * Italian Wikipedia: http://it.wikipedia.org/wiki/Wikipedia:Benvenuto_log * English Wikiquote: http://en.wikiquote.org/wiki/Wikiquote:Welcome_log -* Persian Wikipedia: http://fa.wikipedia.org/wiki/ویکیپدیا:سیاهه خوشامد +* Persian Wikipedia: http://fa.wikipedia.org/wiki/?????????:????? ?????? Everything that needs customisation to support additional projects is indicated by comments. @@ -166,7 +166,7 @@ # # Distributed under the terms of the MIT license. # -__version__ = '$Id: welcome.py,v 1.4 2007/04/14 18:05:42 siebrand Exp$' +__version__ = '$Id$' # import wikipedia, config, string, locale @@ -193,11 +193,12 @@ #The page where the bot will save the log (e.g. Wikipedia:Welcome log). logbook = { 'commons': u'Project:Welcome log', - 'ar': u'Project:سجل الترحيب', + 'ar': u'Project:??? ???????', 'de': None, # no welcome log on de.wiki 'en': u'Project:Welcome log', - 'fa': u'Project:سیاهه خوشامد', + 'fa': u'Project:????? ??????', 'it': u'Project:Benvenuto log', + 'ko': None, # no welcome log on ko: 'nl': u'Project:Logboek welkom', 'no': u'Project:Velkomstlogg', 'sq': u'Project:Tung log', @@ -205,11 +206,12 @@ #The edit summary for the welcome message (e.g. Welcome!). summary = { 'commons':u'Welcome!', - 'ar':u'مرحبا!', + 'ar':u'?????!', 'de':u'Herzlich willkommen!', 'en':u'Welcome!', - 'fa':u'خوش آمدید!', + 'fa':u'??? ?????!', 'it':u'Benvenuto!', + 'ko':u'환영합니다!', 'nl':u'Welkom!', 'no':u'Velkommen!', 'sq':u'Tung' @@ -218,24 +220,26 @@ # that is your signature (the bot has a random parameter to add different # sign, so in this way it will change according to your parameters). netext = { - 'commons':u'{{subst:welcome}} %s', - 'ar':u'{{نسخ:مستخدم:Alnokta/ترحيب}} %s', + 'commons':u'{{subst:welcome}}%s', + 'ar':u'{{???:??????:Alnokta/?????}}%s', 'de':u'{{subst:Hallo}} %s', - 'en':u'{{subst:welcome}} %s', - 'fa':u'{{جا:خوشامد}} %s', + 'en':u'{{subst:welcome}}%s', + 'fa':u'{{??:??????}}%s', 'it':u'{{Benvebot}} %s', - 'nl':u'{{Welkomstbericht}} %s', - 'no':u'{{subst:bruker:jhs/vk}} %s', - 'sq':u'{{subst:tung}} %s', + 'ko':u'{{환영}}%s', + 'nl':u'{{Welkomstbericht}}%s', + 'no':u'{{subst:bruker:jhs/vk}}%s', + 'sq':u'{{subst:tung}}%s', } # The edit summary for updating the welcome log (e.g. Updating log). summary2 = { 'commons':u'Updating log', - 'ar':u'تحديث السجل', + 'ar':u'????? ?????', 'de':u'Aktualisiere Logdatei', 'en':u'Updating log', - 'fa':u'به روز رسانی سیاهه', + 'fa':u'?? ??? ????? ?????', 'it':u'Aggiorno il log', + 'ko':u'로그 갱신', 'nl':u'Logboek bijwerken', 'no':u'Oppdaterer logg', 'sq':u'Rifreskoj log', @@ -243,11 +247,12 @@ # The page where the bot will report users with a possibly bad username. report_page = { 'commons': u'Project:Administrators\' noticeboard/User problems/Usernames to be checked', - 'ar': 'Project:إخطار الإداريين/أسماء مستخدمين للفحص', + 'ar': 'Project:????? ?????????/????? ???????? ?????', 'de': u'Benutzer:Filnik/Report', 'en': u'Project:Administrator intervention against vandalism', - 'fa': u'Project:تابلوی اعلانات مدیران/گزارش ربات', + 'fa': u'Project:?????? ??????? ??????/????? ????', 'it': u'Utente:Filbot/Report', + 'ko': None, 'nl': u'Project:Verzoekpagina voor moderatoren/RegBlok/Te controleren gebruikersnamen', 'no': u'Bruker:JhsBot II/Rapport', 'sq': u'User:EagleBot/Report', @@ -255,11 +260,12 @@ # The edit summary for reporting a possibly bad username. comment = { 'commons':u'Adding a username that needs to be checked', - 'ar':u'إضافة اسم مستخدم يحتاج للفحص', + 'ar':u'????? ??? ?????? ????? ?????', 'de':u'Ergänze zu überprüfenden Benutzernamen', 'en':u'Adding a username that needs to be checked', - 'fa':u'افزودن حساب کاربری نیازمند بررسی', + 'fa':u'?????? ???? ?????? ??????? ?????', 'it':u'Aggiunto utente da controllare', + 'ko':None, 'nl':u'Te controleren gebruikersnaam toegevoegd', 'no':u'Legger til et brukernavn som m? sjekkes', 'sq':u'Added username to be checked', @@ -268,10 +274,11 @@ # (this parameter is optional). bad_pag = { 'commons': u'Project:Welcome log/Bad_names', - 'ar': u'Project:سجل الترحيب/أسماء سيئة', + 'ar': u'Project:??? ???????/????? ????', 'en': u'Project:Welcome log/Bad_names', - 'fa': u'Project:سیاهه خوشامد/نام بد', + 'fa': u'Project:????? ??????/??? ??', 'it': u'Utente:Filbot/Bad_words', + 'ko': None, 'nl': u'Project:Logboek_welkom/Bad_names', 'no': u'Bruker:JhsBot/Daarlige ord', 'sq': u'User:Eagleal/Bad_names', @@ -283,8 +290,9 @@ 'ar':u"\n*{{user13|%s}}" + timeselected, 'de':u'\n*[[Benutzer Diskussion:%s]] ' + timeselected, 'en':u'\n*{{Userlinks|%s}} ' + timeselected, - 'fa':u'\n*{{کاربر|%s}}' + timeselected, + 'fa':u'\n*{{?????|%s}}' + timeselected, 'it':u"\n{{Reported|%s|", + 'ko':None, 'nl':u'\n*{{linkgebruiker%s}} ' + timeselected, 'no':u'\n*{{bruker|%s}} ' + timeselected, 'sq':u'\n*[[User:%s]] ' + timeselected, @@ -292,20 +300,20 @@ # Set where you load your list of signatures that the bot will load if you use # the random argument (this parameter is optional). random_sign = { - 'ar': u'ويكيبيديا:سجل الترحيب/توقيعات', - 'fa': u'Project:سیاهه خوشامد/امضاها', + 'ar': u'?????????:??? ???????/???????', + 'fa': u'Project:????? ??????/??????', 'en': u'User:Filnik/Sign', 'it': u'Project:Benvenuto log/User', } # The page where the bot reads the real-time whitelist page. # (this parameter is optional). whitelist_pg = { - 'ar':u'ويكيبيديا:سجل الترحيب/قائمةبيضاء', + 'ar':u'?????????:??? ???????/??????????', 'en':u'User:Filnik/whitelist', 'it':u'Utente:Filbot/whitelist', } # Add your project (in alphabetical order) if you want that the bot start. -project_inserted = ['ar', 'commons', 'de', 'en', 'fa', 'it', 'nl', 'no', 'sq'] +project_inserted = ['ar', 'commons', 'de', 'en', 'fa', 'it', 'ko', 'nl', 'no', 'sq'] # 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 ;) </pre>