From 43b2fb56b6cd2684c743ce9bf4e8d2a27e8469ae Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 26 Jul 2006 07:15:39 +0000 Subject: [PATCH] Merged localisation-work branch: * Made lines from initialiseMessages() appear as list items during installation * Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files. * Introduced "stub global" framework to provide deferred initialisation of core modules. * Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point. * Added DBA cache type, for BDB-style caches. * Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases. * Simplified the initialisation API for LoadBalancer objects. * Removed the broken altencoding feature. * Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface. * Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled. * Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. * Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). * Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts. * Added "serialized" directory, for storing precompiled data in serialized form. --- RELEASE-NOTES | 26 + config/index.php | 10 +- includes/Article.php | 4 +- includes/AutoLoader.php | 4 +- includes/BagOStuff.php | 149 +- includes/DateFormatter.php | 20 +- includes/DefaultSettings.php | 23 +- includes/Defines.php | 19 +- includes/DifferenceEngine.php | 4 +- includes/Exception.php | 3 +- includes/GlobalFunctions.php | 42 +- includes/LoadBalancer.php | 41 +- includes/MessageCache.php | 66 +- includes/ObjectCache.php | 8 +- includes/OutputPage.php | 37 +- includes/Parser.php | 10 +- includes/Setup.php | 154 +- includes/SkinTemplate.php | 2 +- includes/SpecialAllmessages.php | 6 +- includes/SpecialPreferences.php | 50 +- includes/StubObject.php | 144 ++ includes/User.php | 136 +- languages/Language.php | 1278 ++++++++++------- languages/LanguageAb.deps.php | 9 - languages/LanguageAb.php | 30 - languages/LanguageAf.php | 90 -- languages/LanguageAn.php | 49 - languages/LanguageAr.php | 165 --- languages/LanguageArc.php | 22 - languages/LanguageAs.php | 27 - languages/LanguageAst.php | 49 - languages/LanguageAv.deps.php | 9 - languages/LanguageAv.php | 30 - languages/LanguageAy.deps.php | 9 - languages/LanguageAy.php | 28 - languages/LanguageAz.php | 72 +- languages/LanguageBa.deps.php | 9 - languages/LanguageBa.php | 30 - languages/LanguageBat_smg.deps.php | 10 - languages/LanguageBat_smg.php | 26 - languages/LanguageBe.php | 190 +-- languages/LanguageBg.php | 170 +-- languages/LanguageBm.deps.php | 9 - languages/LanguageBm.php | 24 - languages/LanguageBn.php | 75 - languages/LanguageBo.php | 35 - languages/LanguageBpy.deps.php | 10 - languages/LanguageBr.php | 131 -- languages/LanguageBs.php | 161 +-- languages/LanguageCa.php | 103 -- languages/LanguageCe.deps.php | 9 - languages/LanguageCe.php | 36 - languages/LanguageConverter.php | 9 +- languages/LanguageCs.php | 185 +-- languages/LanguageCsb.php | 48 - languages/LanguageCv.deps.php | 9 - languages/LanguageCv.php | 99 -- languages/LanguageCy.php | 137 -- languages/LanguageDa.php | 117 -- languages/LanguageDe.php | 116 -- languages/LanguageDv.php | 18 - languages/LanguageDz.php | 30 - languages/LanguageEl.php | 95 -- languages/LanguageEn.php | 16 - languages/LanguageEo.php | 107 +- languages/LanguageEs.php | 104 -- languages/LanguageEt.php | 234 +-- languages/LanguageEu.php | 83 -- languages/LanguageFa.php | 113 -- languages/LanguageFi.php | 166 +-- languages/LanguageFo.php | 109 -- languages/LanguageFr.php | 119 -- languages/LanguageFur.php | 105 -- languages/LanguageFy.php | 121 -- languages/LanguageGa.php | 169 +-- languages/LanguageGn.deps.php | 9 - languages/LanguageGn.php | 28 - languages/LanguageGsw.deps.php | 9 - languages/LanguageGsw.php | 48 +- languages/LanguageGu.php | 27 - languages/LanguageHe.php | 240 +--- languages/LanguageHi.php | 80 -- languages/LanguageHr.php | 108 +- languages/LanguageHu.php | 164 +-- languages/LanguageIa.php | 82 -- languages/LanguageId.php | 118 -- languages/LanguageIi.deps.php | 9 - languages/LanguageIi.php | 27 - languages/LanguageIs.php | 185 --- languages/LanguageIt.php | 84 -- languages/LanguageJa.php | 134 +- languages/LanguageJv.php | 115 -- languages/LanguageKa.php | 46 - languages/LanguageKm.php | 30 - languages/LanguageKn.php | 90 -- languages/LanguageKo.php | 135 +- languages/LanguageKs.php | 18 - languages/LanguageKu.php | 65 - languages/LanguageKv.deps.php | 9 - languages/LanguageKv.php | 29 - languages/LanguageLa.php | 85 +- languages/LanguageLi.php | 93 -- languages/LanguageLo.php | 30 - languages/LanguageLt.php | 88 +- languages/LanguageLv.php | 63 +- languages/LanguageMk.php | 156 -- languages/LanguageMl.php | 30 - languages/LanguageMs.php | 80 -- languages/LanguageNah.deps.php | 9 - languages/LanguageNah.php | 52 - languages/LanguageNap.deps.php | 9 - languages/LanguageNap.php | 22 - languages/LanguageNds.php | 155 -- languages/LanguageNds_nl.php | 76 - languages/LanguageNl.php | 109 -- languages/LanguageNn.php | 242 ---- languages/LanguageNo.php | 114 -- languages/LanguageNon.deps.php | 9 - languages/LanguageNon.php | 24 - languages/LanguageNv.php | 88 -- languages/LanguageOc.php | 101 -- languages/LanguageOr.php | 30 - languages/LanguageOs.deps.php | 9 - languages/LanguageOs.php | 102 -- languages/LanguagePa.php | 97 -- languages/LanguagePl.php | 133 -- languages/LanguagePms.deps.php | 9 - languages/LanguagePms.php | 75 - languages/LanguagePs.php | 26 - languages/LanguagePt.php | 202 --- languages/LanguagePt_br.deps.php | 9 - languages/LanguagePt_br.php | 80 -- languages/LanguageQu.deps.php | 9 - languages/LanguageQu.php | 28 - languages/LanguageRmy.deps.php | 9 - languages/LanguageRmy.php | 52 - languages/LanguageRo.php | 130 -- languages/LanguageRu.php | 173 +-- languages/LanguageSc.php | 55 - languages/LanguageSd.php | 18 - languages/LanguageSk.php | 173 +-- languages/LanguageSl.php | 103 +- languages/LanguageSq.php | 112 -- languages/LanguageSr.deps.php | 4 +- languages/LanguageSr.php | 15 +- languages/LanguageSr_ec.php | 255 +--- languages/LanguageSr_el.deps.php | 2 +- languages/LanguageSr_el.php | 255 +--- languages/LanguageSr_jc.deps.php | 9 - languages/LanguageSr_jc.php | 11 - languages/LanguageSr_jl.deps.php | 9 - languages/LanguageSr_jl.php | 11 - languages/LanguageSu.php | 53 - languages/LanguageSv.php | 114 -- languages/LanguageTa.php | 105 -- languages/LanguageTe.php | 88 -- languages/LanguageTh.php | 75 - languages/LanguageTr.php | 71 +- languages/LanguageTt.php | 139 -- languages/LanguageTy.deps.php | 9 - languages/LanguageTy.php | 28 - languages/LanguageTyv.php | 83 +- languages/LanguageUdm.deps.php | 9 - languages/LanguageUdm.php | 81 -- languages/LanguageUg.php | 22 - languages/LanguageUk.php | 98 -- languages/LanguageUr.php | 45 - languages/LanguageUtf8.php | 199 --- languages/LanguageVec.deps.php | 9 - languages/LanguageVec.php | 77 - languages/LanguageVi.php | 144 +- languages/LanguageWa.php | 118 +- languages/LanguageXal.php | 51 - languages/LanguageYi.php | 106 -- languages/LanguageZa.deps.php | 9 - languages/LanguageZa.php | 28 - languages/LanguageZh.deps.php | 6 +- languages/LanguageZh.php | 8 +- languages/LanguageZh_cn.php | 124 +- languages/LanguageZh_hk.deps.php | 10 - languages/LanguageZh_sg.deps.php | 9 - languages/LanguageZh_tw.deps.php | 9 - languages/LanguageZh_tw.php | 101 -- languages/MessagesAb.php | 5 + languages/MessagesAf.php | 39 +- languages/MessagesAn.php | 24 + languages/MessagesAr.php | 127 +- languages/MessagesArc.php | 15 + languages/MessagesAs.php | 20 + languages/MessagesAst.php | 29 + languages/MessagesAv.php | 9 + languages/MessagesAy.php | 9 + languages/MessagesAz.php | 32 +- languages/MessagesBa.php | 9 + languages/MessagesBat_smg.php | 9 + languages/MessagesBe.php | 140 +- languages/MessagesBg.php | 99 +- languages/MessagesBm.php | 9 + languages/MessagesBn.php | 37 +- languages/MessagesBo.php | 20 + .../{LanguageBpy.php => MessagesBpy.php} | 8 +- languages/MessagesBr.php | 60 +- languages/MessagesBs.php | 97 +- languages/MessagesCa.php | 55 +- languages/MessagesCe.php | 9 + languages/MessagesCs.php | 106 +- languages/MessagesCsb.php | 28 +- languages/MessagesCv.php | 33 +- languages/MessagesCy.php | 78 +- languages/MessagesDa.php | 56 +- languages/MessagesDe.php | 68 +- languages/MessagesDv.php | 9 + languages/MessagesDz.php | 22 + languages/MessagesEl.php | 55 +- languages/{Messages.php => MessagesEn.php} | 279 +++- languages/MessagesEnRTL.php | 5 + languages/MessagesEo.php | 47 +- languages/MessagesEs.php | 53 +- languages/MessagesEt.php | 100 +- languages/MessagesEu.php | 37 +- languages/MessagesFa.php | 65 +- languages/MessagesFi.php | 80 +- languages/MessagesFo.php | 55 +- languages/MessagesFr.php | 63 +- languages/MessagesFur.php | 45 +- languages/MessagesFy.php | 62 +- languages/MessagesGa.php | 103 +- languages/MessagesGn.php | 9 + languages/MessagesGsw.php | 6 +- languages/MessagesGu.php | 19 + languages/MessagesHe.php | 142 +- languages/MessagesHi.php | 36 +- languages/MessagesHr.php | 60 +- languages/MessagesHu.php | 64 +- languages/MessagesIa.php | 39 +- languages/MessagesId.php | 52 +- languages/MessagesIi.php | 9 + languages/MessagesIs.php | 81 +- languages/MessagesIt.php | 48 +- languages/MessagesJa.php | 61 +- languages/MessagesJv.php | 43 +- languages/MessagesKa.php | 28 + languages/MessagesKm.php | 22 + languages/MessagesKn.php | 49 +- languages/MessagesKo.php | 60 +- languages/MessagesKs.php | 11 + languages/MessagesKu.php | 29 +- languages/MessagesKv.php | 9 + languages/MessagesLa.php | 38 +- languages/MessagesLi.php | 53 +- languages/MessagesLo.php | 22 + languages/MessagesLt.php | 48 +- languages/MessagesLv.php | 36 +- languages/MessagesMk.php | 90 +- languages/MessagesMl.php | 23 + languages/MessagesMs.php | 39 +- languages/MessagesNah.php | 20 +- languages/MessagesNap.php | 10 + languages/MessagesNds.php | 102 +- languages/MessagesNds_nl.php | 60 + languages/MessagesNl.php | 59 +- languages/MessagesNn.php | 159 +- languages/MessagesNo.php | 65 +- languages/MessagesNon.php | 11 + languages/MessagesNv.php | 72 + languages/MessagesOc.php | 56 +- languages/MessagesOr.php | 22 + languages/MessagesOs.php | 46 +- languages/MessagesPa.php | 55 +- languages/MessagesPl.php | 55 +- languages/MessagesPms.php | 38 +- languages/MessagesPs.php | 17 + languages/MessagesPt.php | 120 +- languages/MessagesPt_br.php | 41 +- languages/MessagesQu.php | 9 + languages/MessagesRmy.php | 18 +- languages/MessagesRo.php | 75 +- languages/MessagesRu.php | 127 +- languages/MessagesSc.php | 38 +- languages/MessagesSd.php | 12 + languages/MessagesSk.php | 157 +- languages/MessagesSl.php | 63 +- languages/MessagesSq.php | 57 +- languages/MessagesSr.php | 12 + languages/MessagesSr_ec.php | 190 ++- languages/MessagesSr_el.php | 193 ++- .../{LanguageZh_hk.php => MessagesSr_jc.php} | 5 +- .../{LanguageZh_sg.php => MessagesSr_jl.php} | 5 +- languages/MessagesSu.php | 32 +- languages/MessagesSv.php | 62 +- languages/MessagesTa.php | 51 +- languages/MessagesTe.php | 46 +- languages/MessagesTh.php | 38 +- .../{LanguageTlh.php => MessagesTlh.php} | 16 +- languages/MessagesTr.php | 33 +- languages/MessagesTt.php | 81 +- languages/MessagesTyv.php | 51 +- languages/MessagesUdm.php | 38 +- languages/MessagesUg.php | 10 + languages/MessagesUk.php | 45 +- languages/MessagesUr.php | 12 + languages/MessagesVec.php | 33 +- languages/MessagesVi.php | 104 +- languages/MessagesWa.php | 64 +- languages/MessagesXal.php | 30 +- languages/MessagesYi.php | 46 +- languages/MessagesZa.php | 9 + languages/MessagesZh.php | 7 + languages/MessagesZh_cn.php | 62 +- languages/MessagesZh_hk.php | 10 + languages/MessagesZh_sg.php | 10 + languages/MessagesZh_tw.php | 57 +- languages/scripts/date-formats.php | 45 + languages/scripts/function-list.php | 44 + languages/scripts/validate.php | 40 + maintenance/InitialiseMessages.inc | 65 +- maintenance/commandLine.inc | 11 +- maintenance/parserTests.inc | 6 +- serialized/Makefile | 28 + serialized/README | 37 + serialized/Utf8Case.ser | 1 + serialized/serialize-localisation.php | 34 + serialized/serialize.php | 74 + 323 files changed, 8165 insertions(+), 12591 deletions(-) create mode 100644 includes/StubObject.php delete mode 100644 languages/LanguageAb.deps.php delete mode 100644 languages/LanguageAb.php delete mode 100644 languages/LanguageAf.php delete mode 100644 languages/LanguageAn.php delete mode 100644 languages/LanguageAr.php delete mode 100644 languages/LanguageArc.php delete mode 100644 languages/LanguageAs.php delete mode 100644 languages/LanguageAst.php delete mode 100644 languages/LanguageAv.deps.php delete mode 100644 languages/LanguageAv.php delete mode 100644 languages/LanguageAy.deps.php delete mode 100644 languages/LanguageAy.php delete mode 100644 languages/LanguageBa.deps.php delete mode 100644 languages/LanguageBa.php delete mode 100644 languages/LanguageBat_smg.deps.php delete mode 100644 languages/LanguageBat_smg.php delete mode 100644 languages/LanguageBm.deps.php delete mode 100644 languages/LanguageBm.php delete mode 100644 languages/LanguageBn.php delete mode 100644 languages/LanguageBo.php delete mode 100644 languages/LanguageBpy.deps.php delete mode 100644 languages/LanguageBr.php delete mode 100644 languages/LanguageCa.php delete mode 100644 languages/LanguageCe.deps.php delete mode 100644 languages/LanguageCe.php delete mode 100644 languages/LanguageCsb.php delete mode 100644 languages/LanguageCv.deps.php delete mode 100644 languages/LanguageCv.php delete mode 100644 languages/LanguageCy.php delete mode 100644 languages/LanguageDa.php delete mode 100644 languages/LanguageDe.php delete mode 100644 languages/LanguageDv.php delete mode 100644 languages/LanguageDz.php delete mode 100644 languages/LanguageEl.php delete mode 100644 languages/LanguageEn.php delete mode 100644 languages/LanguageEs.php delete mode 100644 languages/LanguageEu.php delete mode 100644 languages/LanguageFa.php delete mode 100644 languages/LanguageFo.php delete mode 100644 languages/LanguageFr.php delete mode 100644 languages/LanguageFur.php delete mode 100644 languages/LanguageFy.php delete mode 100644 languages/LanguageGn.deps.php delete mode 100644 languages/LanguageGn.php delete mode 100644 languages/LanguageGsw.deps.php delete mode 100644 languages/LanguageGu.php delete mode 100644 languages/LanguageHi.php delete mode 100644 languages/LanguageIa.php delete mode 100644 languages/LanguageId.php delete mode 100644 languages/LanguageIi.deps.php delete mode 100644 languages/LanguageIi.php delete mode 100644 languages/LanguageIs.php delete mode 100644 languages/LanguageIt.php delete mode 100644 languages/LanguageJv.php delete mode 100644 languages/LanguageKa.php delete mode 100644 languages/LanguageKm.php delete mode 100644 languages/LanguageKn.php delete mode 100644 languages/LanguageKs.php delete mode 100644 languages/LanguageKu.php delete mode 100644 languages/LanguageKv.deps.php delete mode 100644 languages/LanguageKv.php delete mode 100644 languages/LanguageLi.php delete mode 100644 languages/LanguageLo.php delete mode 100644 languages/LanguageMk.php delete mode 100644 languages/LanguageMl.php delete mode 100644 languages/LanguageMs.php delete mode 100644 languages/LanguageNah.deps.php delete mode 100644 languages/LanguageNah.php delete mode 100644 languages/LanguageNap.deps.php delete mode 100644 languages/LanguageNap.php delete mode 100644 languages/LanguageNds.php delete mode 100644 languages/LanguageNds_nl.php delete mode 100644 languages/LanguageNl.php delete mode 100644 languages/LanguageNn.php delete mode 100644 languages/LanguageNo.php delete mode 100644 languages/LanguageNon.deps.php delete mode 100644 languages/LanguageNon.php delete mode 100644 languages/LanguageNv.php delete mode 100644 languages/LanguageOc.php delete mode 100644 languages/LanguageOr.php delete mode 100644 languages/LanguageOs.deps.php delete mode 100644 languages/LanguageOs.php delete mode 100644 languages/LanguagePa.php delete mode 100644 languages/LanguagePl.php delete mode 100644 languages/LanguagePms.deps.php delete mode 100644 languages/LanguagePms.php delete mode 100644 languages/LanguagePs.php delete mode 100644 languages/LanguagePt.php delete mode 100644 languages/LanguagePt_br.deps.php delete mode 100644 languages/LanguagePt_br.php delete mode 100644 languages/LanguageQu.deps.php delete mode 100644 languages/LanguageQu.php delete mode 100644 languages/LanguageRmy.deps.php delete mode 100644 languages/LanguageRmy.php delete mode 100644 languages/LanguageRo.php delete mode 100644 languages/LanguageSc.php delete mode 100644 languages/LanguageSd.php delete mode 100644 languages/LanguageSq.php delete mode 100644 languages/LanguageSr_jc.deps.php delete mode 100644 languages/LanguageSr_jc.php delete mode 100644 languages/LanguageSr_jl.deps.php delete mode 100644 languages/LanguageSr_jl.php delete mode 100644 languages/LanguageSu.php delete mode 100644 languages/LanguageSv.php delete mode 100644 languages/LanguageTa.php delete mode 100644 languages/LanguageTe.php delete mode 100644 languages/LanguageTh.php delete mode 100644 languages/LanguageTt.php delete mode 100644 languages/LanguageTy.deps.php delete mode 100644 languages/LanguageTy.php delete mode 100644 languages/LanguageUdm.deps.php delete mode 100644 languages/LanguageUdm.php delete mode 100644 languages/LanguageUg.php delete mode 100644 languages/LanguageUk.php delete mode 100644 languages/LanguageUr.php delete mode 100644 languages/LanguageUtf8.php delete mode 100644 languages/LanguageVec.deps.php delete mode 100644 languages/LanguageVec.php delete mode 100644 languages/LanguageXal.php delete mode 100644 languages/LanguageYi.php delete mode 100644 languages/LanguageZa.deps.php delete mode 100644 languages/LanguageZa.php delete mode 100644 languages/LanguageZh_hk.deps.php delete mode 100644 languages/LanguageZh_sg.deps.php delete mode 100644 languages/LanguageZh_tw.deps.php delete mode 100644 languages/LanguageZh_tw.php create mode 100644 languages/MessagesAb.php create mode 100644 languages/MessagesAn.php create mode 100644 languages/MessagesArc.php create mode 100644 languages/MessagesAs.php create mode 100644 languages/MessagesAst.php create mode 100644 languages/MessagesAv.php create mode 100644 languages/MessagesAy.php create mode 100644 languages/MessagesBa.php create mode 100644 languages/MessagesBat_smg.php create mode 100644 languages/MessagesBm.php create mode 100644 languages/MessagesBo.php rename languages/{LanguageBpy.php => MessagesBpy.php} (62%) create mode 100644 languages/MessagesCe.php create mode 100644 languages/MessagesDv.php create mode 100644 languages/MessagesDz.php rename languages/{Messages.php => MessagesEn.php} (89%) create mode 100644 languages/MessagesEnRTL.php create mode 100644 languages/MessagesGn.php create mode 100644 languages/MessagesGu.php create mode 100644 languages/MessagesIi.php create mode 100644 languages/MessagesKa.php create mode 100644 languages/MessagesKm.php create mode 100644 languages/MessagesKs.php create mode 100644 languages/MessagesKv.php create mode 100644 languages/MessagesLo.php create mode 100644 languages/MessagesMl.php create mode 100644 languages/MessagesNap.php create mode 100644 languages/MessagesNds_nl.php create mode 100644 languages/MessagesNon.php create mode 100644 languages/MessagesNv.php create mode 100644 languages/MessagesOr.php create mode 100644 languages/MessagesPs.php create mode 100644 languages/MessagesQu.php create mode 100644 languages/MessagesSd.php create mode 100644 languages/MessagesSr.php rename languages/{LanguageZh_hk.php => MessagesSr_jc.php} (53%) rename languages/{LanguageZh_sg.php => MessagesSr_jl.php} (53%) rename languages/{LanguageTlh.php => MessagesTlh.php} (66%) create mode 100644 languages/MessagesUg.php create mode 100644 languages/MessagesUr.php create mode 100644 languages/MessagesZa.php create mode 100644 languages/MessagesZh.php create mode 100644 languages/MessagesZh_hk.php create mode 100644 languages/MessagesZh_sg.php create mode 100644 languages/scripts/date-formats.php create mode 100644 languages/scripts/function-list.php create mode 100644 languages/scripts/validate.php create mode 100644 serialized/Makefile create mode 100644 serialized/README create mode 100644 serialized/Utf8Case.ser create mode 100644 serialized/serialize-localisation.php create mode 100644 serialized/serialize.php diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 15bcc0e155..3db3411b89 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -73,6 +73,32 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6751) Fix preview of blanked section with edit on first preview option * (bug 5456) Separate MediaWiki:Search into messages for both noun and verb, introduced 'MediaWiki:Searchbutton' +* Made lines from initialiseMessages() appear as list items during installation +* Moved the bulk of the localisation data from the Language*.php files to the + Messages*.php files. Deleted most of the Languages*.php files. +* Introduced "stub global" framework to provide deferred initialisation of core + modules. +* Removed placeholder values for $wgTitle and $wgArticle, these variables will + now be null during the initialisation process, until they are set by index.php + or another entry point. +* Added DBA cache type, for BDB-style caches. +* Removed custom date format functions, replacing them with a format string in + the style of PHP's date(). Used string identifiers instead of integer + identifiers, in both the language files and user preferences. Migration should + be transparent in most cases. +* Simplified the initialisation API for LoadBalancer objects. +* Removed the broken altencoding feature. +* Moved default user options and toggles from Language to User. Language objects + are still able to define default preference overrides and extra user toggles, + via a slightly different interface. +* Don't include the date option in the parser cache rendering hash unless + $wgUseDynamicDates is enabled. +* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. +* Removed inclusion of language files from the bottom of Language.php. This is + now consistently done from Language::factory(). +* Add the name of the executing maintenance script to the debug log. Start the + profiler during maintenance scripts. +* Added "serialized" directory, for storing precompiled data in serialized form. == Languages updated == diff --git a/config/index.php b/config/index.php index 285a7aa44e..1b8d5b8fa9 100644 --- a/config/index.php +++ b/config/index.php @@ -873,9 +873,7 @@ error_reporting( E_ALL ); $revid = $revision->insertOn( $wgDatabase ); $article->updateRevisionOn( $wgDatabase, $revision ); - print "
  • ";
    -			initialiseMessages();
    -			print "
  • \n"; + initialiseMessages( false, false, 'printListItem' ); } /* Write out the config file now that all is well */ @@ -1539,7 +1537,7 @@ function getLanguageList() { $d = opendir( "languages"); while( false !== ($f = readdir( $d ) ) ) { $m = array(); - if( preg_match( '/Language([A-Z][a-z_]+)\.php$/', $f, $m ) ) { + if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $f, $m ) ) { $code = str_replace( '_', '-', strtolower( $m[1] ) ); if( isset( $wgLanguageNames[$code] ) ) { $name = $code . ' - ' . $wgLanguageNames[$code]; @@ -1642,6 +1640,10 @@ function database_switcher($db) { print "

    $full specific options:

    \n"; } +function printListItem( $item ) { + print "
  • $item
  • "; +} + ?>
    diff --git a/includes/Article.php b/includes/Article.php index 3d6460f395..738fb0fc59 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -804,13 +804,13 @@ class Article { # Display content, don't attempt to save to parser cache # Don't show section-edit links on old revisions... this way lies madness. if( !$this->isCurrent() ) { - $oldEditSectionSetting = $wgOut->mParserOptions->setEditSection( false ); + $oldEditSectionSetting = $wgOut->parserOptions()->setEditSection( false ); } # Display content and don't save to parser cache $wgOut->addPrimaryWikiText( $text, $this, false ); if( !$this->isCurrent() ) { - $wgOut->mParserOptions->setEditSection( $oldEditSectionSetting ); + $wgOut->parserOptions()->setEditSection( $oldEditSectionSetting ); } } } diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index f2082f82cd..0f47f3ca38 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -221,7 +221,9 @@ function __autoload($className) { 'Xml' => 'includes/Xml.php', 'ZhClient' => 'includes/ZhClient.php', 'memcached' => 'includes/memcached-client.php', - 'UtfNormal' => 'includes/normal/UtfNormal.php' + 'UtfNormal' => 'includes/normal/UtfNormal.php', + 'Language' => 'languages/Language.php', + 'LanguageUtf8' => 'languages/LanguageUtf8.php', ); if ( isset( $localClasses[$className] ) ) { $filename = $localClasses[$className]; diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 54912f905c..d1726072d7 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -146,6 +146,17 @@ class BagOStuff { if($this->debugmode) wfDebug("BagOStuff debug: $text\n"); } + + /** + * Convert an optionally relative time to an absolute time + */ + static function convertExpiry( $exptime ) { + if(($exptime != 0) && ($exptime < 3600*24*30)) { + return time() + $exptime; + } else { + return $exptime; + } + } } @@ -183,9 +194,7 @@ class HashBagOStuff extends BagOStuff { } function set($key,$value,$exptime=0) { - if(($exptime != 0) && ($exptime < 3600*24*30)) - $exptime = time() + $exptime; - $this->bag[$key] = array( $value, $exptime ); + $this->bag[$key] = array( $value, BagOStuff::convertExpiry( $exptime ) ); } function delete($key,$time=0) { @@ -535,4 +544,138 @@ class eAccelBagOStuff extends BagOStuff { return true; } } + +class DBABagOStuff extends BagOStuff { + var $mHandler, $mFile, $mReader, $mWriter, $mDisabled; + + function __construct( $handler = 'db3', $dir = false ) { + if ( $dir === false ) { + global $wgTmpDirectory; + $dir = $wgTmpDirectory; + } + global $wgDBname, $wgDBprefix; + $this->mFile = "$dir/mw-cache-$wgDBname"; + if ( $wgDBprefix ) { + $this->mFile .= '-' . $wgDBprefix; + } + $this->mFile .= '.db'; + $this->mHandler = $handler; + } + + /** + * Encode value and expiry for storage + */ + function encode( $value, $expiry ) { + # Convert to absolute time + $expiry = BagOStuff::convertExpiry( $expiry ); + return sprintf( '%010u', intval( $expiry ) ) . ' ' . serialize( $value ); + } + + /** + * @return list containing value first and expiry second + */ + function decode( $blob ) { + if ( !is_string( $blob ) ) { + return array( 0, null ); + } else { + return array( + unserialize( substr( $blob, 11 ) ), + intval( substr( $blob, 0, 10 ) ) + ); + } + } + + function getReader() { + if ( file_exists( $this->mFile ) ) { + $handle = dba_open( $this->mFile, 'rl', $this->mHandler ); + } else { + $handle = $this->getWriter(); + } + if ( !$handle ) { + wfDebug( "Unable to open DBA cache file {$this->mFile}\n" ); + } + return $handle; + } + + function getWriter() { + $handle = dba_open( $this->mFile, 'cl', $this->mHandler ); + if ( !$handle ) { + wfDebug( "Unable to open DBA cache file {$this->mFile}\n" ); + } + return $handle; + } + + function get( $key ) { + wfProfileIn( __METHOD__ ); + $handle = $this->getReader(); + if ( !$handle ) { + return null; + } + $val = dba_fetch( $key, $handle ); + list( $val, $expiry ) = $this->decode( $val ); + # Must close ASAP because locks are held + dba_close( $handle ); + + if ( !is_null( $val ) && $expiry && $expiry < time() ) { + # Key is expired, delete it + $handle = $this->getWriter(); + dba_delete( $key, $handle ); + dba_close( $handle ); + wfDebug( __METHOD__.": $key expired\n" ); + $val = null; + } + wfProfileOut( __METHOD__ ); + return $val; + } + + function set( $key, $value, $exptime=0 ) { + wfProfileIn( __METHOD__ ); + $blob = $this->encode( $value, $exptime ); + $handle = $this->getWriter(); + if ( !$handle ) { + return false; + } + $ret = dba_replace( $key, $blob, $handle ); + dba_close( $handle ); + wfProfileOut( __METHOD__ ); + return $ret; + } + + function delete( $key, $time = 0 ) { + wfProfileIn( __METHOD__ ); + $handle = $this->getWriter(); + if ( !$handle ) { + return false; + } + $ret = dba_delete( $key, $handle ); + dba_close( $handle ); + wfProfileOut( __METHOD__ ); + return $ret; + } + + function add( $key, $value, $exptime = 0 ) { + wfProfileIn( __METHOD__ ); + $blob = $this->encode( $value, $exptime ); + $handle = $this->getWriter(); + if ( !$handle ) { + return false; + } + $ret = dba_insert( $key, $blob, $handle ); + # Insert failed, check to see if it failed due to an expired key + if ( !$ret ) { + list( $value, $expiry ) = $this->decode( dba_fetch( $key, $handle ) ); + if ( $expiry < time() ) { + # Yes expired, delete and try again + dba_delete( $key, $handle ); + $ret = dba_insert( $key, $blob, $handle ); + # This time if it failed then it will be handled by the caller like any other race + } + } + + dba_close( $handle ); + wfProfileOut( __METHOD__ ); + return $ret; + } +} + ?> diff --git a/includes/DateFormatter.php b/includes/DateFormatter.php index 8b87215705..99d8be71ed 100644 --- a/includes/DateFormatter.php +++ b/includes/DateFormatter.php @@ -17,7 +17,7 @@ class DateFormatter var $monthNames = '', $rxDM, $rxMD, $rxDMY, $rxYDM, $rxMDY, $rxYMD; var $regexes, $pDays, $pMonths, $pYears; - var $rules, $xMonths; + var $rules, $xMonths, $preferences; const ALL = -1; const NONE = 0; @@ -91,6 +91,14 @@ class DateFormatter $this->rules[self::MDY][self::DM] = self::MD; $this->rules[self::ALL][self::DM] = self::DM; $this->rules[self::NONE][self::ISO2] = self::ISO1; + + $this->preferences = array( + 'default' => self::NONE, + 'dmy' => self::DMY, + 'mdy' => self::MDY, + 'ymd' => self::YMD, + 'ISO 8601' => self::ISO1, + ); } /** @@ -110,11 +118,15 @@ class DateFormatter } /** - * @param $preference - * @param $text + * @param string $preference User preference + * @param string $text Text to reformat */ function reformat( $preference, $text ) { - if ($preference == 'ISO 8601') $preference = 4; # The ISO 8601 option used to be 4 + if ( isset( $this->preferences[$preference] ) ) { + $preference = $this->preferences[$preference]; + } else { + $preference = self::NONE; + } for ( $i=1; $i<=self::LAST; $i++ ) { $this->mSource = $i; if ( @$this->rules[$preference][$i] ) { diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 9e89efdcb5..873bd5211f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -37,8 +37,17 @@ $wgVersion = '1.8alpha'; /** Name of the site. It must be changed in LocalSettings.php */ $wgSitename = 'MediaWiki'; -/** Will be same as you set @see $wgSitename */ -$wgMetaNamespace = FALSE; +/** + * Name of the project namespace. If left set to false, $wgSitename will be + * used instead. + */ +$wgMetaNamespace = false; + +/** + * Name of the project talk namespace. If left set to false, a name derived + * from the name of the project namespace will be used. + */ +$wgMetaNamespaceTalk = false; /** URL of the server. It will be automatically built including https mode */ @@ -1546,16 +1555,6 @@ $wgTidyInternal = function_exists( 'tidy_load_config' ); /** See list of skins and their symbolic names in languages/Language.php */ $wgDefaultSkin = 'monobook'; -/** - * Settings added to this array will override the language globals for the user - * preferences used by anonymous visitors and newly created accounts. (See names - * and sample values in languages/Language.php) - * For instance, to disable section editing links: - * $wgDefaultUserOptions ['editsection'] = 0; - * - */ -$wgDefaultUserOptions = array(); - /** Whether or not to allow and use real name fields. Defaults to true. */ $wgAllowRealName = true; diff --git a/includes/Defines.php b/includes/Defines.php index 287551b4d6..b8acadb03e 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -20,6 +20,17 @@ define( 'DBO_DEFAULT', 16 ); define( 'DBO_PERSISTENT', 32 ); /**#@-*/ +# Valid database indexes +# Operation-based indexes +define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) +define( 'DB_MASTER', -2 ); # Write to master (or only server) +define( 'DB_LAST', -3 ); # Whatever database was used last + +# Obsolete aliases +define( 'DB_READ', -1 ); +define( 'DB_WRITE', -2 ); + + /**#@+ * Virtual namespaces; don't appear in the page database */ @@ -106,6 +117,7 @@ define( 'CACHE_NONE', 0 ); // Do not cache define( 'CACHE_DB', 1 ); // Store cache objects in the DB define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers define( 'CACHE_ACCEL', 3 ); // eAccelerator or Turck, whichever is available +define( 'CACHE_DBA', 4 ); // Use PHP's DBA extension to store in a DBM-style database /**#@-*/ @@ -149,10 +161,15 @@ define( 'ALF_NO_BLOCK_LOCK', 8 ); * Date format selectors; used in user preference storage and by * Language::date() and co. */ -define( 'MW_DATE_DEFAULT', '0' ); +/*define( 'MW_DATE_DEFAULT', '0' ); define( 'MW_DATE_MDY', '1' ); define( 'MW_DATE_DMY', '2' ); define( 'MW_DATE_YMD', '3' ); +define( 'MW_DATE_ISO', 'ISO 8601' );*/ +define( 'MW_DATE_DEFAULT', 'default' ); +define( 'MW_DATE_MDY', 'mdy' ); +define( 'MW_DATE_DMY', 'dmy' ); +define( 'MW_DATE_YMD', 'ymd' ); define( 'MW_DATE_ISO', 'ISO 8601' ); /**#@-*/ diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 4871a54214..6dc82d6b1f 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -188,7 +188,7 @@ CONTROL; $wgOut->addHTML( "

    {$this->mPagetitle}

    \n" ); if( !$this->mNewRev->isCurrent() ) { - $oldEditSectionSetting = $wgOut->mParserOptions->setEditSection( false ); + $oldEditSectionSetting = $wgOut->parserOptions()->setEditSection( false ); } $this->loadNewText(); @@ -198,7 +198,7 @@ CONTROL; $wgOut->addSecondaryWikiText( $this->mNewtext ); if( !$this->mNewRev->isCurrent() ) { - $wgOut->mParserOptions->setEditSection( $oldEditSectionSetting ); + $wgOut->parserOptions()->setEditSection( $oldEditSectionSetting ); } wfProfileOut( $fname ); diff --git a/includes/Exception.php b/includes/Exception.php index 9b046117f9..027c5d3350 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -3,7 +3,8 @@ class MWException extends Exception { function useOutputPage() { - return !empty( $GLOBALS['wgFullyInitialised'] ); + return !empty( $GLOBALS['wgFullyInitialised'] ) && + !empty( $GLOBALS['wgArticle'] ) && !empty( $GLOBALS['wgTitle'] ); } function useMessageCache() { diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index dc35e828dc..c34b7db1e6 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -259,7 +259,8 @@ function wfLogProfilingData() { $forward .= ' from ' . $_SERVER['HTTP_FROM']; if( $forward ) $forward = "\t(proxied via {$_SERVER['REMOTE_ADDR']}{$forward})"; - if( is_object($wgUser) && $wgUser->isAnon() ) + // Don't unstub $wgUser at this late stage just for statistics purposes + if( StubObject::isRealObject($wgUser) && $wgUser->isAnon() ) $forward .= ' anon'; $log = sprintf( "%s\t%04.3f\t%s\n", gmdate( 'YmdHis' ), $elapsed, @@ -438,7 +439,7 @@ function wfMsgWeirdKey ( $key ) { * @private */ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { - global $wgParser, $wgMsgParserOptions, $wgContLang, $wgMessageCache, $wgLang; + global $wgParser, $wgContLang, $wgMessageCache, $wgLang; if ( is_object( $wgMessageCache ) ) $transstat = $wgMessageCache->getTransform(); @@ -465,7 +466,7 @@ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { if($message === false) $message = Language::getMessage($key); if ( $transform && strstr( $message, '{{' ) !== false ) { - $message = $wgParser->transformMsg($message, $wgMsgParserOptions); + $message = $wgParser->transformMsg($message, $wgMessageCache->getParserOptions() ); } } @@ -2011,4 +2012,39 @@ function wfIsLocalURL( $url ) { return Http::isLocalURL( $url ); } +/** + * Initialise php session + */ +function wfSetupSession() { + global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain; + if( $wgSessionsInMemcached ) { + require_once( 'MemcachedSessions.php' ); + } elseif( 'files' != ini_get( 'session.save_handler' ) ) { + # If it's left on 'user' or another setting from another + # application, it will end up failing. Try to recover. + ini_set ( 'session.save_handler', 'files' ); + } + session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain ); + session_cache_limiter( 'private, must-revalidate' ); + @session_start(); +} + +/** + * Get an object from the precompiled serialized directory + * + * @return mixed The variable on success, false on failure + */ +function wfGetPrecompiledData( $name ) { + global $IP; + + $file = "$IP/serialized/$name"; + if ( file_exists( $file ) ) { + $blob = file_get_contents( $file ); + if ( $blob ) { + return unserialize( $blob ); + } + } + return false; +} + ?> diff --git a/includes/LoadBalancer.php b/includes/LoadBalancer.php index e9f712e6e1..cbee03ea06 100644 --- a/includes/LoadBalancer.php +++ b/includes/LoadBalancer.php @@ -9,16 +9,6 @@ */ require_once( 'Database.php' ); -# Valid database indexes -# Operation-based indexes -define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) -define( 'DB_MASTER', -2 ); # Write to master (or only server) -define( 'DB_LAST', -3 ); # Whatever database was used last - -# Obsolete aliases -define( 'DB_READ', -1 ); -define( 'DB_WRITE', -2 ); - # Scale polling time so that under overload conditions, the database server # receives a SHOW STATUS query at an average interval of this many microseconds @@ -38,26 +28,7 @@ class LoadBalancer { /* private */ var $mWaitForFile, $mWaitForPos, $mWaitTimeout; /* private */ var $mLaggedSlaveMode, $mLastError = 'Unknown error'; - function LoadBalancer() - { - $this->mServers = array(); - $this->mConnections = array(); - $this->mFailFunction = false; - $this->mReadIndex = -1; - $this->mForce = -1; - $this->mLastIndex = -1; - $this->mErrorConnection = false; - $this->mAllowLag = false; - } - - static function newFromParams( $servers, $failFunction = false, $waitTimeout = 10 ) - { - $lb = new LoadBalancer; - $lb->initialise( $servers, $failFunction, $waitTimeout ); - return $lb; - } - - function initialise( $servers, $failFunction = false, $waitTimeout = 10 ) + function LoadBalancer( $servers, $failFunction = false, $waitTimeout = 10, $waitForMasterNow = false ) { $this->mServers = $servers; $this->mFailFunction = $failFunction; @@ -71,6 +42,8 @@ class LoadBalancer { $this->mWaitForPos = false; $this->mWaitTimeout = $waitTimeout; $this->mLaggedSlaveMode = false; + $this->mErrorConnection = false; + $this->mAllowLag = false; foreach( $servers as $i => $server ) { $this->mLoads[$i] = $server['load']; @@ -83,6 +56,14 @@ class LoadBalancer { } } } + if ( $waitForMasterNow ) { + $this->loadMasterPos(); + } + } + + static function newFromParams( $servers, $failFunction = false, $waitTimeout = 10 ) + { + return new LoadBalancer( $servers, $failFunction, $waitTimeout ); } /** diff --git a/includes/MessageCache.php b/includes/MessageCache.php index c8b7124cea..cf64f31e00 100644 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -36,10 +36,6 @@ class MessageCache { $this->mMemcKey = $memcPrefix.':messages'; $this->mKeys = false; # initialised on demand $this->mInitialised = true; - - wfProfileIn( __METHOD__.'-parseropt' ); - $this->mParserOptions = new ParserOptions( $u=NULL ); - wfProfileOut( __METHOD__.'-parseropt' ); $this->mParser = null; # When we first get asked for a message, @@ -51,6 +47,13 @@ class MessageCache { wfProfileOut( __METHOD__ ); } + function getParserOptions() { + if ( !$this->mParserOptions ) { + $this->mParserOptions = new ParserOptions; + } + return $this->mParserOptions; + } + /** * Try to load the cache from a local file */ @@ -190,6 +193,9 @@ class MessageCache { } else { $this->loadFromScript( $hash ); } + if ( $this->mCache ) { + wfDebug( "MessageCache::load(): got from local cache\n" ); + } } wfProfileOut( $fname.'-fromlocal' ); @@ -197,18 +203,20 @@ class MessageCache { if ( !$this->mCache ) { wfProfileIn( $fname.'-fromcache' ); $this->mCache = $this->mMemc->get( $this->mMemcKey ); - - # Save to local cache - if ( $wgLocalMessageCache !== false ) { - $serialized = serialize( $this->mCache ); - if ( !$hash ) { - $hash = md5( $serialized ); - $this->mMemc->set( "{$this->mMemcKey}-hash", $hash, $this->mExpiry ); - } - if ($wgLocalMessageCacheSerialized) { - $this->saveToLocal( $serialized,$hash ); - } else { - $this->saveToScript( $this->mCache, $hash ); + if ( $this->mCache ) { + wfDebug( "MessageCache::load(): got from global cache\n" ); + # Save to local cache + if ( $wgLocalMessageCache !== false ) { + $serialized = serialize( $this->mCache ); + if ( !$hash ) { + $hash = md5( $serialized ); + $this->mMemc->set( "{$this->mMemcKey}-hash", $hash, $this->mExpiry ); + } + if ($wgLocalMessageCacheSerialized) { + $this->saveToLocal( $serialized,$hash ); + } else { + $this->saveToScript( $this->mCache, $hash ); + } } } wfProfileOut( $fname.'-fromcache' ); @@ -283,7 +291,7 @@ class MessageCache { * Loads all or main part of cacheable messages from the database */ function loadFromDB() { - global $wgAllMessagesEn, $wgLang; + global $wgLang; $fname = 'MessageCache::loadFromDB'; $dbr =& wfGetDB( DB_SLAVE ); @@ -306,7 +314,8 @@ class MessageCache { # Negative caching # Go through the language array and the extension array and make a note of # any keys missing from the cache - foreach ( $wgAllMessagesEn as $key => $value ) { + $allMessages = Language::getMessagesFor( 'en' ); + foreach ( $allMessages as $key => $value ) { $uckey = $wgLang->ucfirst( $key ); if ( !array_key_exists( $uckey, $this->mCache ) ) { $this->mCache[$uckey] = false; @@ -332,10 +341,11 @@ class MessageCache { * Not really needed anymore */ function getKeys() { - global $wgAllMessagesEn, $wgContLang; + global $wgContLang; if ( !$this->mKeys ) { $this->mKeys = array(); - foreach ( $wgAllMessagesEn as $key => $value ) { + $allMessages = Language::getMessagesFor( 'en' ); + foreach ( $allMessages as $key => $value ) { $title = $wgContLang->ucfirst( $key ); array_push( $this->mKeys, $title ); } @@ -403,10 +413,9 @@ class MessageCache { $this->mMemc->delete( $lockKey ); } - function get( $key, $useDB, $forcontent=true, $isfullkey = false ) { - global $wgContLanguageCode; + function get( $key, $useDB = true, $forcontent = true, $isfullkey = false ) { + global $wgContLanguageCode, $wgContLang; if( $forcontent ) { - global $wgContLang; $lang =& $wgContLang; $langcode = $wgContLanguageCode; } else { @@ -425,7 +434,7 @@ class MessageCache { $message = false; if( !$this->mDisable && $useDB ) { - $title = $lang->ucfirst( $key ); + $title = $wgContLang->ucfirst( $key ); if(!$isfullkey && ($langcode != $wgContLanguageCode) ) { $title .= '/' . $langcode; } @@ -442,6 +451,7 @@ class MessageCache { # Try the array in the language object if( $message === false ) { + #wfDebug( "Trying language object for message $key\n" ); wfSuppressWarnings(); $message = $lang->getMessage( $key ); wfRestoreWarnings(); @@ -464,7 +474,7 @@ class MessageCache { if( ($message === false || $message === '-' ) && !$this->mDisable && $useDB && !$isfullkey && ($langcode != $wgContLanguageCode) ) { - $message = $this->getFromCache( $lang->ucfirst( $key ) ); + $message = $this->getFromCache( $wgContLang->ucfirst( $key ) ); } # Final fallback @@ -531,7 +541,7 @@ class MessageCache { } if ( !$this->mDisableTransform && $this->mParser ) { if( strpos( $message, '{{' ) !== false ) { - $message = $this->mParser->transformMsg( $message, $this->mParserOptions ); + $message = $this->mParser->transformMsg( $message, $this->getParserOptions() ); } } return $message; @@ -573,8 +583,12 @@ class MessageCache { * Clear all stored messages. Mainly used after a mass rebuild. */ function clear() { + global $wgLocalMessageCache, $wgDBname; if( $this->mUseCache ) { + # Global cache $this->mMemc->delete( $this->mMemcKey ); + # Invalidate all local caches + $this->mMemc->delete( "{$this->mMemcKey}-hash" ); } } } diff --git a/includes/ObjectCache.php b/includes/ObjectCache.php index fe7417d2c1..e7ef548b17 100644 --- a/includes/ObjectCache.php +++ b/includes/ObjectCache.php @@ -84,8 +84,14 @@ function &wfGetCache( $inputType ) { if ( $wgCaches[CACHE_ACCEL] !== false ) { $cache =& $wgCaches[CACHE_ACCEL]; } + } elseif ( $type == CACHE_DBA ) { + if ( !array_key_exists( CACHE_DBA, $wgCaches ) ) { + require_once( 'BagOStuff.php' ); + $wgCaches[CACHE_DBA] = new DBABagOStuff; + } + $cache =& $wgCaches[CACHE_DBA]; } - + if ( $type == CACHE_DB || ( $inputType == CACHE_ANYTHING && $cache === false ) ) { if ( !array_key_exists( CACHE_DB, $wgCaches ) ) { require_once( 'BagOStuff.php' ); diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 75068067f4..ce4f17608b 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -22,7 +22,7 @@ class OutputPage { var $mDoNothing; var $mContainsOldMagic, $mContainsNewMagic; var $mIsArticleRelated; - var $mParserOptions; + protected $mParserOptions; // lazy initialised, use parserOptions() var $mShowFeedLinks = false; var $mEnableClientCache = true; var $mArticleBodyOnly = false; @@ -46,7 +46,7 @@ class OutputPage { $this->mCategoryLinks = array(); $this->mDoNothing = false; $this->mContainsOldMagic = $this->mContainsNewMagic = 0; - $this->mParserOptions = ParserOptions::newFromUser( NULL ); + $this->mParserOptions = null; $this->mSquidMaxage = 0; $this->mScripts = ''; $this->mETag = false; @@ -255,10 +255,13 @@ class OutputPage { /* @deprecated */ function setParserOptions( $options ) { - return $this->ParserOptions( $options ); + return $this->parserOptions( $options ); } - function ParserOptions( $options = null ) { + function parserOptions( $options = null ) { + if ( !$this->mParserOptions ) { + $this->mParserOptions = new ParserOptions; + } return wfSetVar( $this->mParserOptions, $options ); } @@ -292,7 +295,7 @@ class OutputPage { $fname = 'OutputPage:addWikiTextTitle'; wfProfileIn($fname); wfIncrStats('pcache_not_possible'); - $parserOutput = $wgParser->parse( $text, $title, $this->mParserOptions, + $parserOutput = $wgParser->parse( $text, $title, $this->parserOptions(), $linestart, true, $this->mRevisionId ); $this->addParserOutput( $parserOutput ); wfProfileOut($fname); @@ -326,10 +329,11 @@ class OutputPage { function addPrimaryWikiText( $text, $article, $cache = true ) { global $wgParser, $wgUser; - $this->mParserOptions->setTidy(true); + $popts = $this->parserOptions(); + $popts->setTidy(true); $parserOutput = $wgParser->parse( $text, $article->mTitle, - $this->mParserOptions, true, true, $this->mRevisionId ); - $this->mParserOptions->setTidy(false); + $popts, true, true, $this->mRevisionId ); + $popts->setTidy(false); if ( $cache && $article && $parserOutput->getCacheTime() != -1 ) { $parserCache =& ParserCache::singleton(); $parserCache->save( $parserOutput, $article, $wgUser ); @@ -348,9 +352,10 @@ class OutputPage { */ function addSecondaryWikiText( $text, $linestart = true ) { global $wgTitle; - $this->mParserOptions->setTidy(true); + $popts = $this->parserOptions(); + $popts->setTidy(true); $this->addWikiTextTitle($text, $wgTitle, $linestart); - $this->mParserOptions->setTidy(false); + $popts->setTidy(false); } @@ -370,10 +375,11 @@ class OutputPage { */ function parse( $text, $linestart = true, $interface = false ) { global $wgParser, $wgTitle; - if ( $interface) { $this->mParserOptions->setInterfaceMessage(true); } - $parserOutput = $wgParser->parse( $text, $wgTitle, $this->mParserOptions, + $popts = $this->parserOptions(); + if ( $interface) { $popts->setInterfaceMessage(true); } + $parserOutput = $wgParser->parse( $text, $wgTitle, $popts, $linestart, true, $this->mRevisionId ); - if ( $interface) { $this->mParserOptions->setInterfaceMessage(false); } + if ( $interface) { $popts->setInterfaceMessage(false); } return $parserOutput->getText(); } @@ -615,11 +621,6 @@ class OutputPage { $wgInputEncoding = strtolower( $wgInputEncoding ); - if( $wgUser->getOption( 'altencoding' ) ) { - $wgContLang->setAltEncoding(); - return; - } - if ( empty( $_SERVER['HTTP_ACCEPT_CHARSET'] ) ) { $wgOutputEncoding = strtolower( $wgOutputEncoding ); return; diff --git a/includes/Parser.php b/includes/Parser.php index 66196436d9..3ebe597501 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4515,7 +4515,6 @@ class ParserOptions function getInterwikiMagic() { return $this->mInterwikiMagic; } function getAllowExternalImages() { return $this->mAllowExternalImages; } function getAllowExternalImagesFrom() { return $this->mAllowExternalImagesFrom; } - function getDateFormat() { return $this->mDateFormat; } function getEditSection() { return $this->mEditSection; } function getNumberHeadings() { return $this->mNumberHeadings; } function getAllowSpecialInclusion() { return $this->mAllowSpecialInclusion; } @@ -4529,6 +4528,13 @@ class ParserOptions return $this->mSkin; } + function getDateFormat() { + if ( !isset( $this->mDateFormat ) ) { + $this->mDateFormat = $this->mUser->getDatePreference(); + } + return $this->mDateFormat; + } + function setUseTeX( $x ) { return wfSetVar( $this->mUseTeX, $x ); } function setUseDynamicDates( $x ) { return wfSetVar( $this->mUseDynamicDates, $x ); } function setInterwikiMagic( $x ) { return wfSetVar( $this->mInterwikiMagic, $x ); } @@ -4580,7 +4586,7 @@ class ParserOptions $this->mAllowExternalImages = $wgAllowExternalImages; $this->mAllowExternalImagesFrom = $wgAllowExternalImagesFrom; $this->mSkin = null; # Deferred - $this->mDateFormat = $user->getOption( 'date' ); + $this->mDateFormat = null; # Deferred $this->mEditSection = true; $this->mNumberHeadings = $user->getOption( 'numberheadings' ); $this->mAllowSpecialInclusion = $wgAllowSpecialInclusion; diff --git a/includes/Setup.php b/includes/Setup.php index ae9496ff72..eef9738d8c 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -36,24 +36,20 @@ wfInstallExceptionHandler(); wfProfileOut( $fname.'-exception' ); wfProfileIn( $fname.'-includes' ); - require_once( "$IP/includes/GlobalFunctions.php" ); require_once( "$IP/includes/Hooks.php" ); require_once( "$IP/includes/Namespace.php" ); -require_once( "$IP/includes/User.php" ); -require_once( "$IP/includes/OutputPage.php" ); -require_once( "$IP/includes/MessageCache.php" ); -require_once( "$IP/includes/Parser.php" ); -require_once( "$IP/includes/LoadBalancer.php" ); require_once( "$IP/includes/ProxyTools.php" ); require_once( "$IP/includes/ObjectCache.php" ); require_once( "$IP/includes/ImageFunctions.php" ); - +require_once( "$IP/includes/StubObject.php" ); wfProfileOut( $fname.'-includes' ); wfProfileIn( $fname.'-misc1' ); + $wgIP = false; # Load on demand -$wgRequest = new WebRequest(); +# Can't stub this one, it sets up $_GET and $_REQUEST in its constructor +$wgRequest = new WebRequest; if ( function_exists( 'posix_uname' ) ) { $wguname = posix_uname(); $wgNodeName = $wguname['nodename']; @@ -63,7 +59,7 @@ if ( function_exists( 'posix_uname' ) ) { # Useful debug output if ( $wgCommandLineMode ) { - # wfDebug( '"' . implode( '" "', $argv ) . '"' ); + wfDebug( "\n\nStart command line script $self\n" ); } elseif ( function_exists( 'getallheaders' ) ) { wfDebug( "\n\nStart request\n" ); wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); @@ -82,6 +78,10 @@ if ( $wgSkipSkin ) { $wgUseEnotif = $wgEnotifUserTalk || $wgEnotifWatchlist; +if($wgMetaNamespace === FALSE) { + $wgMetaNamespace = str_replace( ' ', '_', $wgSitename ); +} + wfProfileOut( $fname.'-misc1' ); wfProfileIn( $fname.'-memcached' ); @@ -111,7 +111,7 @@ if( !ini_get( 'session.auto_start' ) ) if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) { wfIncrStats( 'request_with_session' ); - User::SetupSession(); + wfSetupSession(); $wgSessionStarted = true; } else { wfIncrStats( 'request_without_session' ); @@ -119,7 +119,7 @@ if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( $_COOKI } wfProfileOut( $fname.'-SetupSession' ); -wfProfileIn( $fname.'-database' ); +wfProfileIn( $fname.'-globals' ); if ( !$wgDBservers ) { $wgDBservers = array(array( @@ -132,47 +132,23 @@ if ( !$wgDBservers ) { 'flags' => ($wgDebugDumpSql ? DBO_DEBUG : 0) | DBO_DEFAULT )); } -$wgLoadBalancer = LoadBalancer::newFromParams( $wgDBservers, false, $wgMasterWaitTimeout ); -$wgLoadBalancer->loadMasterPos(); - -wfProfileOut( $fname.'-database' ); -wfProfileIn( $fname.'-language1' ); - -require_once( "$IP/languages/Language.php" ); - -function setupLangObj($langclass) { - global $IP; - - if( ! class_exists( $langclass ) ) { - # Default to English/UTF-8 - $baseclass = 'LanguageUtf8'; - require_once( "$IP/languages/$baseclass.php" ); - $lc = strtolower(substr($langclass, 8)); - $snip = " - class $langclass extends $baseclass { - function getVariants() { - return array(\"$lc\"); - } - - }"; - eval($snip); - } - - $lang = new $langclass(); - - return $lang; -} # $wgLanguageCode may be changed later to fit with user preference. # The content language will remain fixed as per the configuration, # so let's keep it. $wgContLanguageCode = $wgLanguageCode; -$wgContLangClass = 'Language' . str_replace( '-', '_', ucfirst( $wgContLanguageCode ) ); -$wgContLang = setupLangObj( $wgContLangClass ); -$wgContLang->initEncoding(); - -wfProfileOut( $fname.'-language1' ); +$wgLoadBalancer = new StubObject( 'wgLoadBalancer', 'LoadBalancer', + array( $wgDBservers, false, $wgMasterWaitTimeout, true ) ); +$wgContLang = new StubContLang; +$wgUser = new StubUser; +$wgLang = new StubUserLang; +$wgOut = new StubObject( 'wgOut', 'OutputPage' ); +$wgParser = new StubObject( 'wgParser', 'Parser' ); +$wgMessageCache = new StubObject( 'wgMessageCache', 'MessageCache', + array( $parserMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgDBname) ); + +wfProfileOut( $fname.'-globals' ); wfProfileIn( $fname.'-User' ); # Skin setup functions @@ -184,98 +160,20 @@ foreach ( $wgSkinExtensionFunctions as $func ) { } if( !is_object( $wgAuth ) ) { - require_once( 'AuthPlugin.php' ); - $wgAuth = new AuthPlugin(); -} - -if( $wgCommandLineMode ) { - # Used for some maintenance scripts; user session cookies can screw things up - # when the database is in an in-between state. - $wgUser = new User(); - # Prevent loading User settings from the DB. - $wgUser->setLoaded( true ); -} else { - $wgUser = null; - wfRunHooks('AutoAuthenticate',array(&$wgUser)); - if ($wgUser === null) { - $wgUser = User::loadFromSession(); - } + $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' ); } - wfProfileOut( $fname.'-User' ); -wfProfileIn( $fname.'-language2' ); - -// wgLanguageCode now specifically means the UI language -$wgLanguageCode = $wgRequest->getText('uselang', ''); -if ($wgLanguageCode == '') - $wgLanguageCode = $wgUser->getOption('language'); -# Validate $wgLanguageCode, which will soon be sent to an eval() -if( empty( $wgLanguageCode ) || !preg_match( '/^[a-z]+(-[a-z]+)?$/', $wgLanguageCode ) ) { - $wgLanguageCode = $wgContLanguageCode; -} - -$wgLangClass = 'Language'. str_replace( '-', '_', ucfirst( $wgLanguageCode ) ); - -if( $wgLangClass == $wgContLangClass ) { - $wgLang = &$wgContLang; -} else { - wfSuppressWarnings(); - // Preload base classes to work around APC/PHP5 bug - include_once("$IP/languages/$wgLangClass.deps.php"); - include_once("$IP/languages/$wgLangClass.php"); - wfRestoreWarnings(); - - $wgLang = setupLangObj( $wgLangClass ); -} - -wfProfileOut( $fname.'-language2' ); -wfProfileIn( $fname.'-MessageCache' ); - -$wgMessageCache = new MessageCache( $parserMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgDBname); - -wfProfileOut( $fname.'-MessageCache' ); - -# -# I guess the warning about UI switching might still apply... -# -# FIXME: THE ABOVE MIGHT BREAK NAMESPACES, VARIABLES, -# SEARCH INDEX UPDATES, AND MANY MANY THINGS. -# DO NOT USE THIS MODE EXCEPT FOR TESTING RIGHT NOW. -# -# To disable it, the easiest thing could be to uncomment the -# following; they should effectively disable the UI switch functionality -# -# $wgLangClass = $wgContLangClass; -# $wgLanguageCode = $wgContLanguageCode; -# $wgLang = $wgContLang; -# -# TODO: Need to change reference to $wgLang to $wgContLang at proper -# places, including namespaces, dates in signatures, magic words, -# and links -# -# TODO: Need to look at the issue of input/output encoding -# - -wfProfileIn( $fname.'-OutputPage' ); - -$wgOut = new OutputPage(); - -wfProfileOut( $fname.'-OutputPage' ); wfProfileIn( $fname.'-misc2' ); $wgDeferredUpdateList = array(); $wgPostCommitUpdateList = array(); -$wgParser = new Parser(); - -$wgOut->setParserOptions( ParserOptions::newFromUser( $wgUser ) ); -$wgMsgParserOptions = ParserOptions::newFromUser($wgUser); wfSeedRandom(); # Placeholders in case of DB error -$wgTitle = Title::makeTitle( NS_SPECIAL, 'Error' ); -$wgArticle = new Article($wgTitle); +$wgTitle = null; +$wgArticle = null; wfProfileOut( $fname.'-misc2' ); wfProfileIn( $fname.'-extensions' ); @@ -295,7 +193,7 @@ wfRunHooks( 'LogPageLogHeader', array( &$wgLogHeaders ) ); wfRunHooks( 'LogPageActionText', array( &$wgLogActions ) ); -wfDebug( "\n" ); +wfDebug( "Fully initialised\n" ); $wgFullyInitialised = true; wfProfileOut( $fname.'-extensions' ); wfProfileOut( $fname ); diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 6657d38180..7263191898 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1087,7 +1087,7 @@ class QuickTemplate { $text = $this->translator->translate( $str ); $parserOutput = $wgParser->parse( $text, $wgTitle, - $wgOut->mParserOptions, true ); + $wgOut->parserOptions(), true ); echo $parserOutput->getText(); } diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 60258f9e8f..7819c346e5 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -9,7 +9,7 @@ * */ function wfSpecialAllmessages() { - global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle; + global $wgOut, $wgRequest, $wgMessageCache, $wgTitle; global $wgUseDatabaseMessages; # The page isn't much use if the MediaWiki namespace is not being used @@ -30,7 +30,7 @@ function wfSpecialAllmessages() { wfLoadAllExtensions(); $first = true; - $sortedArray = array_merge( $wgAllMessagesEn, $wgMessageCache->mExtensionMessages ); + $sortedArray = array_merge( Language::getMessagesFor( 'en' ), $wgMessageCache->mExtensionMessages ); ksort( $sortedArray ); $messages = array(); $wgMessageCache->disableTransform(); @@ -63,7 +63,7 @@ function wfSpecialAllmessages() { */ function makePhp($messages) { global $wgLanguageCode; - $txt = "\n\n".'$wgAllMessages'.ucfirst($wgLanguageCode).' = array('."\n"; + $txt = "\n\n\$messages = array(\n"; foreach( $messages as $key => $m ) { if(strtolower($wgLanguageCode) != 'en' and $m['msg'] == $m['enmsg'] ) { //if (strstr($m['msg'],"\n")) { diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index b529da0e05..c0177f3946 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -74,7 +74,7 @@ class PreferencesForm { # User toggles (the big ugly unsorted list of checkboxes) $this->mToggles = array(); if ( $this->mPosted ) { - $togs = $wgLang->getUserToggles(); + $togs = User::getToggles(); foreach ( $togs as $tname ) { $this->mToggles[$tname] = $request->getCheck( "wpOp$tname" ) ? 1 : 0; } @@ -356,7 +356,7 @@ class PreferencesForm { $this->mQuickbar = $wgUser->getOption( 'quickbar' ); $this->mSkin = Skin::normalizeKey( $wgUser->getOption( 'skin' ) ); $this->mMath = $wgUser->getOption( 'math' ); - $this->mDate = $wgUser->getOption( 'date' ); + $this->mDate = $wgUser->getDatePreference(); $this->mRows = $wgUser->getOption( 'rows' ); $this->mCols = $wgUser->getOption( 'cols' ); $this->mStubs = $wgUser->getOption( 'stubthreshold' ); @@ -371,7 +371,7 @@ class PreferencesForm { $this->mUnderline = $wgUser->getOption( 'underline' ); $this->mWatchlistDays = $wgUser->getOption( 'watchlistdays' ); - $togs = $wgLang->getUserToggles(); + $togs = User::getToggles(); foreach ( $togs as $tname ) { $ttext = wfMsg('tog-'.$tname); $this->mToggles[$tname] = $wgUser->getOption( $tname ); @@ -470,8 +470,8 @@ class PreferencesForm { $qbs = $wgLang->getQuickbarSettings(); $skinNames = $wgLang->getSkinNames(); $mathopts = $wgLang->getMathNames(); - $dateopts = $wgLang->getDateFormats(); - $togs = $wgLang->getUserToggles(); + $dateopts = $wgLang->getDatePreferences(); + $togs = User::getToggles(); $titleObj = Title::makeTitle( NS_SPECIAL, 'Preferences' ); $action = $titleObj->escapeLocalURL(); @@ -595,7 +595,7 @@ class PreferencesForm { * Make sure the site language is in the list; a custom language code * might not have a defined name... */ - $languages = $wgLang->getLanguageNames(); + $languages = $wgLang->getLanguageNames( true ); if( !array_key_exists( $wgContLanguageCode, $languages ) ) { $languages[$wgContLanguageCode] = $wgContLanguageCode; } @@ -610,12 +610,8 @@ class PreferencesForm { $selbox = null; foreach($languages as $code => $name) { global $IP; - /* only add languages that have a file */ - $langfile="$IP/languages/Language".str_replace('-', '_', ucfirst($code)).".php"; - if(file_exists($langfile) || $code == $wgContLanguageCode) { - $sel = ($code == $selectedLang)? ' selected="selected"' : ''; - $selbox .= "\n"; - } + $sel = ($code == $selectedLang)? ' selected="selected"' : ''; + $selbox .= "\n"; } $wgOut->addHTML( $this->addRow( @@ -764,20 +760,20 @@ class PreferencesForm { " . wfMsg( 'files' ) . "
    -
    \n\n"); + $imageThumbOptions = null; + $wgOut->addHTML( "{$imageLimitOptions}
    +
    \n\n"); # Date format # @@ -790,8 +786,8 @@ class PreferencesForm { $wgOut->addHTML( "
    \n" . wfMsg( 'dateformat' ) . "\n" ); $idCnt = 0; $epoch = '20010115161234'; # Wikipedia day - foreach($dateopts as $key => $option) { - if( $key == MW_DATE_DEFAULT ) { + foreach( $dateopts as $key ) { + if( $key == 'default' ) { $formatted = wfMsgHtml( 'datedefault' ); } else { $formatted = htmlspecialchars( $wgLang->timeanddate( $epoch, false, $key ) ); diff --git a/includes/StubObject.php b/includes/StubObject.php new file mode 100644 index 0000000000..ceedeb44cd --- /dev/null +++ b/includes/StubObject.php @@ -0,0 +1,144 @@ +mGlobal = $global; + $this->mClass = $class; + $this->mParams = $params; + } + + static function isRealObject( $obj ) { + return is_object( $obj ) && !is_a( $obj, 'StubObject' ); + } + + static function _getCaller( $level ) { + $backtrace = debug_backtrace(); + if ( isset( $backtrace[$level] ) ) { + if ( isset( $backtrace[$level]['class'] ) ) { + $caller = $backtrace[$level]['class'] . '::' . $backtrace[$level]['function']; + } else { + $caller = $backtrace[$level]['function']; + } + } else { + $caller = 'unknown'; + } + return $caller; + } + + function _call( $name, $args ) { + $this->_unstub( $name, 5 ); + return call_user_func_array( array( $GLOBALS[$this->mGlobal], $name ), $args ); + } + + function _newObject() { + return wfCreateObject( $this->mClass, $this->mParams ); + } + + function __call( $name, $args ) { + return $this->_call( $name, $args ); + } + + /** + * This is public, for the convenience of external callers wishing to access + * properties, e.g. eval.php + */ + function _unstub( $name = '_unstub', $level = 2 ) { + static $recursionLevel = 0; + if ( get_class( $GLOBALS[$this->mGlobal] ) != $this->mClass ) { + $fname = __METHOD__.'-'.$this->mGlobal; + wfProfileIn( $fname ); + $caller = self::_getCaller( $level ); + if ( ++$recursionLevel > 2 ) { + throw new MWException( "Unstub loop detected on call of \${$this->mGlobal}->$name from $caller\n" ); + } + wfDebug( "Unstubbing \${$this->mGlobal} on call of \${$this->mGlobal}->$name from $caller\n" ); + $GLOBALS[$this->mGlobal] = $this->_newObject(); + --$recursionLevel; + wfProfileOut( $fname ); + } + } +} + +class StubContLang extends StubObject { + function __construct() { + parent::__construct( 'wgContLang' ); + } + + function __call( $name, $args ) { + return StubObject::_call( $name, $args ); + } + + function _newObject() { + global $wgContLanguageCode; + $obj = Language::factory( $wgContLanguageCode ); + $obj->initEncoding(); + $obj->initContLang(); + return $obj; + } +} +class StubUserLang extends StubObject { + function __construct() { + parent::__construct( 'wgLang' ); + } + + function __call( $name, $args ) { + return $this->_call( $name, $args ); + } + + function _newObject() { + global $wgLanguageCode, $wgContLanguageCode, $wgRequest, $wgUser, $wgContLang; + // wgLanguageCode now specifically means the UI language + $wgLanguageCode = $wgRequest->getText('uselang', ''); + if ($wgLanguageCode == '') + $wgLanguageCode = $wgUser->getOption('language'); + # Validate $wgLanguageCode + if( empty( $wgLanguageCode ) || !preg_match( '/^[a-z]+(-[a-z]+)?$/', $wgLanguageCode ) ) { + $wgLanguageCode = $wgContLanguageCode; + } + + if( $wgLanguageCode == $wgContLanguageCode ) { + return $wgContLang; + } else { + $obj = Language::factory( $wgLanguageCode ); + return $obj; + } + } +} +class StubUser extends StubObject { + function __construct() { + parent::__construct( 'wgUser' ); + } + + function __call( $name, $args ) { + return $this->_call( $name, $args ); + } + + function _newObject() { + global $wgCommandLineMode; + if( $wgCommandLineMode ) { + $user = new User; + $user->setLoaded( true ); + } else { + $user = User::loadFromSession(); + } + return $user; + } +} + +?> diff --git a/includes/User.php b/includes/User.php index a0f34be722..bcf02d51da 100644 --- a/includes/User.php +++ b/includes/User.php @@ -42,9 +42,88 @@ class User { var $mSkin; //!< var $mToken; //!< var $mTouched; //!< + var $mDatePreference; // !< var $mVersion; //!< serialized version /**@}} */ + /** + * Default user options + * To change this array at runtime, use a UserDefaultOptions hook + */ + static public $mDefaultOptions = array( + 'quickbar' => 1, + 'underline' => 2, + 'cols' => 80, + 'rows' => 25, + 'searchlimit' => 20, + 'contextlines' => 5, + 'contextchars' => 50, + 'skin' => false, + 'math' => 1, + 'rcdays' => 7, + 'rclimit' => 50, + 'wllimit' => 250, + 'highlightbroken' => 1, + 'stubthreshold' => 0, + 'previewontop' => 1, + 'editsection' => 1, + 'editsectiononrightclick'=> 0, + 'showtoc' => 1, + 'showtoolbar' => 1, + 'date' => 'default', + 'imagesize' => 2, + 'thumbsize' => 2, + 'rememberpassword' => 0, + 'enotifwatchlistpages' => 0, + 'enotifusertalkpages' => 1, + 'enotifminoredits' => 0, + 'enotifrevealaddr' => 0, + 'shownumberswatching' => 1, + 'fancysig' => 0, + 'externaleditor' => 0, + 'externaldiff' => 0, + 'showjumplinks' => 1, + 'numberheadings' => 0, + 'uselivepreview' => 0, + 'watchlistdays' => 3.0, + ); + + static public $mToggles = array( + 'highlightbroken', + 'justify', + 'hideminor', + 'extendwatchlist', + 'usenewrc', + 'numberheadings', + 'showtoolbar', + 'editondblclick', + 'editsection', + 'editsectiononrightclick', + 'showtoc', + 'rememberpassword', + 'editwidth', + 'watchcreations', + 'watchdefault', + 'minordefault', + 'previewontop', + 'previewonfirst', + 'nocache', + 'enotifwatchlistpages', + 'enotifusertalkpages', + 'enotifminoredits', + 'enotifrevealaddr', + 'shownumberswatching', + 'fancysig', + 'externaleditor', + 'externaldiff', + 'showjumplinks', + 'uselivepreview', + 'autopatrol', + 'forceeditsummary', + 'watchlisthideown', + 'watchlisthidebots', + ); + /** Constructor using User:loadDefaults() */ function User() { $this->loadDefaults(); @@ -348,6 +427,7 @@ class User { $this->mRights = array(); $this->mGroups = array(); $this->mOptions = User::getDefaultOptions(); + $this->mDatePreference = null; foreach( $wgNamespacesToBeSearchedDefault as $nsnum => $val ) { $this->mOptions['searchNs'.$nsnum] = $val; @@ -382,13 +462,13 @@ class User { /** * Site defaults will override the global/language defaults */ - global $wgContLang, $wgDefaultUserOptions; - $defOpt = $wgDefaultUserOptions + $wgContLang->getDefaultUserOptions(); + global $wgContLang; + $defOpt = self::$mDefaultOptions + $wgContLang->getDefaultUserOptionOverrides(); /** * default language setting */ - $variant = $wgContLang->getPreferredVariant(); + $variant = $wgContLang->getPreferredVariant( false ); $defOpt['variant'] = $variant; $defOpt['language'] = $variant; @@ -412,6 +492,18 @@ class User { } } + /** + * Get a list of user toggle names + * @return array + */ + static function getToggles() { + global $wgContLang; + $extraToggles = array(); + wfRunHooks( 'UserToggles', array( &$extraToggles ) ); + return array_merge( self::$mToggles, $extraToggles, $wgContLang->getExtraUserToggles() ); + } + + /** * Get blocking information * @private @@ -638,19 +730,10 @@ class User { /** * Initialise php session + * @deprecated use wfSetupSession() */ function SetupSession() { - global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain; - if( $wgSessionsInMemcached ) { - require_once( 'MemcachedSessions.php' ); - } elseif( 'files' != ini_get( 'session.save_handler' ) ) { - # If it's left on 'user' or another setting from another - # application, it will end up failing. Try to recover. - ini_set ( 'session.save_handler', 'files' ); - } - session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain ); - session_cache_limiter( 'private, must-revalidate' ); - @session_start(); + wfSetupSession(); } /** @@ -1070,6 +1153,23 @@ class User { } } + /** + * Get the user's date preference, including some important migration for + * old user rows. + */ + function getDatePreference() { + if ( is_null( $this->mDatePreference ) ) { + global $wgLang; + $value = $this->getOption( 'date' ); + $map = $wgLang->getDatePreferenceMigrationMap(); + if ( isset( $map[$value] ) ) { + $value = $map[$value]; + } + $this->mDatePreference = $value; + } + return $this->mDatePreference; + } + /** * @param string $oname The option to check * @return bool False if the option is not selected, true if it is @@ -1401,6 +1501,8 @@ class User { * @private */ function decodeOptions( $str ) { + global $wgLang; + $a = explode( "\n", $str ); foreach ( $a as $s ) { if ( preg_match( "/^(.[^=]*)=(.*)$/", $s, $m ) ) { @@ -1586,7 +1688,7 @@ class User { * @return string */ function getPageRenderingHash() { - global $wgContLang; + global $wgContLang, $wgUseDynamicDates; if( $this->mHash ){ return $this->mHash; } @@ -1596,7 +1698,9 @@ class User { $confstr = $this->getOption( 'math' ); $confstr .= '!' . $this->getOption( 'stubthreshold' ); - $confstr .= '!' . $this->getOption( 'date' ); + if ( $wgUseDynamicDates ) { + $confstr .= '!' . $this->getDatePreference(); + } $confstr .= '!' . ($this->getOption( 'numberheadings' ) ? '1' : ''); $confstr .= '!' . $this->getOption( 'language' ); $confstr .= '!' . $this->getOption( 'thumbsize' ); diff --git a/languages/Language.php b/languages/Language.php index ba4e713fb1..655dfcbe45 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -4,7 +4,10 @@ * @subpackage Language */ -if( defined( 'MEDIAWIKI' ) ) { +if( !defined( 'MEDIAWIKI' ) ) { + echo "This file is part of MediaWiki, it is not a valid entry point.\n"; + exit( 1 ); +} # # In general you should not make customizations in these language files @@ -18,294 +21,27 @@ if( defined( 'MEDIAWIKI' ) ) { # files for examples. # -#-------------------------------------------------------------------------- -# Language-specific text -#-------------------------------------------------------------------------- - -if($wgMetaNamespace === FALSE) - $wgMetaNamespace = str_replace( ' ', '_', $wgSitename ); - -/* private */ $wgNamespaceNamesEn = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Talk', - NS_USER => 'User', - NS_USER_TALK => 'User_talk', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_talk', - NS_IMAGE => 'Image', - NS_IMAGE_TALK => 'Image_talk', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Template_talk', - NS_HELP => 'Help', - NS_HELP_TALK => 'Help_talk', - NS_CATEGORY => 'Category', - NS_CATEGORY_TALK => 'Category_talk', -); - -if(isset($wgExtraNamespaces)) { - $wgNamespaceNamesEn=$wgNamespaceNamesEn+$wgExtraNamespaces; -} - -/* private */ $wgDefaultUserOptionsEn = array( - 'quickbar' => 1, - 'underline' => 2, - 'cols' => 80, - 'rows' => 25, - 'searchlimit' => 20, - 'contextlines' => 5, - 'contextchars' => 50, - 'skin' => $wgDefaultSkin, - 'math' => 1, - 'rcdays' => 7, - 'rclimit' => 50, - 'wllimit' => 250, - 'highlightbroken' => 1, - 'stubthreshold' => 0, - 'previewontop' => 1, - 'editsection' => 1, - 'editsectiononrightclick'=> 0, - 'showtoc' => 1, - 'showtoolbar' => 1, - 'date' => 0, - 'imagesize' => 2, - 'thumbsize' => 2, - 'rememberpassword' => 0, - 'enotifwatchlistpages' => 0, - 'enotifusertalkpages' => 1, - 'enotifminoredits' => 0, - 'enotifrevealaddr' => 0, - 'shownumberswatching' => 1, - 'fancysig' => 0, - 'externaleditor' => 0, - 'externaldiff' => 0, - 'showjumplinks' => 1, - 'numberheadings' => 0, - 'uselivepreview' => 0, - 'watchlistdays' => 3.0, -); - -/* private */ $wgQuickbarSettingsEn = array( - 'None', 'Fixed left', 'Fixed right', 'Floating left', 'Floating right' -); - -/* private */ $wgSkinNamesEn = array( - 'standard' => 'Classic', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Cologne Blue', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' -); - -/* private */ $wgMathNamesEn = array( - MW_MATH_PNG => 'mw_math_png', - MW_MATH_SIMPLE => 'mw_math_simple', - MW_MATH_HTML => 'mw_math_html', - MW_MATH_SOURCE => 'mw_math_source', - MW_MATH_MODERN => 'mw_math_modern', - MW_MATH_MATHML => 'mw_math_mathml' -); - -/** - * Whether to use user or default setting in Language::date() - * - * NOTE: the array string values are no longer important! - * The actual date format functions are now called for the selection in - * Special:Preferences, and the 'datedefault' message for MW_DATE_DEFAULT. - * - * The array keys make up the set of formats which this language allows - * the user to select. It's exposed via Language::getDateFormats(). - * - * @private - */ -$wgDateFormatsEn = array( - MW_DATE_DEFAULT => 'No preference', - MW_DATE_DMY => '16:12, 15 January 2001', - MW_DATE_MDY => '16:12, January 15, 2001', - MW_DATE_YMD => '16:12, 2001 January 15', - MW_DATE_ISO => '2001-01-15 16:12:34' -); - -/* private */ $wgUserTogglesEn = array( - 'highlightbroken', - 'justify', - 'hideminor', - 'extendwatchlist', - 'usenewrc', - 'numberheadings', - 'showtoolbar', - 'editondblclick', - 'editsection', - 'editsectiononrightclick', - 'showtoc', - 'rememberpassword', - 'editwidth', - 'watchcreations', - 'watchdefault', - 'minordefault', - 'previewontop', - 'previewonfirst', - 'nocache', - 'enotifwatchlistpages', - 'enotifusertalkpages', - 'enotifminoredits', - 'enotifrevealaddr', - 'shownumberswatching', - 'fancysig', - 'externaleditor', - 'externaldiff', - 'showjumplinks', - 'uselivepreview', - 'autopatrol', - 'forceeditsummary', - 'watchlisthideown', - 'watchlisthidebots', -); - -/* private */ $wgBookstoreListEn = array( - 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', - 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', - 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' -); - # Read language names global $wgLanguageNames; -/** */ require_once( 'Names.php' ); -$wgLanguageNamesEn =& $wgLanguageNames; - - -/* private */ $wgWeekdayNamesEn = array( - 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', - 'friday', 'saturday' -); - - -/* private */ $wgMonthNamesEn = array( - 'january', 'february', 'march', 'april', 'may_long', 'june', - 'july', 'august', 'september', 'october', 'november', - 'december' -); -/* private */ $wgMonthNamesGenEn = array( - 'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen', - 'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen', - 'december-gen' -); +global $wgInputEncoding, $wgOutputEncoding; +global $wgDBname, $wgMemc; -/* private */ $wgMonthAbbreviationsEn = array( - 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', - 'sep', 'oct', 'nov', 'dec' -); +/** + * These are always UTF-8, they exist only for backwards compatibility + */ +$wgInputEncoding = "UTF-8"; +$wgOutputEncoding = "UTF-8"; -# Note to translators: -# Please include the English words as synonyms. This allows people -# from other wikis to contribute more easily. -# -/* private */ $wgMagicWordsEn = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#REDIRECT' ), - 'notoc' => array( 0, '__NOTOC__' ), - 'nogallery' => array( 0, '__NOGALLERY__' ), - 'forcetoc' => array( 0, '__FORCETOC__' ), - 'toc' => array( 0, '__TOC__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__' ), - 'start' => array( 0, '__START__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), - 'currentday' => array( 1, 'CURRENTDAY' ), - 'currentday2' => array( 1, 'CURRENTDAY2' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME' ), - 'currentyear' => array( 1, 'CURRENTYEAR' ), - 'currenttime' => array( 1, 'CURRENTTIME' ), - 'numberofpages' => array( 1, 'NUMBEROFPAGES' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), - 'numberofusers' => array( 1, 'NUMBEROFUSERS' ), - 'pagename' => array( 1, 'PAGENAME' ), - 'pagenamee' => array( 1, 'PAGENAMEE' ), - 'namespace' => array( 1, 'NAMESPACE' ), - 'namespacee' => array( 1, 'NAMESPACEE' ), - 'talkspace' => array( 1, 'TALKSPACE' ), - 'talkspacee' => array( 1, 'TALKSPACEE' ), - 'subjectspace' => array( 1, 'SUBJECTSPACE', 'ARTICLESPACE' ), - 'subjectspacee' => array( 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ), - 'fullpagename' => array( 1, 'FULLPAGENAME' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE' ), - 'subpagename' => array( 1, 'SUBPAGENAME' ), - 'subpagenamee' => array( 1, 'SUBPAGENAMEE' ), - 'basepagename' => array( 1, 'BASEPAGENAME' ), - 'basepagenamee' => array( 1, 'BASEPAGENAMEE' ), - 'talkpagename' => array( 1, 'TALKPAGENAME' ), - 'talkpagenamee' => array( 1, 'TALKPAGENAMEE' ), - 'subjectpagename' => array( 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ), - 'subjectpagenamee' => array( 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ), - 'msg' => array( 0, 'MSG:' ), - 'subst' => array( 0, 'SUBST:' ), - 'msgnw' => array( 0, 'MSGNW:' ), - 'end' => array( 0, '__END__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1'), - 'img_right' => array( 1, 'right' ), - 'img_left' => array( 1, 'left' ), - 'img_none' => array( 1, 'none' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME' ), - 'ns' => array( 0, 'NS:' ), - 'localurl' => array( 0, 'LOCALURL:' ), - 'localurle' => array( 0, 'LOCALURLE:' ), - 'server' => array( 0, 'SERVER' ), - 'servername' => array( 0, 'SERVERNAME' ), - 'scriptpath' => array( 0, 'SCRIPTPATH' ), - 'grammar' => array( 0, 'GRAMMAR:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'CURRENTWEEK' ), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), - 'plural' => array( 0, 'PLURAL:' ), - 'fullurl' => array( 0, 'FULLURL:' ), - 'fullurle' => array( 0, 'FULLURLE:' ), - 'lcfirst' => array( 0, 'LCFIRST:' ), - 'ucfirst' => array( 0, 'UCFIRST:' ), - 'lc' => array( 0, 'LC:' ), - 'uc' => array( 0, 'UC:' ), - 'raw' => array( 0, 'RAW:' ), - 'displaytitle' => array( 1, 'DISPLAYTITLE' ), - 'rawsuffix' => array( 1, 'R' ), - 'newsectionlink' => array( 1, '__NEWSECTIONLINK__' ), - 'currentversion' => array( 1, 'CURRENTVERSION' ), - 'urlencode' => array( 0, 'URLENCODE:' ), - 'currenttimestamp' => array( 1, 'CURRENTTIMESTAMP' ), - 'directionmark' => array( 1, 'DIRECTIONMARK', 'DIRMARK' ), - 'language' => array( 0, '#LANGUAGE:' ), - 'contentlanguage' => array( 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ), - 'pagesinnamespace' => array( 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ), - 'numberofadmins' => array( 1, 'NUMBEROFADMINS' ), - 'formatnum' => array( 0, 'FORMATNUM' ), - -); - -if (!$wgCachedMessageArrays) { - require_once('Messages.php'); +if( function_exists( 'mb_strtoupper' ) ) { + mb_internal_encoding('UTF-8'); } /* a fake language converter */ -class fakeConverter { +class FakeConverter { var $mLang; - function fakeConverter($langobj) {$this->mLang = $langobj;} + function FakeConverter($langobj) {$this->mLang = $langobj;} function convert($t, $i) {return $t;} function parserConvert($t, $p) {return $t;} function getVariants() { return array( $this->mLang->getCode() ); } @@ -323,21 +59,106 @@ class fakeConverter { #-------------------------------------------------------------------------- class Language { - var $mConverter; + var $mConverter, $mVariants, $mCode, $mLoaded = false; + + static public $mLocalisationKeys = array( 'fallback', 'namespaceNames', + 'quickbarSettings', 'skinNames', 'mathNames', + 'bookstoreList', 'magicWords', 'messages', 'rtl', 'digitTransformTable', + 'separatorTransformTable', 'fallback8bitEncoding', 'linkPrefixExtension', + 'defaultUserOptionOverrides', 'linkTrail', 'namespaceAliases', + 'dateFormats', 'datePreferences', 'datePreferenceMigrationMap', + 'defaultDateFormat', 'extraUserToggles' ); + + static public $mMergeableMapKeys = array( 'messages', 'namespaceNames', 'mathNames', + 'dateFormats', 'defaultUserOptionOverrides' ); + + static public $mMergeableListKeys = array( 'extraUserToggles' ); + + static public $mLocalisationCache = array(); + + static public $mWeekdayMsgs = array( + 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', + 'friday', 'saturday' + ); + + static public $mWeekdayAbbrevMsgs = array( + 'sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' + ); + + static public $mMonthMsgs = array( + 'january', 'february', 'march', 'april', 'may_long', 'june', + 'july', 'august', 'september', 'october', 'november', + 'december' + ); + static public $mMonthGenMsgs = array( + 'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen', + 'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen', + 'december-gen' + ); + static public $mMonthAbbrevMsgs = array( + 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', + 'sep', 'oct', 'nov', 'dec' + ); + + /** + * Create a language object for a given language code + */ + static function factory( $code ) { + global $IP; + static $recursionLevel = 0; + + if ( $code == 'en' ) { + $class = 'Language'; + } else { + $class = 'Language' . str_replace( '-', '_', ucfirst( $code ) ); + // Preload base classes to work around APC/PHP5 bug + if ( file_exists( "$IP/languages/$class.deps.php" ) ) { + include_once("$IP/languages/$class.deps.php"); + } + if ( file_exists( "$IP/languages/$class.php" ) ) { + include_once("$IP/languages/$class.php"); + } + } + + if ( $recursionLevel > 50 ) { + throw new MWException( "Language fallback loop detected when creating class $class\n" ); + } + + if( ! class_exists( $class ) ) { + $fallback = Language::getFallbackFor( $code ); + ++$recursionLevel; + $lang = Language::factory( $fallback ); + --$recursionLevel; + $lang->setCode( $code ); + } else { + $lang = new $class; + } + + return $lang; + } + function __construct() { - $this->mConverter = new fakeConverter($this); + $this->mConverter = new FakeConverter($this); + // Set the code to the name of the descendant + if ( get_class( $this ) == 'Language' ) { + $this->mCode = 'en'; + } else { + $this->mCode = str_replace( '_', '-', strtolower( substr( get_class( $this ), 8 ) ) ); + } } /** - * Exports the default user options as defined in - * $wgDefaultUserOptionsEn, user preferences can override some of these - * depending on what's in (Local|Default)Settings.php and some defines. - * + * Hook which will be called if this is the content language. + * Descendants can use this to register hook functions or modify globals + */ + function initContLang() {} + + /** + * @deprecated * @return array */ function getDefaultUserOptions() { - global $wgDefaultUserOptionsEn; - return $wgDefaultUserOptionsEn; + return User::getDefaultOptions(); } /** @@ -345,16 +166,16 @@ class Language { * @return array */ function getBookstoreList() { - global $wgBookstoreListEn; - return $wgBookstoreListEn; + $this->load(); + return $this->bookstoreList; } /** * @return array */ function getNamespaces() { - global $wgNamespaceNamesEn; - return $wgNamespaceNamesEn; + $this->load(); + return $this->namespaceNames; } /** @@ -407,13 +228,13 @@ class Language { * @return mixed An integer if $text is a valid value otherwise false */ function getNsIndex( $text ) { - $ns = $this->getNamespaces(); - - foreach ( $ns as $i => $n ) { - if ( strcasecmp( $n, $text ) == 0) - return $i; + $this->load(); + $index = @$this->mNamespaceIds[$this->lc($text)]; + if ( is_null( $index ) ) { + return false; + } else { + return $index; } - return false; } /** @@ -431,77 +252,117 @@ class Language { } function getQuickbarSettings() { - global $wgQuickbarSettingsEn; - return $wgQuickbarSettingsEn; + $this->load(); + return $this->quickbarSettings; } function getSkinNames() { - global $wgSkinNamesEn; - return $wgSkinNamesEn; + $this->load(); + return $this->skinNames; } function getMathNames() { - global $wgMathNamesEn; - return $wgMathNamesEn; + $this->load(); + return $this->mathNames; } + function getDatePreferences() { + $this->load(); + return $this->datePreferences; + } + function getDateFormats() { - global $wgDateFormatsEn; - return $wgDateFormatsEn; + $this->load(); + return $this->dateFormats; } - function getUserToggles() { - global $wgUserTogglesEn; - return $wgUserTogglesEn; + function getDatePreferenceMigrationMap() { + $this->load(); + return $this->datePreferenceMigrationMap; + } + + function getDefaultUserOptionOverrides() { + $this->load(); + return $this->defaultUserOptionOverrides; + } + + function getExtraUserToggles() { + $this->load(); + return $this->extraUserToggles; } function getUserToggle( $tog ) { return wfMsg( "tog-$tog" ); } - function getLanguageNames() { - global $wgLanguageNamesEn; - return $wgLanguageNamesEn; + /** + * Get language names, indexed by code. + * If $customisedOnly is true, only returns codes with a messages file + */ + function getLanguageNames( $customisedOnly = false ) { + global $wgLanguageNames; + if ( !$customisedOnly ) { + return $wgLanguageNames; + } + + global $IP; + $messageFiles = glob( "$IP/languages/Messages*.php" ); + $names = array(); + foreach ( $messageFiles as $file ) { + if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $file, $m ) ) { + $code = str_replace( '_', '-', strtolower( $m[1] ) ); + if ( isset( $wgLanguageNames[$code] ) ) { + $names[$code] = $wgLanguageNames[$code]; + } + } + } + return $names; + } + + /** + * Ugly hack to get a message maybe from the MediaWiki namespace, if this + * language object is the content or user language. + */ + function getMessageFromDB( $msg ) { + global $wgContLang, $wgLang; + if ( $wgContLang->getCode() == $this->getCode() ) { + # Content language + return wfMsgForContent( $msg ); + } elseif ( $wgLang->getCode() == $this->getCode() ) { + # User language + return wfMsg( $msg ); + } else { + # Neither, get from localisation + return $this->getMessage( $msg ); + } } function getLanguageName( $code ) { - global $wgLanguageNamesEn; - if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) { + global $wgLanguageNames; + if ( ! array_key_exists( $code, $wgLanguageNames ) ) { return ''; } - return $wgLanguageNamesEn[$code]; + return $wgLanguageNames[$code]; } function getMonthName( $key ) { - global $wgMonthNamesEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent($wgMonthNamesEn[$key-1]); - else - return wfMsg($wgMonthNamesEn[$key-1]); + return $this->getMessageFromDB( self::$mMonthMsgs[$key-1] ); } - /* by default we just return base form */ function getMonthNameGen( $key ) { - return $this->getMonthName( $key ); + return $this->getMessageFromDB( self::$mMonthGenMsgs[$key-1] ); } function getMonthAbbreviation( $key ) { - global $wgMonthAbbreviationsEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent(@$wgMonthAbbreviationsEn[$key-1]); - else - return wfMsg(@$wgMonthAbbreviationsEn[$key-1]); + return $this->getMessageFromDB( self::$mMonthAbbrevMsgs[$key-1] ); } function getWeekdayName( $key ) { - global $wgWeekdayNamesEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent($wgWeekdayNamesEn[$key-1]); - else - return wfMsg($wgWeekdayNamesEn[$key-1]); + return $this->getMessageFromDB( self::$mWeekdayMsgs[$key-1] ); + } + + function getWeekdayAbbreviation( $key ) { + return $this->getMessageFromDB( self::$mWeekdayAbbrevMsgs[$key-1] ); } /** @@ -511,7 +372,6 @@ class Language { * @param mixed $tz adjust the time by this amount (default false, * mean we get user timecorrection setting) * @return int - */ function userAdjust( $ts, $tz = false ) { global $wgUser, $wgLocalTZoffset; @@ -552,6 +412,172 @@ class Language { return date( 'YmdHis', $t ); } + /** + * This is a workalike of PHP's date() function, but with better + * internationalisation, a reduced set of format characters, and a better + * escaping format. + * + * Supported format characters are dDjlFmMnYyHis. See the PHP manual for + * definitions. There are a number of extensions, which start with "x": + * + * xn Do not translate digits of the next numeric format character + * xr Use roman numerals for the next numeric format character + * xx Literal x + * xg Genitive month name + * + * Characters enclosed in double quotes will be considered literal (with + * the quotes themselves removed). Unmatched quotes will be considered + * literal quotes. Example: + * + * "The month is" F => The month is January + * i's" => 20'11" + * + * Backslash escaping is also supported. + * + * @param string $format + * @param string $ts 14-character timestamp + * YYYYMMDDHHMMSS + * 01234567890123 + */ + function sprintfDate( $format, $ts ) { + $s = ''; + $raw = false; + $roman = false; + for ( $p = 0; $p < strlen( $format ); $p++ ) { + $num = false; + $code = $format[$p]; + if ( $code == 'x' && $p < strlen( $format ) - 1 ) { + $code .= $format[++$p]; + } + + switch ( $code ) { + case 'xx': + $s .= 'x'; + break; + case 'xn': + $raw = true; + break; + case 'xr': + $roman = true; + break; + case 'xg': + $s .= $this->getMonthNameGen( substr( $ts, 4, 2 ) ); + break; + case 'd': + $num = substr( $ts, 6, 2 ); + break; + case 'D': + $s .= $this->getWeekdayAbbreviation( self::calculateWeekday( $ts ) ); + break; + case 'j': + $num = intval( substr( $ts, 6, 2 ) ); + break; + case 'l': + $s .= $this->getWeekdayName( self::calculateWeekday( $ts ) ); + break; + case 'F': + $s .= $this->getMonthName( substr( $ts, 4, 2 ) ); + break; + case 'm': + $num = substr( $ts, 4, 2 ); + break; + case 'M': + $s .= $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ); + break; + case 'n': + $num = intval( substr( $ts, 4, 2 ) ); + break; + case 'Y': + $num = substr( $ts, 0, 4 ); + break; + case 'y': + $num = substr( $ts, 2, 2 ); + break; + case 'H': + $num = substr( $ts, 8, 2 ); + break; + case 'G': + $num = intval( substr( $ts, 8, 2 ) ); + break; + case 'i': + $num = substr( $ts, 10, 2 ); + break; + case 's': + $num = substr( $ts, 12, 2 ); + break; + case '\\': + # Backslash escaping + if ( $p < strlen( $format ) - 1 ) { + $s .= $format[++$p]; + } else { + $s .= '\\'; + } + break; + case '"': + # Quoted literal + if ( $p < strlen( $format ) - 1 ) { + $endQuote = strpos( $format, '"', $p + 1 ); + if ( $endQuote === false ) { + # No terminating quote, assume literal " + $s .= '"'; + } else { + $s .= substr( $format, $p + 1, $endQuote - $p - 1 ); + $p = $endQuote; + } + } else { + # Quote at end of string, assume literal " + $s .= '"'; + } + break; + default: + $s .= $format[$p]; + } + if ( $num !== false ) { + if ( $raw ) { + $s .= $num; + $raw = false; + } elseif ( $roman ) { + $s .= Language::romanNumeral( $num ); + $roman = false; + } else { + $s .= $this->formatNum( $num, true ); + } + $num = false; + } + } + return $s; + } + + /** + * Roman number formatting up to 100 + */ + static function romanNumeral( $num ) { + static $units = array( 0, 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X' ); + static $decades = array( 0, 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC', 'C' ); + $num = intval( $num ); + if ( $num > 100 || $num <= 0 ) { + return $num; + } + $s = ''; + if ( $num >= 10 ) { + $s .= $decades[floor( $num / 10 )]; + $num = $num % 10; + } + if ( $num >= 1 ) { + $s .= $units[$num]; + } + return $s; + } + + /** + * Calculate the day of the week for a 14-character timestamp + * 0 for Sunday through to 6 for Saturday + * This takes about 100us on a slow computer + */ + static function calculateWeekday( $ts ) { + return date( 'w', wfTimestamp( TS_UNIX, $ts ) ); + } + /** * This is meant to be used by time(), date(), and timeanddate() to get * the date preference they're supposed to use, it should be used in @@ -561,6 +587,7 @@ class Language { * function timeanddate([...], $format = true) { * $datePreference = $this->dateFormat($format); * [...] + * } * * * @param mixed $usePrefs: if true, the user's preference is used @@ -573,9 +600,9 @@ class Language { if( is_bool( $usePrefs ) ) { if( $usePrefs ) { - $datePreference = $wgUser->getOption( 'date' ); + $datePreference = $wgUser->getDatePreference(); } else { - $options = $this->getDefaultUserOptions(); + $options = User::getDefaultOptions(); $datePreference = (string)$options['date']; } } else { @@ -584,7 +611,7 @@ class Language { // return int if( $datePreference == '' ) { - return MW_DATE_DEFAULT; + return 'default'; } return $datePreference; @@ -602,25 +629,16 @@ class Language { * @return string */ function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser, $wgAmericanDates; - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $datePreference = $this->dateFormat( $format ); - if( $datePreference == MW_DATE_DEFAULT ) { - $datePreference = $wgAmericanDates ? MW_DATE_MDY : MW_DATE_DMY; + $this->load(); + if ( $adj ) { + $ts = $this->userAdjust( $ts, $timecorrection ); } - $month = $this->formatMonth( substr( $ts, 4, 2 ), $datePreference ); - $day = $this->formatDay( substr( $ts, 6, 2 ), $datePreference ); - $year = $this->formatNum( substr( $ts, 0, 4 ), true ); - - switch( $datePreference ) { - case MW_DATE_DMY: return "$day $month $year"; - case MW_DATE_YMD: return "$year $month $day"; - case MW_DATE_ISO: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); - default: return "$month $day, $year"; + $pref = $this->dateFormat( $format ); + if( $pref == 'default' || !isset( $this->dateFormats["$pref date"] ) ) { + $pref = $this->defaultDateFormat; } + return $this->sprintfDate( $this->dateFormats["$pref date"], $ts ); } /** @@ -635,61 +653,16 @@ class Language { * @return string */ function time( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser; - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - $datePreference = $this->dateFormat( $format ); - - $sep = $this->timeSeparator( $format ); - - $hh = substr( $ts, 8, 2 ); - $mm = substr( $ts, 10, 2 ); - $ss = substr( $ts, 12, 2 ); - - if ( $datePreference != MW_DATE_ISO ) { - $hh = $this->formatNum( $hh, true ); - $mm = $this->formatNum( $mm, true ); - //$ss = $this->formatNum( $ss, true ); - return $hh . $sep . $mm; - } else { - return $hh . ':' . $mm . ':' . $ss; + $this->load(); + if ( $adj ) { + $ts = $this->userAdjust( $ts, $timecorrection ); } - } - - /** - * Default separator character between hours, minutes, and seconds. - * Will be used by Language::time() for non-ISO formats. - * (ISO will always use a colon.) - * @return string - */ - function timeSeparator( $format ) { - return ':'; - } - - /** - * String to insert between the time and the date in a combined - * string. Should include any relevant whitespace. - * @return string - */ - function timeDateSeparator( $format ) { - return ', '; - } - - /** - * Return true if the time should display before the date. - * @return bool - * @private - */ - function timeBeforeDate() { - return true; - } - - function formatMonth( $month, $format ) { - return $this->getMonthName( $month ); - } - function formatDay( $day, $format ) { - return $this->formatNum( 0 + $day, true ); + $pref = $this->dateFormat( $format ); + if( $pref == 'default' || !isset( $this->dateFormats["$pref time"] ) ) { + $pref = $this->defaultDateFormat; + } + return $this->sprintfDate( $this->dateFormats["$pref time"], $ts ); } /** @@ -706,30 +679,27 @@ class Language { * @return string */ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { - global $wgUser; + $this->load(); + if ( $adj ) { + $ts = $this->userAdjust( $ts, $timecorrection ); + } - $datePreference = $this->dateFormat($format); - switch ( $datePreference ) { - case MW_DATE_ISO: return $this->date( $ts, $adj, $format, $timecorrection ) . ' ' . - $this->time( $ts, $adj, $format, $timecorrection ); - default: - $time = $this->time( $ts, $adj, $format, $timecorrection ); - $sep = $this->timeDateSeparator( $datePreference ); - $date = $this->date( $ts, $adj, $format, $timecorrection ); - return $this->timeBeforeDate( $datePreference ) - ? $time . $sep . $date - : $date . $sep . $time; + $pref = $this->dateFormat( $format ); + if( $pref == 'default' || !isset( $this->dateFormats["$pref both"] ) ) { + $pref = $this->defaultDateFormat; } + + return $this->sprintfDate( $this->dateFormats["$pref both"], $ts ); } function getMessage( $key ) { - global $wgAllMessagesEn; - return @$wgAllMessagesEn[$key]; + $this->load(); + return @$this->messages[$key]; } function getAllMessages() { - global $wgAllMessagesEn; - return $wgAllMessagesEn; + $this->load(); + return $this->messages; } function iconv( $in, $out, $string ) { @@ -737,43 +707,82 @@ class Language { return iconv( $in, $out, $string ); } - function ucfirst( $string ) { - # For most languages, this is a wrapper for ucfirst() - return ucfirst( $string ); - } - - function uc( $str ) { - return strtoupper( $str ); + function ucfirst( $str ) { + return self::uc( $str, true ); } - function lcfirst( $s ) { - return strtolower( $s{0} ). substr( $s, 1 ); + function uc( $str, $first = false ) { + if ( function_exists( 'mb_strtoupper' ) ) + if ( $first ) + if ( self::isMultibyte( $str ) ) + return mb_strtoupper( mb_substr( $str, 0, 1 ) ) . mb_substr( $str, 1 ); + else + return ucfirst( $str ); + else + return self::isMultibyte( $str ) ? mb_strtoupper( $str ) : strtoupper( $str ); + else + if ( self::isMultibyte( $str ) ) { + list( $wikiUpperChars ) = $this->getCaseMaps(); + $x = $first ? '^' : ''; + return preg_replace( + "/$x([a-z]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", + "strtr( \"\$1\" , \$wikiUpperChars )", + $str + ); + } else + return $first ? ucfirst( $str ) : strtoupper( $str ); + } + + function lcfirst( $str ) { + return self::lc( $str, true ); + } + + function lc( $str, $first = false ) { + if ( function_exists( 'mb_strtolower' ) ) + if ( $first ) + if ( self::isMultibyte( $str ) ) + return mb_strtolower( mb_substr( $str, 0, 1 ) ) . mb_substr( $str, 1 ); + else + return strtolower( substr( $str, 0, 1 ) ) . substr( $str, 1 ); + else + return self::isMultibyte( $str ) ? mb_strtolower( $str ) : strtolower( $str ); + else + if ( self::isMultibyte( $str ) ) { + list( , $wikiLowerChars ) = self::getCaseMaps(); + $x = $first ? '^' : ''; + return preg_replace( + "/$x([A-Z]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", + "strtr( \"\$1\" , \$wikiLowerChars )", + $str + ); + } else + return $first ? strtolower( substr( $str, 0, 1 ) ) . substr( $str, 1 ) : strtolower( $str ); } - function lc( $str ) { - return strtolower( $str ); + function isMultibyte( $str ) { + return (bool)preg_match( '/^[\x80-\xff]/', $str ); } function checkTitleEncoding( $s ) { - global $wgInputEncoding; - - # Check for UTF-8 URLs; Internet Explorer produces these if you - # type non-ASCII chars in the URL bar or follow unescaped links. + if( is_array( $s ) ) { + wfDebugDieBacktrace( 'Given array to checkTitleEncoding.' ); + } + # Check for non-UTF-8 URLs $ishigh = preg_match( '/[\x80-\xff]/', $s); - $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true ); + if(!$ishigh) return $s; - if( ($wgInputEncoding != 'utf-8') and $ishigh and $isutf ) - return @iconv( 'UTF-8', $wgInputEncoding, $s ); + $isutf8 = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . + '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ); + if( $isutf8 ) return $s; - if( ($wgInputEncoding == 'utf-8') and $ishigh and !$isutf ) - return utf8_encode( $s ); - - # Other languages can safely leave this function, or replace - # it with one to detect and convert another legacy encoding. - return $s; + return $this->iconv( $this->fallback8bitEncoding(), "utf-8", $s ); } + function fallback8bitEncoding() { + $this->load(); + return $this->fallback8bitEncoding; + } + /** * Some languages have special punctuation to strip out * or characters which need to be converted for MySQL's @@ -782,8 +791,25 @@ class Language { * @param string $in * @return string */ - function stripForSearch( $in ) { - return strtolower( $in ); + function stripForSearch( $string ) { + # MySQL fulltext index doesn't grok utf-8, so we + # need to fold cases and convert to hex + + wfProfileIn( __METHOD__ ); + if( function_exists( 'mb_strtolower' ) ) { + $out = preg_replace( + "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", + "'U8' . bin2hex( \"$1\" )", + mb_strtolower( $string ) ); + } else { + list( , $wikiLowerChars ) = self::getCaseMaps(); + $out = preg_replace( + "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", + "'U8' . bin2hex( strtr( \"\$1\", \$wikiLowerChars ) )", + $string ); + } + wfProfileOut( __METHOD__ ); + return $out; } function convertForSearchResult( $termsArray ) { @@ -793,15 +819,16 @@ class Language { } /** - * Get the first character of a string. In ASCII, return - * first byte of the string. UTF8 and others have to - * overload this. + * Get the first character of a string. * * @param string $s * @return string */ function firstChar( $s ) { - return $s[0]; + preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . + '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches); + + return isset( $matches[1] ) ? $matches[1] : ""; } function initEncoding() { @@ -809,15 +836,6 @@ class Language { # (Esperanto X-coding, Japanese furigana conversion, etc) # If this language is used as the primary content language, # an override to the defaults can be set here on startup. - #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding; - } - - function setAltEncoding() { - # Some languages may have an alternate char encoding option - # (Esperanto X-coding, Japanese furigana conversion, etc) - # If 'altencoding' is checked in user prefs, this gives a - # chance to swap out the default encoding settings. - #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding; } function recodeForEdit( $s ) { @@ -827,27 +845,27 @@ class Language { # Note that if wgOutputEncoding is different from # wgInputEncoding, this text will be further converted # to wgOutputEncoding. - global $wgInputEncoding, $wgEditEncoding; + global $wgEditEncoding; if( $wgEditEncoding == '' or - $wgEditEncoding == $wgInputEncoding ) { + $wgEditEncoding == 'UTF-8' ) { return $s; } else { - return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s ); + return $this->iconv( 'UTF-8', $wgEditEncoding, $s ); } } function recodeInput( $s ) { # Take the previous into account. - global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding; + global $wgEditEncoding; if($wgEditEncoding != "") { $enc = $wgEditEncoding; } else { - $enc = $wgOutputEncoding; + $enc = 'UTF-8'; } - if( $enc == $wgInputEncoding ) { + if( $enc == 'UTF-8' ) { return $s; } else { - return $this->iconv( $enc, $wgInputEncoding, $s ); + return $this->iconv( $enc, 'UTF-8', $s ); } } @@ -856,7 +874,10 @@ class Language { * * @return bool */ - function isRTL() { return false; } + function isRTL() { + $this->load(); + return $this->rtl; + } /** * A hidden direction mark (LRM or RLM), depending on the language direction @@ -870,11 +891,14 @@ class Language { * * @return bool */ - function linkPrefixExtension() { return false; } + function linkPrefixExtension() { + $this->load(); + return $this->linkPrefixExtension; + } function &getMagicWords() { - global $wgMagicWordsEn; - return $wgMagicWordsEn; + $this->load(); + return $this->magicWords; } # Fill a MagicWord object with data from here @@ -963,11 +987,13 @@ class Language { } function digitTransformTable() { - return null; + $this->load(); + return $this->digitTransformTable; } function separatorTransformTable() { - return null; + $this->load(); + return $this->separatorTransformTable; } @@ -999,7 +1025,7 @@ class Language { # # $length does not include the optional ellipsis. # If $length is negative, snip from the beginning - function truncate( $string, $length, $ellipsis = '' ) { + function truncate( $string, $length, $ellipsis = "" ) { if( $length == 0 ) { return $ellipsis; } @@ -1008,9 +1034,24 @@ class Language { } if( $length > 0 ) { $string = substr( $string, 0, $length ); + $char = ord( $string[strlen( $string ) - 1] ); + if ($char >= 0xc0) { + # We got the first byte only of a multibyte char; remove it. + $string = substr( $string, 0, -1 ); + } elseif( $char >= 0x80 && + preg_match( '/^(.*)(?:[\xe0-\xef][\x80-\xbf]|' . + '[\xf0-\xf7][\x80-\xbf]{1,2})$/', $string, $m ) ) { + # We chopped in the middle of a character; remove it + $string = $m[1]; + } return $string . $ellipsis; } else { $string = substr( $string, $length ); + $char = ord( $string[0] ); + if( $char >= 0x80 && $char < 0xc0 ) { + # We chopped in the middle of a character; remove the whole thing + $string = preg_replace( '/^[\x80-\xbf]+/', '', $string ); + } return $ellipsis . $string; } } @@ -1135,8 +1176,8 @@ class Language { } - function getPreferredVariant() { - return $this->mConverter->getPreferredVariant(); + function getPreferredVariant( $fromUser = true ) { + return $this->mConverter->getPreferredVariant( $fromUser ); } /** @@ -1194,7 +1235,8 @@ class Language { * @public */ function linkTrail() { - return $this->getMessage( 'linktrail' ); + $this->load(); + return $this->linkTrail; } function getLangObj() { @@ -1205,22 +1247,276 @@ class Language { * Get the RFC 3066 code for this language object */ function getCode() { - return str_replace( '_', '-', strtolower( substr( get_class( $this ), 8 ) ) ); + return $this->mCode; } + function setCode( $code ) { + $this->mCode = $code; + } -} + static function getFileName( $prefix = 'Language', $code, $suffix = '.php' ) { + return $prefix . str_replace( '-', '_', ucfirst( $code ) ) . $suffix; + } + + static function getLocalisationArray( $code, $disableCache = false ) { + self::loadLocalisation( $code, $disableCache ); + return self::$mLocalisationCache[$code]; + } + + /** + * Load localisation data for a given code into the static cache + * + * @return array Dependencies, map of filenames to mtimes + */ + static function loadLocalisation( $code, $disableCache = false ) { + static $recursionGuard = array(); + global $wgMemc, $wgDBname, $IP; + + if ( !$code ) { + throw new MWException( "Invalid language code requested" ); + } + + if ( !$disableCache ) { + # Try the per-process cache + if ( isset( self::$mLocalisationCache[$code] ) ) { + return self::$mLocalisationCache[$code]['deps']; + } -# FIXME: Merge all UTF-8 support code into Language base class. -# We no longer support Latin-1 charset. -require_once( 'LanguageUtf8.php' ); + wfProfileIn( __METHOD__ ); -# This should fail gracefully if there's not a localization available -wfSuppressWarnings(); -// Preload base classes to work around APC/PHP5 bug -include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.deps.php' ); -include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' ); -wfRestoreWarnings(); + # Try the serialized directory + $cache = wfGetPrecompiledData( self::getFileName( "Messages", $code, '.ser' ) ); + if ( $cache ) { + self::$mLocalisationCache[$code] = $cache; + wfDebug( "Got localisation for $code from precompiled data file\n" ); + wfProfileOut( __METHOD__ ); + return self::$mLocalisationCache[$code]['deps']; + } + + # Try the global cache + $memcKey = "$wgDBname:localisation:$code"; + $cache = $wgMemc->get( $memcKey ); + if ( $cache ) { + $expired = false; + # Check file modification times + foreach ( $cache['deps'] as $file => $mtime ) { + if ( filemtime( $file ) > $mtime ) { + $expired = true; + break; + } + } + if ( self::isLocalisationOutOfDate( $cache ) ) { + $wgMemc->delete( $memcKey ); + $cache = false; + wfDebug( "Localisation cache for $code had expired due to update of $file\n" ); + } else { + self::$mLocalisationCache[$code] = $cache; + wfDebug( "Got localisation for $code from cache\n" ); + wfProfileOut( __METHOD__ ); + return $cache['deps']; + } + } + } else { + wfProfileIn( __METHOD__ ); + } + if ( $code != 'en' ) { + $fallback = 'en'; + } else { + $fallback = false; + } + + # Load the primary localisation from the source file + global $IP; + $filename = self::getFileName( "$IP/languages/Messages", $code, '.php' ); + if ( !file_exists( $filename ) ) { + wfDebug( "No localisation file for $code, using implicit fallback to en\n" ); + $cache = array(); + $deps = array(); + } else { + $deps = array( $filename => filemtime( $filename ) ); + require( $filename ); + $cache = compact( self::$mLocalisationKeys ); + wfDebug( "Got localisation for $code from source\n" ); + } + + if ( !empty( $fallback ) ) { + # Load the fallback localisation, with a circular reference guard + if ( isset( $recursionGuard[$code] ) ) { + throw new MWException( "Error: Circular fallback reference in language code $code" ); + } + $recursionGuard[$code] = true; + $newDeps = self::loadLocalisation( $fallback ); + unset( $recursionGuard[$code] ); + + $secondary = self::$mLocalisationCache[$fallback]; + $deps = array_merge( $deps, $newDeps ); + + # Merge the fallback localisation with the current localisation + foreach ( self::$mLocalisationKeys as $key ) { + if ( isset( $cache[$key] ) ) { + if ( isset( $secondary[$key] ) ) { + if ( in_array( $key, self::$mMergeableMapKeys ) ) { + $cache[$key] = $cache[$key] + $secondary[$key]; + } elseif ( in_array( $key, self::$mMergeableListKeys ) ) { + $cache[$key] = array_merge( $secondary[$key], $cache[$key] ); + } + } + } else { + $cache[$key] = $secondary[$key]; + } + } + + # Merge bookstore lists if requested + if ( !empty( $cache['bookstoreList']['inherit'] ) ) { + $cache['bookstoreList'] = array_merge( $cache['bookstoreList'], $secondary['bookstoreList'] ); + } + if ( isset( $cache['bookstoreList']['inherit'] ) ) { + unset( $cache['bookstoreList']['inherit'] ); + } + } + + # Add dependencies to the cache entry + $cache['deps'] = $deps; + + # Save to both caches + self::$mLocalisationCache[$code] = $cache; + if ( !$disableCache ) { + $wgMemc->set( $memcKey, $cache ); + } + + wfProfileOut( __METHOD__ ); + return $deps; + } + + /** + * Test if a given localisation cache is out of date with respect to the + * source Messages files. This is done automatically for the global cache + * in $wgMemc, but is only done on certain occasions for the serialized + * data file. + * + * @param $cache mixed Either a language code or a cache array + */ + static function isLocalisationOutOfDate( $cache ) { + if ( !is_array( $cache ) ) { + self::loadLocalisation( $cache ); + $cache = self::$mLocalisationCache[$cache]; + } + $expired = false; + foreach ( $cache['deps'] as $file => $mtime ) { + if ( filemtime( $file ) > $mtime ) { + $expired = true; + break; + } + } + return $expired; + } + + /** + * Get the fallback for a given language + */ + static function getFallbackFor( $code ) { + self::loadLocalisation( $code ); + return self::$mLocalisationCache[$code]['fallback']; + } + + /** + * Get all messages for a given language + */ + static function getMessagesFor( $code ) { + self::loadLocalisation( $code ); + return self::$mLocalisationCache[$code]['messages']; + } + + /** + * Load localisation data for this object + */ + function load() { + if ( !$this->mLoaded ) { + self::loadLocalisation( $this->getCode() ); + $cache =& self::$mLocalisationCache[$this->getCode()]; + foreach ( self::$mLocalisationKeys as $key ) { + $this->$key = $cache[$key]; + } + $this->mLoaded = true; + + $this->fixUpSettings(); + } + } + + /** + * Do any necessary post-cache-load settings adjustment + */ + function fixUpSettings() { + global $wgExtraNamespaces, $wgMetaNamespace, $wgMetaNamespaceTalk, $wgMessageCache, + $wgNamespaceAliases, $wgAmericanDates; + wfProfileIn( __METHOD__ ); + if ( $wgExtraNamespaces ) { + $this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames; + } + + $this->namespaceNames[NS_PROJECT] = $wgMetaNamespace; + if ( $wgMetaNamespaceTalk ) { + $this->namespaceNames[NS_PROJECT_TALK] = $wgMetaNamespaceTalk; + } else { + $talk = $this->namespaceNames[NS_PROJECT_TALK]; + $talk = str_replace( '$1', $wgMetaNamespace, $talk ); + + # Allow grammar transformations + # Allowing full message-style parsing would make simple requests + # such as action=raw much more expensive than they need to be. + # This will hopefully cover most cases. + if ( preg_match( '/{{grammar:(.*?)\|(.*?)}}/i', $talk, $m ) ) { + $talk = str_replace( ' ', '_', + $this->convertGrammar( trim( $m[2] ), trim( $m[1] ) ) + ); + } + } + + # Put namespace names and aliases into a hashtable. + # If this is too slow, then we should arrange it so that it is done + # before caching. The catch is that at pre-cache time, the above + # class-specific fixup hasn't been done. + $this->mNamespaceIds = array(); + foreach ( $this->namespaceNames as $index => $name ) { + $this->mNamespaceIds[$this->lc($name)] = $index; + } + if ( $this->namespaceAliases ) { + foreach ( $this->namespaceAliases as $name => $index ) { + $this->mNamespaceIds[$this->lc($name)] = $index; + } + } + if ( $wgNamespaceAliases ) { + foreach ( $wgNamespaceAliases as $name => $index ) { + $this->mNamespaceIds[$this->lc($name)] = $index; + } + } + + if ( $this->defaultDateFormat == 'dmy or mdy' ) { + $this->defaultDateFormat = $wgAmericanDates ? 'mdy' : 'dmy'; + } + wfProfileOut( __METHOD__ ); + } + + static function getCaseMaps() { + static $wikiUpperChars, $wikiLowerChars; + global $IP; + if ( isset( $wikiUpperChars ) ) { + return array( $wikiUpperChars, $wikiLowerChars ); + } + + wfProfileIn( __METHOD__ ); + $arr = wfGetPrecompiledData( 'Utf8Case.ser' ); + if ( $arr === false ) { + throw new MWException( + "Utf8Case.ser is missing, please run \"make\" in the serialized directory\n" ); + } + extract( $arr ); + wfProfileOut( __METHOD__ ); + return array( $wikiUpperChars, $wikiLowerChars ); + } } + +/** @deprecated */ +class LanguageUtf8 extends Language {} ?> diff --git a/languages/LanguageAb.deps.php b/languages/LanguageAb.deps.php deleted file mode 100644 index d9a31cdd1b..0000000000 --- a/languages/LanguageAb.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageAb.php b/languages/LanguageAb.php deleted file mode 100644 index d1d31b7a68..0000000000 --- a/languages/LanguageAb.php +++ /dev/null @@ -1,30 +0,0 @@ - - * @author Ashar Voultoiz - * - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Ashar Voultoiz - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageRu.php'; - -class LanguageAb extends LanguageRu { - - function getFallbackLanguage() { - return 'ru'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageAf.php b/languages/LanguageAf.php deleted file mode 100644 index db04fae9d7..0000000000 --- a/languages/LanguageAf.php +++ /dev/null @@ -1,90 +0,0 @@ - "Standaard", - 'nostalgia' => "Nostalgie", - 'cologneblue' => "Keulen blou", - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesAf; - $this->mMessagesAf =& $wgAllMessagesAf; - - global $wgMetaNamespace; - $this->mNamespaceNamesAf = array( - NS_MEDIA => "Media", - NS_SPECIAL => "Spesiaal", - NS_MAIN => "", - NS_TALK => "Bespreking", - NS_USER => "Gebruiker", - NS_USER_TALK => "Gebruikerbespreking", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace."bespreking", - NS_IMAGE => "Beeld", - NS_IMAGE_TALK => "Beeldbespreking", - NS_MEDIAWIKI => "MediaWiki", - NS_MEDIAWIKI_TALK => "MediaWikibespreking", - NS_TEMPLATE => 'Sjabloon', - NS_TEMPLATE_TALK => 'Sjabloonbespreking', - NS_HELP => 'Hulp', - NS_HELP_TALK => 'Hulpbespreking', - NS_CATEGORY => 'Kategorie', - NS_CATEGORY_TALK => 'Kategoriebespreking' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesAf + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsAf; - } - - function getSkinNames() { - return $this->mSkinNamesAf + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesAf[$key] ) ) { - return $this->mMessagesAf[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesAf; - } - - # South Africa uses space for thousands and comma for decimal - # Reference: AWS Reël 7.4 p. 52, 2002 edition - # glibc is wrong in this respect in some versions - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageAn.php b/languages/LanguageAn.php deleted file mode 100644 index 5ba3145775..0000000000 --- a/languages/LanguageAn.php +++ /dev/null @@ -1,49 +0,0 @@ -mNamespaceNamesAn = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Espezial', - NS_MAIN => '', - NS_TALK => 'Descusión', - NS_USER => 'Usuario', - NS_USER_TALK => 'Descusión_usuario', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => "Descusión_{$wgMetaNamespace}", - NS_IMAGE => 'Imachen', - NS_IMAGE_TALK => 'Descusión_imachen', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Descusión_MediaWiki', - NS_TEMPLATE => 'Plantilla', - NS_TEMPLATE_TALK => 'Descusión_plantilla', - NS_HELP => 'Aduya', - NS_HELP_TALK => 'Descusión_aduya', - NS_CATEGORY => 'Categoría', - NS_CATEGORY_TALK => 'Descusión_categoría', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesAn + parent::getNamespaces(); - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageAr.php b/languages/LanguageAr.php deleted file mode 100644 index 3339759dda..0000000000 --- a/languages/LanguageAr.php +++ /dev/null @@ -1,165 +0,0 @@ - 'ملف', - NS_SPECIAL => 'خاص', - NS_MAIN => '', - NS_TALK => 'نقاش', - NS_USER => 'مستخدم', - NS_USER_TALK => 'نقاش_المستخدم', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'نقاش' . '_' . $wgMetaNamespace, - NS_IMAGE => 'صورة', - NS_IMAGE_TALK => 'نقاش_الصورة', - NS_MEDIAWIKI => 'ميدياويكي', - NS_MEDIAWIKI_TALK => 'نقاش_ميدياويكي', - NS_TEMPLATE => 'قالب', - NS_TEMPLATE_TALK => 'نقاش_قالب', - NS_HELP => 'مساعدة', - NS_HELP_TALK => 'نقاش_المساعدة', - NS_CATEGORY => 'تصنيف', - NS_CATEGORY_TALK => 'نقاش_التصنيف' -) + $wgNamespaceNamesEn; - - -/* private */ $wgMagicWordsAr = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#REDIRECT' , '#تحويل' ), - 'notoc' => array( 0, '__NOTOC__' , '__لافهرس__' ), - 'forcetoc' => array( 0, '__FORCETOC__' , '__لصق_فهرس__' ), - 'toc' => array( 0, '__TOC__' , '__فهرس__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__' , '__لاتحريرقسم__' ), - 'start' => array( 0, '__START__' , '__ابدأ__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH' , 'شهر' , 'شهر_حالي' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' , 'اسم_شهر', 'اسم_شهر_حالي'), -# 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), -# 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), - 'currentday' => array( 1, 'CURRENTDAY' , 'يوم' ), -# 'currentday2' => array( 1, 'CURRENTDAY2' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME' , 'اسم_يوم' ), - 'currentyear' => array( 1, 'CURRENTYEAR' , 'عام' ), - 'currenttime' => array( 1, 'CURRENTTIME' , 'وقت' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ,'عددالمقالات' , 'عدد_المقالات'), - 'numberoffiles' => array( 1, 'NUMBEROFFILES' , 'عددالملفات' , 'عدد_الملفات'), - 'pagename' => array( 1, 'PAGENAME' , 'اسم_صفحة' ), - 'pagenamee' => array( 1, 'PAGENAMEE' , 'عنوان_صفحة' ), - 'namespace' => array( 1, 'NAMESPACE' , 'نطاق' ), - 'namespacee' => array( 1, 'NAMESPACEE' , 'عنوان_نطاق' ), - 'fullpagename' => array( 1, 'FULLPAGENAME', 'اسم_كامل' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE' , 'عنوان_كامل' ), - 'msg' => array( 0, 'MSG:' , 'رسالة:' ), - 'subst' => array( 0, 'SUBST:' , 'نسخ:' , 'نسخ_قالب:' ), - 'msgnw' => array( 0, 'MSGNW:' , 'مصدر:' , 'مصدر_قالب:' ), - 'end' => array( 0, '__END__' , '__نهاية__', '__إنهاء__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' , 'تصغير' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1' ,'تصغير=$1' ), - 'img_right' => array( 1, 'right' , 'يمين' ), - 'img_left' => array( 1, 'left' , 'يسار' ), - 'img_none' => array( 1, 'none' , 'بدون' ), - 'img_width' => array( 1, '$1px' , '$1بك' ), - 'img_center' => array( 1, 'center', 'centre' , 'وسط' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame' , 'إطار', 'اطار'), - 'int' => array( 0, 'INT:' , 'محتوى:' ), - 'sitename' => array( 1, 'SITENAME' , 'اسم_الموقع' ), - 'ns' => array( 0, 'NS:' , 'نط:' ), - 'localurl' => array( 0, 'LOCALURL:' , 'عنوان:' ), -# 'localurle' => array( 0, 'LOCALURLE:' ), - 'server' => array( 0, 'SERVER' , 'العنوان' ), - 'servername' => array( 0, 'SERVERNAME' , 'اسم_عنوان' ), - 'scriptpath' => array( 0, 'SCRIPTPATH' , 'مسار' ), -# 'grammar' => array( 0, 'GRAMMAR:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', 'لاتحويل_عنوان'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', 'لاتحويل_محتوى' ), - 'currentweek' => array( 1, 'CURRENTWEEK' , 'أسبوع' ), - 'currentdow' => array( 1, 'CURRENTDOW' , 'رقم_يوم' ), - 'revisionid' => array( 1, 'REVISIONID' , 'نسخة' ), -# 'plural' => array( 0, 'PLURAL:' ), - 'fullurl' => array( 0, 'FULLURL:', 'عنوان_كامل:' ), -# 'fullurle' => array( 0, 'FULLURLE:' ), -# 'lcfirst' => array( 0, 'LCFIRST:' ), -# 'ucfirst' => array( 0, 'UCFIRST:' ), -# 'lc' => array( 0, 'LC:' ), -# 'uc' => array( 0, 'UC:' ), -# 'raw' => array( 0, 'RAW:' ), -); - - -if (!$wgCachedMessageArrays) { - require_once('MessagesAr.php'); -} - -class LanguageAr extends LanguageUtf8 { - function digitTransformTable() { - return array( - '0' => '٠', - '1' => '١', - '2' => '٢', - '3' => '٣', - '4' => '٤', - '5' => '٥', - '6' => '٦', - '7' => '٧', - '8' => '٨', - '9' => '٩', - '.' => '٫', // wrong table? - ',' => '٬' - ); - } - - function getNamespaces() { - global $wgNamespaceNamesAr; - return $wgNamespaceNamesAr; - } - - function getMonthAbbreviation( $key ) { - /* No abbreviations in Arabic */ - return $this->getMonthName( $key ); - } - - function isRTL() { - return true; - } - - function linkPrefixExtension() { - return true; - } - - function getDefaultUserOptions() { - $opt = parent::getDefaultUserOptions(); - - # Swap sidebar to right side by default - $opt['quickbar'] = 2; - - # Underlines seriously harm legibility. Force off: - $opt['underline'] = 0; - return $opt ; - } - - function fallback8bitEncoding() { - return 'windows-1256'; - } - - function &getMagicWords() { - global $wgMagicWordsAr; - return $wgMagicWordsAr; - } - - function getMessage( $key ) { - global $wgAllMessagesAr; - if( isset( $wgAllMessagesAr[$key] ) ) { - return $wgAllMessagesAr[$key]; - } else { - return parent::getMessage( $key ); - } - } - -} -?> diff --git a/languages/LanguageArc.php b/languages/LanguageArc.php deleted file mode 100644 index 2446e34843..0000000000 --- a/languages/LanguageArc.php +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/languages/LanguageAs.php b/languages/LanguageAs.php deleted file mode 100644 index 3d977abafe..0000000000 --- a/languages/LanguageAs.php +++ /dev/null @@ -1,27 +0,0 @@ - '০', - '1' => '১', - '2' => '২', - '3' => '৩', - '4' => '৪', - '5' => '৫', - '6' => '৬', - '7' => '৭', - '8' => '৮', - '9' => '৯' - ); - } - -} -?> diff --git a/languages/LanguageAst.php b/languages/LanguageAst.php deleted file mode 100644 index 698dd26fe2..0000000000 --- a/languages/LanguageAst.php +++ /dev/null @@ -1,49 +0,0 @@ -mNamespaceNamesAst = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Especial', - NS_MAIN => '', - NS_TALK => 'Discusión', - NS_USER => 'Usuariu', - NS_USER_TALK => 'Usuariu_discusión', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_discusión', - NS_IMAGE => 'Imaxen', - NS_IMAGE_TALK => 'Imaxen_discusión', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_discusión', - NS_TEMPLATE => 'Plantilla', - NS_TEMPLATE_TALK => 'Plantilla_discusión', - NS_HELP => 'Ayuda', - NS_HELP_TALK => 'Ayuda_discusión', - NS_CATEGORY => 'Categoría', - NS_CATEGORY_TALK => 'Categoría_discusión', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesAst + parent::getNamespaces(); - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageAv.deps.php b/languages/LanguageAv.deps.php deleted file mode 100644 index 217e958202..0000000000 --- a/languages/LanguageAv.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageAv.php b/languages/LanguageAv.php deleted file mode 100644 index cc3096b498..0000000000 --- a/languages/LanguageAv.php +++ /dev/null @@ -1,30 +0,0 @@ - - * @author Ashar Voultoiz - * - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Ashar Voultoiz - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageRu.php'; - -class LanguageAv extends LanguageRu { - - function getFallbackLanguage() { - return 'ru'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageAy.deps.php b/languages/LanguageAy.deps.php deleted file mode 100644 index db7eead681..0000000000 --- a/languages/LanguageAy.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageAy.php b/languages/LanguageAy.php deleted file mode 100644 index 309c5c84dc..0000000000 --- a/languages/LanguageAy.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageEs.php'; - -class LanguageAy extends LanguageEs { - - function getFallbackLanguage() { - return 'es'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageAz.php b/languages/LanguageAz.php index 1dfc46ca9a..d5df3ecc3e 100644 --- a/languages/LanguageAz.php +++ b/languages/LanguageAz.php @@ -4,77 +4,7 @@ * @package MediaWiki * @subpackage Language */ - -require_once( "LanguageUtf8.php" ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesAz.php'); -} - -class LanguageAz extends LanguageUtf8 { - private $mMessagesAz, $mNamespaceNamesAz = null; - - private $mDateFormatsAz = array( - MW_DATE_DEFAULT => 'Tərcih yox', - MW_DATE_MDY => '16:12, Yanvar 15, 2001', - MW_DATE_DMY => '16:12, 15 Yanvar 2001', - MW_DATE_YMD => '16:12, 2001 Yanvar 15', - MW_DATE_ISO => '2001-01-15 16:12:34' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesAz; - $this->mMessagesAz =& $wgAllMessagesAz; - - global $wgMetaNamespace; - $this->mNamespaceNamesAz = array( - NS_MEDIA => 'Mediya', - NS_SPECIAL => 'Xüsusi', - NS_MAIN => '', - NS_TALK => 'Müzakirə', - NS_USER => 'İstifadəçi', - NS_USER_TALK => 'İstifadəçi_müzakirəsi', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_müzakirəsi', - NS_IMAGE => 'Şəkil', - NS_IMAGE_TALK => 'Şəkil_müzakirəsi', - NS_MEDIAWIKI => 'MediyaViki', - NS_MEDIAWIKI_TALK => 'MediyaViki_müzakirəsi', - NS_TEMPLATE => 'Şablon', - NS_TEMPLATE_TALK => 'Şablon_müzakirəsi', - NS_HELP => 'Kömək', - NS_HELP_TALK => 'Kömək_müzakirəsi', - NS_CATEGORY => 'Kateqoriya', - NS_CATEGORY_TALK => 'Kateqoriya_müzakirəsi', - ); - - } - function getNamespaces() { - return $this->mNamespaceNamesAz + parent::getNamespaces(); - } - - function getDateFormats() { - return $this->mDateFormatsAz; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesAz[$key] ) ) { - return $this->mMessagesAz[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesAz; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - +class LanguageAz extends Language { function ucfirst ( $string ) { if ( $string[0] == 'i' ) { return 'İ' . substr( $string, 1 ); diff --git a/languages/LanguageBa.deps.php b/languages/LanguageBa.deps.php deleted file mode 100644 index aa9024312e..0000000000 --- a/languages/LanguageBa.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageBa.php b/languages/LanguageBa.php deleted file mode 100644 index 45e32b744d..0000000000 --- a/languages/LanguageBa.php +++ /dev/null @@ -1,30 +0,0 @@ - - * @author Ashar Voultoiz - * - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Ashar Voultoiz - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageRu.php'; - -class LanguageBa extends LanguageRu { - - function getFallbackLanguage() { - return 'ru'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageBat_smg.deps.php b/languages/LanguageBat_smg.deps.php deleted file mode 100644 index 53a8cbf58d..0000000000 --- a/languages/LanguageBat_smg.deps.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageBat_smg.php b/languages/LanguageBat_smg.php deleted file mode 100644 index aa6c541766..0000000000 --- a/languages/LanguageBat_smg.php +++ /dev/null @@ -1,26 +0,0 @@ - - */ - -require_once( 'LanguageLt.php' ); - -class LanguageBat_smg extends LanguageLt { - - function getFallbackLanguage() { - return 'lt'; - } - - function getAllMessages() { - return null; - } - -} - -?> \ No newline at end of file diff --git a/languages/LanguageBe.php b/languages/LanguageBe.php index d968c13bfd..f2a52cca81 100644 --- a/languages/LanguageBe.php +++ b/languages/LanguageBe.php @@ -11,195 +11,7 @@ * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License */ -require_once('LanguageUtf8.php'); - -if (!$wgCachedMessageArrays) { - require_once('MessagesBe.php'); -} - -class LanguageBe extends LanguageUtf8 { - private $mMessagesBe, $mNamespaceNamesBe = null; - - private $mQuickbarSettingsBe = array( - 'Не паказваць', 'Замацаваная зьлева', 'Замацаваная справа', 'Рухомая зьлева' - ); - - private $mSkinNamesBe = array( - 'standard' => 'Клясычны', - 'nostalgia' => 'Настальгія', - 'cologneblue' => 'Кёльнскі смутак', - 'davinci' => 'Да Вінчы', - 'mono' => 'Мона', - 'monobook' => 'Монакніга', - 'myskin' => 'MySkin', - 'chick' => 'Цыпа' - ); - - private $mDateFormatsBe = array( - MW_DATE_DEFAULT, - '16:12, 15.01.2001', - MW_DATE_ISO, - ); - - private $mMagicWordsBe = array( - 'redirect' => array( 0, '#перанакіраваньне', '#redirect' ), - 'notoc' => array( 0, '__NOTOC__', '__БЯЗЬ_ЗЬМЕСТУ__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__ЗЬМЕСТ_ПРЫМУСАМ__' ), - 'toc' => array( 0, '__TOC__', '__ЗЬМЕСТ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_РЭДАГАВАНЬНЯ_СЭКЦЫІ__' ), - 'start' => array( 0, '__START__', '__ПАЧАТАК__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'БЯГУЧЫ_МЕСЯЦ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'НАЗВА_БЯГУЧАГА_МЕСЯЦА' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'НАЗВА_БЯГУЧАГА_МЕСЯЦА_Ў_РОДНЫМ_СКЛОНЕ' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'СКАРОЧАНАЯ_НАЗВА_БЯГУЧАГА_МЕСЯЦА' ), - 'currentday' => array( 1, 'CURRENTDAY', 'БЯГУЧЫ_ДЗЕНЬ' ), - 'currentday2' => array( 1, 'CURRENTDAY2', 'БЯГУЧЫ_ДЗЕНЬ_2' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'НАЗВА_БЯГУЧАГА_ДНЯ' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'БЯГУЧЫ_ГОД' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'БЯГУЧЫ_ЧАС' ), - 'numberofpages' => array( 1, 'NUMBEROFPAGES', 'КОЛЬКАСЬЦЬ_СТАРОНАК' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'КОЛЬКАСЬЦЬ_АРТЫКУЛАЎ' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'КОЛЬКАСЬЦЬ_ФАЙЛАЎ' ), - 'numberofusers' => array( 1, 'NUMBEROFUSERS', 'КОЛЬКАСЬЦЬ_УДЗЕЛЬНІКАЎ' ), - 'pagename' => array( 1, 'PAGENAME', 'НАЗВА_СТАРОНКІ' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'НАЗВА_СТАРОНКІ_2' ), - 'namespace' => array( 1, 'NAMESPACE', 'ПРАСТОРА_НАЗВАЎ' ), - 'namespacee' => array( 1, 'NAMESPACEE', 'ПРАСТОРА_НАЗВАЎ_2' ), - 'talkspace' => array( 1, 'TALKSPACE', 'ПРАСТОРА_НАЗВАЎ_АБМЕРКАВАНЬНЯ' ), - 'talkspacee' => array( 1, 'TALKSPACEE', 'ПРАСТОРА_НАЗВАЎ_АБМЕРКАВАНЬНЯ_2' ), - 'subjectspace' => array( 1, 'SUBJECTSPACE', 'ARTICLESPACE', 'ПРАСТОРА_НАЗВАЎ_ПРАДМЕТУ', 'ПРАСТОРА_НАЗВАЎ_АРТЫКУЛА' ), - 'subjectspacee' => array( 1, 'SUBJECTSPACEE', 'ARTICLESPACEE', 'ПРАСТОРА_НАЗВАЎ_ПРАДМЕТУ_2', 'ПРАСТОРА_НАЗВАЎ_АРТЫКУЛА_2' ), - 'fullpagename' => array( 1, 'FULLPAGENAME', 'ПОЎНАЯ_НАЗВА_СТАРОНКІ' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'ПОЎНАЯ_НАЗВА_СТАРОНКІ_2' ), - 'subpagename' => array( 1, 'SUBPAGENAME', 'НАЗВА_ПАДСТАРОНКІ' ), - 'subpagenamee' => array( 1, 'SUBPAGENAMEE', 'НАЗВА_ПАДСТАРОНКІ_2' ), - 'basepagename' => array( 1, 'BASEPAGENAME', 'НАЗВА_БАЗАВАЙ_СТАРОНКІ' ), - 'basepagenamee' => array( 1, 'BASEPAGENAMEE', 'НАЗВА_БАЗАВАЙ_СТАРОНКІ_2' ), - 'talkpagename' => array( 1, 'TALKPAGENAME', 'НАЗВА_СТАРОНКІ_АБМЕРКАВАНЬНЯ' ), - 'talkpagenamee' => array( 1, 'TALKPAGENAMEE', 'НАЗВА_СТАРОНКІ_АБМЕРКАВАНЬНЯ_2' ), - 'subjectpagename' => array( 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME', 'НАЗВА_СТАРОНКІ_ПРАДМЕТУ', 'НАЗВА_СТАРОНКІ_АРТЫКУЛА' ), - 'subjectpagenamee' => array( 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE', 'НАЗВА_СТАРОНКІ_ПРАДМЕТУ_2', 'НАЗВА_СТАРОНКІ_АРТЫКУЛА_2' ), - 'msg' => array( 0, 'MSG:', 'ПАВЕДАМЛЕНЬНЕ:' ), - 'subst' => array( 0, 'SUBST:', 'ПАДСТАНОЎКА:' ), - 'msgnw' => array( 0, 'MSGNW:', 'ПАВЕДАМЛЕНЬНЕ_БЯЗЬ_ВІКІ:' ), - 'end' => array( 0, '__END__', '__КАНЕЦ__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'значак', 'міні' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'значак=$1', 'міні=$1' ), - 'img_right' => array( 1, 'right', 'справа' ), - 'img_left' => array( 1, 'left', 'зьлева' ), - 'img_none' => array( 1, 'none', 'няма' ), - 'img_width' => array( 1, '$1px', '$1пкс' ), - 'img_center' => array( 1, 'center', 'centre', 'цэнтар' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'НАЗВА_САЙТУ' ), - 'ns' => array( 0, 'NS:', 'ПН:' ), - 'localurl' => array( 0, 'LOCALURL:', 'ЛЯКАЛЬНЫ_АДРАС:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'ЛЯКАЛЬНЫ_АДРАС_2:' ), - 'server' => array( 0, 'SERVER', 'СЭРВЭР' ), - 'servername' => array( 0, 'SERVERNAME', 'НАЗВА_СЭРВЭРА' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'ШЛЯХ_ДА_СКРЫПТА' ), - 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТЫКА:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗ_КАНВЭРТАЦЫІ_НАЗВЫ__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗ_КАНВЭРТАЦЫІ_ТЭКСТУ__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'БЯГУЧЫ_ТЫДЗЕНЬ' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'БЯГУЧЫ_ДЗЕНЬ_ТЫДНЯ' ), - 'revisionid' => array( 1, 'REVISIONID', 'ID_ВЭРСІІ' ), - 'plural' => array( 0, 'PLURAL:', 'МНОЖНЫ_ЛІК:'), - 'fullurl' => array( 0, 'FULLURL:', 'ПОЎНЫ_АДРАС:' ), - 'fullurle' => array( 0, 'FULLURLE:', 'ПОЎНЫ_АДРАС_2:' ), - 'lcfirst' => array( 0, 'LCFIRST:', 'ПЕРШАЯ_ЛІТАРА_МАЛАЯ:' ), - 'ucfirst' => array( 0, 'UCFIRST:', 'ПЕРШАЯ_ЛІТАРА_ВЯЛІКАЯ:' ), - 'lc' => array( 0, 'LC:', 'МАЛЫМІ_ЛІТАРАМІ:' ), - 'uc' => array( 0, 'UC:', 'ВЯЛІКІМІ_ЛІТАРАМІ:' ), - 'raw' => array( 0, 'RAW:', 'НЕАПРАЦАВАНЫ' ), - 'displaytitle' => array( 1, 'DISPLAYTITLE', 'АДЛЮСТРАВАНАЯ_НАЗВА' ), - 'rawsuffix' => array( 1, 'R', 'Н' ), - 'newsectionlink' => array( 1, '__NEWSECTIONLINK__', '__СПАСЫЛКА_НА_НОВУЮ_СЭКЦЫЮ__' ), - 'currentversion' => array( 1, 'CURRENTVERSION', 'БЯГУЧАЯ_ВЭРСІЯ' ), - 'urlencode' => array( 0, 'URLENCODE:' ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesBe; - $this->mMessagesBe =& $wgAllMessagesBe; - - global $wgMetaNamespace; - $this->mNamespaceNamesBe = array( - NS_MEDIA => 'Мэдыя', - NS_SPECIAL => 'Спэцыяльныя', - NS_MAIN => '', - NS_TALK => 'Абмеркаваньне', - NS_USER => 'Удзельнік', - NS_USER_TALK => 'Гутаркі_ўдзельніка', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Абмеркаваньне_' . $wgMetaNamespace, - NS_IMAGE => 'Выява', - NS_IMAGE_TALK => 'Абмеркаваньне_выявы', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Абмеркаваньне_MediaWiki', - NS_TEMPLATE => 'Шаблён', - NS_TEMPLATE_TALK => 'Абмеркаваньне_шаблёну', - NS_HELP => 'Дапамога', - NS_HELP_TALK => 'Абмеркаваньне_дапамогі', - NS_CATEGORY => 'Катэгорыя', - NS_CATEGORY_TALK => 'Абмеркаваньне_катэгорыі' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesBe + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsBe; - } - - function getSkinNames() { - return $this->mSkinNamesBe + parent::getSkinNames(); - } - - function &getMagicWords() { - $t = $this->mMagicWordsBe + parent::getMagicWords(); - return $t; - } - - function getDateFormats() { - return $this->mDateFormatsBe; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesBe[$key] ) ) { - return $this->mMessagesBe[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesBe; - } - - // The date and time format - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - $datePreference = $this->dateFormat( $format ); - if( $datePreference == MW_DATE_ISO ) { - return parent::date( $ts, $adj, $datePreference, $timecorrection ); - } else { - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } # Adjust based on the timezone setting. - // 20050310001506 => 10.03.2005 - $date = (substr( $ts, 6, 2 )) . '.' . substr( $ts, 4, 2 ) . '.' . substr( $ts, 0, 4 ); - return $date; - } - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - +class LanguageBe extends Language { function convertPlural( $count, $wordform1, $wordform2, $wordform3) { $count = str_replace ('.', '', $count); if ($count > 10 && floor(($count % 100) / 10) == 1) { diff --git a/languages/LanguageBg.php b/languages/LanguageBg.php index ff027ea840..4884c2a8d8 100644 --- a/languages/LanguageBg.php +++ b/languages/LanguageBg.php @@ -5,178 +5,11 @@ * @subpackage Language */ -/* private */ $wgNamespaceNamesBg = array( - NS_MEDIA => 'Медия', - NS_SPECIAL => 'Специални', - NS_MAIN => '', - NS_TALK => 'Беседа', - NS_USER => 'Потребител', - NS_USER_TALK => 'Потребител_беседа', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_беседа', - NS_IMAGE => 'Картинка', - NS_IMAGE_TALK => 'Картинка_беседа', - NS_MEDIAWIKI => 'МедияУики', - NS_MEDIAWIKI_TALK => 'МедияУики_беседа', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Шаблон_беседа', - NS_HELP => 'Помощ', - NS_HELP_TALK => 'Помощ_беседа', - NS_CATEGORY => 'Категория', - NS_CATEGORY_TALK => 'Категория_беседа' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsBg = array( - 'Без меню', 'Неподвижно вляво', 'Неподвижно вдясно', 'Плаващо вляво', 'Плаващо вдясно' -); - -/* private */ $wgSkinNamesBg = array( - 'standard' => 'Класика', - 'nostalgia' => 'Носталгия', - 'cologneblue' => 'Кьолнско синьо', - 'smarty' => 'Падингтън', - 'montparnasse' => 'Монпарнас', - 'davinci' => 'ДаВинчи', - 'mono' => 'Моно', - 'monobook' => 'Монобук', - 'myskin' => 'Мой облик', -); - -/* private */ $wgDateFormatsBg = array(); - -/* private */ $wgBookstoreListBg = array( - 'books.bg' => 'http://www.books.bg/ISBN/$1', -); - -/* private */ $wgMagicWordsBg = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', '#пренасочване', '#виж' ), - 'notoc' => array( 0, '__NOTOC__', '__БЕЗСЪДЪРЖАНИЕ__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__СЪССЪДЪРЖАНИЕ__' ), - 'toc' => array( 0, '__TOC__', '__СЪДЪРЖАНИЕ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_РЕДАКТИРАНЕ_НА_РАЗДЕЛИ__' ), - 'start' => array( 0, '__START__', '__НАЧАЛО__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТЕКУЩМЕСЕЦ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'ТЕКУЩМЕСЕЦИМЕ' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'ТЕКУЩМЕСЕЦИМЕРОД' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ТЕКУЩМЕСЕЦСЪКР' ), - 'currentday' => array( 1, 'CURRENTDAY', 'ТЕКУЩДЕН' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'ТЕКУЩДЕНИМЕ' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'ТЕКУЩАГОДИНА' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'ТЕКУЩОВРЕМЕ' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЙСТАТИИ' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'БРОЙФАЙЛОВЕ' ), - 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦАИ' ), - 'namespace' => array( 1, 'NAMESPACE', 'ИМЕННОПРОСТРАНСТВО' ), - 'subst' => array( 0, 'SUBST:', 'ЗАМЕСТ:' ), - 'msgnw' => array( 0, 'MSGNW:', 'СЪОБЩNW:' ), - 'end' => array( 0, '__END__', '__КРАЙ__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1'), - 'img_right' => array( 1, 'right', 'вдясно', 'дясно', 'д' ), - 'img_left' => array( 1, 'left', 'вляво', 'ляво', 'л' ), - 'img_none' => array( 1, 'none', 'н' ), - 'img_width' => array( 1, '$1px', '$1пкс' , '$1п' ), - 'img_center' => array( 1, 'center', 'centre', 'център', 'центр', 'ц' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка', 'врамка' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'ИМЕНАСАЙТА' ), - 'ns' => array( 0, 'NS:', 'ИП:' ), - 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛЕНАДРЕС:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛЕНАДРЕСИ:' ), - 'server' => array( 0, 'SERVER', 'СЪРВЪР' ), - 'servername' => array( 0, 'SERVERNAME', 'ИМЕНАСЪРВЪРА' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'ПЪТДОСКРИПТА' ), - 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'CURRENTWEEK', 'ТЕКУЩАСЕДМИЦА'), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesBg.php'); -} - -/** This is an UTF-8 language */ -require_once( 'LanguageUtf8.php' ); - /** * @package MediaWiki * @subpackage Language */ -class LanguageBg extends LanguageUtf8 { - - /** - * Exports $wgBookstoreListBg - * @return array - */ - function getBookstoreList () { - global $wgBookstoreListBg; - return $wgBookstoreListBg; - } - - /** - * Exports $wgNamespaceNamesBg - * @return array - */ - function getNamespaces() { - global $wgNamespaceNamesBg; - return $wgNamespaceNamesBg; - } - - /** - * Exports $wgQuickbarSettingsBg - * @return array - */ - function getQuickbarSettings() { - global $wgQuickbarSettingsBg; - return $wgQuickbarSettingsBg; - } - - /** - * Exports $wgSkinNamesBg - * @return array - */ - function getSkinNames() { - global $wgSkinNamesBg; - return $wgSkinNamesBg; - } - - /** - * Exports $wgDateFormatsBg - * @return array - */ - function getDateFormats() { - global $wgDateFormatsBg; - return $wgDateFormatsBg; - } - - function getMessage( $key ) { - global $wgAllMessagesBg; - if ( isset( $wgAllMessagesBg[$key] ) ) { - return $wgAllMessagesBg[$key]; - } else { - return parent::getMessage( $key ); - } - } - - /** - * Exports $wgMagicWordsBg - * @return array - */ - function &getMagicWords() { - global $wgMagicWordsBg; - return $wgMagicWordsBg; - } - - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - +class LanguageBg extends Language { /** * ISO number formatting: 123 456 789,99. * Avoid tripple grouping by numbers with whole part up to 4 digits. @@ -188,6 +21,5 @@ class LanguageBg extends LanguageUtf8 { return $_; } } - } ?> diff --git a/languages/LanguageBm.deps.php b/languages/LanguageBm.deps.php deleted file mode 100644 index 86ea46b0a7..0000000000 --- a/languages/LanguageBm.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageBm.php b/languages/LanguageBm.php deleted file mode 100644 index 09a016f414..0000000000 --- a/languages/LanguageBm.php +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/languages/LanguageBn.php b/languages/LanguageBn.php deleted file mode 100644 index d61c995e15..0000000000 --- a/languages/LanguageBn.php +++ /dev/null @@ -1,75 +0,0 @@ -mMessagesBn =& $wgAllMessagesBn; - - global $wgMetaNamespace; - $this->mNamespaceNamesBn = array( - NS_SPECIAL => 'বিশেষ', - NS_MAIN => '', - NS_TALK => 'আলাপ', - NS_USER => 'ব্যবহারকারী', - NS_USER_TALK => 'ব্যবহারকারী_আলাপ', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_আলাপ', - NS_IMAGE => 'চিত্র', - NS_IMAGE_TALK => 'চিত্র_আলাপ', - NS_MEDIAWIKI_TALK => 'MediaWiki_আলাপ' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesBn + parent::getNamespaces(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesBn[$key] ) ) { - return $this->mMessagesBn[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesBn; - } - - function digitTransformTable() { - return array( - '0' => '০', - '1' => '১', - '2' => '২', - '3' => '৩', - '4' => '৪', - '5' => '৫', - '6' => '৬', - '7' => '৭', - '8' => '৮', - '9' => '৯' - ); - } - -} - -?> diff --git a/languages/LanguageBo.php b/languages/LanguageBo.php deleted file mode 100644 index 2157083ab5..0000000000 --- a/languages/LanguageBo.php +++ /dev/null @@ -1,35 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageBo extends LanguageUtf8 { - - function getAllMessages() { - return null; - } - - function digitTransformTable() { - return array( - '0' => '༠', - '1' => '༡', - '2' => '༢', - '3' => '༣', - '4' => '༤', - '5' => '༥', - '6' => '༦', - '7' => '༧', - '8' => '༨', - '9' => '༩' - ); - } - -} - -?> diff --git a/languages/LanguageBpy.deps.php b/languages/LanguageBpy.deps.php deleted file mode 100644 index 2ce8bd5e63..0000000000 --- a/languages/LanguageBpy.deps.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageBr.php b/languages/LanguageBr.php deleted file mode 100644 index 8a1bf9ac22..0000000000 --- a/languages/LanguageBr.php +++ /dev/null @@ -1,131 +0,0 @@ - 'Media', - NS_SPECIAL => 'Dibar', - NS_MAIN => '', - NS_TALK => 'Kaozeal', - NS_USER => 'Implijer', - NS_USER_TALK => 'Kaozeadenn_Implijer', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Kaozeadenn_'.$wgMetaNamespace, - NS_IMAGE => 'Skeudenn', - NS_IMAGE_TALK => 'Kaozeadenn_Skeudenn', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Kaozeadenn_MediaWiki', - NS_TEMPLATE => 'Patrom', - NS_TEMPLATE_TALK => 'Kaozeadenn_Patrom', - NS_HELP => 'Skoazell', - NS_HELP_TALK => 'Kaozeadenn_Skoazell', - NS_CATEGORY => 'Rummad', - NS_CATEGORY_TALK => 'Kaozeadenn_Rummad' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsBr = array( - 'Hini ebet', 'Kleiz', 'Dehou', 'War-neuñv a-gleiz' -); - -/* private */ $wgSkinNamesBr = array( - 'standard' => 'Standard', - 'nostalgia' => 'Melkoni', - 'cologneblue' => 'Glaz Kologn', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin' -); - - - -/* private */ $wgBookstoreListBr = array( - 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1', - 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&', - 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1', - 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1', -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesBr.php'); -} - -class LanguageBr extends LanguageUtf8 { - - function getBookstoreList () { - global $wgBookstoreListBr ; - return $wgBookstoreListBr ; - } - - function getNamespaces() { - global $wgNamespaceNamesBr; - return $wgNamespaceNamesBr; - } - - function getDateFormats() { - return false; - } - - function getNsIndex( $text ) { - global $wgNamespaceNamesBr, $wgSitename; - - foreach ( $wgNamespaceNamesBr as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - if( $wgSitename == "Wikipedia" ) { - if( 0 == strcasecmp( "Discussion_Wikipedia", $text ) ) return 5; - } - return false; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsBr; - return $wgQuickbarSettingsBr; - } - - function getSkinNames() { - global $wgSkinNamesBr; - return $wgSkinNamesBr; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $d = (0 + substr( $ts, 6, 2 )) . " " . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . - " " . substr( $ts, 0, 4 ); - return $d; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - return $this->date( $ts, $adj ) . " da " . $this->time( $ts, $adj ); - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - - function getMessage( $key ) { - global $wgAllMessagesBr, $wgAllMessagesEn; - if( isset( $wgAllMessagesBr[$key] ) ) { - return $wgAllMessagesBr[$key]; - } else { - return parent::getMessage( $key ); - } - } - -} - -?> diff --git a/languages/LanguageBs.php b/languages/LanguageBs.php index 98c00f1be9..4734fdc173 100644 --- a/languages/LanguageBs.php +++ b/languages/LanguageBs.php @@ -5,164 +5,7 @@ * @subpackage Language */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesBs.php'); -} - -class LanguageBs extends LanguageUtf8 { - private $mMessagesBs, $mNamespaceNamesBs = null; - - private $mQuickbarSettingsBs = array( - 'Nikakva', 'Pričvršćena lijevo', 'Pričvršćena desno', 'Plutajuća lijevo' - ); - - private $mSkinNamesBs = array( - 'Obična', 'Nostalgija', 'Kelnsko plavo', 'Pedington', 'Monparnas' - ); - - private $mDateFormatsBs = array( - 'Nije bitno', - '06:12, 5. januar 2001.', - '06:12, 5 januar 2001', - '06:12, 05.01.2001.', - '06:12, 5.1.2001.', - '06:12, 5. jan 2001.', - '06:12, 5 jan 2001', - '6:12, 5. januar 2001.', - '6:12, 5 januar 2001', - '6:12, 05.01.2001.', - '6:12, 5.1.2001.', - '6:12, 5. jan 2001.', - '6:12, 5 jan 2001', - ); - - private $mMagicWordsBs = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#Preusmjeri', '#redirect', '#preusmjeri', '#PREUSMJERI' ), - 'notoc' => array( 0, '__NOTOC__', '__BEZSADRŽAJA__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__FORSIRANISADRŽAJ__' ), - 'toc' => array( 0, '__TOC__', '__SADRŽAJ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZ_IZMENA__', '__BEZIZMENA__' ), - 'start' => array( 0, '__START__', '__POČETAK__' ), - 'end' => array( 0, '__END__', '__KRAJ__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'TRENUTNIMJESEC' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'TRENUTNIMJESECIME' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'TRENUTNIMJESECROD' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'TRENUTNIMJESECSKR' ), - 'currentday' => array( 1, 'CURRENTDAY', 'TRENUTNIDAN' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'TRENUTNIDANIME' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'TRENUTNAGODINA' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'TRENUTNOVRIJEME' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'BROJČLANAKA' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'BROJDATOTEKA', 'BROJFAJLOVA' ), - 'pagename' => array( 1, 'PAGENAME', 'STRANICA' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'STRANICE' ), - 'namespace' => array( 1, 'NAMESPACE', 'IMENSKIPROSTOR' ), - 'namespacee' => array( 1, 'NAMESPACEE', 'IMENSKIPROSTORI' ), - 'fullpagename' => array( 1, 'FULLPAGENAME', 'PUNOIMESTRANE' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'PUNOIMESTRANEE' ), - 'msg' => array( 0, 'MSG:', 'POR:' ), - 'subst' => array( 0, 'SUBST:', 'ZAMJENI:' ), - 'msgnw' => array( 0, 'MSGNW:', 'NVPOR:' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1' ), - 'img_right' => array( 1, 'right', 'desno', 'd' ), - 'img_left' => array( 1, 'left', 'lijevo', 'l' ), - 'img_none' => array( 1, 'none', 'n', 'bez' ), - 'img_width' => array( 1, '$1px', '$1piksel' , '$1p' ), - 'img_center' => array( 1, 'center', 'centre', 'centar', 'c' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'okvir', 'ram' ), - 'int' => array( 0, 'INT:', 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'IMESAJTA' ), - 'ns' => array( 0, 'NS:', 'IP:' ), - 'localurl' => array( 0, 'LOCALURL:', 'LOKALNAADRESA:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'LOKALNEADRESE:' ), - 'server' => array( 0, 'SERVER', 'SERVER' ), - 'servername' => array( 0, 'SERVERNAME', 'IMESERVERA' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTA' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__BEZTC__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__BEZCC__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'TRENUTNASEDMICA' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'TRENUTNIDOV' ), - 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZIJE' ), - 'plural' => array( 0, 'PLURAL:', 'MNOŽINA:' ), - 'fullurl' => array( 0, 'FULLURL:', 'PUNURL:' ), - 'fullurle' => array( 0, 'FULLURLE:', 'PUNURLE:' ), - 'lcfirst' => array( 0, 'LCFIRST:', 'LCPRVI:' ), - 'ucfirst' => array( 0, 'UCFIRST:', 'UCPRVI:' ), - 'lc' => array( 0, 'LC:', 'LC:' ), - 'uc' => array( 0, 'UC:', 'UC:' ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesBs; - $this->mMessagesBs =& $wgAllMessagesBs; - - global $wgMetaNamespace; - $this->mNamespaceNamesBs = array( - NS_MEDIA => 'Medija', - NS_SPECIAL => 'Posebno', - NS_MAIN => '', - NS_TALK => 'Razgovor', - NS_USER => 'Korisnik', - NS_USER_TALK => 'Razgovor_sa_korisnikom', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Razgovor_' . str_replace( ' ', '_', - $this->convertGrammar( $wgMetaNamespace, 'instrumental' ) ), - NS_IMAGE => 'Slika', - NS_IMAGE_TALK => 'Razgovor_o_slici', - NS_MEDIAWIKI => 'MedijaViki', - NS_MEDIAWIKI_TALK => 'Razgovor_o_MedijaVikiju', - NS_TEMPLATE => 'Šablon', - NS_TEMPLATE_TALK => 'Razgovor_o_šablonu', - NS_HELP => 'Pomoć', - NS_HELP_TALK => 'Razgovor_o_pomoći', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Razgovor_o_kategoriji', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesBs + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsBs; - } - - function getSkinNames() { - return $this->mSkinNamesBs + parent::getSkinNames(); - } - - // Not implemented ?? -/* function getDateFormats() { - return $this->mDateFormatsBs; - }*/ - - function getMessage( $key ) { - if( isset( $this->mMessagesBs[$key] ) ) { - return $this->mMessagesBs[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesBs; - } - - function fallback8bitEncoding() { - return "iso-8859-2"; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } +class LanguageBs extends Language { function convertPlural( $count, $wordform1, $wordform2, $wordform3) { $count = str_replace ('.', '', $count); @@ -291,4 +134,4 @@ class LanguageBs extends LanguageUtf8 { } -?> \ No newline at end of file +?> diff --git a/languages/LanguageCa.php b/languages/LanguageCa.php deleted file mode 100644 index caa86ed583..0000000000 --- a/languages/LanguageCa.php +++ /dev/null @@ -1,103 +0,0 @@ - "Estàndard", - 'nostalgia' => "Nostàlgia", - 'cologneblue' => "Colònia blava", - ); - - private $mBookstoreListCa = array( - 'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.es/cgi-bin/vtls.web.gateway?searchtype=control+numcard&searcharg=$1', - 'Totselsllibres.com' => 'http://www.totselsllibres.com/tel/publi/busquedaAvanzadaLibros.do?ISBN=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesCa; - $this->mMessagesCa =& $wgAllMessagesCa; - - global $wgMetaNamespace; - $this->mNamespaceNamesCa = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Especial', - NS_MAIN => '', - NS_TALK => 'Discussió', - NS_USER => 'Usuari', - NS_USER_TALK => 'Usuari_Discussió', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace.'_Discussió', - NS_IMAGE => 'Imatge', - NS_IMAGE_TALK => 'Imatge_Discussió', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_Discussió', - NS_TEMPLATE => 'Plantilla', - NS_TEMPLATE_TALK => 'Plantilla_Discussió', - NS_HELP => 'Ajuda', - NS_HELP_TALK => 'Ajuda_Discussió', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Categoria_Discussió' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesCa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsCa; - } - - function getSkinNames() { - return $this->mSkinNamesCa + parent::getSkinNames(); - } - - function getBookstoreList () { - return $this->mBookstoreListCa + parent::getBookstoreList(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesCa[$key] ) ) { - return $this->mMessagesCa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesCa; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([a-zàèéíòóúç·ïü\']+)(.*)$/sDu'; - } - -} - -?> diff --git a/languages/LanguageCe.deps.php b/languages/LanguageCe.deps.php deleted file mode 100644 index d6b5b19d73..0000000000 --- a/languages/LanguageCe.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageCe.php b/languages/LanguageCe.php deleted file mode 100644 index bdaa66e4fb..0000000000 --- a/languages/LanguageCe.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @author Ashar Voultoiz - * - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Ashar Voultoiz - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -/** - * - */ -require_once 'LanguageRu.php'; - -/** - * - */ -class LanguageCe extends LanguageRu { - - function getFallbackLanguage() { - return 'ru'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index c194acee62..daf1534117 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -72,11 +72,12 @@ class LanguageConverter { /** - * get preferred language variants. + * get preferred language variants. + * @param boolean $fromUser Get it from $wgUser's preferences * @return string the preferred language code * @access public */ - function getPreferredVariant() { + function getPreferredVariant( $fromUser = true ) { global $wgUser, $wgRequest; if($this->mPreferredVariant) @@ -90,7 +91,9 @@ class LanguageConverter { } // get language variant preference from logged in users - if(is_object($wgUser) && $wgUser->isLoggedIn() ) { + // Don't call this on stub objects because that causes infinite + // recursion during initialisation + if( $fromUser && $wgUser->isLoggedIn() ) { $this->mPreferredVariant = $wgUser->getOption('variant'); return $this->mPreferredVariant; } diff --git a/languages/LanguageCs.php b/languages/LanguageCs.php index 81f7fde210..6dd2a408f4 100644 --- a/languages/LanguageCs.php +++ b/languages/LanguageCs.php @@ -5,188 +5,21 @@ * @subpackage Language */ -/** */ -require_once( 'LanguageUtf8.php' ); - -# Yucky hardcoding hack -switch( $wgMetaNamespace ) { -case 'Wikipedie': -case 'Wikipedia': - $wgUserNamespace = 'Wikipedista'; break; -default: - $wgUserNamespace = 'Uživatel'; -} - -/* private */ $wgNamespaceNamesCs = array( - NS_MEDIA => 'Média', - NS_SPECIAL => 'Speciální', - NS_MAIN => '', - NS_TALK => 'Diskuse', - NS_USER => $wgUserNamespace, - NS_USER_TALK => $wgUserNamespace . '_diskuse', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_diskuse', - NS_IMAGE => 'Soubor', - NS_IMAGE_TALK => 'Soubor_diskuse', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_diskuse', - NS_TEMPLATE => 'Šablona', - NS_TEMPLATE_TALK => 'Šablona_diskuse', - NS_HELP => 'Nápověda', - NS_HELP_TALK => 'Nápověda_diskuse', - NS_CATEGORY => 'Kategorie', - NS_CATEGORY_TALK => 'Kategorie_diskuse', -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsCs = array( - 'Žádný', 'Leží vlevo', 'Leží vpravo', 'Visí vlevo' -); - -/* private */ $wgSkinNamesCs = array( - 'standard' => 'Standard', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Kolínská modř', - 'chick' => 'Kuře' -) + $wgSkinNamesEn; - -# Hledání knihy podle ISBN -# $wgBookstoreListCs = .. -/* private */ $wgBookstoreListCs = array( - 'Národní knihovna' => 'http://sigma.nkp.cz/F/?func=find-a&find_code=ISN&request=$1', - 'Státní technická knihovna' => 'http://www.stk.cz/cgi-bin/dflex/CZE/STK/BROWSE?A=01&V=$1' -) + $wgBookstoreListEn; - -# Note to translators: -# Please include the English words as synonyms. This allows people -# from other wikis to contribute more easily. -# -# Nepoužívá se, pro používání je třeba povolit getMagicWords dole v LanguageCs. -/* private */ $wgMagicWordsCs = array( -## ID CASE SYNONYMS - 'redirect' => array( 0, '#REDIRECT', '#PŘESMĚRUJ' ), - 'notoc' => array( 0, '__NOTOC__', '__BEZOBSAHU__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__VŽDYOBSAH__' ), - 'toc' => array( 0, '__TOC__', '__OBSAH__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZEDITOVATČÁST__' ), - 'start' => array( 0, '__START__', '__ZAČÁTEK__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'AKTUÁLNÍMĚSÍC' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AKTUÁLNÍMĚSÍCJMÉNO' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'AKTUÁLNÍMĚSÍCGEN' ), -# 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' 'AKTUÁLNÍMĚSÍCZKR' ), - 'currentday' => array( 1, 'CURRENTDAY', 'AKTUÁLNÍDEN' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AKTUÁLNÍDENJMÉNO' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTUÁLNÍROK' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'AKTUÁLNÍČAS' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'POČETČLÁNKŮ' ), - 'pagename' => array( 1, 'PAGENAME', 'NÁZEVSTRANY' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'NÁZEVSTRANYE' ), - 'namespace' => array( 1, 'NAMESPACE', 'JMENNÝPROSTOR' ), - 'msg' => array( 0, 'MSG:' ), - 'subst' => array( 0, 'SUBST:', 'VLOŽIT:' ), - 'msgnw' => array( 0, 'MSGNW:', 'VLOŽITNW:' ), - 'end' => array( 0, '__END__', '__KONEC__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'náhled' ), - 'img_right' => array( 1, 'right', 'vpravo' ), - 'img_left' => array( 1, 'left', 'vlevo' ), - 'img_none' => array( 1, 'none', 'žádné' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre', 'střed' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rám' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'NÁZEVSERVERU' ), - 'ns' => array( 0, 'NS:' ), - 'localurl' => array( 0, 'LOCALURL:', 'MÍSTNÍURL:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'MÍSTNÍURLE:' ), - 'server' => array( 0, 'SERVER' ), - 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZE' ) -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesCs.php'); -} - #-------------------------------------------------------------------------- # Internationalisation code #-------------------------------------------------------------------------- -class LanguageCs extends LanguageUtf8 { +class LanguageCs extends Language { + function fixUpSettings() { + parent::fixUpSettings(); - function getBookstoreList () { - global $wgBookstoreListCs ; - return $wgBookstoreListCs ; - } - - function getNamespaces() { - global $wgNamespaceNamesCs; - return $wgNamespaceNamesCs; - } - - function getNsIndex( $text ) { - global $wgNamespaceNamesCs; - - foreach ( $wgNamespaceNamesCs as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } + # Yucky hardcoding hack + global $wgMetaNamespace; + if ( $wgMetaNamespace == 'Wikipedie' || $wgMetaNamespace == 'Wikipedia' ) { + $this->namespaceNames[NS_USER] = 'Wikipedista'; } - return false; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsCs; - return $wgQuickbarSettingsCs; - } - - function getSkinNames() { - global $wgSkinNamesCs; - return $wgSkinNamesCs; - } - - function getMonthNameGen( $key ) { - #TODO: převést na return $this->convertGrammar( $this->getMonthName( $key ), '2sg' ); - global $wgMonthNamesGenEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent( $wgMonthNamesGenEn[$key-1] ); - else - return wfMsg( $wgMonthNamesGenEn[$key-1] ); - } - - function formatMonth( $month, $format ) { - return intval( $month ) . '.'; - } - - function formatDay( $day, $format ) { - return intval( $day ) . '.'; - } - - function getMessage( $key ) { - global $wgAllMessagesCs; - if(array_key_exists($key, $wgAllMessagesCs)) - return $wgAllMessagesCs[$key]; - else - return parent::getMessage($key); - } - - function getAllMessages() { - global $wgAllMessagesCs; - return $wgAllMessagesCs; - } - - function checkTitleEncoding( $s ) { - - # Check for non-UTF-8 URLs; assume they are WinLatin2 - $ishigh = preg_match( '/[\x80-\xff]/', $s); - $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true ); - - if( $ishigh and !$isutf ) { - return iconv( 'cp1250', 'utf-8', $s ); - } - - return $s; - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); + $this->namespaceNames[NS_USER_TALK] = str_replace( '$1', + $this->namespaceNames[NS_USER], $this->namespaceNames[NS_USER_TALK] ); } # Grammatical transformations, needed for inflected languages diff --git a/languages/LanguageCsb.php b/languages/LanguageCsb.php deleted file mode 100644 index 890394f982..0000000000 --- a/languages/LanguageCsb.php +++ /dev/null @@ -1,48 +0,0 @@ - 'Media', - NS_SPECIAL => 'Specjalnô', - NS_MAIN => '', - NS_TALK => 'Diskùsëjô', - NS_USER => 'Brëkòwnik', - NS_USER_TALK => 'Diskùsëjô_brëkòwnika', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Diskùsëjô_' . $wgMetaNamespace, - NS_IMAGE => 'Òbrôzk', - NS_IMAGE_TALK => 'Diskùsëjô_òbrôzków', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Diskùsëjô_MediaWiki', - NS_TEMPLATE => 'Szablóna', - NS_TEMPLATE_TALK => 'Diskùsëjô_Szablónë', - NS_HELP => 'Pòmòc', - NS_HELP_TALK => 'Diskùsëjô_Pòmòcë', - NS_CATEGORY => 'Kategòrëjô', - NS_CATEGORY_TALK => 'Diskùsëjô_Kategòrëji' -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesCsb.php'); -} - -require_once( 'LanguageUtf8.php' ); -class LanguageCsb extends LanguageUtf8 { - function getNamespaces() { - global $wgNamespaceNamesCsb; - return $wgNamespaceNamesCsb; - } - - function getMessage( $key ) { - global $wgAllMessagesCsb; - if( isset( $wgAllMessagesCsb[$key] ) ) { - return $wgAllMessagesCsb[$key]; - } else { - return parent::getMessage( $key ); - } - } -} -?> diff --git a/languages/LanguageCv.deps.php b/languages/LanguageCv.deps.php deleted file mode 100644 index 245523893a..0000000000 --- a/languages/LanguageCv.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageCv.php b/languages/LanguageCv.php deleted file mode 100644 index 7cf4b2450d..0000000000 --- a/languages/LanguageCv.php +++ /dev/null @@ -1,99 +0,0 @@ -mMessagesCv =& $wgAllMessagesCv; - - global $wgMetaNamespace; - $this->mNamespaceNamesCv = array( - NS_MEDIA => 'Медиа', - NS_SPECIAL => 'Ятарлă', - NS_MAIN => '', - NS_TALK => 'Сӳтсе явасси', - NS_USER => 'Хутшăнакан', - NS_USER_TALK => 'Хутшăнаканăн_канашлу_страници', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_сӳтсе_явмалли', - NS_IMAGE => 'Ӳкерчĕк', - NS_IMAGE_TALK => 'Ӳкерчĕке_сӳтсе_явмалли', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_сӳтсе_явмалли', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Шаблона_сӳтсе_явмалли', - NS_HELP => 'Пулăшу', - NS_HELP_TALK => 'Пулăшăва_сӳтсе_явмалли', - NS_CATEGORY => 'Категори', - NS_CATEGORY_TALK => 'Категорине_сӳтсе_явмалли', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesCv + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesCv[$key] ) ) { - return $this->mMessagesCv[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesCv; - } - - function getFallbackLanguage() { - return 'ru'; - } - - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $datePreference = $this->dateFormat( $format ); - if( $datePreference == MW_DATE_DEFAULT ) { - $datePreference = MW_DATE_YMD; - } - - $month = $this->formatMonth( substr( $ts, 4, 2 ), $datePreference ); - $day = $this->formatDay( substr( $ts, 6, 2 ), $datePreference ); - $year = $this->formatNum( substr( $ts, 0, 4 ), true ); - - switch( $datePreference ) { - case MW_DATE_DMY: return "$day $month $year"; - case MW_DATE_YMD: return "$year, $month, $day"; - case MW_DATE_ISO: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); - default: return "$year, $month, $day"; - } - - - } - - //only for quotation mark - function linkPrefixExtension() { return true; } -} -?> diff --git a/languages/LanguageCy.php b/languages/LanguageCy.php deleted file mode 100644 index d6c94b4c84..0000000000 --- a/languages/LanguageCy.php +++ /dev/null @@ -1,137 +0,0 @@ - "Media", - NS_SPECIAL => "Arbennig", - NS_MAIN => "", - NS_TALK => "Sgwrs", - NS_USER => "Defnyddiwr", - NS_USER_TALK => "Sgwrs_Defnyddiwr", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => "Sgwrs_".$wgMetaNamespace, - NS_IMAGE => "Delwedd", - NS_IMAGE_TALK => "Sgwrs_Delwedd", - NS_MEDIAWIKI => "MediaWici", - NS_MEDIAWIKI_TALK => "Sgwrs_MediaWici", - NS_TEMPLATE => "Nodyn", - NS_TEMPLATE_TALK => "Sgwrs_Nodyn", - NS_CATEGORY => "Categori", - NS_CATEGORY_TALK => "Sgwrs_Categori", - NS_HELP => "Cymorth", - NS_HELP_TALK => "Sgwrs Cymorth" -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsCy = array( - "Dim", "Sefydlog chwith", "Sefydlog de", "Arnawf de" -); - -/* private */ $wgSkinNamesCy = array( - 'standard' => "Safonol", - 'nostalgia' => "Hiraeth", - 'cologneblue' => "Glas Cwlen", -) + $wgSkinNamesEn; - -/* private */ $wgDateFormatsCy = array( -# "Dim dewis", -); - -/* private */ $wgBookstoreListCy = array( - "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN", - "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1", - "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1", - "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1", - "Amazon.co.uk" => "http://www.amazon.co.uk/exec/obidos/ISBN=$1" -); - - -/* private */ $wgMagicWordsCy = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, "#redirect", "#ail-cyfeirio" ), - 'notoc' => array( 0, "__NOTOC__", "__DIMTAFLENCYNNWYS__" ), - 'noeditsection' => array( 0, "__NOEDITSECTION__", "__DIMADRANGOLYGU__" ), - 'start' => array( 0, "__START__", "__DECHRAU__" ), - 'currentmonth' => array( 1, "CURRENTMONTH", "MISCYFOES" ), - 'currentmonthname' => array( 1, "CURRENTMONTHNAME", "ENWMISCYFOES" ), - 'currentday' => array( 1, "CURRENTDAY", "DYDDIADCYFOES" ), - 'currentdayname' => array( 1, "CURRENTDAYNAME", "ENWDYDDCYFOES" ), - 'currentyear' => array( 1, "CURRENTYEAR", "FLWYDDYNCYFOES" ), - 'currenttime' => array( 1, "CURRENTTIME", "AMSERCYFOES" ), - 'numberofarticles' => array( 1, "NUMBEROFARTICLES","NIFEROERTHYGLAU" ), - 'currentmonthnamegen' => array( 1, "CURRENTMONTHNAMEGEN", "GENENWMISCYFOES" ), - 'subst' => array( 1, "SUBST:" ), - 'msgnw' => array( 0, "MSGNW:" ), - 'end' => array( 0, "__DIWEDD__" ), - 'img_thumbnail' => array( 1, "ewin bawd", "bawd", "thumb", "thumbnail" ), - 'img_right' => array( 1, "de", "right" ), - 'img_left' => array( 1, "chwith", "left" ), - 'img_none' => array( 1, "dim", "none" ), - 'img_width' => array( 1, "$1px" ), - 'img_center' => array( 1, "canol", "centre", "center" ), - 'int' => array( 0, "INT:" ) - -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesCy.php'); -} - - -/** */ -require_once( 'LanguageUtf8.php' ); - -/** @package MediaWiki */ -class LanguageCy extends LanguageUtf8 { - - function getBookstoreList () { - global $wgBookstoreListCy; - return $wgBookstoreListCy; - } - - function getNamespaces() { - global $wgNamespaceNamesCy; - return $wgNamespaceNamesCy; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsCy; - return $wgQuickbarSettingsCy; - } - - function getSkinNames() { - global $wgSkinNamesCy; - return $wgSkinNamesCy; - } - - function getDateFormats() { - global $wgDateFormatsCy; - return $wgDateFormatsCy; - } - - function getMessage( $key ) { - global $wgAllMessagesCy; - if( isset( $wgAllMessagesCy[$key] ) ) { - return $wgAllMessagesCy[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - global $wgAllMessagesCy; - return $wgAllMessagesCy; - } - - function &getMagicWords() { - global $wgMagicWordsCy, $wgMagicWordsEn; - return $wgMagicWordsCy + $wgMagicWordsEn; - } - -} - -?> diff --git a/languages/LanguageDa.php b/languages/LanguageDa.php deleted file mode 100644 index ae7d2f6f66..0000000000 --- a/languages/LanguageDa.php +++ /dev/null @@ -1,117 +0,0 @@ - 'Media', - NS_SPECIAL => 'Speciel', - NS_MAIN => '', - NS_TALK => 'Diskussion', - NS_USER => 'Bruger', - NS_USER_TALK => 'Bruger_diskussion', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace.'_diskussion', - NS_IMAGE => 'Billede', - NS_IMAGE_TALK => 'Billede_diskussion', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_diskussion', - NS_TEMPLATE => 'Skabelon', - NS_TEMPLATE_TALK => 'Skabelon_diskussion', - NS_HELP => 'Hjælp', - NS_HELP_TALK => 'Hjælp_diskussion', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Kategori_diskussion' - -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsDa = array( - 'Ingen', 'Fast venstre', 'Fast højre', 'Flydende venstre' -); - -/* private */ $wgSkinNamesDa = array( - 'standard' => 'Klassisk', - 'nostalgia' => 'Nostalgi', - 'cologneblue' => 'Cologne-blå', -) + $wgSkinNamesEn; - -/* private */ $wgDateFormatsDa = array(); - - -/* private */ $wgBookstoreListDa = array( - "Bibliotek.dk" => "http://bibliotek.dk/vis.php?base=dfa&origin=kommando&field1=ccl&term1=is=$1&element=L&start=1&step=10", - "Bogguide.dk" => "http://www.bogguide.dk/find_boeger_bog.asp?ISBN=$1", -) + $wgBookstoreListEn; - -if (!$wgCachedMessageArrays) { - require_once('MessagesDa.php'); -} - -/** @package MediaWiki */ -class LanguageDa extends LanguageUtf8 { - - function getBookstoreList () { - global $wgBookstoreListDa ; - return $wgBookstoreListDa ; - } - - function getNamespaces() { - global $wgNamespaceNamesDa; - return $wgNamespaceNamesDa; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsDa; - return $wgQuickbarSettingsDa; - } - - function getSkinNames() { - global $wgSkinNamesDa; - return $wgSkinNamesDa; - } - - function getDateFormats() { - global $wgDateFormatsDa; - return $wgDateFormatsDa; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $d = (0 + substr( $ts, 6, 2 )) . ". " . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " . - substr( $ts, 0, 4 ); - return $d; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj ); - } - - function getMessage( $key ) { - global $wgAllMessagesDa; - if( isset( $wgAllMessagesDa[$key] ) ) { - return $wgAllMessagesDa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageDe.php b/languages/LanguageDe.php deleted file mode 100644 index c69a81f13e..0000000000 --- a/languages/LanguageDe.php +++ /dev/null @@ -1,116 +0,0 @@ - 'Media', - NS_SPECIAL => 'Spezial', - NS_MAIN => '', - NS_TALK => 'Diskussion', - NS_USER => 'Benutzer', - NS_USER_TALK => 'Benutzer_Diskussion', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_Diskussion', - NS_IMAGE => 'Bild', - NS_IMAGE_TALK => 'Bild_Diskussion', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_Diskussion', - NS_TEMPLATE => 'Vorlage', - NS_TEMPLATE_TALK => 'Vorlage_Diskussion', - NS_HELP => 'Hilfe', - NS_HELP_TALK => 'Hilfe_Diskussion', - NS_CATEGORY => 'Kategorie', - NS_CATEGORY_TALK => 'Kategorie_Diskussion' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsDe = array( - 'Keine', 'Links, fest', 'Rechts, fest', 'Links, schwebend' -); - -/* private */ $wgSkinNamesDe = array( - 'standard' => 'Klassik', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Kölnisch Blau', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Küken' -); - - -/* private */ $wgBookstoreListDe = array( - 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1', - 'amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', - 'buch.de' => 'http://www.buch.de/de.buch.shop/shop/1/home/schnellsuche/buch/?fqbi=$1', - 'buchhandel.de' => 'http://www.buchhandel.de/vlb/vlb.cgi?type=voll&isbn=$1', - 'Karlsruher Virtueller Katalog (KVK)' => 'http://www.ubka.uni-karlsruhe.de/kvk.html?SB=$1', - 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1' -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesDe.php'); -} - -/** @package MediaWiki */ -class LanguageDe extends LanguageUtf8 { - - function getBookstoreList() { - global $wgBookstoreListDe ; - return $wgBookstoreListDe ; - } - - function getNamespaces() { - global $wgNamespaceNamesDe; - return $wgNamespaceNamesDe; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsDe; - return $wgQuickbarSettingsDe; - } - - function getSkinNames() { - global $wgSkinNamesDe; - return $wgSkinNamesDe; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return parent::formatDay( $day, $format ) . '.'; - } - - function getMessage( $key ) { - global $wgAllMessagesDe; - if( isset( $wgAllMessagesDe[$key] ) ) { - return $wgAllMessagesDe[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([äöüßa-z]+)(.*)$/sDu'; - } - - -} - -?> diff --git a/languages/LanguageDv.php b/languages/LanguageDv.php deleted file mode 100644 index cb4de84fad..0000000000 --- a/languages/LanguageDv.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/languages/LanguageDz.php b/languages/LanguageDz.php deleted file mode 100644 index a4d8b3ef0a..0000000000 --- a/languages/LanguageDz.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageDz extends LanguageUtf8 { - function digitTransformTable() { - return array( - '0' => '༠', - '1' => '༡', - '2' => '༢', - '3' => '༣', - '4' => '༤', - '5' => '༥', - '6' => '༦', - '7' => '༧', - '8' => '༨', - '9' => '༩' - ); - } - -} - -?> diff --git a/languages/LanguageEl.php b/languages/LanguageEl.php deleted file mode 100644 index 9f36ef445f..0000000000 --- a/languages/LanguageEl.php +++ /dev/null @@ -1,95 +0,0 @@ -mMessagesEl =& $wgAllMessagesEl; - - global $wgMetaNamespace; - $this->mNamespaceNamesEl = array( - NS_MEDIA => 'Μέσον', - NS_SPECIAL => 'Ειδικό', - NS_MAIN => '', - NS_TALK => 'Συζήτηση', - NS_USER => 'Χρήστης', - NS_USER_TALK => 'Συζήτηση_χρήστη', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_συζήτηση', - NS_IMAGE => 'Εικόνα', - NS_IMAGE_TALK => 'Συζήτηση_εικόνας', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Πρότυπο', - NS_TEMPLATE_TALK => 'Συζήτηση_προτύπου', - NS_HELP => 'Βοήθεια', - NS_HELP_TALK => 'Συζήτηση_βοήθειας', - NS_CATEGORY => 'Κατηγορία', - NS_CATEGORY_TALK => 'Συζήτηση_κατηγορίας', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesEl + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesEl[$key] ) ) { - return $this->mMessagesEl[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesEl; - } - - function fallback8bitEncoding() { - return 'iso-8859-7'; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageEn.php b/languages/LanguageEn.php deleted file mode 100644 index 3feba1777b..0000000000 --- a/languages/LanguageEn.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/languages/LanguageEo.php b/languages/LanguageEo.php index bfb5b276dc..a62ccc9b59 100644 --- a/languages/LanguageEo.php +++ b/languages/LanguageEo.php @@ -4,96 +4,7 @@ * @subpackage Language */ -require_once('LanguageUtf8.php'); - -if (!$wgCachedMessageArrays) { - require_once('MessagesEo.php'); -} - -class LanguageEo extends LanguageUtf8 { - private $mMessagesEo, $mNamespaceNamesEo = null; - - private $mQuickbarSettingsEo = array( - 'Nenia', 'Fiksiĝas maldekstre', 'Fiksiĝas dekstre', 'Ŝvebas maldekstre' - ); - - private $mSkinNamesEo = array( - 'standard' => 'Klasika', - 'nostalgia' => 'Nostalgio', - 'cologneblue' => 'Kolonja Bluo', - 'mono' => 'Senkolora', - 'monobook' => 'Librejo', - 'chick' => 'Kokido', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesEo; - $this->mMessagesEo =& $wgAllMessagesEo; - - global $wgMetaNamespace, $wgMetaNamespaceTalk; - $this->mNamespaceNamesEo = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciala', - NS_MAIN => '', - NS_TALK => 'Diskuto', - NS_USER => 'Vikipediisto', # FIXME: Generalize v-isto kaj v-io - NS_USER_TALK => 'Vikipediista_diskuto', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => ( $wgMetaNamespaceTalk ? $wgMetaNamespaceTalk : $wgMetaNamespace.'_diskuto' ), - NS_IMAGE => 'Dosiero', #FIXME: Check the magic for Image: and Media: - NS_IMAGE_TALK => 'Dosiera_diskuto', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_diskuto', - NS_TEMPLATE => 'Ŝablono', - NS_TEMPLATE_TALK => 'Ŝablona_diskuto', - NS_HELP => 'Helpo', - NS_HELP_TALK => 'Helpa_diskuto', - NS_CATEGORY => 'Kategorio', - NS_CATEGORY_TALK => 'Kategoria_diskuto', - ); - - } - function getDefaultUserOptions () { - $opt = parent::getDefaultUserOptions(); - $opt['altencoding'] = 0; - return $opt; - } - - function getNamespaces() { - return $this->mNamespaceNamesEo + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsEo; - } - - function getSkinNames() { - return $this->mSkinNamesEo + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesEo[$key] ) ) { - return $this->mMessagesEo[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesEo; - } - - # La dato- kaj tempo-funkciojn oni povas precizigi laŭ lingvo - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return parent::formatDay( $day, $format ) . '.'; - } - +class LanguageEo extends Language { function iconv( $in, $out, $string ) { # For most languages, this is a wrapper for iconv # Por multaj lingvoj, ĉi tiu nur voku la sisteman funkcion iconv() @@ -155,23 +66,9 @@ class LanguageEo extends LanguageUtf8 { } function initEncoding() { - global $wgEditEncoding, $wgInputEncoding, $wgOutputEncoding; - $wgInputEncoding = 'utf-8'; - $wgOutputEncoding = 'utf-8'; + global $wgEditEncoding; $wgEditEncoding = 'x'; } - - function setAltEncoding() { - global $wgEditEncoding, $wgInputEncoding, $wgOutputEncoding; - $wgInputEncoding = 'utf-8'; - $wgOutputEncoding = 'x'; - $wgEditEncoding = ''; - } - - function separatorTransformTable() { - return array(',' => ' ', '.' => ',' ); - } - } ?> diff --git a/languages/LanguageEs.php b/languages/LanguageEs.php deleted file mode 100644 index 0c8ff51e6c..0000000000 --- a/languages/LanguageEs.php +++ /dev/null @@ -1,104 +0,0 @@ - 'Estándar', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesEs; - $this->mMessagesEs =& $wgAllMessagesEs; - - global $wgMetaNamespace; - $this->mNamespaceNamesEs = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Especial', - NS_MAIN => '', - NS_TALK => 'Discusión', - NS_USER => 'Usuario', - NS_USER_TALK => 'Usuario_Discusión', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_Discusión', - NS_IMAGE => 'Imagen', - NS_IMAGE_TALK => 'Imagen_Discusión', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_Discusión', - NS_TEMPLATE => 'Plantilla', - NS_TEMPLATE_TALK => 'Plantilla_Discusión', - NS_HELP => 'Ayuda', - NS_HELP_TALK => 'Ayuda_Discusión', - NS_CATEGORY => 'Categoría', - NS_CATEGORY_TALK => 'Categoría_Discusión', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesEs + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsEs; - } - - function getSkinNames() { - return $this->mSkinNamesEs + parent::getSkinNames(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesEs[$key] ) ) { - return $this->mMessagesEs[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesEs; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function timeDateSeparator( $format ) { - return ' '; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([a-záéíóúñ]+)(.*)$/sDu'; - } - -} - -?> diff --git a/languages/LanguageEt.php b/languages/LanguageEt.php index 078cc270c3..9284340619 100644 --- a/languages/LanguageEt.php +++ b/languages/LanguageEt.php @@ -6,132 +6,7 @@ * */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesEt.php'); -} - -class LanguageEt extends LanguageUtf8 { - private $mMessagesEt, $mNamespaceNamesEt = null; - - private $mSkinNamesEt = array( - 'standard' => 'Standard', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Kölni sinine', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'Mu oma nahk' - ); - - private $mDateFormatsEt = array( - 'Eelistus puudub', - '15.01.2001, kell 16.12', - '15. jaanuar 2001, kell 16.12', - '15. I 2005, kell 16.12', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - private $mQuickbarSettingsEt = array( - 'Ei_ole', 'Püsivalt_vasakul', 'Püsivalt paremal', 'Ujuvalt vasakul' - ); - - #Lisasin eestimaised poed, aga võõramaiseid ei julenud kustutada. - - private $mBookstoreListEt = array( - 'Apollo' => 'http://www.apollo.ee/search.php?keyword=$1&search=OTSI', - 'minu Raamat' => 'http://www.raamat.ee/advanced_search_result.php?keywords=$1', - 'Raamatukoi' => 'http://www.raamatukoi.ee/cgi-bin/index?valik=otsing&paring=$1', - 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', - 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', - 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' - ); - - - private $mMagicWordsEt = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', "#suuna" ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesEt; - $this->mMessagesEt =& $wgAllMessagesEt; - - global $wgMetaNamespace; - $this->mNamespaceNamesEt = array( - NS_MEDIA => 'Meedia', - NS_SPECIAL => 'Eri', - NS_MAIN => '', - NS_TALK => 'Arutelu', - NS_USER => 'Kasutaja', - NS_USER_TALK => 'Kasutaja_arutelu', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_arutelu', - NS_IMAGE => 'Pilt', - NS_IMAGE_TALK => 'Pildi_arutelu', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_arutelu', - NS_TEMPLATE => 'Mall', - NS_TEMPLATE_TALK => 'Malli_arutelu', - NS_HELP => 'Juhend', - NS_HELP_TALK => 'Juhendi_arutelu', - NS_CATEGORY => 'Kategooria', - NS_CATEGORY_TALK => 'Kategooria_arutelu' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesEt + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsEt; - } - - function getSkinNames() { - return $this->mSkinNamesEt + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsEt; - } - - function getBookstoreList() { - return $this->mBookstoreListEt; - } - - function &getMagicWords() { - $t = $this->mMagicWordsEt + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesEt[$key] ) ) { - return $this->mMessagesEt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesEt; - } - - /** - * Estonian numeric formatting is 123 456,78. - * Notice that the space is non-breaking. - */ - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - +class LanguageEt extends Language { /** * Avoid grouping whole numbers between 0 to 9999 */ @@ -142,112 +17,5 @@ class LanguageEt extends LanguageUtf8 { return $_; } } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one. - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgAmericanDates; - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $datePreference = $this->dateFormat($format); - - if ($datePreference == '0' - || $datePreference == '' ) {$datePreference = $wgAmericanDates ? '0' : '2';} - - $month = $this->getMonthName( substr( $ts, 4, 2 ) ); - $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) ); - $year = $this->formatNum( substr( $ts, 0, 4 ), true ); - $lat_month = $this->monthByLatinNumber( substr ($ts, 4, 2)); - - switch( $datePreference ) { - case '2': return "$day. $month $year"; - case '3': return "$day. $lat_month $year"; - case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); - default: return substr($ts, 6, 2). '.' . substr($ts, 4, 2). '.' .substr($ts, 0, 4); - } - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function time( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser, $wgAmericanDates; - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - $datePreference = $this->dateFormat($format); - - if ($datePreference == '0') {$datePreference = $wgAmericanDates ? '0' : '2';} - - if ( $datePreference === 'ISO 8601' ) { - $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ); - $t .= ':' . substr( $ts, 12, 2 ); - } else { - $t = substr( $ts, 8, 2 ) . '.' . substr( $ts, 10, 2 ); - } - return $t; - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { - global $wgUser, $wgAmericanDates; - - $datePreference = $this->dateFormat($format); - switch ( $datePreference ) { - case 'ISO 8601': return $this->date( $ts, $adj, $datePreference, $timecorrection ) . ' ' . - $this->time( $ts, $adj, $datePreference, $timecorrection ); - default: return $this->date( $ts, $adj, $datePreference, $timecorrection ) . ', kell ' . - $this->time( $ts, $adj, $datePreference, $timecorrection ); - - } - - } - - /** - * retuns latin number corresponding to given month number - * @access public - * @param number - * @return string - */ - function monthByLatinNumber( $key ) { - $latinNumbers= array( - 'I', 'II', 'III', 'IV', 'V', 'VI', - 'VII','VIII','IX','X','XI','XII' - ); - - return $latinNumbers[$key-1]; - } - - } ?> diff --git a/languages/LanguageEu.php b/languages/LanguageEu.php deleted file mode 100644 index 72deced8f1..0000000000 --- a/languages/LanguageEu.php +++ /dev/null @@ -1,83 +0,0 @@ - 'Lehenetsia', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Cologne Blue', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesEu; - $this->mMessagesEu =& $wgAllMessagesEu; - - global $wgMetaNamespace; - $this->mNamespaceNamesEu = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Aparteko', - NS_MAIN => '', - NS_TALK => 'Eztabaida', - NS_USER => 'Lankide', - NS_USER_TALK => 'Lankide_eztabaida', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace.'_eztabaida', - NS_IMAGE => 'Irudi', - NS_IMAGE_TALK => 'Irudi_eztabaida', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_eztabaida', - NS_TEMPLATE => 'Txantiloi', - NS_TEMPLATE_TALK => 'Txantiloi_eztabaida', - NS_CATEGORY => 'Kategoria', - NS_CATEGORY_TALK => 'Kategoria_eztabaida', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesEu + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsEu; - } - - function getSkinNames() { - return $this->mSkinNamesEu + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesEu[$key] ) ) { - return $this->mMessagesEu[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesEu; - } - -} - -?> diff --git a/languages/LanguageFa.php b/languages/LanguageFa.php deleted file mode 100644 index 43f5555e3d..0000000000 --- a/languages/LanguageFa.php +++ /dev/null @@ -1,113 +0,0 @@ - 'استاندارد', - 'nostalgia' => 'نوستالژی', - 'cologneblue' => 'آبی کلون', - 'smarty' => 'پدینگتون', - 'montparnasse' => 'مون‌پارناس', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFa; - $this->mMessagesFa =& $wgAllMessagesFa; - - global $wgMetaNamespace; - $this->mNamespaceNamesFa = array( - NS_MEDIA => 'مدیا', - NS_SPECIAL => 'ویژه', - NS_MAIN => '', - NS_TALK => 'بحث', - NS_USER => 'کاربر', - NS_USER_TALK => 'بحث_کاربر', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'بحث_' . $wgMetaNamespace, - NS_IMAGE => 'تصویر', - NS_IMAGE_TALK => 'بحث_تصویر', - NS_MEDIAWIKI => 'مدیاویکی', - NS_MEDIAWIKI_TALK => 'بحث_مدیاویکی', - NS_TEMPLATE => 'الگو', - NS_TEMPLATE_TALK => 'بحث_الگو', - NS_HELP => 'راهنما', - NS_HELP_TALK => 'بحث_راهنما', - NS_CATEGORY => 'رده', - NS_CATEGORY_TALK => 'بحث_رده' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesFa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFa; - } - - function getSkinNames() { - return $this->mSkinNamesFa + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFa[$key] ) ) { - return $this->mMessagesFa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFa; - } - - function digitTransformTable() { - return array( - "0" => "۰", - "1" => "۱", - "2" => "۲", - "3" => "۳", - "4" => "۴", - "5" => "۵", - "6" => "۶", - "7" => "۷", - "8" => "۸", - "9" => "۹", - "%" => "٪", - "." => "٫", // wrong table? - "," => "٬" - ); - } - - function getDefaultUserOptions() { - $opt = Language::getDefaultUserOptions(); - $opt['quickbar'] = 2; - $opt['underline'] = 0; - return $opt; - } - - - # For right-to-left language support - function isRTL() { return true; } - -} -?> diff --git a/languages/LanguageFi.php b/languages/LanguageFi.php index 7f075713fa..47dd0e65a1 100644 --- a/languages/LanguageFi.php +++ b/languages/LanguageFi.php @@ -6,164 +6,7 @@ * * @author Niklas Laxström */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesFi.php'); -} - -class LanguageFi extends LanguageUtf8 { - private $mMessagesFi, $mNamespaceNamesFi = null; - - private $mSkinNamesFi = array( - 'standard' => 'Perus', - 'cologneblue' => 'Kölnin sininen', - 'myskin' => 'Oma tyylisivu' - ); - - private $mQuickbarSettingsFi = array( - 'Ei mitään', 'Tekstin mukana, vasen', 'Tekstin mukana, oikea', 'Pysyen vasemmalla', 'Pysyen oikealla' - ); - - private $mDateFormatsFi = array( - MW_DATE_DEFAULT => 'Ei valintaa', - 1 => '15. tammikuuta 2001 kello 16.12', - 2 => '15. tammikuuta 2001 kello 16:12:34', - 3 => '15.1.2001 16.12', - MW_DATE_ISO => '2001-01-15 16:12:34' - ); - - private $mBookstoreListFi = array( - 'Bookplus' => 'http://www.bookplus.fi/product.php?isbn=$1', - 'Helsingin yliopiston kirjasto' => 'http://pandora.lib.hel.fi/cgi-bin/mhask/monihask.py?volname=&author=&keyword=&ident=$1&submit=Hae&engine_helka=ON', - 'Pääkaupunkiseudun kirjastot' => 'http://www.helmet.fi/search*fin/i?SEARCH=$1', - 'Tampereen seudun kirjastot' => 'http://kirjasto.tampere.fi/Piki?formid=fullt&typ0=6&dat0=$1' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFi; - $this->mMessagesFi =& $wgAllMessagesFi; - - global $wgMetaNamespace; - $this->mNamespaceNamesFi = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Toiminnot', - NS_MAIN => '', - NS_TALK => 'Keskustelu', - NS_USER => 'Käyttäjä', - NS_USER_TALK => 'Keskustelu_käyttäjästä', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Keskustelu_' . $this->convertGrammar( $wgMetaNamespace, 'elative' ), - NS_IMAGE => 'Kuva', - NS_IMAGE_TALK => 'Keskustelu_kuvasta', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Malline', - NS_TEMPLATE_TALK => 'Keskustelu_mallineesta', - NS_HELP => 'Ohje', - NS_HELP_TALK => 'Keskustelu_ohjeesta', - NS_CATEGORY => 'Luokka', - NS_CATEGORY_TALK => 'Keskustelu_luokasta' - ); - - } - - function getBookstoreList () { - return $this->mBookstoreListFi; - } - - function getNamespaces() { - return $this->mNamespaceNamesFi + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFi; - } - - function getSkinNames() { - return $this->mSkinNamesFi + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsFi; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFi[$key] ) ) { - return $this->mMessagesFi[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFi; - } - - /** - * See Language.php for documentation - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $yyyy = substr( $ts, 0, 4 ); - $mm = substr( $ts, 4, 2 ); - $m = 0 + $mm; - $mmmm = $this->getMonthName( $mm ) . 'ta'; - $dd = substr( $ts, 6, 2 ); - $d = 0 + $dd; - - $datePreference = $this->dateFormat($format); - switch( $datePreference ) { - case '3': return "$d.$m.$yyyy"; - case MW_DATE_ISO: return "$yyyy-$mm-$dd"; - default: return "$d. $mmmm $yyyy"; - } - } - - /** - * See Language.php for documentation - */ - function time( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $hh = substr( $ts, 8, 2 ); - $mm = substr( $ts, 10, 2 ); - $ss = substr( $ts, 12, 2 ); - - $datePreference = $this->dateFormat($format); - switch( $datePreference ) { - case '2': - case MW_DATE_ISO: return "$hh:$mm:$ss"; - default: return "$hh.$mm"; - } - } - - /** - * See Language.php for documentation - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { - $date = $this->date( $ts, $adj, $format, $timecorrection ); - $time = $this->time( $ts, $adj, $format, $timecorrection ); - - $datePreference = $this->dateFormat($format); - switch( $datePreference ) { - case '3': - case MW_DATE_ISO: return "$date $time"; - default: return "$date kello $time"; - } - } - - /** - * Finnish numeric formatting is 123 456,78. - */ - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - +class LanguageFi extends Language { /** * Avoid grouping whole numbers between 0 to 9999 */ @@ -175,11 +18,6 @@ class LanguageFi extends LanguageUtf8 { } } - function linkTrail() { - return '/^([a-zäö]+)(.*)$/sDu'; - } - - # Convert from the nominative form of a noun to some other case # Invoked with {{GRAMMAR:case|word}} function convertGrammar( $word, $case ) { @@ -319,7 +157,7 @@ class LanguageFi extends LanguageUtf8 { $final .= ' ' . $item; } - return '”' . trim( $final ) . '”'; + return '”' . trim( $final ) . '”'; } } diff --git a/languages/LanguageFo.php b/languages/LanguageFo.php deleted file mode 100644 index 6df7bd7340..0000000000 --- a/languages/LanguageFo.php +++ /dev/null @@ -1,109 +0,0 @@ - 'http://www.bokasolan.fo/vleitari.asp?haattur=bok.alfa&Heiti=&Hovindur=&Forlag=&innbinding=Oell&bolkur=Allir&prisur=Allir&Aarstal=Oell&mal=Oell&status=Oell&ISBN=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFo; - $this->mMessagesFo =& $wgAllMessagesFo; - - global $wgMetaNamespace; - $this->mNamespaceNamesFo = array( - NS_MEDIA => 'Miðil', - NS_SPECIAL => 'Serstakur', - NS_MAIN => '', - NS_TALK => 'Kjak', - NS_USER => 'Brúkari', - NS_USER_TALK => 'Brúkari_kjak', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_kjak', - NS_IMAGE => 'Mynd', - NS_IMAGE_TALK => 'Mynd_kjak', - NS_MEDIAWIKI => 'MidiaWiki', - NS_MEDIAWIKI_TALK => 'MidiaWiki_kjak', - NS_TEMPLATE => 'Fyrimynd', - NS_TEMPLATE_TALK => 'Fyrimynd_kjak', - NS_HELP => 'Hjálp', - NS_HELP_TALK => 'Hjálp_kjak', - NS_CATEGORY => 'Bólkur', - NS_CATEGORY_TALK => 'Bólkur_kjak' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesFo + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFo; - } - - function getSkinNames() { - return $this->mSkinNamesFo + parent::getSkinNames(); - } - - function getBookstoreList() { - return $this->mBookstoreListFo + parent::getBookstoreList(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFo[$key] ) ) { - return $this->mMessagesFo[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFo; - } - - function timeDateSeparator( $format ) { - return ' kl. '; - } - - function timeBeforeDate() { - return false; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return $this->formatNum( 0 + $day, true ) . '.'; - } - -} - -?> diff --git a/languages/LanguageFr.php b/languages/LanguageFr.php deleted file mode 100644 index b9c262a6b3..0000000000 --- a/languages/LanguageFr.php +++ /dev/null @@ -1,119 +0,0 @@ - 'Standard', - 'nostalgia' => 'Nostalgie', - ); - - private $mBookstoreListFr = array( - 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1', - 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&', - 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1', - 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFr; - $this->mMessagesFr =& $wgAllMessagesFr; - - global $wgMetaNamespace; - $this->mNamespaceNamesFr = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Discuter', - NS_USER => 'Utilisateur', - NS_USER_TALK => 'Discussion_Utilisateur', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussion_' . $wgMetaNamespace, - NS_IMAGE => 'Image', - NS_IMAGE_TALK => 'Discussion_Image', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', - NS_TEMPLATE => 'Modèle', - NS_TEMPLATE_TALK => 'Discussion_Modèle', - NS_HELP => 'Aide', - NS_HELP_TALK => 'Discussion_Aide', - NS_CATEGORY => 'Catégorie', - NS_CATEGORY_TALK => 'Discussion_Catégorie' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesFr + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFr; - } - - function getSkinNames() { - return $this->mSkinNamesFr + parent::getSkinNames(); - } - - function getBookstoreList() { - return $this->mBookstoreListFr; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFr[$key] ) ) { - return $this->mMessagesFr[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFr; - } - - function getNsIndex( $text ) { - global $wgSitename; - - foreach ( $this->mNamespaceNamesFr as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - if( $wgSitename == 'Wikipédia' ) { - if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT; - if( 0 == strcasecmp( 'Discussion_Wikipedia', $text ) ) return NS_PROJECT_TALK; - } - return false; - } - - function timeBeforeDate( $format ) { - return false; - } - - function timeDateSeparator( $format ) { - return " à "; - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageFur.php b/languages/LanguageFur.php deleted file mode 100644 index fa5ef4342c..0000000000 --- a/languages/LanguageFur.php +++ /dev/null @@ -1,105 +0,0 @@ - 'Nostalgie', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFur; - $this->mMessagesFur =& $wgAllMessagesFur; - - global $wgMetaNamespace; - $this->mNamespaceNamesFur = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciâl', - NS_MAIN => '', - NS_TALK => 'Discussion', - NS_USER => 'Utent', - NS_USER_TALK => 'Discussion_utent', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussion_' . $wgMetaNamespace, - NS_IMAGE => 'Figure', - NS_IMAGE_TALK => 'Discussion_figure', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', - NS_TEMPLATE => 'Model', - NS_TEMPLATE_TALK => 'Discussion_model', - NS_HELP => 'Jutori', - NS_HELP_TALK => 'Discussion_jutori', - NS_CATEGORY => 'Categorie', - NS_CATEGORY_TALK => 'Discussion_categorie' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesFur + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFur; - } - - function getSkinNames() { - return $this->mSkinNamesFur + parent::getSkinNames(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFur[$key] ) ) { - return $this->mMessagesFur[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFur; - } - - function timeDateSeparator( $format ) { - return ' a lis '; - } - - function timeBeforeDate() { - return false; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return $this->formatNum( 0 + $day, true ) . ' di '; - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageFy.php b/languages/LanguageFy.php deleted file mode 100644 index 84f381d865..0000000000 --- a/languages/LanguageFy.php +++ /dev/null @@ -1,121 +0,0 @@ - 'Standert', - 'nostalgia' => 'Nostalgy', - ); - - private $mDateFormatsFy = array( - 'Gjin foarkar', - '16.12, jan 15, 2001', - '16.12, 15 jan 2001', - '16.12, 2001 jan 15', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesFy; - $this->mMessagesFy =& $wgAllMessagesFy; - - global $wgMetaNamespace; - $this->mNamespaceNamesFy = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Wiki', - NS_MAIN => '', - NS_TALK => 'Oerlis', - NS_USER => 'Meidogger', - NS_USER_TALK => 'Meidogger_oerlis', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_oerlis', - NS_IMAGE => 'Ofbyld', - NS_IMAGE_TALK => 'Ofbyld_oerlis', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_oerlis', - NS_TEMPLATE => 'Berjocht', - NS_TEMPLATE_TALK => 'Berjocht_oerlis', - NS_HELP => 'Hulp', - NS_HELP_TALK => 'Hulp_oerlis', - NS_CATEGORY => 'Kategory', - NS_CATEGORY_TALK => 'Kategory_oerlis' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesFy + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsFy; - } - - function getSkinNames() { - return $this->mSkinNamesFy + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsFy; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesFy[$key] ) ) { - return $this->mMessagesFy[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesFy; - } - - function getNsIndex( $text ) { - foreach ( $this->mNamespaceNamesFy as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - if ( 0 == strcasecmp( "Brûker", $text ) ) return 2; - if ( 0 == strcasecmp( "Brûker_oerlis", $text ) ) return 3; - return false; - } - - function timeSeparator( $format ) { - return '.'; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([a-zàáèéìíòóùúâêîôûäëïöü]+)(.*)$/sDu'; - } - -} - -?> diff --git a/languages/LanguageGa.php b/languages/LanguageGa.php index b03d9dc284..0779e42b73 100644 --- a/languages/LanguageGa.php +++ b/languages/LanguageGa.php @@ -5,174 +5,7 @@ * @subpackage Language */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesGa.php'); -} - -class LanguageGa extends LanguageUtf8 { - private $mMessagesGa, $mNamespaceNamesGa = null; - - private $mQuickbarSettingsGa = array( - 'Faic', 'Greamaithe ar chlé', 'Greamaithe ar dheis', 'Ag faoileáil ar chlé', 'Ag faoileáil ar dheis' - ); - - private $mSkinNamesGa = array( - 'standard' => 'Gnáth', - 'nostalgia' => 'Sean-nós', - 'cologneblue' => 'Gorm na Colóna', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' - ); - - private $mDateFormatsGa = array( - 'Is cuma liom', - '16:12, Eanáir 15, 2001', - '16:12, 15 Eanáir 2001', - '16:12, 2001 Eanáir 15', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - private $mMagicWordsGa = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', '#athsheoladh' ), - 'notoc' => array( 0, '__NOTOC__', '__GANCÁ__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__CÁGACHUAIR__' ), - 'toc' => array( 0, '__TOC__', '__CÁ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__GANMHÍRATHRÚ__' ), - 'start' => array( 0, '__START__', '__TÚS__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'MÍLÁITHREACH' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AINMNAMÍOSALÁITHREAÍ' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'GINAINMNAMÍOSALÁITHREAÍ' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'GIORRÚNAMÍOSALÁITHREAÍ' ), - 'currentday' => array( 1, 'CURRENTDAY', 'LÁLÁITHREACH' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AINMANLAELÁITHRIGH' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'BLIAINLÁITHREACH' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'AMLÁITHREACH' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'LÍONNANALT' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'LÍONNAGCOMHAD' ), - 'pagename' => array( 1, 'PAGENAME', 'AINMANLGH' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'AINMANLGHB' ), - 'namespace' => array( 1, 'NAMESPACE', 'AINMSPÁS' ), - 'msg' => array( 0, 'MSG:', 'TCHT:' ), - 'subst' => array( 0, 'SUBST:', 'IONAD:' ), - 'msgnw' => array( 0, 'MSGNW:', 'TCHTFS:' ), - 'end' => array( 0, '__END__', '__DEIREADH__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mionsamhail', 'mion' ), - 'img_right' => array( 1, 'right', 'deas' ), - 'img_left' => array( 1, 'left', 'clé' ), - 'img_none' => array( 1, 'none', 'faic' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre', 'lár' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'fráma', 'frámaithe' ), - 'int' => array( 0, 'INT:', 'INMH:' ), - 'sitename' => array( 1, 'SITENAME', 'AINMANTSUÍMH' ), - 'ns' => array( 0, 'NS:', 'AS:' ), - 'localurl' => array( 0, 'LOCALURL:', 'URLÁITIÚIL' ), - 'localurle' => array( 0, 'LOCALURLE:', 'URLÁITIÚILB' ), - 'server' => array( 0, 'SERVER', 'FREASTALAÍ' ), - 'servername' => array( 0, 'SERVERNAME', 'AINMANFHREASTALAÍ' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'SCRIPTCHOSÁN' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMADACH:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__GANTIONTÚNADTEIDEAL__', '__GANTT__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__GANTIONTÚNANÁBHAIR__', '__GANTA__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'SEACHTAINLÁITHREACH' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'LÁLÁITHREACHNAS' ), - 'revisionid' => array( 1, 'REVISIONID', 'IDANLEASAITHE' ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesGa; - $this->mMessagesGa =& $wgAllMessagesGa; - - global $wgMetaNamespace; - $this->mNamespaceNamesGa = array( - NS_MEDIA => 'Meán', - NS_SPECIAL => 'Speisialta', - NS_MAIN => '', - NS_TALK => 'Plé', - NS_USER => 'Úsáideoir', - NS_USER_TALK => 'Plé_úsáideora', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Plé_' . $this->convertGrammar( $wgMetaNamespace, 'genitive' ), - NS_IMAGE => 'Íomhá', - NS_IMAGE_TALK => 'Plé_íomhá', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Plé_MediaWiki', - NS_TEMPLATE => 'Teimpléad', - NS_TEMPLATE_TALK => 'Plé_teimpléid', - NS_HELP => 'Cabhair', - NS_HELP_TALK => 'Plé_cabhrach', - NS_CATEGORY => 'Catagóir', - NS_CATEGORY_TALK => 'Plé_catagóire' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesGa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsGa; - } - - function getSkinNames() { - return $this->mSkinNamesGa + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsGa; - } - - function &getMagicWords() { - $t = $this->mMagicWordsGa + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesGa[$key] ) ) { - return $this->mMessagesGa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesGa; - } - - - /** - * Get a namespace key by value, case insensetive. - * - * @param string $text - * @return mixed An integer if $text is a valid value otherwise false - */ - function getNsIndex( $text ) { - $ns = $this->getNamespaces(); - - foreach ( $ns as $i => $n ) { - if ( strcasecmp( $n, $text ) == 0) - return $i; - } - - if ( strcasecmp( 'Plé_í­omhá', $text) == 0) return NS_IMAGE_TALK; - if ( strcasecmp( 'Múnla', $text) == 0) return NS_TEMPLATE; - if ( strcasecmp( 'Plé_múnla', $text) == 0) return NS_TEMPLATE_TALK; - if ( strcasecmp( 'Rang', $text) == 0) return NS_CATEGORY; - - return false; - } - +class LanguageGa extends Language { # Convert day names # Invoked with {{GRAMMAR:transformation|word}} function convertGrammar( $word, $case ) { diff --git a/languages/LanguageGn.deps.php b/languages/LanguageGn.deps.php deleted file mode 100644 index 5cf2090407..0000000000 --- a/languages/LanguageGn.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageGn.php b/languages/LanguageGn.php deleted file mode 100644 index 0785335070..0000000000 --- a/languages/LanguageGn.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageEs.php'; - -class LanguageGn extends LanguageEs { - - function getFallbackLanguage() { - return 'es'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageGsw.deps.php b/languages/LanguageGsw.deps.php deleted file mode 100644 index 65a0e3983a..0000000000 --- a/languages/LanguageGsw.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageGsw.php b/languages/LanguageGsw.php index 72dd713bbd..ce4e057869 100644 --- a/languages/LanguageGsw.php +++ b/languages/LanguageGsw.php @@ -5,53 +5,7 @@ * @subpackage Language */ -/* - for the moment it would be the best if LanguageAls.php would be - the same like LanguageDe.php. That would help us a lot at als. - at the moment all is in English - ok - great - I'll make a stub language file that fetches everything from de - cool -*/ - -include_once( "LanguageDe.php" ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesGsw.php'); -} - -class LanguageGsw extends LanguageDe { - private $mMessagesGsw = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesGsw; - $this->mMessagesGsw =& $wgAllMessagesGsw; - - } - - function getMessage( $key ) { - if( isset( $this->mMessagesGsw[$key] ) ) { - return $this->mMessagesGsw[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesGsw; - } - - function getFallbackLanguage() { - return 'de'; - } - - function linkTrail() { - return '/^([äöüßa-z]+)(.*)$/sDu'; - } - +class LanguageGsw extends Language { # Convert from the nominative form of a noun to some other case # Invoked with result diff --git a/languages/LanguageGu.php b/languages/LanguageGu.php deleted file mode 100644 index 8e20e078ba..0000000000 --- a/languages/LanguageGu.php +++ /dev/null @@ -1,27 +0,0 @@ - '૦', - '1' => '૧', - '2' => '૨', - '3' => '૩', - '4' => '૪', - '5' => '૫', - '6' => '૬', - '7' => '૭', - '8' => '૮', - '9' => '૯' - ); - } - -} - -?> diff --git a/languages/LanguageHe.php b/languages/LanguageHe.php index 0f647c7647..105596dca8 100644 --- a/languages/LanguageHe.php +++ b/languages/LanguageHe.php @@ -9,238 +9,7 @@ * @author Rotem Liss (March 2006 on) */ -require_once("LanguageUtf8.php"); - -if (!$wgCachedMessageArrays) { - require_once('MessagesHe.php'); -} - -class LanguageHe extends LanguageUtf8 { - private $mMessagesHe, $mNamespaceNamesHe = null; - - private $mSkinNamesHe = array( - "standard" => "רגיל", - "nostalgia" => "נוסטלגי", - "cologneblue" => "מים כחולים", - "davinci" => "דה־וינצ'י", - "simple" => "פשוט", - "mono" => "מונו", - "monobook" => "מונובוק", - "myskin" => "הרקע שלי", - "chick" => "צ'יק" - ); - - private $mQuickbarSettingsHe = array( - "ללא", "קבוע משמאל", "קבוע מימין", "צף משמאל", "צף מימין" - ); - - private $mBookstoreListHe = array( - "מיתוס" => "http://www.mitos.co.il/", - "iBooks" => "http://www.ibooks.co.il/", - "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=\$1", - "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=\$1" - ); - - private $mMagicWordsHe = array( - 'redirect' => array( 0, '#הפניה', '#REDIRECT' ), - 'notoc' => array( 0, '__ללא_תוכן_עניינים__', '__ללא_תוכן__', '__NOTOC__' ), - 'nogallery' => array( 0, '__ללא_גלריה__', '__NOGALLERY__' ), - 'forcetoc' => array( 0, '__חייב_תוכן_עניינים__', '__חייב_תוכן__', '__FORCETOC__' ), - 'toc' => array( 0, '__תוכן_עניינים__', '__תוכן__', '__TOC__' ), - 'noeditsection' => array( 0, '__ללא_עריכה__', '__NOEDITSECTION__' ), - 'start' => array( 0, '__התחלה__', '__START__' ), - 'currentmonth' => array( 1, 'חודש נוכחי', 'CURRENTMONTH' ), - 'currentmonthname' => array( 1, 'שם חודש נוכחי', 'CURRENTMONTHNAME' ), - 'currentmonthnamegen' => array( 1, 'שם חודש נוכחי קניין', 'CURRENTMONTHNAMEGEN' ), - 'currentmonthabbrev' => array( 1, 'קיצור חודש נוכחי', 'CURRENTMONTHABBREV' ), - 'currentday' => array( 1, 'יום נוכחי', 'CURRENTDAY' ), - 'currentday2' => array( 1, 'יום נוכחי 2', 'CURRENTDAY2' ), - 'currentdayname' => array( 1, 'שם יום נוכחי', 'CURRENTDAYNAME' ), - 'currentyear' => array( 1, 'שנה נוכחית', 'CURRENTYEAR' ), - 'currenttime' => array( 1, 'שעה נוכחית', 'CURRENTTIME' ), - 'numberofpages' => array( 1, 'מספר דפים כולל', 'מספר דפים', 'NUMBEROFPAGES' ), - 'numberofarticles' => array( 1, 'מספר ערכים', 'NUMBEROFARTICLES' ), - 'numberoffiles' => array( 1, 'מספר קבצים', 'NUMBEROFFILES' ), - 'numberofusers' => array( 1, 'מספר משתמשים', 'NUMBEROFUSERS' ), - 'pagename' => array( 1, 'שם הדף', 'PAGENAME' ), - 'pagenamee' => array( 1, 'שם הדף מקודד', 'PAGENAMEE' ), - 'namespace' => array( 1, 'מרחב השם', 'NAMESPACE' ), - 'namespacee' => array( 1, 'מרחב השם מקודד', 'NAMESPACEE' ), - 'talkspace' => array( 1, 'מרחב השיחה', 'TALKSPACE' ), - 'talkspacee' => array( 1, 'מרחב השיחה מקודד', 'TALKSPACEE' ), - 'subjectspace' => array( 1, 'מרחב הנושא', 'מרחב הערכים', 'SUBJECTSPACE', 'ARTICLESPACE' ), - 'subjectspacee' => array( 1, 'מרחב הנושא מקודד', 'מרחב הערכים מקודד', 'SUBJECTSPACEE', 'ARTICLESPACEE' ), - 'fullpagename' => array( 1, 'שם הדף המלא', 'FULLPAGENAME' ), - 'fullpagenamee' => array( 1, 'שם הדף המלא מקודד', 'FULLPAGENAMEE' ), - 'subpagename' => array( 1, 'שם דף המשנה', 'SUBPAGENAME' ), - 'subpagenamee' => array( 1, 'שם דף המשנה מקודד', 'SUBPAGENAMEE' ), - 'basepagename' => array( 1, 'שם דף הבסיס', 'BASEPAGENAME' ), - 'basepagenamee' => array( 1, 'שם דף הבסיס מקודד', 'BASEPAGENAMEE' ), - 'talkpagename' => array( 1, 'שם דף השיחה', 'TALKPAGENAME' ), - 'talkpagenamee' => array( 1, 'שם דף השיחה מקודד', 'TALKPAGENAMEE' ), - 'subjectpagename' => array( 1, 'שם דף הנושא', 'שם הערך', 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ), - 'subjectpagenamee' => array( 1, 'שם דף הנושא מקודד', 'שם הערך מקודד', 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ), - 'msg' => array( 0, 'הכללה:', 'MSG:' ), - 'subst' => array( 0, 'ס:', 'SUBST:' ), - 'msgnw' => array( 0, 'הכללת מקור', 'MSGNW:' ), - 'end' => array( 0, '__סוף__', '__END__' ), - 'img_thumbnail' => array( 1, 'ממוזער', 'thumbnail', 'thumb' ), - 'img_manualthumb' => array( 1, 'ממוזער=$1', 'thumbnail=$1', 'thumb=$1'), - 'img_right' => array( 1, 'ימין', 'right' ), - 'img_left' => array( 1, 'שמאל', 'left' ), - 'img_none' => array( 1, 'ללא', 'none' ), - 'img_width' => array( 1, '$1px', '$1px' ), - 'img_center' => array( 1, 'מרכז', 'center', 'centre' ), - 'img_framed' => array( 1, 'ממוסגר', 'מסגרת', 'framed', 'enframed', 'frame' ), - 'int' => array( 0, 'הודעה:', 'INT:' ), - 'sitename' => array( 1, 'שם האתר', 'SITENAME' ), - 'ns' => array( 0, 'מרחב שם:', 'NS:' ), - 'localurl' => array( 0, 'כתובת יחסית:', 'LOCALURL:' ), - 'localurle' => array( 0, 'כתובת יחסית מקודד:', 'LOCALURLE:' ), - 'server' => array( 0, 'כתובת השרת', 'שרת', 'SERVER' ), - 'servername' => array( 0, 'שם השרת', 'SERVERNAME' ), - 'scriptpath' => array( 0, 'נתיב הקבצים', 'SCRIPTPATH' ), - 'grammar' => array( 0, 'דקדוק:', 'GRAMMAR:' ), - 'notitleconvert' => array( 0, '__ללא_המרת_כותרת__', '__NOTITLECONVERT__', '__NOTC__'), - 'nocontentconvert' => array( 0, '__ללא_המרת_תוכן__', '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'שבוע נוכחי', 'CURRENTWEEK' ), - 'currentdow' => array( 1, 'מספר יום נוכחי', 'CURRENTDOW' ), - 'revisionid' => array( 1, 'מזהה גרסה', 'REVISIONID' ), - 'plural' => array( 0, 'רבים:', 'PLURAL:' ), - 'fullurl' => array( 0, 'כתובת מלאה:', 'FULLURL:' ), - 'fullurle' => array( 0, 'כתובת מלאה מקודד:', 'FULLURLE:' ), - 'lcfirst' => array( 0, 'אות ראשונה קטנה:', 'LCFIRST:' ), - 'ucfirst' => array( 0, 'אות ראשונה גדולה:', 'UCFIRST:' ), - 'lc' => array( 0, 'אותיות קטנות:', 'LC:' ), - 'uc' => array( 0, 'אותיות גדולות:', 'UC:' ), - 'raw' => array( 0, 'ללא עיבוד:', 'RAW:' ), - 'displaytitle' => array( 1, 'כותרת תצוגה', 'DISPLAYTITLE' ), - 'rawsuffix' => array( 1, 'ללא פסיק', 'R' ), - 'newsectionlink' => array( 1, '__יצירת_הערה__', '__NEWSECTIONLINK__' ), - 'currentversion' => array( 1, 'גרסה נוכחית', 'CURRENTVERSION' ), - 'urlencode' => array( 0, 'נתיב מקודד:', 'URLENCODE:' ), - 'currenttimestamp' => array( 1, 'זמן נוכחי', 'CURRENTTIMESTAMP' ), - 'directionmark' => array( 1, 'סימן כיווניות', 'DIRECTIONMARK', 'DIRMARK' ), - 'language' => array( 0, '#שפה:', '#LANGUAGE:' ), - 'contentlanguage' => array( 1, 'שפת תוכן', 'CONTENTLANGUAGE', 'CONTENTLANG' ), - 'pagesinnamespace' => array( 1, 'דפים במרחב השם:', 'PAGESINNAMESPACE:', 'PAGESINNS:' ), - 'numberofadmins' => array( 1, 'מספר מפעילים', 'NUMBEROFADMINS' ), - ); - - /** - * Constructor, setting the namespaces - */ - function __construct() { - parent::__construct(); - - global $wgAllMessagesHe; - $this->mMessagesHe = &$wgAllMessagesHe; - - global $wgMetaNamespace; - $this->mNamespaceNamesHe = array( - NS_MEDIA => "מדיה", - NS_SPECIAL => "מיוחד", - NS_MAIN => "", - NS_TALK => "שיחה", - NS_USER => "משתמש", - NS_USER_TALK => "שיחת_משתמש", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => "שיחת_" . $wgMetaNamespace, - NS_IMAGE => "תמונה", - NS_IMAGE_TALK => "שיחת_תמונה", - NS_MEDIAWIKI => "מדיה_ויקי", - NS_MEDIAWIKI_TALK => "שיחת_מדיה_ויקי", - NS_TEMPLATE => "תבנית", - NS_TEMPLATE_TALK => "שיחת_תבנית", - NS_HELP => "עזרה", - NS_HELP_TALK => "שיחת_עזרה", - NS_CATEGORY => "קטגוריה", - NS_CATEGORY_TALK => "שיחת_קטגוריה", - ); - } - - /** - * Changing the default quickbar setting to "2" - right instead of left, as we use RTL interface - * - * @return array of the default user options - */ - public function getDefaultUserOptions() { - $opt = parent::getDefaultUserOptions(); - $opt["quickbar"] = 2; - return $opt; - } - - /** - * @return array of Hebrew bookstore list - */ - public function getBookstoreList() { - return $this->mBookstoreListHe; - } - - /** - * @return array of Hebrew namespace names - */ - public function getNamespaces() { - return $this->mNamespaceNamesHe + parent::getNamespaces(); - } - - /** - * @return array of Hebrew skin names - */ - public function getSkinNames() { - return $this->mSkinNamesHe + parent::getSkinNames(); - } - - /** - * @return array of Hebrew quickbar settings - */ - public function getQuickbarSettings() { - return $this->mQuickbarSettingsHe; - } - - /** - * The function returns a message, in Hebrew if exists, in English if not, only from the default translations here. - * - * @param string the message key - * - * @return string of the wanted message - */ - public function getMessage( $key ) { - if( isset( $this->mMessagesHe[$key] ) ) { - return $this->mMessagesHe[$key]; - } else { - return parent::getMessage( $key ); - } - } - - /** - * @return array of all the Hebrew messages - */ - public function getAllMessages() { - return $this->mMessagesHe; - } - - /** - * @return array of all the magic words - */ - public function &getMagicWords() { - return $this->mMagicWordsHe; - } - - /** - * @return true, as Hebrew is RTL language - */ - public function isRTL() { - return true; - } - - /** - * @return regular expression which includes the word trails in the link - */ - public function linkTrail() { - return '/^([a-zא-ת]+)(.*)$/sDu'; - } - +class LanguageHe extends Language { /** * Convert grammar forms of words. * @@ -297,13 +66,6 @@ class LanguageHe extends LanguageUtf8 { return $w2; } } - - /** - * @return string of the best 8-bit encoding for Hebrew, if UTF-8 cannot be used - */ - public function fallback8bitEncoding() { - return "windows-1255"; - } } ?> diff --git a/languages/LanguageHi.php b/languages/LanguageHi.php deleted file mode 100644 index 4c00675718..0000000000 --- a/languages/LanguageHi.php +++ /dev/null @@ -1,80 +0,0 @@ -mMessagesHi =& $wgAllMessagesHi; - - global $wgMetaNamespace; - $this->mNamespaceNamesHi = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'विशेष', - NS_MAIN => '', - NS_TALK => 'वार्ता', - NS_USER => 'सदस्य', - NS_USER_TALK => 'सदस्य_वार्ता', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_वार्ता', - NS_IMAGE => 'चित्र', - NS_IMAGE_TALK => 'चित्र_वार्ता', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Template_talk', - NS_CATEGORY => 'श्रेणी', - NS_CATEGORY_TALK => 'श्रेणी_वार्ता', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesHi + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesHi[$key] ) ) { - return $this->mMessagesHi[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesHi; - } - - function digitTransformTable() { - return array( - "0" => "०", - "1" => "१", - "2" => "२", - "3" => "३", - "4" => "४", - "5" => "५", - "6" => "६", - "7" => "७", - "8" => "८", - "9" => "९" - ); - } - -} - -?> diff --git a/languages/LanguageHr.php b/languages/LanguageHr.php index 0f82b45a6d..b1f6b0fcb5 100644 --- a/languages/LanguageHr.php +++ b/languages/LanguageHr.php @@ -5,113 +5,7 @@ * @subpackage Language */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesHr.php'); -} - -class LanguageHr extends LanguageUtf8 { - private $mMessagesHr, $mNamespaceNamesHr = null; - - private $mQuickbarSettingsHr = array( - 'Bez', 'Lijevo nepomično', 'Desno nepomično', 'Lijevo leteće' - ); - - private $mSkinNamesHr = array( - 'standard' => 'Standardna', - 'nostalgia' => 'Nostalgija', - 'cologneblue' => 'Kölnska plava', - 'smarty' => 'Paddington', - 'montparnasse' => 'Montparnasse', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesHr; - $this->mMessagesHr =& $wgAllMessagesHr; - - global $wgMetaNamespace; - $this->mNamespaceNamesHr = array( - NS_MEDIA => 'Mediji', - NS_SPECIAL => 'Posebno', - NS_MAIN => '', - NS_TALK => 'Razgovor', - NS_USER => 'Suradnik', - NS_USER_TALK => 'Razgovor_sa_suradnikom', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Razgovor_' . $wgMetaNamespace, - NS_IMAGE => 'Slika', - NS_IMAGE_TALK => 'Razgovor_o_slici', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_razgovor', - NS_TEMPLATE => 'Predložak', - NS_TEMPLATE_TALK => 'Razgovor_o_predlošku', - NS_HELP => 'Pomoć', - NS_HELP_TALK => 'Razgovor_o_pomoći', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Razgovor_o_kategoriji' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesHr + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsHr; - } - - function getSkinNames() { - return $this->mSkinNamesHr + parent::getSkinNames(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesHr[$key] ) ) { - return $this->mMessagesHr[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesHr; - } - - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $d = (0 + substr( $ts, 6, 2 )) . ". " . - $this->getMonthName( substr( $ts, 4, 2 ) ) . - " " . - substr( $ts, 0, 4 ) . "." ; - return $d; - } - - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function fallback8bitEncoding() { - return 'iso-8859-2'; - } - - function linkTrail() { - return '/^([čšžćđßa-z]+)(.*)$/sDu'; - } - +class LanguageHr extends Language { function convertPlural( $count, $wordform1, $wordform2, $wordform3) { $count = str_replace ('.', '', $count); if ($count > 10 && floor(($count % 100) / 10) == 1) { diff --git a/languages/LanguageHu.php b/languages/LanguageHu.php index 8500102dc6..ac6555dc34 100644 --- a/languages/LanguageHu.php +++ b/languages/LanguageHu.php @@ -7,131 +7,47 @@ # Hungarian localisation for MediaWiki # -require_once("LanguageUtf8.php"); - -# suffixed project name (Wikipédia -> Wikipédiá) -- ról, ba, k -$wgSitenameROL = $wgSitename . "ról"; -$wgSitenameBA = $wgSitename . "ba"; -$wgSitenameK = $wgSitename . "k"; -if( 0 == strcasecmp( "Wikipédia", $wgSitename ) ) { - $wgSitenameROL = "Wikipédiáról"; - $wgSitenameBA = "Wikipédiába"; - $wgSitenameK = "Wikipédiák"; - -} elseif( 0 == strcasecmp( "Wikidézet", $wgSitename ) ) { - $wgSitenameROL = "Wikidézetről"; - $wgSitenameBA = "Wikidézetbe"; - $wgSitenameK = "Wikidézetek"; - -} elseif( 0 == strcasecmp( "Wikiszótár", $wgSitename ) ) { - $wgSitenameROL = "Wikiszótárról"; - $wgSitenameBA = "Wikiszótárba"; - $wgSitenameK = "Wikiszótárak"; - -} elseif( 0 == strcasecmp( "Wikikönyvek", $wgSitename ) ) { - $wgSitenameROL = "Wikikönyvekről"; - $wgSitenameBA = "Wikikönyvekbe"; - $wgSitenameK = "Wikikönyvek"; -} - -/* private */ $wgNamespaceNamesHu = array( - NS_MEDIA => "Média", - NS_SPECIAL => "Speciális", - NS_MAIN => "", - NS_TALK => "Vita", - NS_USER => "User", - NS_USER_TALK => "User_vita", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "_vita", - NS_IMAGE => "Kép", - NS_IMAGE_TALK => "Kép_vita", - NS_MEDIAWIKI => "MediaWiki", - NS_MEDIAWIKI_TALK => "MediaWiki_vita", - NS_TEMPLATE => "Sablon", - NS_TEMPLATE_TALK => "Sablon_vita", - NS_HELP => "Segítség", - NS_HELP_TALK => "Segítség_vita", - NS_CATEGORY => "Kategória", - NS_CATEGORY_TALK => "Kategória_vita" -) + $wgNamespaceNamesEn; - - -/* private */ $wgQuickbarSettingsHu = array( - "Nincs", "Fix baloldali", "Fix jobboldali", "Lebegő baloldali" -); - -/* private */ $wgSkinNamesHu = array( - 'standard' => "Alap", - 'nostalgia' => "Nosztalgia", - 'cologneblue' => "Kölni kék" -) + $wgSkinNamesEn; - - -/* private */ $wgDateFormatsHu = array( -# "Mindegy", -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesHu.php'); -} - -class LanguageHu extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesHu; - return $wgNamespaceNamesHu; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsHu; - return $wgQuickbarSettingsHu; +class LanguageHu extends Language { + function convertGrammar( $word, $case ) { + global $wgGrammarForms; + if ( isset($wgGrammarForms[$this->getCode()][$case][$word]) ) { + return $wgGrammarForms[$this->getCode()][$case][$word]; + } + + static $localForms = array( + 'rol' => array( + 'Wikipédia' => 'Wikipédiáról', + 'Wikidézet' => 'Wikidézetről', + 'Wikiszótár' => 'Wikiszótárról', + 'Wikikönyvek' => 'Wikikönyvekről', + ), + 'ba' => array( + 'Wikipédia' => 'Wikipédiába', + 'Wikidézet' => 'Wikidézetbe', + 'Wikiszótár' => 'Wikiszótárba', + 'Wikikönyvek' => 'Wikikönyvekbe', + ), + 'k' => array( + 'Wikipédia' => 'Wikipédiák', + 'Wikidézet' => 'Wikidézetek', + 'Wikiszótár' => 'Wikiszótárak', + 'Wikikönyvek' => 'Wikikönyvek', + ) + ); + + if ( isset( $localForms[$case][$word] ) ) { + return $localForms[$case][$word]; + } + + switch ( $case ) { + case 'rol': + return $word . 'ról'; + case 'ba': + return $word . 'ba'; + case 'k': + return $word . 'k'; + } } - - function getSkinNames() { - global $wgSkinNamesHu; - return $wgSkinNamesHu; - } - - function getDateFormats() { - global $wgDateFormatsHu; - return $wgDateFormatsHu; - } - - function getMessage( $key ) { - global $wgAllMessagesHu; - if(array_key_exists($key, $wgAllMessagesHu)) - return $wgAllMessagesHu[$key]; - else - return parent::getMessage($key); - } - - function fallback8bitEncoding() { - return "iso8859-2"; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $d = substr( $ts, 0, 4 ) . ". " . - $this->getMonthName( substr( $ts, 4, 2 ) ) . " ". - (0 + substr( $ts, 6, 2 )) . "."; - return $d; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj ); - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - } ?> diff --git a/languages/LanguageIa.php b/languages/LanguageIa.php deleted file mode 100644 index 01b201c7ab..0000000000 --- a/languages/LanguageIa.php +++ /dev/null @@ -1,82 +0,0 @@ - 'Blau Colonia', - ); - - - function __construct() { - parent::__construct(); - - global $wgAllMessagesIa; - $this->mMessagesIa =& $wgAllMessagesIa; - - global $wgMetaNamespace; - $this->mNamespaceNamesIa = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Discussion', - NS_USER => 'Usator', - NS_USER_TALK => 'Discussion_Usator', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussion_'. $wgMetaNamespace, - NS_IMAGE => 'Imagine', - NS_IMAGE_TALK => 'Discussion_Imagine', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', - NS_TEMPLATE => 'Patrono', - NS_TEMPLATE_TALK => 'Discussion_Patrono', - NS_HELP => 'Adjuta', - NS_HELP_TALK => 'Discussion_Adjuta', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Discussion_Categoria' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesIa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsIa; - } - - function getSkinNames() { - return $this->mSkinNamesIa + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesIa[$key] ) ) { - return $this->mMessagesIa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesIa; - } - -} - -?> diff --git a/languages/LanguageId.php b/languages/LanguageId.php deleted file mode 100644 index ee2c062c9d..0000000000 --- a/languages/LanguageId.php +++ /dev/null @@ -1,118 +0,0 @@ - 'Standar', - ); - - private $mBookstoreListId = array( - 'Gramedia Cyberstore (via Google)' => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id', - 'Bhinneka.com bookstore' => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesId; - $this->mMessagesId =& $wgAllMessagesId; - - global $wgMetaNamespace; - $this->mNamespaceNamesId = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Istimewa', - NS_MAIN => '', - NS_TALK => 'Bicara', - NS_USER => 'Pengguna', - NS_USER_TALK => 'Bicara_Pengguna', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Pembicaraan_' . $wgMetaNamespace, - NS_IMAGE => 'Gambar', - NS_IMAGE_TALK => 'Pembicaraan_Gambar', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Pembicaraan_MediaWiki', - NS_TEMPLATE => 'Templat', - NS_TEMPLATE_TALK => 'Pembicaraan_Templat', - NS_HELP => 'Bantuan', - NS_HELP_TALK => 'Pembicaraan_Bantuan', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Pembicaraan_Kategori' - ); - - # For backwards compatibility: some talk namespaces were - # changed in 1.4.4 from their previous values, here: - $this->mNamespaceAlternatesId = array( - NS_IMAGE_TALK => 'Gambar_Pembicaraan', - NS_MEDIAWIKI_TALK => 'MediaWiki_Pembicaraan', - NS_TEMPLATE_TALK => 'Templat_Pembicaraan', - NS_HELP_TALK => 'Bantuan_Pembicaraan', - NS_CATEGORY_TALK => 'Kategori_Pembicaraan' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesId + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsId; - } - - function getSkinNames() { - return $this->mSkinNamesId + parent::getSkinNames(); - } - - function getDateFormats() { - return false; - } - - function getBookstoreList() { - return $this->mBookstoreListId; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesId[$key] ) ) { - return $this->mMessagesId[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesId; - } - - function getNsIndex( $text ) { - foreach ( $this->getNamespaces() as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - foreach ( $this->mNamespaceAlternatesId as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageIi.deps.php b/languages/LanguageIi.deps.php deleted file mode 100644 index 284592183a..0000000000 --- a/languages/LanguageIi.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageIi.php b/languages/LanguageIi.php deleted file mode 100644 index 4b57fe1143..0000000000 --- a/languages/LanguageIi.php +++ /dev/null @@ -1,27 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageZh_cn.php'; - -class LanguageIi extends LanguageZh_cn { - - function getFallbackLanguage() { - return 'zh-cn'; - } - - function getAllMessages() { - return null; - } -} - -?> diff --git a/languages/LanguageIs.php b/languages/LanguageIs.php deleted file mode 100644 index a080e6aa19..0000000000 --- a/languages/LanguageIs.php +++ /dev/null @@ -1,185 +0,0 @@ - - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesIs.php'); -} - -class LanguageIs extends LanguageUtf8 { - private $mMessagesIs, $mNamespaceNamesIs = null; - - private $mQuickbarSettingsIs = array( - 'Sleppa', 'Fast vinstra megin', 'Fast hægra megin', 'Fljótandi til vinstri' - ); - - private $mSkinNamesIs = array( - 'standard' => 'Klassískt', - 'nostalgia' => 'Gamaldags', - 'cologneblue' => 'Kölnarblátt', - 'myskin' => 'Mitt þema', - ); - - private $mDateFormatsIs = array( - 'Sjálfgefið', - '15. janúar 2001 kl. 16:12', - '15. jan. 2001 kl. 16:12', - '16:12, 15. janúar 2001', - '16:12, 15. jan. 2001', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - private $mMagicWordsIs = array( - 'redirect' => array( 0, '#tilvísun', '#TILVÍSUN', '#redirect' ), // MagicWord::initRegex() sucks - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesIs; - $this->mMessagesIs =& $wgAllMessagesIs; - - global $wgMetaNamespace; - $this->mNamespaceNamesIs = array( - NS_MEDIA => 'Miðill', - NS_SPECIAL => 'Kerfissíða', - NS_MAIN => '', - NS_TALK => 'Spjall', - NS_USER => 'Notandi', - NS_USER_TALK => 'Notandaspjall', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . 'spjall', - NS_IMAGE => 'Mynd', - NS_IMAGE_TALK => 'Myndaspjall', - NS_MEDIAWIKI => 'Melding', - NS_MEDIAWIKI_TALK => 'Meldingarspjall', - NS_TEMPLATE => 'Snið', - NS_TEMPLATE_TALK => 'Sniðaspjall', - NS_HELP => 'Hjálp', - NS_HELP_TALK => 'Hjálparspjall', - NS_CATEGORY => 'Flokkur', - NS_CATEGORY_TALK => 'Flokkaspjall' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesIs + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsIs; - } - - function getSkinNames() { - return $this->mSkinNamesIs + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsIs; - } - - function &getMagicWords() { - $t = $this->mMagicWordsIs + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesIs[$key] ) ) { - return $this->mMessagesIs[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesIs; - } - - /** - * $timecorrection is for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting. - $format = $this->dateFormat($format); - - switch( $format ) { - # 15. jan. 2001 kl. 16:12 || 16:12, 15. jan. 2001 - case '2': case '4': return (0 + substr( $ts, 6, 2 )) . '. ' . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . '. ' . - substr($ts, 0, 4); - # 2001-01-15 16:12:34 - case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); - - # 15. janúar 2001 kl. 16:12 || 16:12, 15. janúar 2001 - default: return (0 + substr( $ts, 6, 2 )) . '. ' . - $this->getMonthName( substr( $ts, 4, 2 ) ) . ' ' . - substr($ts, 0, 4); - } - - } - - /** - * $timecorrection is for compatibility with language::time - */ - function time($ts, $adj = false, $format = true, $timecorrection = false) { - global $wgUser; - if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting. - - $format = $this->dateFormat($format); - - switch( $format ) { - # 2001-01-15 16:12:34 - case 'ISO 8601': return substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ) . ':' . substr( $ts, 12, 2 ); - default: return substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ); - } - - } - - /** - * $timecorrection is for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser; - - $format = $this->dateFormat($format); - - switch ( $format ) { - # 16:12, 15. janúar 2001 || 16:12, 15. jan. 2001 - case '3': case '4': return $this->time( $ts, $adj, $format ) . ', ' . $this->date( $ts, $adj, $format ); - # 2001-01-15 16:12:34 - case 'ISO 8601': return $this->date( $ts, $adj, $format ) . ' ' . $this->time( $ts, $adj, $format ); - # 15. janúar 2001 kl. 16:12 || 15. jan. 2001 kl. 16:12 - default: return $this->date( $ts, $adj, $format ) . ' kl. ' . $this->time( $ts, $adj, $format ); - - } - - } - - /** - * The Icelandic number style uses dots where English would use commas - * and commas where English would use dots, e.g. 201.511,17 not 201,511.17 - */ - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkPrefixExtension() { - // return '/^(.*?)([áÁðÐéÉíÍóÓúÚýÝþÞæÆöÖA-Za-z-–]+)$/sDu'; - return true; - } - - function linkTrail() { - return '/^([áðéíóúýþæöa-z-–]+)(.*)$/sDu'; - } - -} - -?> diff --git a/languages/LanguageIt.php b/languages/LanguageIt.php deleted file mode 100644 index b0554c1566..0000000000 --- a/languages/LanguageIt.php +++ /dev/null @@ -1,84 +0,0 @@ -mMessagesIt =& $wgAllMessagesIt; - - global $wgMetaNamespace; - $this->mNamespaceNamesIt = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciale', - NS_MAIN => '', - NS_TALK => 'Discussione', - NS_USER => 'Utente', - NS_USER_TALK => 'Discussioni_utente', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussioni_' . $wgMetaNamespace, - NS_IMAGE => 'Immagine', - NS_IMAGE_TALK => 'Discussioni_immagine', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussioni_MediaWiki', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Discussioni_template', - NS_HELP => 'Aiuto', - NS_HELP_TALK => 'Discussioni_aiuto', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Discussioni_categoria' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesIt + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsIt; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesIt[$key] ) ) { - return $this->mMessagesIt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesIt; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - /** - * Italian numeric format is 201.511,17 - */ - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} - -?> diff --git a/languages/LanguageJa.php b/languages/LanguageJa.php index 1379c683d1..7268fd5efe 100644 --- a/languages/LanguageJa.php +++ b/languages/LanguageJa.php @@ -1,141 +1,11 @@ "標準", - 'nostalgia' => "ノスタルジア", - 'cologneblue' => "ケルンブルー", - ); - - private $mDateFormatsJa = array( - MW_DATE_DEFAULT => '2001年1月15日 16:12 (デフォルト)', - MW_DATE_ISO => '2001-01-15 16:12:34' - ); - - private $mWeekdayAbbreviationsJa = array( - "日", "月", "火", "水", "木", "金", "土" - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesJa; - $this->mMessagesJa =& $wgAllMessagesJa; - - global $wgMetaNamespace; - $this->mNamespaceNamesJa = array( - NS_MEDIA => "Media", /* Media */ - NS_SPECIAL => "特別", /* Special */ - NS_MAIN => "", - NS_TALK => "ノート", /* Talk */ - NS_USER => "利用者", /* User */ - NS_USER_TALK => "利用者‐会話", /* User_talk */ - NS_PROJECT => $wgMetaNamespace, /* Wikipedia */ - NS_PROJECT_TALK => "{$wgMetaNamespace}‐ノート", /* Wikipedia_talk */ - NS_IMAGE => "画像", /* Image */ - NS_IMAGE_TALK => "画像‐ノート", /* Image_talk */ - NS_MEDIAWIKI => "MediaWiki", /* MediaWiki */ - NS_MEDIAWIKI_TALK => "MediaWiki‐ノート", /* MediaWiki_talk */ - NS_TEMPLATE => "Template", /* Template */ - NS_TEMPLATE_TALK => "Template‐ノート", /* Template_talk */ - NS_HELP => "Help", /* Help */ - NS_HELP_TALK => "Help‐ノート", /* Help_talk */ - NS_CATEGORY => "Category", /* Category */ - NS_CATEGORY_TALK => "Category‐ノート" /* Category_talk */ - - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesJa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsJa; - } - - function getSkinNames() { - return $this->mSkinNamesJa + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsJa; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesJa[$key] ) ) { - return $this->mMessagesJa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesJa; - } - - function date( $ts, $adj = false, $format = true, $tc = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } - $datePreference = $this->dateFormat( $format ); - - if( $datePreference == MW_DATE_ISO ) { - $d = substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' . - substr($ts, 6, 2); - return $d; - } - - $year = (int)substr( $ts, 0, 4 ); - $month = (int)substr( $ts, 4, 2 ); - $mday = (int)substr( $ts, 6, 2 ); - $hour = (int)substr( $ts, 8, 2 ); - $minute = (int)substr( $ts, 10, 2 ); - $second = (int)substr( $ts, 12, 2 ); - - $time = mktime( $hour, $minute, $second, $month, $mday, $year ); - $date = getdate( $time ); - - $d = $year . "年" . - $this->getMonthAbbreviation( $month ) . - $mday . "日 (" . - $this->mWeekdayAbbreviationsJa[ $date['wday'] ]. ")"; - return $d; - } - - function time( $ts, $adj = false, $format = true, $tc = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } - $datePreference = $this->dateFormat( $format ); - - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 ); - if ( $datePreference == MW_DATE_ISO ) { - $t .= ':' . substr( $ts, 12, 2 ); - } - - return $t; - } - - function timeanddate( $ts, $adj = false, $format = true, $tc = false ) { - return $this->date( $ts, $adj, $format, $tc ) . " " . $this->time( $ts, $adj, $format, $tc ); - } - +class LanguageJa extends Language { function stripForSearch( $string ) { # MySQL fulltext index doesn't grok utf-8, so we # need to fold cases and convert to hex diff --git a/languages/LanguageJv.php b/languages/LanguageJv.php deleted file mode 100644 index a380add842..0000000000 --- a/languages/LanguageJv.php +++ /dev/null @@ -1,115 +0,0 @@ - "Standar", - ); - - private $mBookstoreListJv = array( - 'Gramedia Cyberstore (via Google)' => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id', - 'Bhinneka.com bookstore' => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesJv; - $this->mMessagesJv =& $wgAllMessagesJv; - - global $wgMetaNamespace; - $this->mNamespaceNamesJv = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Astamiwa', - NS_MAIN => '', - NS_TALK => 'Dhiskusi', - NS_USER => 'Panganggo', - NS_USER_TALK => 'Dhiskusi_Panganggo', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Dhiskusi_' . $wgMetaNamespace, - NS_IMAGE => 'Gambar', - NS_IMAGE_TALK => 'Dhiskusi_Gambar', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Dhiskusi_MediaWiki', - NS_TEMPLATE => 'Cithakan', - NS_TEMPLATE_TALK => 'Dhiskusi_Cithakan', - NS_HELP => 'Pitulung', - NS_HELP_TALK => 'Dhiskusi_Pitulung', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Dhiskusi_Kategori' - ); - - $this->mNamespaceAlternatesJv = array( - NS_IMAGE_TALK => 'Gambar_Dhiskusi', - NS_MEDIAWIKI_TALK => 'MediaWiki_Dhiskusi', - NS_TEMPLATE_TALK => 'Cithakan_Dhiskusi', - NS_HELP_TALK => 'Pitulung_Dhiskusi', - NS_CATEGORY_TALK => 'Kategori_Dhiskusi' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesJv + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsJv; - } - - function getSkinNames() { - return $this->mSkinNamesJv + parent::getSkinNames(); - } - - function getBookstoreList() { - return $this->mBookstoreListJv + parent::getBookstoreList(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesJv[$key] ) ) { - return $this->mMessagesJv[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesJv; - } - - function getNsIndex( $text ) { - - foreach ( $this->getNamespaces() as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - foreach ( $this->mNamespaceAlternatesJv as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - - return false; - } - -} - -?> diff --git a/languages/LanguageKa.php b/languages/LanguageKa.php deleted file mode 100644 index b24bcf7259..0000000000 --- a/languages/LanguageKa.php +++ /dev/null @@ -1,46 +0,0 @@ -mNamespaceNamesKa = array( - NS_MEDIA => 'მედია', - NS_SPECIAL => 'სპეციალური', - NS_MAIN => '', - NS_TALK => 'განხილვა', - NS_USER => 'მომხმარებელი', - NS_USER_TALK => 'მომხმარებელი_განხილვა', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_განხილვა', - NS_IMAGE => 'სურათი', - NS_IMAGE_TALK => 'სურათი_განხილვა', - NS_MEDIAWIKI => 'მედიავიკი', - NS_MEDIAWIKI_TALK => 'მედიავიკი_განხილვა', - NS_TEMPLATE => 'თარგი', - NS_TEMPLATE_TALK => 'თარგი_განხილვა', - NS_HELP => 'დახმარება', - NS_HELP_TALK => 'დახმარება_განხილვა', - NS_CATEGORY => 'კატეგორია', - NS_CATEGORY_TALK => 'კატეგორია_განხილვა' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesKa + parent::getNamespaces(); - } - -} - -?> diff --git a/languages/LanguageKm.php b/languages/LanguageKm.php deleted file mode 100644 index 0c5f55b215..0000000000 --- a/languages/LanguageKm.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageKm extends LanguageUtf8 { - function digitTransformTable() { - return array( - '0' => '០', - '1' => '១', - '2' => '២', - '3' => '៣', - '4' => '៤', - '5' => '៥', - '6' => '៦', - '7' => '៧', - '8' => '៨', - '9' => '៩' - ); - } - -} - -?> diff --git a/languages/LanguageKn.php b/languages/LanguageKn.php deleted file mode 100644 index 755556cce4..0000000000 --- a/languages/LanguageKn.php +++ /dev/null @@ -1,90 +0,0 @@ - - * http://en.wikipedia.org/wiki/User:Hpnadig - * Ashwath Mattur - * http://en.wikipedia.org/wiki/User:Ashwatham - * - * Also see the Kannada Localisation Initiative at: - * http://kannada.sourceforge.net/ - * - * @package MediaWiki - * @subpackage Language - */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesKn.php'); -} - -class LanguageKn extends LanguageUtf8 { - private $mMessagesKn, $mNamespaceNamesKn = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesKn; - $this->mMessagesKn =& $wgAllMessagesKn; - - global $wgMetaNamespace; - $this->mNamespaceNamesKn = array( - NS_MEDIA => 'ಮೀಡಿಯ', - NS_SPECIAL => 'ವಿಶೇಷ', - NS_MAIN => '', - NS_TALK => 'ಚರ್ಚೆಪುಟ', - NS_USER => 'ಸದಸ್ಯ', - NS_USER_TALK => 'ಸದಸ್ಯರ_ಚರ್ಚೆಪುಟ', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_ಚರ್ಚೆ', - NS_IMAGE => 'ಚಿತ್ರ', - NS_IMAGE_TALK => 'ಚಿತ್ರ_ಚರ್ಚೆಪುಟ', - NS_MEDIAWIKI => 'ಮೀಡಿಯವಿಕಿ', - NS_MEDIAWIKI_TALK => 'ಮೀಡೀಯವಿಕಿ_ಚರ್ಚೆ', - NS_TEMPLATE => 'ಟೆಂಪ್ಲೇಟು', - NS_TEMPLATE_TALK => 'ಟೆಂಪ್ಲೇಟು_ಚರ್ಚೆ', - NS_HELP => 'ಸಹಾಯ', - NS_HELP_TALK => 'ಸಹಾಯ_ಚರ್ಚೆ', - NS_CATEGORY => 'ವರ್ಗ', - NS_CATEGORY_TALK => 'ವರ್ಗ_ಚರ್ಚೆ' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesKn + parent::getNamespaces(); - } - - - function digitTransformTable() { - return array( - '0' => '೦', - '1' => '೧', - '2' => '೨', - '3' => '೩', - '4' => '೪', - '5' => '೫', - '6' => '೬', - '7' => '೭', - '8' => '೮', - '9' => '೯' - ); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesKn[$key] ) ) { - return $this->mMessagesKn[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesKn; - } - -} - -?> diff --git a/languages/LanguageKo.php b/languages/LanguageKo.php index 707b9556f2..55d2811763 100644 --- a/languages/LanguageKo.php +++ b/languages/LanguageKo.php @@ -5,138 +5,7 @@ * @subpackage Language */ -require_once('LanguageUtf8.php'); - -if (!$wgCachedMessageArrays) { - require_once('MessagesKo.php'); -} - -class LanguageKo extends LanguageUtf8 { - private $mMessagesKo, $mNamespaceNamesKo = null; - - private $mQuickbarSettingsKo = array( - '없음', '왼쪽', '오른쪽', '왼쪽 고정', '오른쪽 고정' - ); - - private $mSkinNamesKo = array( - 'standard' => '표준', - 'davinci' => '다빈치', - 'mono' => '모노', - 'monobook' => '모노북', - 'my skin' => '내 스킨', - ); - - private $mBookstoreListKo = array( - 'Aladdin.co.kr' => 'http://www.aladdin.co.kr/catalog/book.asp?ISBN=$1' - ); - - # (Okay, I think I got it right now. This can be adjusted - # in the 'date' function down at the bottom. --Brion) - # - # Thanks. And it's usual that the time comes after dates. - # So I've change the timeanddate function, just exchanged $time and $date - # But you should check before you install it, 'cause I'm quite stupid about - # the programming. - # - - private $mWeekdayAbbreviationsKo = array( - '일', '월', '화', '수', '목', '금', '토' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesKo; - $this->mMessagesKo =& $wgAllMessagesKo; - - global $wgMetaNamespace; - $this->mNamespaceNamesKo = array( - NS_MEDIA => 'Media', - NS_SPECIAL => '특수기능', - NS_MAIN => '', - NS_TALK => '토론', - NS_USER => '사용자', - NS_USER_TALK => '사용자토론', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace.'토론', - NS_IMAGE => '그림', - NS_IMAGE_TALK => '그림토론', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki토론', - NS_TEMPLATE => '틀', - NS_TEMPLATE_TALK => '틀토론', - NS_HELP => '도움말', - NS_HELP_TALK => '도움말토론', - NS_CATEGORY => '분류', - NS_CATEGORY_TALK => '분류토론', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesKo + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsKo; - } - - function getSkinNames() { - return $this->mSkinNamesKo + parent::getSkinNames(); - } - - function getBookstoreList() { - return $this->mBookstoreListKo + parent::getBookstoreList(); - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesKo[$key] ) ) { - return $this->mMessagesKo[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesKo; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $year = (int)substr( $ts, 0, 4 ); - $month = (int)substr( $ts, 4, 2 ); - $mday = (int)substr( $ts, 6, 2 ); - $hour = (int)substr( $ts, 8, 2 ); - $minute = (int)substr( $ts, 10, 2 ); - $second = (int)substr( $ts, 12, 2 ); - $time = mktime( $hour, $minute, $second, $month, $mday, $year ); - $date = getdate( $time ); - - # "xxxx년 xx월 xx일 (월)" - # timeanddate works "xxxx년 xx월 xx일 (월) xx:xx" - $d = $year . "년 " . - $this->getMonthAbbreviation( $month ) . "월 " . - $mday . "일 ". - "(" . $this->mWeekdayAbbreviationsKo[ $date['wday'] ]. ")"; - - return $d; - } - - function timeBeforeDate() { - return false; - } - - function timeDateSeparator( $format ) { - return ' '; - } - +class LanguageKo extends Language { function firstChar( $s ) { preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches); @@ -185,4 +54,4 @@ class LanguageKo extends LanguageUtf8 { } } -?> \ No newline at end of file +?> diff --git a/languages/LanguageKs.php b/languages/LanguageKs.php deleted file mode 100644 index 082149b033..0000000000 --- a/languages/LanguageKs.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/languages/LanguageKu.php b/languages/LanguageKu.php deleted file mode 100644 index 40677c7ec9..0000000000 --- a/languages/LanguageKu.php +++ /dev/null @@ -1,65 +0,0 @@ -mMessagesKu =& $wgAllMessagesKu; - - global $wgMetaNamespace; - $this->mNamespaceNamesKu = array( - NS_MEDIA => 'Medya', - NS_SPECIAL => 'Taybet', - NS_MAIN => '', - NS_TALK => 'Nîqaş', - NS_USER => 'Bikarhêner', - NS_USER_TALK => 'Bikarhêner_nîqaş', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_nîqaş', - NS_IMAGE => 'Wêne', - NS_IMAGE_TALK => 'Wêne_nîqaş', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_nîqaş', - NS_TEMPLATE => 'Şablon', - NS_TEMPLATE_TALK => 'Şablon_nîqaş', - NS_HELP => 'Alîkarî', - NS_HELP_TALK => 'Alîkarî_nîqaş', - NS_CATEGORY => 'Kategorî', - NS_CATEGORY_TALK => 'Kategorî_nîqaş' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesKu + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesKu[$key] ) ) { - return $this->mMessagesKu[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesKu; - } - -} - -?> diff --git a/languages/LanguageKv.deps.php b/languages/LanguageKv.deps.php deleted file mode 100644 index ea225901c3..0000000000 --- a/languages/LanguageKv.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageKv.php b/languages/LanguageKv.php deleted file mode 100644 index 807d66d4b5..0000000000 --- a/languages/LanguageKv.php +++ /dev/null @@ -1,29 +0,0 @@ - - * @author Ashar Voultoiz - * - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Ashar Voultoiz - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageRu.php'; - -class LanguageKv extends LanguageRu { - - function getFallbackLanguage() { - return 'ru'; - } - - function getAllMessages() { - return null; - } -} - -?> diff --git a/languages/LanguageLa.php b/languages/LanguageLa.php index 0e783ad4c4..b9f6992516 100644 --- a/languages/LanguageLa.php +++ b/languages/LanguageLa.php @@ -5,90 +5,7 @@ * @subpackage Language */ -if (!$wgCachedMessageArrays) { - require_once('MessagesLa.php'); -} - -class LanguageLa extends LanguageUtf8 { - private $mMessagesLa, $mNamespaceNamesLa = null; - - private $mQuickbarSettingsLa = array( - 'Nullus', 'Constituere a sinistra', 'Constituere a dextra', 'Innens a sinistra' - ); - - private $mSkinNamesLa = array( - 'standard' => 'Norma', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Caerulus Colonia' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesLa; - $this->mMessagesLa =& $wgAllMessagesLa; - - global $wgMetaNamespace; - $this->mNamespaceNamesLa = array( - NS_SPECIAL => 'Specialis', - NS_MAIN => '', - NS_TALK => 'Disputatio', - NS_USER => 'Usor', - NS_USER_TALK => 'Disputatio_Usoris', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Disputatio_' . $this->convertGrammar( $wgMetaNamespace, 'genitive' ), - NS_IMAGE => 'Imago', - NS_IMAGE_TALK => 'Disputatio_Imaginis', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Disputatio_MediaWiki', - NS_TEMPLATE => 'Formula', - NS_TEMPLATE_TALK => 'Disputatio_Formulae', - NS_HELP => 'Auxilium', - NS_HELP_TALK => 'Disputatio_Auxilii', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Disputatio_Categoriae', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesLa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsLa; - } - - function getSkinNames() { - return $this->mSkinNamesLa + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesLa[$key] ) ) { - return $this->mMessagesLa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesLa; - } - - function getNsIndex( $text ) { - global $wgMetaNamespace; - - foreach ( $this->mNamespaceNamesLa as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - - # Backwards compatibility hacks - if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) { - if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK; - } - return false; - } - +class LanguageLa extends Language { /** * Convert from the nominative form of a noun to some other case * diff --git a/languages/LanguageLi.php b/languages/LanguageLi.php deleted file mode 100644 index 2e7fe8c55e..0000000000 --- a/languages/LanguageLi.php +++ /dev/null @@ -1,93 +0,0 @@ - 'Standaard', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Keuls blauw', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesLi; - $this->mMessagesLi =& $wgAllMessagesLi; - - global $wgMetaNamespace; - $this->mNamespaceNamesLi = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciaal', - NS_MAIN => '', - NS_TALK => 'Euverlik', - NS_USER => 'Gebroeker', - NS_USER_TALK => 'Euverlik_gebroeker', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Euverlik_' . $wgMetaNamespace, - NS_IMAGE => 'Aafbeilding', - NS_IMAGE_TALK => 'Euverlik_afbeelding', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Euverlik_MediaWiki', - NS_TEMPLATE => 'Sjabloon', - NS_TEMPLATE_TALK => 'Euverlik_sjabloon', - NS_HELP => 'Help', - NS_HELP_TALK => 'Euverlik_help', - NS_CATEGORY => 'Kategorie', - NS_CATEGORY_TALK => 'Euverlik_kategorie' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesLi + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsLi; - } - - function getSkinNames() { - return $this->mSkinNamesLi + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesLi[$key] ) ) { - return $this->mMessagesLi[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesLi; - } - - function timeBeforeDate( ) { - return false; - } - - function timeDateSeparator( $format ) { - return ' '; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - -} -?> diff --git a/languages/LanguageLo.php b/languages/LanguageLo.php deleted file mode 100644 index 7fd20ca9c4..0000000000 --- a/languages/LanguageLo.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageLo extends LanguageUtf8 { - function digitTransformTable() { - return array( - '0' => '໐', - '1' => '໑', - '2' => '໒', - '3' => '໓', - '4' => '໔', - '5' => '໕', - '6' => '໖', - '7' => '໗', - '8' => '໘', - '9' => '໙' - ); - } - -} - -?> diff --git a/languages/LanguageLt.php b/languages/LanguageLt.php index 688dfa0f7e..53729006fa 100644 --- a/languages/LanguageLt.php +++ b/languages/LanguageLt.php @@ -6,93 +6,7 @@ * */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesLt.php'); -} - -class LanguageLt extends LanguageUtf8 { - private $mMessagesLt, $mNamespaceNamesLt = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesLt; - $this->mMessagesLt =& $wgAllMessagesLt; - - global $wgMetaNamespace; - $this->mNamespaceNamesLt = array( - NS_MEDIA => 'Medija', - NS_SPECIAL => 'Specialus', - NS_MAIN => '', - NS_TALK => 'Aptarimas', - NS_USER => 'Naudotojas', - NS_USER_TALK => 'Naudotojo_aptarimas', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_aptarimas', - NS_IMAGE => 'Vaizdas', - NS_IMAGE_TALK => 'Vaizdo_aptarimas', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_aptarimas', - NS_TEMPLATE => 'Šablonas', - NS_TEMPLATE_TALK => 'Šablono_aptarimas', - NS_HELP => 'Pagalba', - NS_HELP_TALK => 'Pagalbos_aptarimas', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Kategorijos_aptarimas', - ); - - } - - private $mQuickbarSettingsLt = array( - 'Nerodyti', 'Fiksuoti kairėje', 'Fiksuoti dešinėje', 'Plaukiojantis kairėje' - ); - - private $mSkinNamesLt = array( - 'standard' => 'Standartinė', - 'nostalgia' => 'Nostalgija', - 'cologneblue' => 'Kiolno Mėlyna', - 'davinci' => 'Da Vinči', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' - ); - - function getNamespaces() { - return $this->mNamespaceNamesLt + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsLt; - } - - function getSkinNames() { - return $this->mSkinNamesLt + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesLt[$key] ) ) { - return $this->mMessagesLt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesLt; - } - - function fallback8bitEncoding() { - return 'windows-1257'; - } - - - function separatorTransformTable() { - return array(',' => ' ', '.' => ',' ); - } - +class LanguageLt extends Language { /* Word forms (with examples): 1 - vienas (1) lapas 2 - trys (3) lapai diff --git a/languages/LanguageLv.php b/languages/LanguageLv.php index 7d07c070e7..54cae48717 100644 --- a/languages/LanguageLv.php +++ b/languages/LanguageLv.php @@ -10,68 +10,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesLv.php'); -} - -class LanguageLv extends LanguageUtf8 { - private $mMessagesLv, $mNamespaceNamesLv = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesLv; - $this->mMessagesLv =& $wgAllMessagesLv; - - global $wgMetaNamespace; - $this->mNamespaceNamesLv = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Diskusija', - NS_USER => 'Lietotājs', - NS_USER_TALK => 'Lietotāja_diskusija', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $this->convertGrammar( $wgMetaNamespace, 'ģenitīvs' ) . '_diskusija', - NS_IMAGE => 'Attēls', - NS_IMAGE_TALK => 'Attēla_diskusija', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_diskusija', - NS_TEMPLATE => 'Veidne', - NS_TEMPLATE_TALK => 'Veidnes_diskusija', - NS_HELP => 'Palīdzība', - NS_HELP_TALK => 'Palīdzības_diskusija', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Kategorijas_diskusija', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesLv + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesLv[$key] ) ) { - return $this->mMessagesLv[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesLv; - } - - /** - * Latvian numeric formatting is 123 456,78. - */ - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - +class LanguageLv extends Language { /** * Plural form transformations. Using the first form for words with the last digit 1, but not for words with the last digits 11, and the second form for all the others. * diff --git a/languages/LanguageMk.php b/languages/LanguageMk.php deleted file mode 100644 index 9c428b2a8e..0000000000 --- a/languages/LanguageMk.php +++ /dev/null @@ -1,156 +0,0 @@ - 'Класика', - 'nostalgia' => 'Носталгија', - 'cologneblue' => 'Келнско сино', - 'davinci' => 'ДаВинчи', - 'mono' => 'Моно', - 'monobook' => 'Monobook', - 'myskin' => 'Моја маска', - 'chick' => 'Шик' - ); - - private $mDateFormatsMk = array( - 'Без преференции', - 'Јануари 15, 2001', - '15 Јануари 2001', - '2001 Јануари 15', - '2001-01-15' - ); - - private $mMagicWordsMk = array( - 'redirect' => array( 0, '#redirect', '#пренасочување', '#види' ), - 'notoc' => array( 0, '__NOTOC__', '__БЕЗСОДРЖИНА__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__СОСОДРЖИНА__' ), - 'toc' => array( 0, '__TOC__', '__СОДРЖИНА__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__' , '__БЕЗ_УРЕДУВАЊЕ_НА_СЕКЦИИ__'), - 'start' => array( 0, '__START__' , '__ПОЧЕТОК__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'СЕГАШЕНМЕСЕЦ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'СЕГАШЕНМЕСЕЦИМЕ' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'СЕГАШЕНМЕСЕЦИМЕРОД' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'СЕГАШЕНМЕСЕЦСКР' ), - 'currentday' => array( 1, 'CURRENTDAY', 'СЕГАШЕНДЕН' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'СЕГАШЕНДЕНИМЕ' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'СЕГАШНАГОДИНА' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'СЕГАШНОВРЕМЕ' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЈСТАТИИ' ), - 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦАИ' ), - 'namespace' => array( 1, 'NAMESPACE', 'ИМЕПРОСТОР' ), - 'subst' => array( 0, 'SUBST:', 'ЗАМЕСТ:' ), - 'msgnw' => array( 0, 'MSGNW:', 'ИЗВЕШТNW:' ), - 'end' => array( 0, '', '__КРАЈ__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), - 'img_right' => array( 1, 'right', 'десно', 'д' ), - 'img_left' => array( 1, 'left', 'лево', 'л' ), - 'img_none' => array( 1, 'none', 'н' ), - 'img_width' => array( 1, '$1px', '$1пкс' , '$1п' ), - 'img_center' => array( 1, 'center', 'centre', 'центар', 'ц' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка', 'ворамка' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'ИМЕНАСАЈТ' ), - 'ns' => array( 0, 'NS:' ), - 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛНААДРЕСА:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛНААДРЕСАИ:' ), - 'server' => array( 0, 'SERVER', 'СЕРВЕР' ), - 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'CURRENTWEEK', 'СЕГАШНАСЕДМИЦА'), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesMk; - $this->mMessagesMk =& $wgAllMessagesMk; - - global $wgMetaNamespace; - $this->mNamespaceNamesMk = array( - NS_MEDIA => 'Медија', - NS_SPECIAL => 'Специјални', - NS_MAIN => '', - NS_TALK => 'Разговор', - NS_USER => 'Корисник', - NS_USER_TALK => 'Разговор_со_корисник', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Разговор_за_' . $wgMetaNamespace , - NS_IMAGE => 'Слика', - NS_IMAGE_TALK => 'Разговор_за_слика', - NS_MEDIAWIKI => 'МедијаВики', - NS_MEDIAWIKI_TALK => 'Разговор_за_МедијаВики', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Разговор_за_шаблон', - NS_HELP => 'Помош', - NS_HELP_TALK => 'Разговор_за_помош', - NS_CATEGORY => 'Категорија', - NS_CATEGORY_TALK => 'Разговор_за_категорија', - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesMk + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsMk; - } - - function getSkinNames() { - return $this->mSkinNamesMk + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsMk; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesMk[$key] ) ) { - return $this->mMessagesMk[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesMk; - } - - function &getMagicWords() { - $t = $this->mMagicWordsMk + parent::getMagicWords(); - return $t; - } - - function linkTrail() { - return '/^([a-zабвгдѓежзѕијклљмнњопрстќуфхцчџш]+)(.*)$/sDu'; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - -} -?> diff --git a/languages/LanguageMl.php b/languages/LanguageMl.php deleted file mode 100644 index 3f430c0f07..0000000000 --- a/languages/LanguageMl.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageMl extends LanguageUtf8 { - function digitTransformTable() { - return array( - '0' => '൦', - '1' => '൧', - '2' => '൨', - '3' => '൩', - '4' => '൪', - '5' => '൫', - '6' => '൬', - '7' => '൭', - '8' => '൮', - '9' => '൯' - ); - } - -} - -?> diff --git a/languages/LanguageMs.php b/languages/LanguageMs.php deleted file mode 100644 index d3fc22ef92..0000000000 --- a/languages/LanguageMs.php +++ /dev/null @@ -1,80 +0,0 @@ -mMessagesMs =& $wgAllMessagesMs; - - global $wgMetaNamespace; - $this->mNamespaceNamesMs = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Istimewa', #Special - NS_MAIN => '', - NS_TALK => 'Perbualan',#Talk - NS_USER => 'Pengguna',#User - NS_USER_TALK => 'Perbualan_Pengguna',#User_talk - NS_PROJECT => $wgMetaNamespace,#Wikipedia - NS_PROJECT_TALK => 'Perbualan_' . $wgMetaNamespace,#Wikipedia_talk - NS_IMAGE => 'Imej',#Image - NS_IMAGE_TALK => 'Imej_Perbualan',#Image_talk - NS_MEDIAWIKI => 'MediaWiki',#MediaWiki - NS_MEDIAWIKI_TALK => 'MediaWiki_Perbualan',#MediaWiki_talk - NS_TEMPLATE => 'Templat',#Template - NS_TEMPLATE_TALK => 'Perbualan_Templat',#Template_talk - NS_CATEGORY => 'Kategori',#Category - NS_CATEGORY_TALK => 'Perbualan_Kategori',#Category_talk - NS_HELP => 'Bantuan',#Help - NS_HELP_TALK => 'Perbualan_Bantuan' #Help_talk - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesMs + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsMs; - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesMs[$key] ) ) { - return $this->mMessagesMs[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesMs; - } - -} - -?> diff --git a/languages/LanguageNah.deps.php b/languages/LanguageNah.deps.php deleted file mode 100644 index 453b18f56b..0000000000 --- a/languages/LanguageNah.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageNah.php b/languages/LanguageNah.php deleted file mode 100644 index d29a53e278..0000000000 --- a/languages/LanguageNah.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * @copyright Copyright © 2006, Rob Church - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once( 'LanguageEs.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesNah.php'); -} - -# Per conversation with a user in IRC, we inherit from Spanish and work from there -# Nahuatl was the language of the Aztecs, and a modern speaker is most likely to -# understand Spanish if a Nah translation is not available - -class LanguageNah extends LanguageEs { - private $mMessagesNah = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesNah; - $this->mMessagesNah =& $wgAllMessagesNah; - - } - - function getFallbackLanguage() { - return 'es'; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesNah[$key] ) ) { - return $this->mMessagesNah[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesNah; - } - -} - -?> \ No newline at end of file diff --git a/languages/LanguageNap.deps.php b/languages/LanguageNap.deps.php deleted file mode 100644 index 2ee9967265..0000000000 --- a/languages/LanguageNap.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageNap.php b/languages/LanguageNap.php deleted file mode 100644 index 322bfdffff..0000000000 --- a/languages/LanguageNap.php +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/languages/LanguageNds.php b/languages/LanguageNds.php deleted file mode 100644 index 313ce5e182..0000000000 --- a/languages/LanguageNds.php +++ /dev/null @@ -1,155 +0,0 @@ - array( 0, '#redirect', '#wiederleiden' ), - 'notoc' => array( 0, '__NOTOC__', '__KEENINHOLTVERTEKEN__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__WIESINHOLTVERTEKEN__' ), - 'toc' => array( 0, '__TOC__', '__INHOLTVERTEKEN__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__KEENÄNNERNLINK__' ), - 'start' => array( 0, '__START__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'AKTMAAND' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AKTMAANDNAAM' ), - 'currentday' => array( 1, 'CURRENTDAY', 'AKTDAG' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AKTDAGNAAM' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTJOHR' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'AKTTIED' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'ARTIKELTALL' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'AKTMAANDNAAMGEN' ), - 'pagename' => array( 1, 'PAGENAME', 'SIETNAAM' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'SIETNAAME' ), - 'namespace' => array( 1, 'NAMESPACE', 'NAAMRUUM' ), - 'subst' => array( 0, 'SUBST:' ), - 'msgnw' => array( 0, 'MSGNW:' ), - 'end' => array( 0, '__END__', '__ENN__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'duum' ), - 'img_right' => array( 1, 'right', 'rechts' ), - 'img_left' => array( 1, 'left', 'links' ), - 'img_none' => array( 1, 'none', 'keen' ), - 'img_width' => array( 1, '$1px', '$1px' ), - 'img_center' => array( 1, 'center', 'centre', 'merrn' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rahmt' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'STEEDNAAM' ), - 'ns' => array( 0, 'NS:', 'NR:' ), - 'localurl' => array( 0, 'LOCALURL:', 'STEEDURL:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'STEEDURLE:' ), - 'server' => array( 0, 'SERVER', 'SERVER' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMMATIK:' ) - ); - - private $mSkinNamesNds = array( - 'standard' => 'Klassik', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Kölsch Blau', - 'smarty' => 'Paddington', - 'chick' => 'Küken' - ); - - - private $mBookstoreListNds = array( - 'Verteken vun leverbore Böker' => 'http://www.buchhandel.de/sixcms/list.php?page=buchhandel_profisuche_frameset&suchfeld=isbn&suchwert=$1=0&y=0', - 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1', - 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', - 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesNds; - $this->mMessagesNds =& $wgAllMessagesNds; - - global $wgMetaNamespace; - $this->mNamespaceNamesNds = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Spezial', - NS_MAIN => '', - NS_TALK => 'Diskuschoon', - NS_USER => 'Bruker', - NS_USER_TALK => 'Bruker_Diskuschoon', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_Diskuschoon', - NS_IMAGE => 'Bild', - NS_IMAGE_TALK => 'Bild_Diskuschoon', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_Diskuschoon', - NS_TEMPLATE => 'Vörlaag', - NS_TEMPLATE_TALK => 'Vörlaag_Diskuschoon', - NS_HELP => 'Hülp', - NS_HELP_TALK => 'Hülp_Diskuschoon', - NS_CATEGORY => 'Kategorie', - NS_CATEGORY_TALK => 'Kategorie_Diskuschoon' - ); - - } - - function getBookstoreList() { - return $this->mBookstoreListNds; - } - - function getNamespaces() { - return $this->mNamespaceNamesNds + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsNds; - } - - function getSkinNames() { - return $this->mSkinNamesNds + parent::getSkinNames(); - } - - function &getMagicWords() { - $t = $this->mMagicWordsNds + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesNds[$key] ) ) { - return $this->mMessagesNds[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesNds; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return parent::formatDay( $day, $format ) . '.'; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([äöüßa-z]+)(.*)$/sDu'; - } - -} -?> diff --git a/languages/LanguageNds_nl.php b/languages/LanguageNds_nl.php deleted file mode 100644 index 4167ffdfee..0000000000 --- a/languages/LanguageNds_nl.php +++ /dev/null @@ -1,76 +0,0 @@ -, Jens Frank - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Jens Frank - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageNds.php'; - -class LanguageNds_nl extends LanguageNds { - private $mNamespaceNamesNds_nl = null; - - private $mSkinNamesNds_nl = array( - 'standard' => 'Klassiek', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Keuls blauw', - 'smarty' => 'Paddington', - 'chick' => 'Sjiek' - ); - - function __construct() { - parent::__construct(); - - global $wgMetaNamespace; - $this->mNamespaceNamesNds_nl = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciaol', - NS_MAIN => '', - NS_TALK => 'Overleg', - NS_USER => 'Gebruker', - NS_USER_TALK => 'Overleg_gebruker', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Overleg_' . $wgMetaNamespace, - NS_IMAGE => 'Ofbeelding', - NS_IMAGE_TALK => 'Overleg_ofbeelding', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Overleg_MediaWiki', - NS_TEMPLATE => 'Sjabloon', - NS_TEMPLATE_TALK => 'Overleg_sjabloon', - NS_HELP => 'Help', - NS_HELP_TALK => 'Overleg_help', - NS_CATEGORY => 'Categorie', - NS_CATEGORY_TALK => 'Overleg_categorie' - ); - - } - - function getFallbackLanguage() { - return 'nds'; - } - - function getNamespaces() { - return $this->mNamespaceNamesNds_nl; - } - - function getSkinNames() { - return $this->mSkinNamesNds_nl + parent::getSkinNames(); - } - - function getAllMessages() { - return null; - } - - function formatDay( $day, $format ) { - return Language::formatDay( $day, $format ); - } - -} - -?> diff --git a/languages/LanguageNl.php b/languages/LanguageNl.php deleted file mode 100644 index 58634463f9..0000000000 --- a/languages/LanguageNl.php +++ /dev/null @@ -1,109 +0,0 @@ - 'Standaard', - 'nostalgia' => 'Nostalgie', - 'cologneblue' => 'Keuls blauw', - ); - - private $mBookstoreListNl = array( - 'Koninklijke Bibliotheek' => 'http://opc4.kb.nl/DB=1/SET=5/TTL=1/CMD?ACT=SRCH&IKT=1007&SRT=RLV&TRM=$1' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesNl; - $this->mMessagesNl =& $wgAllMessagesNl; - - global $wgMetaNamespace; - $this->mNamespaceNamesNl = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciaal', - NS_MAIN => '', - NS_TALK => 'Overleg', - NS_USER => 'Gebruiker', - NS_USER_TALK => 'Overleg_gebruiker', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Overleg_' . $wgMetaNamespace, - NS_IMAGE => 'Afbeelding', - NS_IMAGE_TALK => 'Overleg_afbeelding', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Overleg_MediaWiki', - NS_TEMPLATE => 'Sjabloon', - NS_TEMPLATE_TALK => 'Overleg_sjabloon', - NS_HELP => 'Help', - NS_HELP_TALK => 'Overleg_help', - NS_CATEGORY => 'Categorie', - NS_CATEGORY_TALK => 'Overleg_categorie' - ); - } - - function getBookstoreList () { - return $this->mBookstoreListNl; - } - - function getNamespaces() { - return $this->mNamespaceNamesNl + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsNl; - } - - function getSkinNames() { - return $this->mSkinNamesNl + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesNl[$key] ) ) { - return $this->mMessagesNl[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesNl; - } - - function timeBeforeDate( ) { - return false; - } - - function timeDateSeparator( $format ) { - return ' '; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function linkTrail() { - return '/^([a-zäöüïëéèà]+)(.*)$/sDu'; - } - -} -?> diff --git a/languages/LanguageNn.php b/languages/LanguageNn.php deleted file mode 100644 index dc3fc0f291..0000000000 --- a/languages/LanguageNn.php +++ /dev/null @@ -1,242 +0,0 @@ - 'Klassisk', - 'nostalgia' => 'Nostalgi', - 'cologneblue' => 'Kölnerblå', - 'myskin' => 'MiDrakt' - ); - - private $mDateFormatsNn = array( - 'Standard', - '15. januar 2001 kl. 16:12', - '15. jan. 2001 kl. 16:12', - '16:12, 15. januar 2001', - '16:12, 15. jan. 2001', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - private $mBookstoreListNn = array( - 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?kilde=biblio&fid=isbn&lang=nn&term=$1', - 'BokBerit' => 'http://www.bokberit.no/annet_sted/bocker/$1.html', - 'Bokkilden' => 'http://www.bokkilden.no/ProductDetails.aspx?ProductId=$1', - 'Haugenbok' => 'http://www.haugenbok.no/resultat.cfm?st=hurtig&isbn=$1', - 'Akademika' => 'http://www.akademika.no/sok.php?isbn=$1', - 'Gnist' => 'http://www.gnist.no/sok.php?isbn=$1', - 'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1', - 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' - ); - - # Note to translators: - # Please include the English words as synonyms. This allows people - # from other wikis to contribute more easily. - # - private $mMagicWordsNn = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', '#omdiriger' ), - 'notoc' => array( 0, '__NOTOC__', '__INGAINNHALDSLISTE__', '__INGENINNHOLDSLISTE__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__ALLTIDINNHALDSLISTE__', '__ALLTIDINNHOLDSLISTE__' ), - 'toc' => array( 0, '__TOC__', '__INNHALDSLISTE__', '__INNHOLDSLISTE__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__INGABOLKENDRING__', '__INGABOLKREDIGERING__', '__INGENDELENDRING__'), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'MÅNADNO', 'MÅNEDNÅ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'MÅNADNONAMN', 'MÅNEDNÅNAVN' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'MÅNADNOKORT', 'MÅNEDNÅKORT' ), - 'currentday' => array( 1, 'CURRENTDAY', 'DAGNO', 'DAGNÅ' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'DAGNONAMN', 'DAGNÅNAVN' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'ÅRNO', 'ÅRNÅ' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'TIDNO', 'TIDNÅ' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'INNHALDSSIDETAL', 'INNHOLDSSIDETALL' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'FILTAL' ), - 'pagename' => array( 1, 'PAGENAME', 'SIDENAMN', 'SIDENAVN' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'SIDENAMNE', 'SIDENAVNE' ), - 'namespace' => array( 1, 'NAMESPACE', 'NAMNEROM', 'NAVNEROM' ), - 'subst' => array( 0, 'SUBST:', 'LIMINN:' ), - 'msgnw' => array( 0, 'MSGNW:', 'IKWIKMELD:' ), - 'end' => array( 0, '__END__', '__SLUTT__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini', 'miniatyr' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1', 'miniatyr=$1' ), - 'img_right' => array( 1, 'right', 'høgre', 'høyre' ), - 'img_left' => array( 1, 'left', 'venstre' ), - 'img_none' => array( 1, 'none', 'ingen' ), - 'img_width' => array( 1, '$1px', '$1pk' ), - 'img_center' => array( 1, 'center', 'centre', 'sentrum' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'ramme' ), - 'sitename' => array( 1, 'SITENAME', 'NETTSTADNAMN' ), - 'ns' => array( 0, 'NS:', 'NR:' ), - 'localurl' => array( 0, 'LOCALURL:', 'LOKALLENKJE:', 'LOKALLENKE:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'LOKALLENKJEE:', 'LOKALLENKEE:' ), - 'server' => array( 0, 'SERVER', 'TENAR', 'TJENER' ), - 'servername' => array( 0, 'SERVERNAME', 'TENARNAMN', 'TJENERNAVN' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTSTI' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMMATIKK:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'VEKENRNO', 'UKENRNÅ' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'VEKEDAGNRNO', 'UKEDAGNRNÅ' ), - 'revisionid' => array( 1, 'REVISIONID', 'VERSJONSID' ) - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesNn; - $this->mMessagesNn =& $wgAllMessagesNn; - - global $wgMetaNamespace; - $this->mNamespaceNamesNn = array( - NS_MEDIA => 'Filpeikar', - NS_SPECIAL => 'Spesial', - NS_MAIN => '', - NS_TALK => 'Diskusjon', - NS_USER => 'Brukar', - NS_USER_TALK => 'Brukardiskusjon', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '-diskusjon', - NS_IMAGE => 'Fil', - NS_IMAGE_TALK => 'Fildiskusjon', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki-diskusjon', - NS_TEMPLATE => 'Mal', - NS_TEMPLATE_TALK => 'Maldiskusjon', - NS_HELP => 'Hjelp', - NS_HELP_TALK => 'Hjelpdiskusjon', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Kategoridiskusjon' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesNn + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsNn; - } - - function getSkinNames() { - return $this->mSkinNamesNn + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsNn; - } - - function getBookstoreList() { - return $this->mBookstoreListNn; - } - - function &getMagicWords() { - $t = $this->mMagicWordsNn + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesNn[$key] ) ) { - return $this->mMessagesNn[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesNn; - } - - - /** - * $timecorrection is for compatibility with language::time - */ - function time($ts, $adj = false, $format = true, $timecorrection = false) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting. - - $format = $this->dateFormat($format); - - switch( $format ) { - # 2001-01-15 16:12:34 - case 'ISO 8601': return substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ) . ':' . substr( $ts, 12, 2 ); - default: return substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ); - } - - } - - /** - * $timecorrection is for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser; - if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting. - $format = $this->dateFormat($format); - - switch( $format ) { - # 15. jan. 2001 kl. 16:12 || 16:12, 15. jan. 2001 - case '2': case '4': return (0 + substr( $ts, 6, 2 )) . '. ' . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . '. ' . - substr($ts, 0, 4); - # 2001-01-15 16:12:34 - case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); - - # 15. januar 2001 kl. 16:12 || 16:12, 15. januar 2001 - default: return (0 + substr( $ts, 6, 2 )) . '. ' . - $this->getMonthName( substr( $ts, 4, 2 ) ) . ' ' . - substr($ts, 0, 4); - } - - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - global $wgUser; - - $format = $this->dateFormat($format); - - switch ( $format ) { - # 16:12, 15. januar 2001 || 16:12, 15. jan. 2001 - case '3': case '4': return $this->time( $ts, $adj, $format ) . ', ' . $this->date( $ts, $adj, $format ); - # 2001-01-15 16:12:34 - case 'ISO 8601': return $this->date( $ts, $adj, $format ) . ' ' . $this->time( $ts, $adj, $format ); - # 15. januar 2001 kl. 16:12 || 15. jan. 2001 kl. 16:12 - default: return $this->date( $ts, $adj, $format ) . ' kl. ' . $this->time( $ts, $adj, $format ); - } - - } - - function separatorTransformTable() { - return array( - ',' => "\xc2\xa0", - '.' => ',' - ); - } - -} - -?> diff --git a/languages/LanguageNo.php b/languages/LanguageNo.php deleted file mode 100644 index c91fd4f09f..0000000000 --- a/languages/LanguageNo.php +++ /dev/null @@ -1,114 +0,0 @@ - 'Standard', - 'nostalgia' => 'Nostalgi', - 'cologneblue' => 'Kölnerblå' - ); - - private $mBookstoreListNo = array( - 'Antikvariat.net' => 'http://www.antikvariat.net/', - 'Frida' => 'http://wo.uio.no/as/WebObjects/frida.woa/wa/fres?action=sok&isbn=$1&visParametre=1&sort=alfabetisk&bs=50', - 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1&op=and&fid=bd&term=&arstall=&sortering=sortdate-&treffPrSide=50', - 'Akademika' => 'http://www.akademika.no/sok.php?ts=4&sok=$1', - 'Haugenbok' => 'http://www.haugenbok.no/resultat.cfm?st=extended&isbn=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesNo; - $this->mMessagesNo =& $wgAllMessagesNo; - - global $wgMetaNamespace; - $this->mNamespaceNamesNo = array( - NS_MEDIA => 'Medium', - NS_SPECIAL => 'Spesial', - NS_MAIN => '', - NS_TALK => 'Diskusjon', - NS_USER => 'Bruker', - NS_USER_TALK => 'Brukerdiskusjon', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '-diskusjon', - NS_IMAGE => 'Bilde', - NS_IMAGE_TALK => 'Bildediskusjon', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki-diskusjon', - NS_TEMPLATE => 'Mal', - NS_TEMPLATE_TALK => 'Maldiskusjon', - NS_HELP => 'Hjelp', - NS_HELP_TALK => 'Hjelpdiskusjon', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Kategoridiskusjon', - ); - } - - function getBookstoreList () { - return $this->mBookstoreListNo; - } - - function getNamespaces() { - return $this->mNamespaceNamesNo + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsNo; - } - - function getSkinNames() { - return $this->mSkinNamesNo + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesNo[$key] ) ) { - return $this->mMessagesNo[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesNo; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function formatDay( $day, $format ) { - return parent::formatDay( $day, $format ) . '.'; - } - - function timeBeforeDate() { - return false; - } - - function timeDateSeparator( $format ) { - return ' kl.'; - } - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } -} - -?> diff --git a/languages/LanguageNon.deps.php b/languages/LanguageNon.deps.php deleted file mode 100644 index 1378ed4350..0000000000 --- a/languages/LanguageNon.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageNon.php b/languages/LanguageNon.php deleted file mode 100644 index 48924402ef..0000000000 --- a/languages/LanguageNon.php +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/languages/LanguageNv.php b/languages/LanguageNv.php deleted file mode 100644 index 28a924b007..0000000000 --- a/languages/LanguageNv.php +++ /dev/null @@ -1,88 +0,0 @@ - 'Łáa\'ígíí', - 'monobook' => 'NaaltsoosŁáa\'ígíí' - ); - - private $mWeekdayNamesNv = array( - 'Damóogo', 'Damóo biiskání', 'Damóodóó naakiską́o', 'Damóodóó tágí jį́', 'Damóodóó dį́į́\' yiską́o', - 'Nda\'iiníísh', 'Yiską́ damóo' - ); - - private $mMonthNamesNv = array( - 'Yas Niłt\'ees', 'Atsá Biyáázh', 'Wóózhch\'į́į́d', 'T\'ą́ą́chil', 'T\'ą́ą́tsoh', 'Ya\'iishjááshchilí', - 'Ya\'iishjáástsoh', 'Bini\'ant\'ą́ą́ts\'ózí', 'Bini\'ant\'ą́ą́tsoh', 'Ghąąjį', 'Níłch\'its\'ósí', - 'Níłch\'itsoh' - ); - - private $mMonthAbbreviationsNv = array( - 'Ynts', 'Atsb', 'Wozh', 'Tchi', 'Ttso', 'Yjsh', 'Yjts', 'Btsz', - 'Btsx', 'Ghąj', 'Ntss', 'Ntsx' - ); - - function __construct() { - parent::__construct(); - - global $wgMetaNamespace; - $this->mNamespaceNamesNv = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Naaltsoos_baa_yinísht\'į́', - NS_USER => 'Choinish\'įįhí', - NS_USER_TALK => 'Choinish\'įįhí_baa_yinísht\'į́', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace.'_baa_yinísht\'į́', - NS_IMAGE => 'E\'elyaaígíí', - NS_IMAGE_TALK => 'E\'elyaaígíí_baa_yinísht\'į́', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_baa_yinísht\'į́', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Template_talk', - NS_HELP => 'Aná\'álwo\'', - NS_HELP_TALK => 'Aná\'álwo\'_baa_yinísht\'į́', - NS_CATEGORY => 'T\'ááłáhági_át\'éego', - NS_CATEGORY_TALK => 'T\'ááłáhági_át\'éego_baa_yinísht\'į́' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesNv + parent::getNamespaces(); - } - - function getSkinNames() { - return $this->mSkinNamesNv; - } - - function getDateFormats() { - return false; - } - - function getMonthName( $key ) { - return $this->mMonthNamesNv[$key-1]; - } - - function getMonthAbbreviation( $key ) { - return @$this->mMonthAbbreviationsNv[$key-1]; - } - - function getWeekdayName( $key ) { - return $this->mWeekdayNamesNv[$key-1]; - } - - -} - -?> diff --git a/languages/LanguageOc.php b/languages/LanguageOc.php deleted file mode 100644 index 7bbe2d967f..0000000000 --- a/languages/LanguageOc.php +++ /dev/null @@ -1,101 +0,0 @@ - 'Normal', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Còlonha Blau', - ); - - private $mBookstoreListOc = array( - 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesOc; - $this->mMessagesOc =& $wgAllMessagesOc; - - global $wgMetaNamespace; - $this->mNamespaceNamesOc = array( - NS_SPECIAL => 'Especial', - NS_MAIN => '', - NS_TALK => 'Discutir', - NS_USER => 'Utilisator', - NS_USER_TALK => 'Discutida_Utilisator', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discutida_'.$wgMetaNamespace, - NS_IMAGE => 'Imatge', - NS_IMAGE_TALK => 'Discutida_Imatge', - NS_MEDIAWIKI => 'Mediaòiqui', - NS_MEDIAWIKI_TALK => 'Discutida_Mediaòiqui', - NS_TEMPLATE => 'Modèl', - NS_TEMPLATE_TALK => 'Discutida_Modèl', - NS_HELP => 'Ajuda', - NS_HELP_TALK => 'Discutida_Ajuda', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Discutida_Categoria', - ); - } - - function getBookstoreList () { - return $this->mBookstoreListOc; - } - - function getNamespaces() { - return $this->mNamespaceNamesOc + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsOc; - } - - function getSkinNames() { - return $this->mSkinNamesOc + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesOc[$key] ) ) { - return $this->mMessagesOc[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesOc; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function timeBeforeDate() { - return false; - } - - function timeDateSeparator( $format ) { - return ' à '; - } - -} - -?> diff --git a/languages/LanguageOr.php b/languages/LanguageOr.php deleted file mode 100644 index 6db198431c..0000000000 --- a/languages/LanguageOr.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -class LanguageOr extends LanguageUtf8 { - - function digitTransformTable() { - return array( - '0' => '୦', - '1' => '୧', - '2' => '୨', - '3' => '୩', - '4' => '୪', - '5' => '୫', - '6' => '୬', - '7' => '୭', - '8' => '୮', - '9' => '୯', - ); - } - -} -?> diff --git a/languages/LanguageOs.deps.php b/languages/LanguageOs.deps.php deleted file mode 100644 index a48e4968b3..0000000000 --- a/languages/LanguageOs.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageOs.php b/languages/LanguageOs.php deleted file mode 100644 index 0dd7389b10..0000000000 --- a/languages/LanguageOs.php +++ /dev/null @@ -1,102 +0,0 @@ - 'Стандартон', - 'nostalgia' => 'Æнкъард', - 'cologneblue' => 'Кёльны æрхæндæг', - 'davinci' => 'Да Винчи', - 'mono' => 'Моно', - 'monobook' => 'Моно-чиныг', - 'myskin' => 'Мæхи', - 'chick' => 'Карк' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesOs; - $this->mMessagesOs =& $wgAllMessagesOs; - - global $wgMetaNamespace; - $this->mNamespaceNamesOs = array( - NS_MEDIA => 'Media', //чтоб не писать "Мультимедия" - NS_SPECIAL => 'Сæрмагонд', - NS_MAIN => '', - NS_TALK => 'Дискусси', - NS_USER => 'Архайæг', - NS_USER_TALK => 'Архайæджы_дискусси', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Дискусси_' . $wgMetaNamespace, - NS_IMAGE => 'Ныв', - NS_IMAGE_TALK => 'Нывы_тыххæй_дискусси', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Дискусси_MediaWiki', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Шаблоны_тыххæй_дискусси', - NS_HELP => 'Æххуыс', - NS_HELP_TALK => 'Æххуысы_тыххæй_дискусси', - NS_CATEGORY => 'Категори', - NS_CATEGORY_TALK => 'Категорийы_тыххæй_дискусси', - ); - - } - - function getFallbackLanguage() { - return 'ru'; - } - - function getNamespaces() { - return $this->mNamespaceNamesOs + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsOs; - } - - function getSkinNames() { - return $this->mSkinNamesOs + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesOs[$key] ) ) { - return $this->mMessagesOs[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesOs; - } - - #'linkprefix' => '/^(.*?)(„|«)$/sD', - - function linkTrail() { - return '/^((?:[a-z]|а|æ|б|в|г|д|е|ё|ж|з|и|й|к|л|м|н|о|п|р|с|т|у|ф|х|ц|ч|ш|щ|ъ|ы|ь|э|ю|я|“|»)+)(.*)$/sDu'; - } - - function fallback8bitEncoding() { - return 'windows-1251'; - } - -} - -?> diff --git a/languages/LanguagePa.php b/languages/LanguagePa.php deleted file mode 100644 index 4588e0b599..0000000000 --- a/languages/LanguagePa.php +++ /dev/null @@ -1,97 +0,0 @@ - 'ਮਿਆਰੀ', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesPa; - $this->mMessagesPa =& $wgAllMessagesPa; - - global $wgMetaNamespace; - $this->mNamespaceNamesPa = array( - NS_MEDIA => 'ਮੀਡੀਆ', - NS_SPECIAL => 'ਖਾਸ', - NS_MAIN => '', - NS_TALK => 'ਚਰਚਾ', - NS_USER => 'ਮੈਂਬਰ', - NS_USER_TALK => 'ਮੈਂਬਰ_ਚਰਚਾ', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_ਚਰਚਾ', - NS_IMAGE => 'ਤਸਵੀਰ', - NS_IMAGE_TALK => 'ਤਸਵੀਰ_ਚਰਚਾ', - NS_MEDIAWIKI => 'ਮੀਡੀਆਵਿਕਿ', - NS_MEDIAWIKI_TALK => 'ਮੀਡੀਆਵਿਕਿ_ਚਰਚਾ', - NS_TEMPLATE => 'ਨਮੂਨਾ', - NS_TEMPLATE_TALK => 'ਨਮੂਨਾ_ਚਰਚਾ', - NS_HELP => 'ਮਦਦ', - NS_HELP_TALK => 'ਮਦਦ_ਚਰਚਾ', - NS_CATEGORY => 'ਸ਼੍ਰੇਣੀ', - NS_CATEGORY_TALK => 'ਸ਼੍ਰੇਣੀ_ਚਰਚਾ' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesPa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsPa; - } - - function getSkinNames() { - return $this->mSkinNamesPa + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesPa[$key] ) ) { - return $this->mMessagesPa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesPa; - } - - function digitTransformTable() { - return array( - '0' => '੦', - '1' => '੧', - '2' => '੨', - '3' => '੩', - '4' => '੪', - '5' => '੫', - '6' => '੬', - '7' => '੭', - '8' => '੮', - '9' => '੯' - ); - } - -} -?> diff --git a/languages/LanguagePl.php b/languages/LanguagePl.php deleted file mode 100644 index af5dd13ffc..0000000000 --- a/languages/LanguagePl.php +++ /dev/null @@ -1,133 +0,0 @@ -mMessagesPl =& $wgAllMessagesPl; - - global $wgMetaNamespace; - # Yucky hardcoding hack as polish grammar need tweaking :o) - switch( $wgMetaNamespace ) { - case 'Wikipedia': - $wgMetaTalkNamespace = 'Dyskusja_Wikipedii'; - $wgMetaUserNamespace = 'Wikipedysta'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikipedysty'; break; - case 'Wikisłownik': - $wgMetaTalkNamespace = 'Wikidyskusja'; - $wgMetaUserNamespace = 'Wikipedysta'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikipedysty'; break; - case 'Wikicytaty': - $wgMetaTalkNamespace = 'Dyskusja_Wikicytatów'; - $wgMetaUserNamespace = 'Wikipedysta'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikipedysty'; break; - case 'Wikiźródła': - $wgMetaTalkNamespace = 'Dyskusja_Wikiźródeł'; - $wgMetaUserNamespace = 'Wikiskryba'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikiskryby'; break; - case 'Wikibooks': - $wgMetaTalkNamespace = 'Dyskusja_Wikibooks'; - $wgMetaUserNamespace = 'Wikipedysta'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikipedysty'; break; - case 'Wikinews': - $wgMetaTalkNamespace = 'Dyskusja_Wikinews'; - $wgMetaUserNamespace = 'Wikireporter'; - $wgMetaUserTalkNamespace = 'Dyskusja_Wikireportera'; break; - default: - $wgMetaTalkNamespace = 'Dyskusja_' . $wgMetaNamespace; - $wgMetaUserNamespace = 'Użytkownik'; - $wgMetaUserTalkNamespace = 'Dyskusja_użytkownika'; break; - } - - $this->mNamespaceNamesPl = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Specjalna', - NS_MAIN => '', - NS_TALK => 'Dyskusja', - NS_USER => $wgMetaUserNamespace, - NS_USER_TALK => $wgMetaUserTalkNamespace, - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaTalkNamespace, // see above - NS_IMAGE => 'Grafika', - NS_IMAGE_TALK => 'Dyskusja_grafiki', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Dyskusja_MediaWiki', - NS_TEMPLATE => 'Szablon', - NS_TEMPLATE_TALK => 'Dyskusja_szablonu', - NS_HELP => 'Pomoc', - NS_HELP_TALK => 'Dyskusja_pomocy', - NS_CATEGORY => 'Kategoria', - NS_CATEGORY_TALK => 'Dyskusja_kategorii' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesPl + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsPl; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesPl[$key] ) ) { - return $this->mMessagesPl[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesPl; - } - - function getMonthNameGen( $key ) { - global $wgMonthNamesGenEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent( $wgMonthNamesGenEn[$key-1] ); - else - return wfMsg( $wgMonthNamesGenEn[$key-1] ); - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - # Check for Latin-2 backwards-compatibility URLs - function fallback8bitEncoding() { - return 'iso-8859-2'; - } - - function separatorTransformTable() { - return array( - ',' => "\xc2\xa0", // @bug 2749 - '.' => ',' - ); - } - - function linkTrail() { - return '/^([a-zęóąśłżźćńĘÓĄŚŁŻŹĆŃ]+)(.*)$/sDu'; - } - -} -?> diff --git a/languages/LanguagePms.deps.php b/languages/LanguagePms.deps.php deleted file mode 100644 index 14bfca52e4..0000000000 --- a/languages/LanguagePms.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguagePms.php b/languages/LanguagePms.php deleted file mode 100644 index ccf3e44daf..0000000000 --- a/languages/LanguagePms.php +++ /dev/null @@ -1,75 +0,0 @@ -, Jens Frank - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Jens Frank - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageIt.php'; - -if (!$wgCachedMessageArrays) { - require_once('MessagesPms.php'); -} - -class LanguagePms extends LanguageIt { - - function __construct() { - parent::__construct(); - - global $wgAllMessagesPms; - $this->mMessagesPms =& $wgAllMessagesPms; - - global $wgMetaNamespace; - $this->mNamespaceNamesPms = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Discussion', - NS_USER => 'Utent', - NS_USER_TALK => 'Ciaciarade', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussion_ant_sla_' . $wgMetaNamespace, - NS_IMAGE => 'Figura', - NS_IMAGE_TALK => 'Discussion_dla_figura', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussion_dla_MediaWiki', - NS_TEMPLATE => 'Stamp', - NS_TEMPLATE_TALK => 'Discussion_dlë_stamp', - NS_HELP => 'Agiut', - NS_HELP_TALK => 'Discussion_ant_sl\'agiut', - NS_CATEGORY => 'Categorìa', - NS_CATEGORY_TALK => 'Discussion_ant_sla_categorìa' - ); - - } - - function getFallbackLanguage() { - return 'it'; - } - - function getNamespaces() { - return $this->mNamespaceNamesPms + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesPms[$key] ) ) { - return $this->mMessagesPms[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesPms; - } - -} - -?> diff --git a/languages/LanguagePs.php b/languages/LanguagePs.php deleted file mode 100644 index ea5fa1bf71..0000000000 --- a/languages/LanguagePs.php +++ /dev/null @@ -1,26 +0,0 @@ - diff --git a/languages/LanguagePt.php b/languages/LanguagePt.php deleted file mode 100644 index c710f4fb88..0000000000 --- a/languages/LanguagePt.php +++ /dev/null @@ -1,202 +0,0 @@ - 'Media', # -2 - NS_SPECIAL => 'Especial', # -1 - NS_MAIN => '', # 0 - NS_TALK => 'Discussão', # 1 - NS_USER => 'Usuário', - NS_USER_TALK => 'Usuário_Discussão', -/* - Above entries are for PT_br. The following entries should - be used instead. But: - - DO NOT USE THOSE ENTRIES WITHOUT MIGRATING STUFF ON - WIKIMEDIA WEB SERVERS FIRST !! You will just break a lot - of links 8-) - - NS_USER => 'Utilizador', # 2 - NS_USER_TALK => 'Utilizador_Discussão', # 3 -*/ - NS_PROJECT => $wgMetaNamespace, # 4 - NS_PROJECT_TALK => $wgMetaNamespace.'_Discussão', # 5 - NS_IMAGE => 'Imagem', # 6 - NS_IMAGE_TALK => 'Imagem_Discussão', # 7 - NS_MEDIAWIKI => 'MediaWiki', # 8 - NS_MEDIAWIKI_TALK => 'MediaWiki_Discussão', # 9 - NS_TEMPLATE => 'Predefinição', # 10 - NS_TEMPLATE_TALK => 'Predefinição_Discussão', # 11 - NS_HELP => 'Ajuda', # 12 - NS_HELP_TALK => 'Ajuda_Discussão', # 13 - NS_CATEGORY => 'Categoria', # 14 - NS_CATEGORY_TALK => 'Categoria_Discussão' # 15 -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsPt = array( - 'Nenhuma', 'Fixo à esquerda', 'Fixo à direita', 'Flutuando à esquerda', 'Flutuando à direita' -); - -/* private */ $wgSkinNamesPt = array( - 'standard' => 'Clássico', - 'nostalgia' => 'Nostalgia', - 'cologneblue' => 'Azul colonial', - 'davinci' => 'DaVinci', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' -) + $wgSkinNamesEn; - -# Whether to use user or default setting in Language::date() -/* private */ $wgDateFormatsPt = array( - MW_DATE_DEFAULT => 'Sem preferência', - MW_DATE_DMY => '16:12, 15 Janeiro 2001', - MW_DATE_MDY => '16:12, Janeiro 15, 2001', - MW_DATE_YMD => '16:12, 2001 Janeiro 15', - MW_DATE_ISO => '2001-01-15 16:12:34' -); - - -# Note to translators: -# Please include the English words as synonyms. This allows people -# from other wikis to contribute more easily. -# -/* private */ $wgMagicWordsPt = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#REDIRECT', '#redir' ), - 'notoc' => array( 0, '__NOTOC__' ), - 'forcetoc' => array( 0, '__FORCETOC__' ), - 'toc' => array( 0, '__TOC__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__' ), - 'start' => array( 0, '__START__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), - 'currentday' => array( 1, 'CURRENTDAY' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME' ), - 'currentyear' => array( 1, 'CURRENTYEAR' ), - 'currenttime' => array( 1, 'CURRENTTIME' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), - 'pagename' => array( 1, 'PAGENAME' ), - 'pagenamee' => array( 1, 'PAGENAMEE' ), - 'namespace' => array( 1, 'NAMESPACE' ), - 'msg' => array( 0, 'MSG:' ), - 'subst' => array( 0, 'SUBST:' ), - 'msgnw' => array( 0, 'MSGNW:' ), - 'end' => array( 0, '__END__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1'), - 'img_right' => array( 1, 'right', 'direita' ), - 'img_left' => array( 1, 'left', 'esquerda' ), - 'img_none' => array( 1, 'none', 'nenhum' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME' ), - 'ns' => array( 0, 'NS:' ), - 'localurl' => array( 0, 'LOCALURL:' ), - 'localurle' => array( 0, 'LOCALURLE:' ), - 'server' => array( 0, 'SERVER' ), - 'servername' => array( 0, 'SERVERNAME' ), - 'scriptpath' => array( 0, 'SCRIPTPATH' ), - 'grammar' => array( 0, 'GRAMMAR:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'CURRENTWEEK' ), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesPt.php'); -} - -class LanguagePt extends LanguageUtf8 { - - /** - * Portuguese numeric format is 123 456,78 - */ - function separatorTransformTable() { - return array(',' => ' ', '.' => ',' ); - } - - /** - * Exports $wgNamespaceNamesPt - * @return array - */ - function getNamespaces() { - global $wgNamespaceNamesPt; - return $wgNamespaceNamesPt; - } - - /** - * Exports $wgQuickbarSettingsPt - * @return array - */ - function getQuickbarSettings() { - global $wgQuickbarSettingsPt; - return $wgQuickbarSettingsPt; - } - - /** - * Exports $wgSkinNamesPt - * @return array - */ - function getSkinNames() { - global $wgSkinNamesPt; - return $wgSkinNamesPt; - } - - /** - * Exports $wgDateFormatsPt - * @return array - */ - function getDateFormats() { - global $wgDateFormatsPt; - return $wgDateFormatsPt; - } - - function getMessage( $key ) { - global $wgAllMessagesPt; - if ( isset( $wgAllMessagesPt[$key] ) ) { - return $wgAllMessagesPt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - /** - * Exports $wgMagicWordsPt - * @return array - */ - function &getMagicWords() { - global $wgMagicWordsPt; - return $wgMagicWordsPt; - } -} -?> diff --git a/languages/LanguagePt_br.deps.php b/languages/LanguagePt_br.deps.php deleted file mode 100644 index 7fccacebdc..0000000000 --- a/languages/LanguagePt_br.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguagePt_br.php b/languages/LanguagePt_br.php deleted file mode 100644 index f4abef7927..0000000000 --- a/languages/LanguagePt_br.php +++ /dev/null @@ -1,80 +0,0 @@ - 'Padrão', - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesPt_br; - $this->mMessagesPt_br =& $wgAllMessagesPt_br; - - global $wgMetaNamespace; - $this->mNamespaceNamesPt_br = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Especial', - NS_MAIN => '', - NS_TALK => 'Discussão', - NS_USER => 'Usuário', - NS_USER_TALK => 'Usuário_Discussão', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_Discussão', - NS_IMAGE => 'Imagem', - NS_IMAGE_TALK => 'Imagem_Discussão', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_Discussão', - NS_TEMPLATE => 'Predefinição', - NS_TEMPLATE_TALK => 'Predefinição_Discussão', - NS_HELP => 'Ajuda', - NS_HELP_TALK => 'Ajuda_Discussão', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Categoria_Discussão' - ); - - } - - function getFallbackLanguage() { - return 'pt'; - } - - function getNamespaces() { - return $this->mNamespaceNamesPt_br + parent::getNamespaces(); - } - - function getSkinNames() { - return $this->mSkinNamesPt_br + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesPt_br[$key] ) ) { - return $this->mMessagesPt_br[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesPt_br; - } - -} - -?> diff --git a/languages/LanguageQu.deps.php b/languages/LanguageQu.deps.php deleted file mode 100644 index 5c4a4fd2fe..0000000000 --- a/languages/LanguageQu.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageQu.php b/languages/LanguageQu.php deleted file mode 100644 index d9362bc510..0000000000 --- a/languages/LanguageQu.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageEs.php'; - -class LanguageQu extends LanguageEs { - - function getFallbackLanguage() { - return 'es'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageRmy.deps.php b/languages/LanguageRmy.deps.php deleted file mode 100644 index cde8afef5b..0000000000 --- a/languages/LanguageRmy.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageRmy.php b/languages/LanguageRmy.php deleted file mode 100644 index f4b9583d58..0000000000 --- a/languages/LanguageRmy.php +++ /dev/null @@ -1,52 +0,0 @@ -mMessagesRmy =& $wgAllMessagesRmy; - - } - - function getMessage( $key ) { - if( isset( $this->mMessagesRmy[$key] ) ) { - return $this->mMessagesRmy[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesRmy; - } - - function getFallbackLanguage() { - return 'ro'; - } - -} -?> \ No newline at end of file diff --git a/languages/LanguageRo.php b/languages/LanguageRo.php deleted file mode 100644 index da0b92cc8b..0000000000 --- a/languages/LanguageRo.php +++ /dev/null @@ -1,130 +0,0 @@ - 'Normală', - 'nostalgia' => 'Nostalgie' - ); - - private $mMagicWordsRo = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect' ), - 'notoc' => array( 0, '__NOTOC__', '__FARACUPRINS__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__FARAEDITSECTIUNE__' ), - 'start' => array( 0, '__START__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', '{{NUMARLUNACURENTA}}' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', '{{NUMELUNACURENTA}}' ), - 'currentday' => array( 1, 'CURRENTDAY', '{{NUMARZIUACURENTA}}' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', '{{NUMEZIUACURENTA}}' ), - 'currentyear' => array( 1, 'CURRENTYEAR', '{{ANULCURENT}}' ), - 'currenttime' => array( 1, 'CURRENTTIME', '{{ORACURENTA}}' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', '{{NUMARDEARTICOLE}}' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', '{{NUMELUNACURENTAGEN}}' ), - 'subst' => array( 0, 'SUBST:' ), - 'msgnw' => array( 0, 'MSGNW:', 'MSJNOU:' ), - 'end' => array( 0, '__END__', '__FINAL__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), - 'img_right' => array( 1, 'right' ), - 'img_left' => array( 1, 'left' ), - 'img_none' => array( 1, 'none' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre' ), - 'int' => array( 0, 'INT:' ) - ); - - - function __construct() { - parent::__construct(); - - global $wgAllMessagesRo; - $this->mMessagesRo =& $wgAllMessagesRo; - - global $wgMetaNamespace; - $this->mNamespaceNamesRo = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Discuţie', - NS_USER => 'Utilizator', - NS_USER_TALK => 'Discuţie_Utilizator', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discuţie_'.$wgMetaNamespace, - NS_IMAGE => 'Imagine', - NS_IMAGE_TALK => 'Discuţie_Imagine', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discuţie_MediaWiki', - NS_TEMPLATE => 'Format', - NS_TEMPLATE_TALK => 'Discuţie_Format', - NS_HELP => 'Ajutor', - NS_HELP_TALK => 'Discuţie_Ajutor', - NS_CATEGORY => 'Categorie', - NS_CATEGORY_TALK => 'Discuţie_Categorie' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesRo + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsRo; - } - - function getSkinNames() { - return $this->mSkinNamesRo + parent::getSkinNames(); - } - - function getDateFormats() { - return false; - } - - function &getMagicWords() { - $t = $this->mMagicWordsRo + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesRo[$key] ) ) { - return $this->mMessagesRo[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesRo; - } - - function timeDateSeparator( $format ) { - return ' '; - } - - function timeBeforeDate() { - return false; - } - - function fallback8bitEncoding() { - return 'iso8859-2'; - } - -} - -?> diff --git a/languages/LanguageRu.php b/languages/LanguageRu.php index 6b576e9359..b64a4144d6 100644 --- a/languages/LanguageRu.php +++ b/languages/LanguageRu.php @@ -7,158 +7,8 @@ * @subpackage Language */ -require_once( 'LanguageUtf8.php' ); - - -/* private */ $wgNamespaceNamesRu = array( - NS_MEDIA => 'Медиа', - NS_SPECIAL => 'Служебная', - NS_MAIN => '', - NS_TALK => 'Обсуждение', - NS_USER => 'Участник', - NS_USER_TALK => 'Обсуждение_участника', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => FALSE, #Set in constructor - NS_IMAGE => 'Изображение', - NS_IMAGE_TALK => 'Обсуждение_изображения', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Обсуждение_MediaWiki', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Обсуждение_шаблона', - NS_HELP => 'Справка', - NS_HELP_TALK => 'Обсуждение_справки', - NS_CATEGORY => 'Категория', - NS_CATEGORY_TALK => 'Обсуждение_категории', -) + $wgNamespaceNamesEn; - - -/* private */ $wgQuickbarSettingsRu = array( - 'Не показывать', 'Неподвижная слева', 'Неподвижная справа', 'Плавающая слева', 'Плавающая справа' -); - -/* private */ $wgSkinNamesRu = array( - 'standard' => 'Стандартный', - 'nostalgia' => 'Ностальгия', - 'cologneblue' => 'Кёльнская тоска', - 'davinci' => 'Да Винчи', - 'mono' => 'Моно', - 'monobook' => 'Моно-книга', - 'myskin' => 'Своё', - 'chick' => 'Цыпа' -); - - -/* private */ $wgBookstoreListRu = array( - 'ОЗОН' => 'http://www.ozon.ru/?context=advsearch_book&isbn=$1', - 'Books.Ru' => 'http://www.books.ru/shop/search/advanced?as%5Btype%5D=books&as%5Bname%5D=&as%5Bisbn%5D=$1&as%5Bauthor%5D=&as%5Bmaker%5D=&as%5Bcontents%5D=&as%5Binfo%5D=&as%5Bdate_after%5D=&as%5Bdate_before%5D=&as%5Bprice_less%5D=&as%5Bprice_more%5D=&as%5Bstrict%5D=%E4%E0&as%5Bsub%5D=%E8%F1%EA%E0%F2%FC&x=22&y=8', - 'Яндекс.Маркет' => 'http://market.yandex.ru/search.xml?text=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' -); - - -# Note to translators: -# Please include the English words as synonyms. This allows people -# from other wikis to contribute more easily. -# -/* private */ $wgMagicWordsRu = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#REDIRECT', '#ПЕРЕНАПРАВЛЕНИЕ', '#ПЕРЕНАПР'), - 'notoc' => array( 0, '__NOTOC__', '__БЕЗСОДЕРЖАНИЯ__'), - 'forcetoc' => array( 0, '__FORCETOC__'), - 'toc' => array( 0, '__TOC__', '__СОДЕРЖАНИЕ__'), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗРЕДАКТИРОВАНИЯРАЗДЕЛА__'), - 'start' => array( 0, '__START__', '__НАЧАЛО__'), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТЕКУЩИЙМЕСЯЦ'), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME','НАЗВАНИЕТЕКУЩЕГОМЕСЯЦА'), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN','НАЗВАНИЕТЕКУЩЕГОМЕСЯЦАРОД'), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'НАЗВАНИЕТЕКУЩЕГОМЕСЯЦААБР'), - 'currentday' => array( 1, 'CURRENTDAY','ТЕКУЩИЙДЕНЬ'), - 'currentday2' => array( 1, 'CURRENTDAY2','ТЕКУЩИЙДЕНЬ2'), - 'currentdayname' => array( 1, 'CURRENTDAYNAME','НАЗВАНИЕТЕКУЩЕГОДНЯ'), - 'currentyear' => array( 1, 'CURRENTYEAR','ТЕКУЩИЙГОД'), - 'currenttime' => array( 1, 'CURRENTTIME','ТЕКУЩЕЕВРЕМЯ'), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES','КОЛИЧЕСТВОСТАТЕЙ'), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'КОЛИЧЕСТВОФАЛОВ'), - 'pagename' => array( 1, 'PAGENAME','НАЗВАНИЕСТРАНИЦЫ'), - 'pagenamee' => array( 1, 'PAGENAMEE','НАЗВАНИЕСТРАНИЦЫ2'), - 'namespace' => array( 1, 'NAMESPACE','ПРОСТРАНСТВОИМЁН'), - 'msg' => array( 0, 'MSG:'), - 'subst' => array( 0, 'SUBST:','ПОДСТ:'), - 'msgnw' => array( 0, 'MSGNW:'), - 'end' => array( 0, '__END__','__КОНЕЦ__'), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини'), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1'), - 'img_right' => array( 1, 'right','справа'), - 'img_left' => array( 1, 'left','слева'), - 'img_none' => array( 1, 'none'), - 'img_width' => array( 1, '$1px','$1пкс'), - 'img_center' => array( 1, 'center', 'centre','центр'), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame','обрамить'), - 'int' => array( 0, 'INT:'), - 'sitename' => array( 1, 'SITENAME','НАЗВАНИЕСАЙТА'), - 'ns' => array( 0, 'NS:','ПИ:'), - 'localurl' => array( 0, 'LOCALURL:'), - 'localurle' => array( 0, 'LOCALURLE:'), - 'server' => array( 0, 'SERVER','СЕРВЕР'), - 'servername' => array( 0, 'SERVERNAME', 'НАЗВАНИЕСЕРВЕРА'), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'ПУТЬКСКРИПТУ'), - 'grammar' => array( 0, 'GRAMMAR:'), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗПРЕОБРАЗОВАНИЯЗАГОЛОВКА__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗПРЕОБРАЗОВАНИЯТЕКСТА__'), - 'currentweek' => array( 1, 'CURRENTWEEK','ТЕКУЩАЯНЕДЕЛЯ'), - 'currentdow' => array( 1, 'CURRENTDOW','ТЕКУЩИЙДЕНЬНЕДЕЛИ'), - 'revisionid' => array( 1, 'REVISIONID', 'ИДВЕРСИИ'), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesRu.php'); -} - /* Please, see Language.php for general function comments */ -class LanguageRu extends LanguageUtf8 { - function __construct() { - global $wgNamespaceNamesRu, $wgMetaNamespace; - parent::__construct(); - $wgNamespaceNamesRu[NS_PROJECT_TALK] = 'Обсуждение_' . $this->convertGrammar( $wgMetaNamespace, 'genitive' ); - } - - function getNamespaces() { - global $wgNamespaceNamesRu; - return $wgNamespaceNamesRu; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsRu; - return $wgQuickbarSettingsRu; - } - - function getSkinNames() { - global $wgSkinNamesRu; - return $wgSkinNamesRu; - } - - function getDateFormats() { - global $wgDateFormatsRu; - return $wgDateFormatsRu; - } - - function getMessage( $key ) { - global $wgAllMessagesRu; - return isset($wgAllMessagesRu[$key]) ? $wgAllMessagesRu[$key] : parent::getMessage($key); - } - - function fallback8bitEncoding() { - return "windows-1251"; - } - - //only for quotation mark - function linkPrefixExtension() { return true; } - - function &getMagicWords() { - global $wgMagicWordsRu; - return $wgMagicWordsRu; - } - +class LanguageRu extends Language { # Convert from the nominative form of a noun to some other case # Invoked with {{grammar:case|word}} function convertGrammar( $word, $case ) { @@ -233,26 +83,5 @@ class LanguageRu extends LanguageUtf8 { return $_; } } - - function separatorTransformTable() { - return array( - ',' => "\xc2\xa0", - '.' => ',' - ); - } - - function getMonthNameGen( $key ) { - global $wgMonthNamesGenEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent( $wgMonthNamesGenEn[$key-1] ); - else - return wfMsg( $wgMonthNamesGenEn[$key-1] ); - } - - function formatMonth( $month, $format ) { - return $this->getMonthNameGen( $month ); - } - } ?> diff --git a/languages/LanguageSc.php b/languages/LanguageSc.php deleted file mode 100644 index 8a7c9c01b3..0000000000 --- a/languages/LanguageSc.php +++ /dev/null @@ -1,55 +0,0 @@ - 'Speciale', - NS_MAIN => '', - NS_TALK => 'Contièndha', - NS_USER => 'Utente', - NS_USER_TALK => 'Utente_discussioni', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_discussioni', - NS_IMAGE => 'Immàgini', - NS_IMAGE_TALK => 'Immàgini_contièndha' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsSc = array( - "Nessuno", "Fisso a sinistra", "Fisso a destra", "Fluttuante a sinistra" -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSc.php'); -} - -class LanguageSc extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesSc; - return $wgNamespaceNamesSc; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsSc; - return $wgQuickbarSettingsSc; - } - - function formatMonth( $month, $format ) { - return $this->getMonthAbbreviation( $month ); - } - - function getMessage( $key ) { - global $wgAllMessagesSc; - if(array_key_exists($key, $wgAllMessagesSc)) - return $wgAllMessagesSc[$key]; - else - return parent::getMessage($key); - } - -} - -?> diff --git a/languages/LanguageSd.php b/languages/LanguageSd.php deleted file mode 100644 index 152681555b..0000000000 --- a/languages/LanguageSd.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/languages/LanguageSk.php b/languages/LanguageSk.php index 806d80a874..2fa8df0fb7 100644 --- a/languages/LanguageSk.php +++ b/languages/LanguageSk.php @@ -5,176 +5,7 @@ * @package MediaWiki * @subpackage Language */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSk.php'); -} - -class LanguageSk extends LanguageUtf8 { - - private $mQuickbarSettingsSk = array( - 'Žiadne', 'Ukotvené vľavo', 'Ukotvené vpravo', 'Plávajúce vľavo' - ); - - private $mDateFormatsSk = array( - 'Default', - '15. január 2001 16:12', - '15. jan. 2001 16:12', - '16:12, 15. január 2001', - '16:12, 15. jan. 2001', - 'ISO 8601' => '2001-01-15 16:12:34' - ); - - private $mBookstoreListSk = array( - 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1', - 'BokBerit' => 'http://www.bokberit.no/annet_sted/bocker/$1.html', - 'Bokkilden' => 'http://www.bokkilden.no/ProductDetails.aspx?ProductId=$1', - 'Haugenbok' => 'http://www.haugenbok.no/searchresults.cfm?searchtype=simple&isbn=$1', - 'Akademika' => 'http://www.akademika.no/sok.php?isbn=$1', - 'Gnist' => 'http://www.gnist.no/sok.php?isbn=$1', - 'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1', - 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' - ); - - # Note to translators: - # Please include the English words as synonyms. This allows people - # from other wikis to contribute more easily. - # - private $mMagicWordsSk = array( - # ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', '#presmeruj' ), - 'notoc' => array( 0, '__NOTOC__', '__BEZOBSAHU__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__VYNÚŤOBSAH__' ), - 'toc' => array( 0, '__TOC__', '__OBSAH__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__NEUPRAVUJSEKCIE__' ), - 'start' => array( 0, '__START__', '__ŠTART__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'MESIAC' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'MENOMESIACA' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'MENOAKTUÁLNEHOMESIACAGEN' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'MENOAKTUÁLNEHOMESIACASKRATKA' ), - 'currentday' => array( 1, 'CURRENTDAY', 'AKTUÁLNYDEŇ' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'MENOAKTUÁLNEHODŇA' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTUÁLNYROK' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'AKTUÁLNYČAS' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'POČETČLÁNKOV' ), - 'pagename' => array( 1, 'PAGENAME', 'MENOSTRÁNKY' ), - 'pagenamee' => array( 1, 'PAGENAMEE' ), - 'namespace' => array( 1, 'NAMESPACE', 'MENNÝPRIESTOR' ), - 'msg' => array( 0, 'MSG:', 'SPRÁVA:' ), - 'subst' => array( 0, 'SUBST:' ), - 'msgnw' => array( 0, 'MSGNW:' ), - 'end' => array( 0, '__END__', '__KONIEC__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'náhľad', 'náhľadobrázka' ), - 'img_right' => array( 1, 'right', 'vpravo' ), - 'img_left' => array( 1, 'left', 'vľavo' ), - 'img_none' => array( 1, 'none', 'žiadny' ), - 'img_width' => array( 1, '$1px', '$1bod' ), - 'img_center' => array( 1, 'center', 'centre', 'stred' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rám' ), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'MENOLOKALITY' ), - 'ns' => array( 0, 'NS:', 'MP:' ), - 'localurl' => array( 0, 'LOCALURL:' ), - 'localurle' => array( 0, 'LOCALURLE:' ), - 'server' => array( 0, 'SERVER' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'AKTUÁLNYTÝŽDEŇ' ), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesSk; - $this->mMessagesSk =& $wgAllMessagesSk; - - global $wgMetaNamespace; - $this->mNamespaceNamesSk = array( - NS_MEDIA => 'Médiá', - NS_SPECIAL => 'Špeciálne', - NS_MAIN => '', - NS_TALK => 'Diskusia', - NS_USER => 'Redaktor', - NS_USER_TALK => 'Diskusia_s_redaktorom', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Diskusia_k_' . $this->convertGrammar( $wgMetaNamespace, 'datív' ), - NS_IMAGE => 'Obrázok', - NS_IMAGE_TALK => 'Diskusia_k_obrázku', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Diskusia_k_MediaWiki', - NS_TEMPLATE => 'Šablóna', - NS_TEMPLATE_TALK => 'Diskusia_k_šablóne', - NS_HELP => 'Pomoc', - NS_HELP_TALK => 'Diskusia_k_pomoci', - NS_CATEGORY => 'Kategória', - NS_CATEGORY_TALK => 'Diskusia_ku_kategórii' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesSk + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsSk; - } - - function getDateFormats() { - return $this->mDateFormatsSk; - } - - function getBookstoreList() { - return $this->mBookstoreListSk; - } - - function &getMagicWords() { - $t = $this->mMagicWordsSk + parent::getMagicWords(); - return $t; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesSk[$key] ) ) { - return $this->mMessagesSk[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesSk; - } - - function getNsIndex( $text ) { - - foreach ( $this->mNamespaceNamesSk as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - # Compatbility with old names: - if( 0 == strcasecmp( "Komentár", $text ) ) { return NS_TALK; } - if( 0 == strcasecmp( "Komentár_k_redaktorovi", $text ) ) { return NS_USER_TALK; } - if( 0 == strcasecmp( "Komentár_k_Wikipédii", $text ) ) { return NS_PROJECT_TALK; } - if( 0 == strcasecmp( "Komentár_k_obrázku", $text ) ) { return NS_IMAGE_TALK; } - if( 0 == strcasecmp( "Komentár_k_MediaWiki", $text ) ) { return NS_MEDIAWIKI_TALK; } - return false; - } - - function separatorTransformTable() { - return array( - ',' => "\xc2\xa0", - '.' => ',' - ); - } - - function linkTrail() { - return '/^([a-záäčďéíľĺňóôŕšťúýž]+)(.*)$/sDu'; - } - +class LanguageSk extends Language { # Convert from the nominative form of a noun to some other case # Invoked with {{GRAMMAR:case|word}} /** @@ -243,7 +74,7 @@ class LanguageSk extends LanguageUtf8 { } break; } - return $word; + return $word; } function convertPlural( $count, $w1, $w2, $w3) { diff --git a/languages/LanguageSl.php b/languages/LanguageSl.php index 1cffbde7ed..35991caae8 100644 --- a/languages/LanguageSl.php +++ b/languages/LanguageSl.php @@ -5,106 +5,7 @@ * @subpackage Language * */ - -# -# Revision/ -# Inačica 1.00.00 XJamRastafire 2003-07-08 |NOT COMPLETE -# 1.00.10 XJamRastafire 2003-11-03 |NOT COMPLETE -# ______________________________________________________ -# 1.00.20 XJamRastafire 2003-11-05 | COMPLETE -# 1.00.30 romanm 2003-11-07 | minor changes -# 1.00.31 romanm 2003-11-11 | merged incorrectly broken lines -# 1.00.32 romanm 2003-11-19 | merged incorrectly broken lines -# 1.00.40 romanm 2003-11-21 | fixed Google search - - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSl.php'); -} - -class LanguageSl extends LanguageUtf8 { - private $mMessagesSl, $mNamespaceNamesSl = null; - - private $mQuickbarSettingsSl = array( - 'Brez', 'Levo nepomično', 'Desno nepomično', 'Levo leteče' - ); - - private $mMonthNameGenSl = array( - 'januarja', 'februarja', 'marca', 'aprila', 'maja', 'junija', - 'julija', 'avgusta', 'septembra', 'oktobra', 'novembra', 'decembra' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesSl; - $this->mMessagesSl =& $wgAllMessagesSl; - - global $wgMetaNamespace; - $this->mNamespaceNamesSl = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Posebno', - NS_MAIN => '', - NS_TALK => 'Pogovor', - NS_USER => 'Uporabnik', - NS_USER_TALK => 'Uporabniški_pogovor', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Pogovor_' . - str_replace( ' ', '_', $this->convertGrammar( $wgMetaNamespace, 'mestnik' ) ), - NS_IMAGE => 'Slika', - NS_IMAGE_TALK => 'Pogovor_o_sliki', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Pogovor_o_MediaWiki', - NS_TEMPLATE => 'Predloga', - NS_TEMPLATE_TALK => 'Pogovor_o_predlogi', - NS_HELP => 'Pomoč', - NS_HELP_TALK => 'Pogovor_o_pomoči', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Pogovor_o_kategoriji' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesSl + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsSl; - } - - function getDateFormats() { - return false; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesSl[$key] ) ) { - return $this->mMessagesSl[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesSl; - } - - - function fallback8bitEncoding() { - return "iso-8859-2"; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function getMonthNameGen( $key ) { - return $this->mMonthNameGenSl[$key-1]; - } - - +class LanguageSl extends Language { # Convert from the nominative form of a noun to some other case # Invoked with {{GRAMMAR:case|word}} /** @@ -220,4 +121,4 @@ class LanguageSl extends LanguageUtf8 { } -?> \ No newline at end of file +?> diff --git a/languages/LanguageSq.php b/languages/LanguageSq.php deleted file mode 100644 index 3ec5734fb9..0000000000 --- a/languages/LanguageSq.php +++ /dev/null @@ -1,112 +0,0 @@ - "Standarte", - 'nostalgia' => "Nostalgjike", - 'cologneblue' => "Kolonjë Blu" - ); - - private $mDateFormatsSq = array( - MW_DATE_DEFAULT => 'No preference', - MW_DATE_DMY => '16:12, 15 January 2001', - MW_DATE_ISO => '2001-01-15 16:12:34' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesSq; - $this->mMessagesSq =& $wgAllMessagesSq; - - global $wgMetaNamespace; - $this->mNamespaceNamesSq = array( - NS_MEDIA => "Media", - NS_SPECIAL => "Speciale", - NS_MAIN => "", - NS_TALK => "Diskutim", - NS_USER => "Përdoruesi", - NS_USER_TALK => "Përdoruesi_diskutim", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "_diskutim", - NS_IMAGE => "Figura", - NS_IMAGE_TALK => "Figura_diskutim", - NS_MEDIAWIKI => "MediaWiki", - NS_MEDIAWIKI_TALK => "MediaWiki_diskutim", - NS_TEMPLATE => "Stampa", - NS_TEMPLATE_TALK => "Stampa_diskutim", - NS_HELP => 'Ndihmë', - NS_HELP_TALK => 'Ndihmë_diskutim' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesSq + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsSq; - } - - function getSkinNames() { - return $this->mSkinNamesSq + parent::getSkinNames(); - } - - function getDateFormats() { - return $this->mDateFormatsSq; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesSq[$key] ) ) { - return $this->mMessagesSq[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesSq; - } - - function getNsIndex( $text ) { - foreach ( $this->mNamespaceNamesSq as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - # Compatbility with alt names: - if( 0 == strcasecmp( "Perdoruesi", $text ) ) return NS_USER; - if( 0 == strcasecmp( "Perdoruesi_diskutim", $text ) ) return NS_USER_TALK; - return false; - } - - function timeDateSeparator( $format ) { - return ' '; - } - - - function timeBeforeDate( $format ) { - return false; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} -?> diff --git a/languages/LanguageSr.deps.php b/languages/LanguageSr.deps.php index f533eadb4c..acfd954449 100644 --- a/languages/LanguageSr.deps.php +++ b/languages/LanguageSr.deps.php @@ -5,6 +5,6 @@ // changed on a subsequent page view. // see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html -require_once( "LanguageSr_ec.php" ); -require_once( "LanguageConverter.php" ); +require_once( dirname(__FILE__).'/LanguageSr_ec.php' ); +require_once( dirname(__FILE__).'/LanguageConverter.php' ); ?> diff --git a/languages/LanguageSr.php b/languages/LanguageSr.php index 2eede4b632..035259a1f8 100644 --- a/languages/LanguageSr.php +++ b/languages/LanguageSr.php @@ -11,11 +11,9 @@ dictionaries: one for Cyrillics and Latin, and one for ekavian and iyekavian. */ -require_once( "LanguageConverter.php" ); -require_once( "LanguageSr_ec.php" ); -require_once( "LanguageSr_el.php" ); -require_once( "LanguageSr_jc.php" ); -require_once( "LanguageSr_jl.php" ); +require_once( dirname(__FILE__).'/LanguageConverter.php' ); +require_once( dirname(__FILE__).'/LanguageSr_ec.php' ); +require_once( dirname(__FILE__).'/LanguageSr_el.php' ); class SrConverter extends LanguageConverter { var $mToLatin = array( @@ -196,6 +194,8 @@ class SrConverter extends LanguageConverter { class LanguageSr extends LanguageSr_ec { function __construct() { global $wgHooks; + parent::__construct(); + $variants = array('sr', 'sr-ec', 'sr-jc', 'sr-el', 'sr-jl'); $variantfallbacks = array( 'sr' => 'sr-ec', @@ -215,10 +215,5 @@ class LanguageSr extends LanguageSr_ec { function getVariantname( $code ) { return wfMsg( "variantname-$code" ); } - - function linkTrail() { - return "/^([abvgdđežzijklljmnnjoprstćufhcčdžšабвгдђежзијклљмнњопрстћуфхцчџш]+)(.*)$/usD"; - } - } ?> diff --git a/languages/LanguageSr_ec.php b/languages/LanguageSr_ec.php index f592ff91f6..f84ebd0639 100644 --- a/languages/LanguageSr_ec.php +++ b/languages/LanguageSr_ec.php @@ -4,264 +4,11 @@ * @subpackage Language */ -require_once( "LanguageUtf8.php" ); - -/* private */ $wgNamespaceNamesSr_ec = array( - NS_MEDIA => "Медија", - NS_SPECIAL => "Посебно", - NS_MAIN => "", - NS_TALK => "Разговор", - NS_USER => "Корисник", - NS_USER_TALK => "Разговор_са_корисником", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => ($wgMetaNamespaceTalk ? $wgMetaNamespaceTalk : "Разговор_о_".$wgMetaNamespace ), - NS_IMAGE => "Слика", - NS_IMAGE_TALK => "Разговор_о_слици", - NS_MEDIAWIKI => "МедијаВики", - NS_MEDIAWIKI_TALK => "Разговор_о_МедијаВикију", - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Разговор_о_шаблону', - NS_HELP => 'Помоћ', - NS_HELP_TALK => 'Разговор_о_помоћи', - NS_CATEGORY => 'Категорија', - NS_CATEGORY_TALK => 'Разговор_о_категорији', -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsSr_ec = array( - "Никаква", "Причвршћена лево", "Причвршћена десно", "Плутајућа лево" -); - -/* private */ $wgSkinNamesSr_ec = array( - "Обична", "Носталгија", "Келнско плаво", "Педингтон", "Монпарнас" -) + $wgSkinNamesEn; - -/* private */ $wgUserTogglesSr_ec = array( - 'nolangconversion', -) + $wgUserTogglesEn; - -/* private */ $wgDateFormatsSr_ec = array( - 'Није битно', - '06:12, 5. јануар 2001.', - '06:12, 5 јануар 2001', - '06:12, 05.01.2001.', - '06:12, 5.1.2001.', - '06:12, 5. јан 2001.', - '06:12, 5 јан 2001', - '6:12, 5. јануар 2001.', - '6:12, 5 јануар 2001', - '6:12, 05.01.2001.', - '6:12, 5.1.2001.', - '6:12, 5. јан 2001.', - '6:12, 5 јан 2001', -); - -/* NOT USED IN STABLE VERSION */ -/* private */ $wgMagicWordsSr_ec = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#Преусмери', '#redirect', '#преусмери', '#ПРЕУСМЕРИ' ), - 'notoc' => array( 0, '__NOTOC__', '__БЕЗСАДРЖАЈА__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__ФОРСИРАНИСАДРЖАЈ__' ), - 'toc' => array( 0, '__TOC__', '__САДРЖАЈ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_ИЗМЕНА__', '__БЕЗИЗМЕНА__' ), - 'start' => array( 0, '__START__', '__ПОЧЕТАК__' ), - 'end' => array( 0, '__END__', '__КРАЈ__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТРЕНУТНИМЕСЕЦ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'ТРЕНУТНИМЕСЕЦИМЕ' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'ТРЕНУТНИМЕСЕЦРОД' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ТРЕНУТНИМЕСЕЦСКР' ), - 'currentday' => array( 1, 'CURRENTDAY', 'ТРЕНУТНИДАН' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'ТРЕНУТНИДАНИМЕ' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'ТРЕНУТНАГОДИНА' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'ТРЕНУТНОВРЕМЕ' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЈЧЛАНАКА' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'БРОЈДАТОТЕКА', 'БРОЈФАЈЛОВА' ), - 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦЕ' ), - 'namespace' => array( 1, 'NAMESPACE', 'ИМЕНСКИПРОСТОР' ), - 'namespacee' => array( 1, 'NAMESPACEE', 'ИМЕНСКИПРОСТОРИ' ), - 'fullpagename' => array( 1, 'FULLPAGENAME', 'ПУНОИМЕСТРАНЕ' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'ПУНОИМЕСТРАНЕЕ' ), - 'msg' => array( 0, 'MSG:', 'ПОР:' ), - 'subst' => array( 0, 'SUBST:', 'ЗАМЕНИ:' ), - 'msgnw' => array( 0, 'MSGNW:', 'НВПОР:' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1' ), - 'img_right' => array( 1, 'right', 'десно', 'д' ), - 'img_left' => array( 1, 'left', 'лево', 'л' ), - 'img_none' => array( 1, 'none', 'н', 'без' ), - 'img_width' => array( 1, '$1px', '$1пискел' , '$1п' ), - 'img_center' => array( 1, 'center', 'centre', 'центар', 'ц' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'оквир', 'рам' ), - 'int' => array( 0, 'INT:', 'ИНТ:' ), - 'sitename' => array( 1, 'SITENAME', 'ИМЕСАЈТА' ), - 'ns' => array( 0, 'NS:', 'ИП:' ), - 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛНААДРЕСА:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛНЕАДРЕСЕ:' ), - 'server' => array( 0, 'SERVER', 'СЕРВЕР' ), - 'servername' => array( 0, 'SERVERNAME', 'ИМЕСЕРВЕРА' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'СКРИПТА' ), - 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗТЦ__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗЦЦ__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'ТРЕНУТНАНЕДЕЉА' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'ТРЕНУТНИДОВ' ), - 'revisionid' => array( 1, 'REVISIONID', 'ИДРЕВИЗИЈЕ' ), - 'plural' => array( 0, 'PLURAL:', 'МНОЖИНА:' ), - 'fullurl' => array( 0, 'FULLURL:', 'ПУНУРЛ:' ), - 'fullurle' => array( 0, 'FULLURLE:', 'ПУНУРЛЕ:' ), - 'lcfirst' => array( 0, 'LCFIRST:', 'ЛЦПРВИ:' ), - 'ucfirst' => array( 0, 'UCFIRST:', 'УЦПРВИ:' ), - 'lc' => array( 0, 'LC:', 'ЛЦ:' ), - 'uc' => array( 0, 'UC:', 'УЦ:' ), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSr_ec.php'); -} - #-------------------------------------------------------------------------- # Internationalisation code #-------------------------------------------------------------------------- -class LanguageSr_ec extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesSr_ec; - return $wgNamespaceNamesSr_ec; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsSr_ec; - return $wgQuickbarSettingsSr_ec; - } - - function getSkinNames() { - global $wgSkinNamesSr_ec; - return $wgSkinNamesSr_ec; - } - - function getDateFormats() { - global $wgDateFormatsSr_ec; - return $wgDateFormatsSr_ec; - } - - function getMessage( $key ) { - global $wgAllMessagesSr_ec; - if(array_key_exists($key, $wgAllMessagesSr_ec)) - return $wgAllMessagesSr_ec[$key]; - else - return parent::getMessage($key); - } - - /** - * Exports $wgMagicWordsSr_ec - * @return array - */ - function &getMagicWords() { - global $wgMagicWordsSr_ec; - return $wgMagicWordsSr_ec; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one. - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $mm = substr( $ts, 4, 2 ); - $m = 0 + $mm; - $mmmm = $this->getMonthName( $mm ); - $mmm = $this->getMonthAbbreviation( $mm ); - $dd = substr( $ts, 6, 2 ); - $d = 0 + $dd; - $yyyy = substr( $ts, 0, 4 ); - $yy = substr( $ts, 2, 2 ); - - switch( $format ) { - case '2': - case '8': - return "$d $mmmm $yyyy"; - case '3': - case '9': - return "$dd.$mm.$yyyy."; - case '4': - case '10': - return "$d.$m.$yyyy."; - case '5': - case '11': - return "$d. $mmm $yyyy."; - case '6': - case '12': - return "$d $mmm $yyyy"; - default: - return "$d. $mmmm $yyyy."; - } - - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function time( $ts, $adj = false, $format = true, $timecorrection = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - $hh = substr( $ts, 8, 2 ); - $h = 0 + $hh; - $mm = substr( $ts, 10, 2 ); - switch( $format ) { - case '7': - case '8': - case '9': - case '10': - case '11': - case '12': - return "$h:$mm"; - default: - return "$hh:$mm"; - } - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { - $datePreference = $this->dateFormat($format); - return $this->time( $ts, $adj, $datePreference, $timecorrection ) . ', ' . $this->date( $ts, $adj, $datePreference, $timecorrection ); - - } - +class LanguageSr_ec extends Language { function convertPlural( $count, $wordform1, $wordform2, $wordform3) { $count = str_replace ('.', '', $count); if ($count > 10 && floor(($count % 100) / 10) == 1) { diff --git a/languages/LanguageSr_el.deps.php b/languages/LanguageSr_el.deps.php index d465eed8c0..f39da2f2b9 100644 --- a/languages/LanguageSr_el.deps.php +++ b/languages/LanguageSr_el.deps.php @@ -5,5 +5,5 @@ // changed on a subsequent page view. // see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html -require_once( "LanguageSr_ec.php" ); +require_once( dirname(__FILE__).'/LanguageSr_ec.php' ); ?> diff --git a/languages/LanguageSr_el.php b/languages/LanguageSr_el.php index fbf8b238dd..cba1b57ead 100644 --- a/languages/LanguageSr_el.php +++ b/languages/LanguageSr_el.php @@ -4,264 +4,11 @@ * @subpackage Language */ -require_once( "LanguageUtf8.php" ); - -/* private */ $wgNamespaceNamesSr_el = array( - NS_MEDIA => "Medija", - NS_SPECIAL => "Posebno", - NS_MAIN => "", - NS_TALK => "Razgovor", - NS_USER => "Korisnik", - NS_USER_TALK => "Razgovor_sa_korisnikom", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => ($wgMetaNamespaceTalk ? $wgMetaNamespaceTalk : "Razgovor_o_".$wgMetaNamespace ), - NS_IMAGE => "Slika", - NS_IMAGE_TALK => "Razgovor_o_slici", - NS_MEDIAWIKI => "MedijaViki", - NS_MEDIAWIKI_TALK => "Razgovor_o_MedijaVikiju", - NS_TEMPLATE => 'Šablon', - NS_TEMPLATE_TALK => 'Razgovor_o_šablonu', - NS_HELP => 'Pomoć', - NS_HELP_TALK => 'Razgovor_o_pomoći', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Razgovor_o_kategoriji', -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsSr_el = array( - "Nikakva", "Pričvršćena levo", "Pričvršćena desno", "Plutajuća levo" -); - -/* private */ $wgSkinNamesSr_el = array( - "Obična", "Nostalgija", "Kelnsko plavo", "Pedington", "Monparnas" -) + $wgSkinNamesEn; - -/* private */ $wgUserTogglesSr_el = array( - 'nolangconversion', -) + $wgUserTogglesEn; - -/* private */ $wgDateFormatsSr_el = array( - 'Nije bitno', - '06:12, 5. januar 2001.', - '06:12, 5 januar 2001', - '06:12, 05.01.2001.', - '06:12, 5.1.2001.', - '06:12, 5. jan 2001.', - '06:12, 5 jan 2001', - '6:12, 5. januar 2001.', - '6:12, 5 januar 2001', - '6:12, 05.01.2001.', - '6:12, 5.1.2001.', - '6:12, 5. jan 2001.', - '6:12, 5 jan 2001', -); - -/* NOT USED IN STABLE VERSION */ -/* private */ $wgMagicWordsSr_el = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#Preusmeri', '#redirect', '#preusmeri', '#PREUSMERI' ), - 'notoc' => array( 0, '__NOTOC__', '__BEZSADRŽAJA__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__FORSIRANISADRŽAJ__' ), - 'toc' => array( 0, '__TOC__', '__SADRŽAJ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZ_IZMENA__', '__BEZIZMENA__' ), - 'start' => array( 0, '__START__', '__POČETAK__' ), - 'end' => array( 0, '__END__', '__KRAJ__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'TRENUTNIMESEC' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'TRENUTNIMESECIME' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'TRENUTNIMESECROD' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'TRENUTNIMESECSKR' ), - 'currentday' => array( 1, 'CURRENTDAY', 'TRENUTNIDAN' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'TRENUTNIDANIME' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'TRENUTNAGODINA' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'TRENUTNOVREME' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'BROJČLANAKA' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'BROJDATOTEKA', 'BROJFAJLOVA' ), - 'pagename' => array( 1, 'PAGENAME', 'STRANICA' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'STRANICE' ), - 'namespace' => array( 1, 'NAMESPACE', 'IMENSKIPROSTOR' ), - 'namespacee' => array( 1, 'NAMESPACEE', 'IMENSKIPROSTORI' ), - 'fullpagename' => array( 1, 'FULLPAGENAME', 'PUNOIMESTRANE' ), - 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'PUNOIMESTRANEE' ), - 'msg' => array( 0, 'MSG:', 'POR:' ), - 'subst' => array( 0, 'SUBST:', 'ZAMENI:' ), - 'msgnw' => array( 0, 'MSGNW:', 'NVPOR:' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini' ), - 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1' ), - 'img_right' => array( 1, 'right', 'desno', 'd' ), - 'img_left' => array( 1, 'left', 'levo', 'l' ), - 'img_none' => array( 1, 'none', 'n', 'bez' ), - 'img_width' => array( 1, '$1px', '$1piskel' , '$1p' ), - 'img_center' => array( 1, 'center', 'centre', 'centar', 'c' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'okvir', 'ram' ), - 'int' => array( 0, 'INT:', 'INT:' ), - 'sitename' => array( 1, 'SITENAME', 'IMESAJTA' ), - 'ns' => array( 0, 'NS:', 'IP:' ), - 'localurl' => array( 0, 'LOCALURL:', 'LOKALNAADRESA:' ), - 'localurle' => array( 0, 'LOCALURLE:', 'LOKALNEADRESE:' ), - 'server' => array( 0, 'SERVER', 'SERVER' ), - 'servername' => array( 0, 'SERVERNAME', 'IMESERVERA' ), - 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTA' ), - 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__BEZTC__' ), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__BEZCC__' ), - 'currentweek' => array( 1, 'CURRENTWEEK', 'TRENUTNANEDELjA' ), - 'currentdow' => array( 1, 'CURRENTDOW', 'TRENUTNIDOV' ), - 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZIJE' ), - 'plural' => array( 0, 'PLURAL:', 'MNOŽINA:' ), - 'fullurl' => array( 0, 'FULLURL:', 'PUNURL:' ), - 'fullurle' => array( 0, 'FULLURLE:', 'PUNURLE:' ), - 'lcfirst' => array( 0, 'LCFIRST:', 'LCPRVI:' ), - 'ucfirst' => array( 0, 'UCFIRST:', 'UCPRVI:' ), - 'lc' => array( 0, 'LC:', 'LC:' ), - 'uc' => array( 0, 'UC:', 'UC:' ), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSr_el.php'); -} - #-------------------------------------------------------------------------- # Internationalisation code #-------------------------------------------------------------------------- -class LanguageSr_el extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesSr_el; - return $wgNamespaceNamesSr_el; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsSr_el; - return $wgQuickbarSettingsSr_el; - } - - function getSkinNames() { - global $wgSkinNamesSr_el; - return $wgSkinNamesSr_el; - } - - function getDateFormats() { - global $wgDateFormatsSr_el; - return $wgDateFormatsSr_el; - } - - function getMessage( $key ) { - global $wgAllMessagesSr_el; - if(array_key_exists($key, $wgAllMessagesSr_el)) - return $wgAllMessagesSr_el[$key]; - else - return parent::getMessage($key); - } - - /** - * Exports $wgMagicWordsSr_el - * @return array - */ - function &getMagicWords() { - global $wgMagicWordsSr_el; - return $wgMagicWordsSr_el; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one. - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - - $mm = substr( $ts, 4, 2 ); - $m = 0 + $mm; - $mmmm = $this->getMonthName( $mm ); - $mmm = $this->getMonthAbbreviation( $mm ); - $dd = substr( $ts, 6, 2 ); - $d = 0 + $dd; - $yyyy = substr( $ts, 0, 4 ); - $yy = substr( $ts, 2, 2 ); - - switch( $format ) { - case '2': - case '8': - return "$d $mmmm $yyyy"; - case '3': - case '9': - return "$dd.$mm.$yyyy."; - case '4': - case '10': - return "$d.$m.$yyyy."; - case '5': - case '11': - return "$d. $mmm $yyyy."; - case '6': - case '12': - return "$d $mmm $yyyy"; - default: - return "$d. $mmmm $yyyy."; - } - - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function time( $ts, $adj = false, $format = true, $timecorrection = false ) { - - if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } - $hh = substr( $ts, 8, 2 ); - $h = 0 + $hh; - $mm = substr( $ts, 10, 2 ); - switch( $format ) { - case '7': - case '8': - case '9': - case '10': - case '11': - case '12': - return "$h:$mm"; - default: - return "$hh:$mm"; - } - } - - /** - * @access public - * @param mixed $ts the time format which needs to be turned into a - * date('YmdHis') format with wfTimestamp(TS_MW,$ts) - * @param bool $adj whether to adjust the time output according to the - * user configured offset ($timecorrection) - * @param mixed $format what format to return, if it's false output the - * default one (default true) - * @param string $timecorrection the time offset as returned by - * validateTimeZone() in Special:Preferences - * @return string - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { - $datePreference = $this->dateFormat($format); - return $this->time( $ts, $adj, $datePreference, $timecorrection ) . ', ' . $this->date( $ts, $adj, $datePreference, $timecorrection ); - - } - +class LanguageSr_el extends Language { function convertPlural( $count, $wordform1, $wordform2, $wordform3) { $count = str_replace ('.', '', $count); if ($count > 10 && floor(($count % 100) / 10) == 1) { diff --git a/languages/LanguageSr_jc.deps.php b/languages/LanguageSr_jc.deps.php deleted file mode 100644 index b1eff2696b..0000000000 --- a/languages/LanguageSr_jc.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/languages/LanguageSr_jc.php b/languages/LanguageSr_jc.php deleted file mode 100644 index 1ec4167600..0000000000 --- a/languages/LanguageSr_jc.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageSr_jl.deps.php b/languages/LanguageSr_jl.deps.php deleted file mode 100644 index 5c47e5f26d..0000000000 --- a/languages/LanguageSr_jl.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/languages/LanguageSr_jl.php b/languages/LanguageSr_jl.php deleted file mode 100644 index 5028c89bd8..0000000000 --- a/languages/LanguageSr_jl.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageSu.php b/languages/LanguageSu.php deleted file mode 100644 index 515863d11c..0000000000 --- a/languages/LanguageSu.php +++ /dev/null @@ -1,53 +0,0 @@ - 'Média', - NS_SPECIAL => 'Husus', - NS_MAIN => '', - NS_TALK => 'Obrolan', - NS_USER => 'Pamaké', - NS_USER_TALK => 'Obrolan_pamaké', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Obrolan_' . $wgMetaNamespace, - NS_IMAGE => 'Gambar', - NS_IMAGE_TALK => 'Obrolan_gambar', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Obrolan_MediaWiki', - NS_TEMPLATE => 'Citakan', - NS_TEMPLATE_TALK => 'Obrolan_citakan', - NS_HELP => 'Pitulung', - NS_HELP_TALK => 'Obrolan_pitulung', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Obrolan_kategori', -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesSu.php'); -} - -class LanguageSu extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesSu; - return $wgNamespaceNamesSu; - } - - function getMessage( $key ) { - global $wgAllMessagesSu; - if( isset( $wgAllMessagesSu[$key] ) ) { - return $wgAllMessagesSu[$key]; - } else { - return parent::getMessage( $key ); - } - } -} -?> diff --git a/languages/LanguageSv.php b/languages/LanguageSv.php deleted file mode 100644 index 4abb1e03b2..0000000000 --- a/languages/LanguageSv.php +++ /dev/null @@ -1,114 +0,0 @@ - "Standard", - 'nostalgia' => "Nostalgi", - 'cologneblue' => "Cologne Blå", - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesSv; - $this->mMessagesSv =& $wgAllMessagesSv; - - global $wgMetaNamespace; - $this->mNamespaceNamesSv = array( - NS_MEDIA => "Media", - NS_SPECIAL => "Special", - NS_MAIN => "", - NS_TALK => "Diskussion", - NS_USER => "Användare", - NS_USER_TALK => "Användardiskussion", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "diskussion", - NS_IMAGE => "Bild", - NS_IMAGE_TALK => "Bilddiskussion", - NS_MEDIAWIKI => "MediaWiki", - NS_MEDIAWIKI_TALK => "MediaWiki_diskussion", - NS_TEMPLATE => "Mall", - NS_TEMPLATE_TALK => "Malldiskussion", - NS_HELP => "Hjälp", - NS_HELP_TALK => "Hjälp_diskussion", - NS_CATEGORY => "Kategori", - NS_CATEGORY_TALK => "Kategoridiskussion" - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesSv + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsSv; - } - - function getSkinNames() { - return $this->mSkinNamesSv + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesSv[$key] ) ) { - return $this->mMessagesSv[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesSv; - } - - function linkTrail() { - return '/^([a-zåäöéÅÄÖÉ]+)(.*)$/sDu'; - } - - - function separatorTransformTable() { - return array( - ',' => "\xc2\xa0", // @bug 2749 - '.' => ',' - ); - } - - // "." is used as the character to separate the - // hours from the minutes in the date output - function timeSeparator( $format ) { - return '.'; - } - - function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false ) { - $format = $this->dateFormat( $format ); - if( $format == MW_DATE_ISO ) { - return parent::timeanddate( $ts, $adj, $format, $timecorrection ); - } else { - return $this->date( $ts, $adj, $format, $timecorrection ) . - " kl." . - $this->time( $ts, $adj, $format, $timecorrection ); - } - } - -} -?> diff --git a/languages/LanguageTa.php b/languages/LanguageTa.php deleted file mode 100644 index 778c16d3c3..0000000000 --- a/languages/LanguageTa.php +++ /dev/null @@ -1,105 +0,0 @@ - "இயல்பான", - 'nostalgia' => "பசுமை நினைவு (Nostalgia)", - 'cologneblue' => "கொலோன் (Cologne) நீலம் Blue", - 'smarty' => "பாடிங்டன் (Paddington)", - 'montparnasse' => "மொண்ட்பார்னாசே (Montparnasse)", - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesTa; - $this->mMessagesTa =& $wgAllMessagesTa; - - global $wgMetaNamespace; - $this->mNamespaceNamesTa = array( - NS_MEDIA => 'ஊடகம்', - NS_SPECIAL => 'சிறப்பு', - NS_MAIN => '', - NS_TALK => 'பேச்சு', - NS_USER => 'பயனர்', - NS_USER_TALK => 'பயனர்_பேச்சு', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_பேச்சு', - NS_IMAGE => 'படிமம்', - NS_IMAGE_TALK => 'படிமப்_பேச்சு', - NS_MEDIAWIKI => 'மீடியாவிக்கி', - NS_MEDIAWIKI_TALK => 'மீடியாவிக்கி_பேச்சு', - NS_TEMPLATE => 'வார்ப்புரு', - NS_TEMPLATE_TALK => 'வார்ப்புரு_பேச்சு', - NS_HELP => 'உதவி', - NS_HELP_TALK => 'உதவி_பேச்சு', - NS_CATEGORY => 'பகுப்பு', - NS_CATEGORY_TALK => 'பகுப்பு_பேச்சு', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesTa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsTa; - } - - function getSkinNames() { - return $this->mSkinNamesTa + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesTa[$key] ) ) { - return $this->mMessagesTa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesTa; - } - - function getNsIndex( $text ) { - $ns = $this->getNamespaces(); - - foreach ( $ns as $i => $n ) { - if ( strcasecmp( $n, $text ) == 0) - return $i; - } - - if ( strcasecmp( 'விக்கிபீடியா', $text) == 0) return NS_PROJECT; - if ( strcasecmp( 'விக்கிபீடியா_பேச்சு', $text) == 0) return NS_PROJECT_TALK; - if ( strcasecmp( 'உருவப்_பேச்சு', $text) == 0) return NS_IMAGE_TALK; - - return false; - } - - function linkTrail() { - /* Range from U+0B80 to U+0BFF */ - return "/^([\xE0\xAE\x80-\xE0\xAF\xBF]+)(.*)$/sDu"; - } - -} - -?> diff --git a/languages/LanguageTe.php b/languages/LanguageTe.php deleted file mode 100644 index 805983b18b..0000000000 --- a/languages/LanguageTe.php +++ /dev/null @@ -1,88 +0,0 @@ - - */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesTe.php'); -} - -class LanguageTe extends LanguageUtf8 { - private $mMessagesTe, $mNamespaceNamesTe = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesTe; - $this->mMessagesTe =& $wgAllMessagesTe; - - global $wgMetaNamespace; - $this->mNamespaceNamesTe = array( - NS_MEDIA => 'మీడియా', - NS_SPECIAL => 'ప్రత్యేక', - NS_MAIN => '', - NS_TALK => 'చర్చ', - NS_USER => 'సభ్యుడు', - NS_USER_TALK => 'సభ్యునిపై_చర్చ', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_చర్చ', - NS_IMAGE => 'బొమ్మ', - NS_IMAGE_TALK => 'బొమ్మపై_చర్చ', - NS_MEDIAWIKI => 'మీడియావికీ', - NS_MEDIAWIKI_TALK => 'మీడియావికీ_చర్చ', - NS_TEMPLATE => 'మూస', - NS_TEMPLATE_TALK => 'మూస_చర్చ', - NS_HELP => 'సహాయము', - NS_HELP_TALK => 'సహాయము_చర్చ', - NS_CATEGORY => 'వర్గం', - NS_CATEGORY_TALK => 'వర్గం_చర్చ' - ); - - } - - function getNamespaces() { - return $this->mNamespaceNamesTe + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesTe[$key] ) ) { - return $this->mMessagesTe[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesTe; - } - - function linkTrail() { - /* Range from U+0C01 to U+0C6F */ - return "/^([\xE0\xB0\x81-\xE0\xB1\xAF]+)(.*)$/sDu"; - } - - // nobody seems to use these anymore - /*function digitTransformTable() { - - return array( - '0' => '౦', - '1' => '౧', - '2' => '౨', - '3' => '౩', - '4' => '౪', - '5' => '౫', - '6' => '౬', - '7' => '౭', - '8' => '౮', - '9' => '౯' - ); - }*/ - -} -?> diff --git a/languages/LanguageTh.php b/languages/LanguageTh.php deleted file mode 100644 index 193a353d50..0000000000 --- a/languages/LanguageTh.php +++ /dev/null @@ -1,75 +0,0 @@ - 'สื่อ', - NS_SPECIAL => 'พิเศษ', - NS_MAIN => '', - NS_TALK => 'พูดคุย', - NS_USER => 'ผู้ใช้', - NS_USER_TALK => 'คุยกับผู้ใช้', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'คุยเรื่อง' . $wgMetaNamespace, - NS_IMAGE => 'ภาพ', - NS_IMAGE_TALK => 'คุยเรื่องภาพ', - NS_MEDIAWIKI => 'มีเดียวิกิ', - NS_MEDIAWIKI_TALK => 'คุยเรื่องมีเดียวิกิ', - NS_TEMPLATE => 'แม่แบบ', - NS_TEMPLATE_TALK => 'คุยเรื่องแม่แบบ', - NS_HELP => 'วิธีใช้', - NS_HELP_TALK => 'คุยเรื่องวิธีใช้', - NS_CATEGORY => 'หมวดหมู่', - NS_CATEGORY_TALK => 'คุยเรื่องหมวดหมู่', -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsTh = array( - "ไม่มี", "อยู่ทางซ้าย", "อยู่ทางขวา", "ลอยทางซ้าย" -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesTh.php'); -} - -#-------------------------------------------------------------------------- -# Internationalisation code -#-------------------------------------------------------------------------- - -require_once( "LanguageUtf8.php" ); - -class LanguageTh extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesTh; - return $wgNamespaceNamesTh; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsTh; - return $wgQuickbarSettingsTh; - } - - function getMessage( $key ) { - global $wgAllMessagesTh; - if( isset( $wgAllMessagesTh[$key] ) ) { - return $wgAllMessagesTh[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - global $wgAllMessagesTh; - return $wgAllMessagesTh; - } - -} - -?> diff --git a/languages/LanguageTr.php b/languages/LanguageTr.php index 82fa096def..67d68f60cc 100644 --- a/languages/LanguageTr.php +++ b/languages/LanguageTr.php @@ -5,76 +5,7 @@ * @package MediaWiki * @subpackage Language */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesTr.php'); -} - -class LanguageTr extends LanguageUtf8 { - - private $mDateFormatsTr = array( - MW_DATE_DEFAULT => 'Tercih yok', - MW_DATE_MDY => '16:12, Ocak 15, 2001', - MW_DATE_DMY => '16:12, 15 Ocak 2001', - MW_DATE_YMD => '16:12, 2001 Ocak 15', - MW_DATE_ISO => '2001-01-15 16:12:34' - ); - - function __construct() { - parent::__construct(); - - global $wgAllMessagesTr; - $this->mMessagesTr =& $wgAllMessagesTr; - - global $wgMetaNamespace; - $this->mNamespaceNamesTr = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Özel', - NS_MAIN => '', - NS_TALK => 'Tartışma', - NS_USER => 'Kullanıcı', - NS_USER_TALK => 'Kullanıcı_mesaj', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_tartışma', - NS_IMAGE => 'Resim', - NS_IMAGE_TALK => 'Resim_tartışma', - NS_MEDIAWIKI => 'MedyaViki', - NS_MEDIAWIKI_TALK => 'MedyaViki_tartışma', - NS_TEMPLATE => 'Şablon', - NS_TEMPLATE_TALK => 'Şablon_tartışma', - NS_HELP => 'Yardım', - NS_HELP_TALK => 'Yardım_tartışma', - NS_CATEGORY => 'Kategori', - NS_CATEGORY_TALK => 'Kategori_tartışma', - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesTr + parent::getNamespaces(); - } - - function getDateFormats() { - return $this->mDateFormatsTr; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesTr[$key] ) ) { - return $this->mMessagesTr[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesTr; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - +class LanguageTr extends Language { function ucfirst ( $string ) { if ( $string[0] == 'i' ) { return 'İ' . substr( $string, 1 ); diff --git a/languages/LanguageTt.php b/languages/LanguageTt.php deleted file mode 100644 index 163ec8115d..0000000000 --- a/languages/LanguageTt.php +++ /dev/null @@ -1,139 +0,0 @@ - 'Media', - NS_SPECIAL => 'Maxsus', - NS_MAIN => '', - NS_TALK => 'Bäxäs', - NS_USER => 'Äğzä', - NS_USER_TALK => "Äğzä_bäxäse", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_bäxäse', - NS_IMAGE => "Räsem", - NS_IMAGE_TALK => "Räsem_bäxäse", - NS_MEDIAWIKI => "MediaWiki", - NS_MEDIAWIKI_TALK => "MediaWiki_bäxäse", - NS_TEMPLATE => "Ürnäk", - NS_TEMPLATE_TALK => "Ürnäk_bäxäse", - NS_HELP => "Yärdäm", - NS_HELP_TALK => "Yärdäm_bäxäse", - NS_CATEGORY => "Törkem", - NS_CATEGORY_TALK => "Törkem_bäxäse" -) + $wgNamespaceNamesEn; - -/* private */ $wgDateFormatsTt = array( -# "köyläwsez", -); - -# Note to translators: -# Please include the English words as synonyms. This allows people -# from other wikis to contribute more easily. -# -/* private */ $wgMagicWordsTt = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#yünältü' ), - 'notoc' => array( 0, '__ETYUQ__' ), - 'forcetoc' => array( 0, '__ETTIQ__' ), - 'toc' => array( 0, '__ET__' ), - 'noeditsection' => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ), - 'start' => array( 0, '__BAŞLAW__' ), - 'currentmonth' => array( 1, 'AĞIMDAĞI_AY' ), - 'currentmonthname' => array( 1, 'AĞIMDAĞI_AY_İSEME' ), - 'currentday' => array( 1, 'AĞIMDAĞI_KÖN' ), - 'currentdayname' => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ), - 'currentyear' => array( 1, 'AĞIMDAĞI_YIL' ), - 'currenttime' => array( 1, 'AĞIMDAĞI_WAQIT' ), - 'numberofarticles' => array( 1, 'MÄQÄLÄ_SANI' ), - 'currentmonthnamegen' => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ), - 'pagename' => array( 1, 'BİTİSEME' ), - 'namespace' => array( 1, 'İSEMARA' ), - 'subst' => array( 0, 'TÖPÇEK:' ), - 'msgnw' => array( 0, 'MSGNW:' ), - 'end' => array( 0, '__AZAQ__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), - 'img_right' => array( 1, 'uñda' ), - 'img_left' => array( 1, 'sulda' ), - 'img_none' => array( 1, 'yuq' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), - 'int' => array( 0, 'EÇKE:' ), - 'sitename' => array( 1, 'SÄXİFÄİSEME' ), - 'ns' => array( 0, 'İA:' ), - 'localurl' => array( 0, 'URINLIURL:' ), - 'localurle' => array( 0, 'URINLIURLE:' ), - 'server' => array( 0, 'SERVER' ) -) + $wgMagicWordsEn; - -if (!$wgCachedMessageArrays) { - require_once('MessagesTt.php'); -} - -class LanguageTt extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesTt; - return $wgNamespaceNamesTt; - } - - function getDateFormats() { - global $wgDateFormatsTt; - return $wgDateFormatsTt; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $d = (0 + substr( $ts, 6, 2 )) . ". " . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " . - substr( $ts, 0, 4 ); - return $d; - } - - /** - * $format and $timecorrection are for compatibility with language::time - */ - function time($ts, $adj = false, $format = true, $timecorrection = false) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 ); - return $t; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj ); - } - - function getMessage( $key ) { - global $wgAllMessagesTt; - if( isset( $wgAllMessagesTt[$key] ) ) { - return $wgAllMessagesTt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function fallback8bitEncoding() { - # Windows codepage 1252 is a superset of iso 8859-1 - # override this to use difference source encoding to - # translate incoming 8-bit URLs. - return "windows-1254"; - } -} - -?> diff --git a/languages/LanguageTy.deps.php b/languages/LanguageTy.deps.php deleted file mode 100644 index 50e66fc686..0000000000 --- a/languages/LanguageTy.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageTy.php b/languages/LanguageTy.php deleted file mode 100644 index 37846e33a4..0000000000 --- a/languages/LanguageTy.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageFr.php'; - -class LanguageTy extends LanguageFr { - - function getFallbackLanguage() { - return 'fr'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageTyv.php b/languages/LanguageTyv.php index 1c7abe0b3f..aacfaff537 100644 --- a/languages/LanguageTyv.php +++ b/languages/LanguageTyv.php @@ -5,91 +5,12 @@ */ # From friends at tyvawiki.org -# Originally based upon LanguageRu.php - -require_once( 'LanguageUtf8.php' ); - -#-------------------------------------------------------------------------- -# Language-specific text -#-------------------------------------------------------------------------- - -/* private */ $wgNamespaceNamesTyv = array( - NS_MEDIA => 'Медиа', //Media - NS_SPECIAL => 'Тускай', //Special - NS_MAIN => '', - NS_TALK => 'Чугаа', //Talk - NS_USER => 'Aжыглакчы', //User - NS_USER_TALK => 'Aжыглакчы_чугаа', //User_talk - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_чугаа', //_talk - NS_IMAGE => 'Чурук', //Image - NS_IMAGE_TALK => 'Чурук_чугаа', //Image_talk - NS_MEDIAWIKI => 'МедиаВики', //MediaWiki - NS_MEDIAWIKI_TALK => 'МедиаВики_чугаа', //MediaWiki_talk - NS_TEMPLATE => 'Хээ', //Template - NS_TEMPLATE_TALK => 'Хээ_чугаа', //Template_talk - NS_HELP => 'Дуза', //Help - NS_HELP_TALK => 'Дуза_чугаа', //Help_talk - NS_CATEGORY => 'Бөлүк', //Category - NS_CATEGORY_TALK => 'Бөлүк_чугаа', //Category_talk -) + $wgNamespaceNamesEn; - -/* private */ $wgSkinNamesTyv = array( - 'standard' => 'Classic', //Classic - 'nostalgia' => 'Nostalgia', //Nostalgia - 'cologneblue' => 'Cologne Blue', //Cologne Blue - 'davinci' => 'ДаВинчи', //DaVinci - 'mono' => 'Моно', //Mono - 'monobook' => 'Моно-Ном', //MonoBook - 'myskin' => 'MySkin', //MySkin - 'chick' => 'Chick' //Chick -) + $wgSkinNamesEn; - -/* private */ $wgBookstoreListTyv = array( - 'ОЗОН' => 'http://www.ozon.ru/?context=advsearch_book&isbn=$1', - 'Books.Ru' => 'http://www.books.ru/shop/search/advanced?as%5Btype%5D=books&as%5Bname%5D=&as%5Bisbn%5D=$1&as%5Bauthor%5D=&as%5Bmaker%5D=&as%5Bcontents%5D=&as%5Binfo%5D=&as%5Bdate_after%5D=&as%5Bdate_before%5D=&as%5Bprice_less%5D=&as%5Bprice_more%5D=&as%5Bstrict%5D=%E4%E0&as%5Bsub%5D=%E8%F1%EA%E0%F2%FC&x=22&y=8', - 'Яндекс.Маркет' => 'http://market.yandex.ru/search.xml?text=$1', - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1', - 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', - 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', - 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1' -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesTyv.php'); -} - #-------------------------------------------------------------------------- # Internationalisation code #-------------------------------------------------------------------------- -class LanguageTyv extends LanguageUtf8 { - function __construct() { - global $wgNamespaceNamesTyv, $wgMetaNamespace; - parent::__construct(); - $wgNamespaceNamesTyv[NS_PROJECT_TALK] = $wgMetaNamespace . '_чугаа'; - } - - function getNamespaces() { - global $wgNamespaceNamesTyv; - return $wgNamespaceNamesTyv; - } - - function getSkinNames() { - global $wgSkinNamesTyv; - return $wgSkinNamesTyv; - } - - function getMessage( $key ) { - global $wgAllMessagesTyv; - return isset($wgAllMessagesTyv[$key]) ? $wgAllMessagesTyv[$key] : parent::getMessage($key); - } - - function fallback8bitEncoding() { - return "windows-1251"; - } - +class LanguageTyv extends Language { /** * Grammatical transformations, needed for inflected languages * Invoked by putting {{grammar:case|word}} in a message @@ -309,4 +230,4 @@ class LanguageTyv extends LanguageUtf8 { return $word; } } -?> \ No newline at end of file +?> diff --git a/languages/LanguageUdm.deps.php b/languages/LanguageUdm.deps.php deleted file mode 100644 index 65861099ee..0000000000 --- a/languages/LanguageUdm.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageUdm.php b/languages/LanguageUdm.php deleted file mode 100644 index d4d8a55fe7..0000000000 --- a/languages/LanguageUdm.php +++ /dev/null @@ -1,81 +0,0 @@ -mMessagesUdm =& $wgAllMessagesUdm; - - global $wgMetaNamespace; - $this->mNamespaceNamesUdm = array( - NS_MEDIA => 'Медиа', - NS_SPECIAL => 'Панель', - NS_MAIN => '', - NS_TALK => 'Вераськон', - NS_USER => 'Викиавтор', - NS_USER_TALK => 'Викиавтор_сярысь_вераськон', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_сярысь_вераськон', - NS_IMAGE => 'Суред', - NS_IMAGE_TALK => 'Суред_сярысь_вераськон', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_сярысь_вераськон', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Шаблон_сярысь_вераськон', - NS_HELP => 'Валэктон', - NS_HELP_TALK => 'Валэктон_сярысь_вераськон', - NS_CATEGORY => 'Категория', - NS_CATEGORY_TALK => 'Категория_сярысь_вераськон', - ); - - } - - function getFallbackLanguage() { - return 'ru'; - } - - function getNamespaces() { - return $this->mNamespaceNamesUdm + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesUdm[$key] ) ) { - return $this->mMessagesUdm[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesUdm; - } - - function linkTrail() { - return '/^([a-zа-яёӝӟӥӧӵ“»]+)(.*)$/sDu'; - } - - function fallback8bitEncoding() { - return 'windows-1251'; - } - - function separatorTransformTable() { - return array(',' => ' ', '.' => ',' ); - } - -} -?> diff --git a/languages/LanguageUg.php b/languages/LanguageUg.php deleted file mode 100644 index bd860547cf..0000000000 --- a/languages/LanguageUg.php +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/languages/LanguageUk.php b/languages/LanguageUk.php deleted file mode 100644 index a3bdfd51c4..0000000000 --- a/languages/LanguageUk.php +++ /dev/null @@ -1,98 +0,0 @@ - 'Медіа', - NS_SPECIAL => 'Спеціальні', - NS_MAIN => '', - NS_TALK => 'Обговорення', - NS_USER => 'Користувач', - NS_USER_TALK => 'Обговорення_користувача', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Обговорення_' . $wgMetaNamespace, - NS_IMAGE => 'Зображення', - NS_IMAGE_TALK => 'Обговорення_зображення', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Обговорення_MediaWiki', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Обговорення_шаблону', - NS_HELP => 'Довідка', - NS_HELP_TALK => 'Обговорення_довідки', - NS_CATEGORY => 'Категорія', - NS_CATEGORY_TALK => 'Обговорення_категорії' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsUk = array( - "Не показувати панель", "Фіксована зліва", "Фіксована справа", "Плаваюча зліва" -); - -/* private */ $wgSkinNamesUk = array( - 'standard' => "Стандартне", - 'nostalgia' => "Ностальгія", - 'cologneblue' => "Кельнське Синє" -) + $wgSkinNamesEn; - - -/* private */ $wgDateFormatsUk = array( -# "Немає значення", -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesUk.php'); -} - -class LanguageUk extends LanguageUtf8 { - - function getNamespaces() { - global $wgNamespaceNamesUk; - return $wgNamespaceNamesUk; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsUk; - return $wgQuickbarSettingsUk; - } - - function getSkinNames() { - global $wgSkinNamesUk; - return $wgSkinNamesUk; - } - - function getDateFormats() { - global $wgDateFormatsUk; - return $wgDateFormatsUk; - } - - function getMonthNameGen( $key ) { - global $wgMonthNamesGenEn, $wgContLang; - // see who called us and use the correct message function - if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) ) - return wfMsgForContent( $wgMonthNamesGenEn[$key-1] ); - else - return wfMsg( $wgMonthNamesGenEn[$key-1] ); - } - - function getMessage( $key ) { - global $wgAllMessagesUk; - if( isset( $wgAllMessagesUk[$key] ) ) { - return $wgAllMessagesUk[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function fallback8bitEncoding() { - return "windows-1251"; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - -} -?> \ No newline at end of file diff --git a/languages/LanguageUr.php b/languages/LanguageUr.php deleted file mode 100644 index 1b994bea6b..0000000000 --- a/languages/LanguageUr.php +++ /dev/null @@ -1,45 +0,0 @@ -mMessagesUr =& $wgAllMessagesUr; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesUr[$key] ) ) { - return $this->mMessagesUr[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesUr; - } - - function getDefaultUserOptions() { - $opt = parent::getDefaultUserOptions(); - $opt["quickbar"] = 2; # Right-to-left - $opt["underline"] = 0; # Underline is hard to read in Arabic script - return $opt; - } - - # For right-to-left language support - function isRTL() { - return true; - } -} - -?> diff --git a/languages/LanguageUtf8.php b/languages/LanguageUtf8.php deleted file mode 100644 index d738624b77..0000000000 --- a/languages/LanguageUtf8.php +++ /dev/null @@ -1,199 +0,0 @@ -get( $key1 = "$wgDBname:utf8:upper" ); - $wikiLowerChars = $wgMemc->get( $key2 = "$wgDBname:utf8:lower" ); - - if(empty( $wikiUpperChars) || empty($wikiLowerChars )) { - require_once( "includes/Utf8Case.php" ); - $wgMemc->set( $key1, $wikiUpperChars ); - $wgMemc->set( $key2, $wikiLowerChars ); - } -} - -/** - * Base stuff useful to all UTF-8 based language files - * @package MediaWiki - */ -class LanguageUtf8 extends Language { - - # These functions use mbstring library, if it is loaded - # or compiled and character mapping arrays otherwise. - # In case of language-specific character mismatch - # it should be dealt with in Language classes. - - function ucfirst( $str ) { - return LanguageUtf8::uc( $str, true ); - } - - function uc( $str, $first = false ) { - if ( function_exists( 'mb_strtoupper' ) ) - if ( $first ) - if ( LanguageUtf8::isMultibyte( $str ) ) - return mb_strtoupper( mb_substr( $str, 0, 1 ) ) . mb_substr( $str, 1 ); - else - return ucfirst( $str ); - else - return LanguageUtf8::isMultibyte( $str ) ? mb_strtoupper( $str ) : strtoupper( $str ); - else - if ( LanguageUtf8::isMultibyte( $str ) ) { - global $wikiUpperChars; - $x = $first ? '^' : ''; - return preg_replace( - "/$x([a-z]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", - "strtr( \"\$1\" , \$wikiUpperChars )", - $str - ); - } else - return $first ? ucfirst( $str ) : strtoupper( $str ); - } - - function lcfirst( $str ) { - return LanguageUtf8::lc( $str, true ); - } - - function lc( $str, $first = false ) { - if ( function_exists( 'mb_strtolower' ) ) - if ( $first ) - if ( LanguageUtf8::isMultibyte( $str ) ) - return mb_strtolower( mb_substr( $str, 0, 1 ) ) . mb_substr( $str, 1 ); - else - return strtolower( substr( $str, 0, 1 ) ) . substr( $str, 1 ); - else - return LanguageUtf8::isMultibyte( $str ) ? mb_strtolower( $str ) : strtolower( $str ); - else - if ( LanguageUtf8::isMultibyte( $str ) ) { - global $wikiLowerChars; - $x = $first ? '^' : ''; - return preg_replace( - "/$x([A-Z]|[\\xc0-\\xff][\\x80-\\xbf]*)/e", - "strtr( \"\$1\" , \$wikiLowerChars )", - $str - ); - } else - return $first ? strtolower( substr( $str, 0, 1 ) ) . substr( $str, 1 ) : strtolower( $str ); - } - - function isMultibyte( $str ) { - return (bool)preg_match( '/^[\x80-\xff]/', $str ); - } - - function stripForSearch( $string ) { - # MySQL fulltext index doesn't grok utf-8, so we - # need to fold cases and convert to hex - - # In Language:: it just returns lowercase, maybe - # all strtolower on stripped output or argument - # should be removed and all stripForSearch - # methods adjusted to that. - - wfProfileIn( "LanguageUtf8::stripForSearch" ); - if( function_exists( 'mb_strtolower' ) ) { - $out = preg_replace( - "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", - "'U8' . bin2hex( \"$1\" )", - mb_strtolower( $string ) ); - } else { - global $wikiLowerChars; - $out = preg_replace( - "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", - "'U8' . bin2hex( strtr( \"\$1\", \$wikiLowerChars ) )", - $string ); - } - wfProfileOut( "LanguageUtf8::stripForSearch" ); - return $out; - } - - function fallback8bitEncoding() { - # Windows codepage 1252 is a superset of iso 8859-1 - # override this to use difference source encoding to - # translate incoming 8-bit URLs. - return "windows-1252"; - } - - function checkTitleEncoding( $s ) { - global $wgInputEncoding; - - if( is_array( $s ) ) { - wfDebugDieBacktrace( 'Given array to checkTitleEncoding.' ); - } - # Check for non-UTF-8 URLs - $ishigh = preg_match( '/[\x80-\xff]/', $s); - if(!$ishigh) return $s; - - $isutf8 = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ); - if( $isutf8 ) return $s; - - return $this->iconv( $this->fallback8bitEncoding(), "utf-8", $s ); - } - - function firstChar( $s ) { - preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches); - - return isset( $matches[1] ) ? $matches[1] : ""; - } - - # Crop a string from the beginning or end to a certain number of bytes. - # (Bytes are used because our storage has limited byte lengths for some - # columns in the database.) Multibyte charsets will need to make sure that - # only whole characters are included! - # - # $length does not include the optional ellipsis. - # If $length is negative, snip from the beginning - function truncate( $string, $length, $ellipsis = "" ) { - if( $length == 0 ) { - return $ellipsis; - } - if ( strlen( $string ) <= abs( $length ) ) { - return $string; - } - if( $length > 0 ) { - $string = substr( $string, 0, $length ); - $char = ord( $string[strlen( $string ) - 1] ); - if ($char >= 0xc0) { - # We got the first byte only of a multibyte char; remove it. - $string = substr( $string, 0, -1 ); - } elseif( $char >= 0x80 && - preg_match( '/^(.*)(?:[\xe0-\xef][\x80-\xbf]|' . - '[\xf0-\xf7][\x80-\xbf]{1,2})$/', $string, $m ) ) { - # We chopped in the middle of a character; remove it - $string = $m[1]; - } - return $string . $ellipsis; - } else { - $string = substr( $string, $length ); - $char = ord( $string[0] ); - if( $char >= 0x80 && $char < 0xc0 ) { - # We chopped in the middle of a character; remove the whole thing - $string = preg_replace( '/^[\x80-\xbf]+/', '', $string ); - } - return $ellipsis . $string; - } - } -} - -} # ifdef MEDIAWIKI - -?> diff --git a/languages/LanguageVec.deps.php b/languages/LanguageVec.deps.php deleted file mode 100644 index 4b89673d11..0000000000 --- a/languages/LanguageVec.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageVec.php b/languages/LanguageVec.php deleted file mode 100644 index a87ddd8e2c..0000000000 --- a/languages/LanguageVec.php +++ /dev/null @@ -1,77 +0,0 @@ -mMessagesVec =& $wgAllMessagesVec; - - global $wgMetaNamespace; - $this->mNamespaceNamesVec = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Speciale', - NS_MAIN => '', - NS_TALK => 'Discussion', - NS_USER => 'Utente', - NS_USER_TALK => 'Discussion_utente', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Discussion_' . $wgMetaNamespace, - NS_IMAGE => 'Imagine', - NS_IMAGE_TALK => 'Discussion_imagine', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Discussion_template', - NS_HELP => 'Aiuto', - NS_HELP_TALK => 'Discussion_aiuto', - NS_CATEGORY => 'Categoria', - NS_CATEGORY_TALK => 'Discussion_categoria' - ); - - } - - function getFallbackLanguage() { - return 'it'; - } - - function getNamespaces() { - return $this->mNamespaceNamesVec + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsVec; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesVec[$key] ) ) { - return $this->mMessagesVec[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesVec; - } - -} - -?> diff --git a/languages/LanguageVi.php b/languages/LanguageVi.php index 4af13f6f01..4f9c4da360 100644 --- a/languages/LanguageVi.php +++ b/languages/LanguageVi.php @@ -8,125 +8,7 @@ * Last update 28 August 2005 (UTC) */ -require_once( 'LanguageUtf8.php' ); - -/* private */ $wgNamespaceNamesVi = array( - NS_MEDIA => 'Phương_tiện', - NS_SPECIAL => 'Đặc_biệt', - NS_MAIN => '', - NS_TALK => 'Thảo_luận', - NS_USER => 'Thành_viên', - NS_USER_TALK => 'Thảo_luận_Thành_viên', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => 'Thảo_luận_'.$wgMetaNamespace, - NS_IMAGE => 'Hình', - NS_IMAGE_TALK => 'Thảo_luận_Hình', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'Thảo_luận_MediaWiki', - NS_TEMPLATE => 'Tiêu_bản', - NS_TEMPLATE_TALK => 'Thảo_luận_Tiêu_bản', - NS_HELP => 'Trợ_giúp', - NS_HELP_TALK => 'Thảo_luận_Trợ_giúp', - NS_CATEGORY => 'Thể_loại', - NS_CATEGORY_TALK => 'Thảo_luận_Thể_loại' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsVi = array( - 'Không', 'Trái', 'Phải', 'Nổi bên trái' -); - -/* private */ $wgSkinNamesVi = array( - 'standard' => 'Cổ điển', - 'nostalgia' => 'Vọng cổ', - 'myskin' => 'Cá nhân' -) + $wgSkinNamesEn; - - /* private */ $wgMagicWordsVi = array( - 'redirect' => array( 0, '#redirect' , '#đổi' ), - 'notoc' => array( 0, '__NOTOC__' , '__KHÔNGMỤCMỤC__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__LUÔNMỤCLỤC__' ), - 'toc' => array( 0, '__TOC__' , '__MỤCLỤC__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__KHÔNGSỬAMỤC__' ), - 'start' => array( 0, '__START__' , '__BẮTĐẦU__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH' , 'THÁNGNÀY' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' , 'TÊNTHÁNGNÀY' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' , 'TÊNDÀITHÁNGNÀY' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' , 'TÊNNGẮNTHÁNGNÀY' ), - 'currentday' => array( 1, 'CURRENTDAY' , 'NGÀYNÀY' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME' , 'TÊNNGÀYNÀY' ), - 'currentyear' => array( 1, 'CURRENTYEAR' , 'NĂMNÀY' ), - 'currenttime' => array( 1, 'CURRENTTIME' , 'GIỜNÀY' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' , 'SỐBÀI' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES' , 'SỐTẬPTIN' ), - 'pagename' => array( 1, 'PAGENAME' , 'TÊNTRANG' ), - 'pagenamee' => array( 1, 'PAGENAMEE' , 'TÊNTRANG2' ), - 'namespace' => array( 1, 'NAMESPACE' , 'KHÔNGGIANTÊN' ), - 'msg' => array( 0, 'MSG:' , 'NHẮN:' ), - 'subst' => array( 0, 'SUBST:' , 'THẾ:' ), - 'msgnw' => array( 0, 'MSGNW:' , 'NHẮNMỚI:' ), - 'end' => array( 0, '__END__' , '__KẾT__' ), - 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' , 'nhỏ' ), - 'img_right' => array( 1, 'right' , 'phải' ), - 'img_left' => array( 1, 'left' , 'trái' ), - 'img_none' => array( 1, 'none' , 'không' ), - 'img_width' => array( 1, '$1px' ), - 'img_center' => array( 1, 'center', 'centre' , 'giữa' ), - 'img_framed' => array( 1, 'framed', 'enframed', 'frame' , 'khung'), - 'int' => array( 0, 'INT:' ), - 'sitename' => array( 1, 'SITENAME' , 'TÊNMẠNG' ), - 'ns' => array( 0, 'NS:' ), - 'localurl' => array( 0, 'LOCALURL:' ), - 'localurle' => array( 0, 'LOCALURLE:' ), - 'server' => array( 0, 'SERVER' , 'MÁYCHỦ' ), - 'servername' => array( 0, 'SERVERNAME' , 'TÊNMÁYCHỦ' ), - 'scriptpath' => array( 0, 'SCRIPTPATH' , '' ), - 'grammar' => array( 0, 'GRAMMAR:' , 'NGỮPHÁP' ), - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', -'__NOTC__', '__KHÔNGCHUYỂNTÊN__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', -'__NOCC__', '__KHÔNGCHUYỂNNỘIDUNG__'), - 'currentweek' => array( 1, 'CURRENTWEEK' , 'TUẦNNÀY' ), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' , 'SỐBẢN' ), - ); - -/* private */ $wgDateFormatsVi = array( - MW_DATE_DEFAULT => 'Không lựa chọn', - 1 => '16:12, tháng 1 ngày 15 năm 2001', - 2 => '16:12, ngày 15 tháng 1 năm 2001', - 3 => '16:12, năm 2001 tháng 1 ngày 15', - 4 => '', - MW_DATE_ISO => '2001-01-15 16:12:34' -); -global $wgRightsText; - -if (!$wgCachedMessageArrays) { - require_once('MessagesVi.php'); -} - - -class LanguageVi extends LanguageUtf8 { - - function getBookstoreList () { - global $wgBookstoreListVi ; - return $wgBookstoreListVi ; - } - - function getNamespaces() { - global $wgNamespaceNamesVi; - return $wgNamespaceNamesVi; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsVi; - return $wgQuickbarSettingsVi; - } - - function getSkinNames() { - global $wgSkinNamesVi; - return $wgSkinNamesVi; - } - +class LanguageVi extends Language { function date( $ts, $adj = false, $format = true, $timecorrection = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } @@ -187,30 +69,6 @@ class LanguageVi extends LanguageUtf8 { $names = explode(', ', $names); return $names[$key-1]; } - - function getDateFormats() { - global $wgDateFormatsVi; - return $wgDateFormatsVi; - } - - function &getMagicWords() { - global $wgMagicWordsVi; - return $wgMagicWordsVi; - } - - function separatorTransformTable() { - return array(',' => '.', '.' => ',' ); - } - - function getMessage( $key ) { - global $wgAllMessagesVi; - if( isset( $wgAllMessagesVi[$key] ) ) { - return $wgAllMessagesVi[$key]; - } else { - return parent::getMessage( $key ); - } - } - } ?> diff --git a/languages/LanguageWa.php b/languages/LanguageWa.php index 55c2e45f94..541c6de8f3 100644 --- a/languages/LanguageWa.php +++ b/languages/LanguageWa.php @@ -6,94 +6,10 @@ * @subpackage Language */ -require_once( "LanguageUtf8.php" ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesWa.php'); -} - # NOTE: cweri après "NOTE:" po des racsegnes so des ratournaedjes # k' i gn a. -define( 'MW_DATE_WLN_LONG', MW_DATE_DMY ); -define( 'MW_DATE_WLN_SHORT', '4' ); - -class LanguageWa extends LanguageUtf8 { - private $mMessagesWa, $mNamespaceNamesWa = null; - - private $mQuickbarSettingsWa = array( - "Nole bår", "Aclawêye a hintche", "Aclawêye a droete", "Flotante a hintche", "Flotante a droete" - ); - - # lists "no preferences", normall (long) walloon date, - # short walloon date, and ISO format - # MW_DATE_DMY is alias for long format, as it is dd mmmmm yyyy. - # "4" is chosen as value for short format, as it is used in LanguageVi.php - private $mDateFormatsWa = array( - MW_DATE_DEFAULT => 'Nole preferince', - #MW_DATE_DMY => '16:12, 15 January 2001', - #MW_DATE_MDY => '16:12, January 15, 2001', - #MW_DATE_YMD => '16:12, 2001 January 15', - MW_DATE_WLN_LONG => '15 di djanvî 2001 a 16:12', - MW_DATE_WLN_SHORT => '15/01/2001 a 16:12', - MW_DATE_ISO => '2001-01-15 16:12:34', - ); - - - - function __construct() { - parent::__construct(); - - global $wgAllMessagesWa; - $this->mMessagesWa =& $wgAllMessagesWa; - - global $wgMetaNamespace; - $this->mNamespaceNamesWa = array( - NS_MEDIA => "Media", /* Media */ - NS_SPECIAL => "Sipeciås", /* Special */ - NS_MAIN => "", - NS_TALK => "Copene", /* Talk */ - NS_USER => "Uzeu", /* User */ - NS_USER_TALK => "Uzeu_copene", /* User_talk */ - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "_copene", - NS_IMAGE => "Imådje", /* Image */ - NS_IMAGE_TALK => "Imådje_copene", /* Image_talk */ - NS_MEDIAWIKI => "MediaWiki", /* MediaWiki */ - NS_MEDIAWIKI_TALK => "MediaWiki_copene", /* MediaWiki_talk */ - NS_TEMPLATE => "Modele", - NS_TEMPLATE_TALK => "Modele_copene", - NS_HELP => "Aidance", - NS_HELP_TALK => "Aidance_copene", - NS_CATEGORY => "Categoreye", - NS_CATEGORY_TALK => "Categoreye_copene", - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesWa + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsWa; - } - - function getDateFormats() { - return $this->mDateFormatsWa; - } - - function getMessage( $key ) { - if( isset( $this->mMessagesWa[$key] ) ) { - return $this->mMessagesWa[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesWa; - } - +class LanguageWa extends Language { ### ### Dates in Walloon are "1î d' " for 1st of the month, ### " di " for months starting by a consoun, and @@ -108,14 +24,13 @@ class LanguageWa extends LanguageUtf8 { # ISO (YYYY-mm-dd) format # # we also output this format for YMD (eg: 2001 January 15) - if ( $datePreference == MW_DATE_ISO || - $datePreference == MW_DATE_YMD ) { + if ( $datePreference == 'ISO 8601' ) { $d = substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); return $d; } # dd/mm/YYYY format - if ( $datePreference == MW_DATE_WLN_SHORT ) { + if ( $datePreference == 'walloon short' ) { $d = substr($ts, 6, 2). '/' . substr($ts, 4, 2). '/' .substr($ts, 0, 4); return $d; } @@ -141,25 +56,16 @@ class LanguageWa extends LanguageUtf8 { return $d; } - function timeBeforeDate( ) { - return false; - } - - function timeDateSeparator( $format ) { - return " a "; - } - - # definixha del cogne po les limeros - # (number format definition) - # en: 12,345.67 -> wa: 12 345,67 - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - - function linkTrail() { - return '/^([a-zåâêîôûçéè]+)(.*)$/sDu'; + function timeanddate( $ts, $adj = false, $format = true, $tc = false ) { + if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } + $datePreference = $this->dateFormat( $format ); + if ( $datePreference == 'ISO 8601' ) { + return parent::timeanddate( $ts, $adj, $format, $tc ); + } else { + return $this->date( $ts, $adj, $format, $tc ) . ' a ' . + $this->time( $ts, $adj, $format, $tc ); + } } - } ?> diff --git a/languages/LanguageXal.php b/languages/LanguageXal.php deleted file mode 100644 index 1a32106909..0000000000 --- a/languages/LanguageXal.php +++ /dev/null @@ -1,51 +0,0 @@ - 'Аһар', - NS_SPECIAL => 'Көдлхнə', - NS_MAIN => '', - NS_TALK => 'Ухалвр', - NS_USER => 'Орлцач', - NS_USER_TALK => 'Орлцачна_тускар_ухалвр', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_тускар_ухалвр', - NS_IMAGE => 'Зург', - NS_IMAGE_TALK => 'Зургин_тускар_ухалвр', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_тускар_ухалвр', - NS_TEMPLATE => 'Зура', - NS_TEMPLATE_TALK => 'Зуран_тускар_ухалвр', - NS_HELP => 'Цəəлһлһн', - NS_HELP_TALK => 'Цəəлһлһин_тускар_ухалвр', - NS_CATEGORY => 'Янз', - NS_CATEGORY_TALK => 'Янзин_тускар_ухалвр', -) + $wgNamespaceNamesEn; - -if (!$wgCachedMessageArrays) { - require_once('MessagesXal.php'); -} - -class LanguageXal extends LanguageUtf8 { - function getNamespaces() { - global $wgNamespaceNamesXal; - return $wgNamespaceNamesXal; - } - - function getMessage( $key ) { - global $wgAllMessagesXal; - return isset($wgAllMessagesXal[$key]) ? $wgAllMessagesXal[$key] : parent::getMessage($key); - } - - function fallback8bitEncoding() { - return "windows-1251"; - } - -} -?> diff --git a/languages/LanguageYi.php b/languages/LanguageYi.php deleted file mode 100644 index ab84a050d2..0000000000 --- a/languages/LanguageYi.php +++ /dev/null @@ -1,106 +0,0 @@ -mMessagesYi =& $wgAllMessagesYi; - - global $wgMetaNamespace; - $this->mNamespaceNamesYi = array( - NS_MEDIA => 'מעדיע', - NS_SPECIAL => 'באַזונדער', - NS_MAIN => '', - NS_TALK => 'רעדן', - NS_USER => 'באַניצער', - NS_USER_TALK => 'באַניצער_רעדן', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_רעדן', - NS_IMAGE => 'בילד', - NS_IMAGE_TALK => 'בילד_רעדן', - NS_MEDIAWIKI => 'מעדיעװיקי', - NS_MEDIAWIKI_TALK => 'מעדיעװיקי_רעדן', - NS_TEMPLATE => 'מוסטער', - NS_TEMPLATE_TALK => 'מוסטער_רעדן', - NS_HELP => 'הילף', - NS_HELP_TALK => 'הילף_רעדן', - NS_CATEGORY => 'קאַטעגאָריע', - NS_CATEGORY_TALK => 'קאַטעגאָריע_רעדן' - ); - } - - function getNamespaces() { - return $this->mNamespaceNamesYi + parent::getNamespaces(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesYi[$key] ) ) { - return $this->mMessagesYi[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesYi; - } - - function getDefaultUserOptions() { - $opt = parent::getDefaultUserOptions(); - $opt['quickbar'] = 2; # Right-to-left - return $opt; - } - - # For right-to-left language support - function isRTL() { - return true; - } - - function getNsIndex( $text ) { - global $wgSitename; - - foreach ( $this->mNamespaceNamesYi as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - if( $wgSitename == 'װיקיפּעדיע' ) { - if( 0 == strcasecmp( 'וויקיפעדיע', $text ) ) return NS_PROJECT; - if( 0 == strcasecmp( 'וויקיפעדיע_רעדן', $text ) ) return NS_PROJECT_TALK; - } - if( $wgSitename == 'װיקיביבליאָטעק' ) { - if( 0 == strcasecmp( 'וויקיביבליאטעק', $text ) ) return NS_PROJECT; - if( 0 == strcasecmp( 'וויקיביבליאטעק_רעדן', $text ) ) return NS_PROJECT_TALK; - } - if( $wgSitename == 'װיקיװערטערבוך' ) { - if( 0 == strcasecmp( 'וויקיווערטערבוך', $text ) ) return NS_PROJECT; - if( 0 == strcasecmp( 'וויקיווערטערבוך_רעדן', $text ) ) return NS_PROJECT_TALK; - } - if( $wgSitename == 'װיקינײַעס' ) { - if( 0 == strcasecmp( 'וויקינייעס', $text ) ) return NS_PROJECT; - if( 0 == strcasecmp( 'וויקינייעס_רעדן', $text ) ) return NS_PROJECT_TALK; - } - if( 0 == strcasecmp( 'באזונדער', $text ) ) return NS_SPECIAL; - if( 0 == strcasecmp( 'באנוצער', $text ) ) return NS_USER; - if( 0 == strcasecmp( 'באנוצער_רעדן', $text ) ) return NS_USER_TALK; - if( 0 == strcasecmp( 'מעדיעוויקי', $text ) ) return NS_MEDIAWIKI; - if( 0 == strcasecmp( 'מעדיעוויקי_רעדן', $text ) ) return NS_MEDIAWIKI_TALK; - if( 0 == strcasecmp( 'קאטעגאריע', $text ) ) return NS_CATEGORY; - if( 0 == strcasecmp( 'קאטעגאריע_רעדן', $text ) ) return NS_CATEGORY_TALK; - return false; - } -} - -?> diff --git a/languages/LanguageZa.deps.php b/languages/LanguageZa.deps.php deleted file mode 100644 index 83b68393b2..0000000000 --- a/languages/LanguageZa.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageZa.php b/languages/LanguageZa.php deleted file mode 100644 index 99e60e1e53..0000000000 --- a/languages/LanguageZa.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -require_once 'LanguageZh_cn.php'; - -class LanguageZa extends LanguageZh_cn { - - function getFallbackLanguage() { - return 'zh-cn'; - } - - function getAllMessages() { - return null; - } - -} - -?> diff --git a/languages/LanguageZh.deps.php b/languages/LanguageZh.deps.php index b63ad7a71c..cf18594631 100644 --- a/languages/LanguageZh.deps.php +++ b/languages/LanguageZh.deps.php @@ -5,6 +5,6 @@ // changed on a subsequent page view. // see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html -require_once( "LanguageZh_cn.php" ); -require_once( "LanguageConverter.php" ); -?> \ No newline at end of file +require_once( dirname(__FILE__).'/LanguageZh_cn.php' ); +require_once( dirname(__FILE__).'/LanguageConverter.php' ); +?> diff --git a/languages/LanguageZh.php b/languages/LanguageZh.php index b24c08e6ae..0b1d6bfa1b 100644 --- a/languages/LanguageZh.php +++ b/languages/LanguageZh.php @@ -3,11 +3,8 @@ * @package MediaWiki * @subpackage Language */ -require_once( "LanguageConverter.php" ); -require_once( "LanguageZh_cn.php"); -require_once( "LanguageZh_tw.php"); -require_once( "LanguageZh_sg.php"); -require_once( "LanguageZh_hk.php"); +require_once( dirname(__FILE__).'/LanguageConverter.php' ); +require_once( dirname(__FILE__).'/LanguageZh_cn.php' ); class ZhConverter extends LanguageConverter { function loadDefaultTables() { @@ -45,6 +42,7 @@ class LanguageZh extends LanguageZh_cn { function __construct() { global $wgHooks; + parent::__construct(); $this->mConverter = new ZhConverter($this, 'zh', array('zh', 'zh-cn', 'zh-tw', 'zh-sg', 'zh-hk'), array('zh'=>'zh-cn', diff --git a/languages/LanguageZh_cn.php b/languages/LanguageZh_cn.php index c5a163620d..af94cb99ad 100644 --- a/languages/LanguageZh_cn.php +++ b/languages/LanguageZh_cn.php @@ -3,127 +3,7 @@ * @package MediaWiki * @subpackage Language */ -require_once( 'LanguageUtf8.php' ); - -/* private */ $wgNamespaceNamesZh_cn = array( - NS_MEDIA => 'Media', - NS_SPECIAL => 'Special', - NS_MAIN => '', - NS_TALK => 'Talk', - NS_USER => 'User', - NS_USER_TALK => 'User_talk', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_talk', - NS_IMAGE => 'Image', - NS_IMAGE_TALK => 'Image_talk', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_talk', - NS_TEMPLATE => 'Template', - NS_TEMPLATE_TALK => 'Template_talk', - NS_HELP => 'Help', - NS_HELP_TALK => 'Help_talk', - NS_CATEGORY => 'Category', - NS_CATEGORY_TALK => 'Category_talk' - -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsZh_cn = array( - "无", /* "None" */ - "左侧固定", /* "Fixed left" */ - "右侧固定", /* "Fixed right" */ - "左侧漂移" /* "Floating left" */ -); - -/* private */ $wgSkinNamesZh_cn = array( - 'standard' => "标准", - 'nostalgia' => "怀旧", - 'cologneblue' => "科隆香水蓝" -) + $wgSkinNamesEn; - -/* private */ $wgUserTogglesZh_cn = array( - 'nolangconversion', -) + $wgUserTogglesEn; - - -if (!$wgCachedMessageArrays) { - require_once('MessagesZh_cn.php'); -} - - -class LanguageZh_cn extends LanguageUtf8 { - - function getUserToggles() { - global $wgUserTogglesZh_cn; - return $wgUserTogglesZh_cn; - } - - function getNamespaces() { - global $wgNamespaceNamesZh_cn; - return $wgNamespaceNamesZh_cn; - } - - - function getNsIndex( $text ) { - global $wgNamespaceNamesZh_cn; - - foreach ( $wgNamespaceNamesZh_cn as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - # Aliases - if ( 0 == strcasecmp( "特殊", $text ) ) { return -1; } - if ( 0 == strcasecmp( "", $text ) ) { return ; } - if ( 0 == strcasecmp( "对话", $text ) ) { return 1; } - if ( 0 == strcasecmp( "用户", $text ) ) { return 2; } - if ( 0 == strcasecmp( "用户对话", $text ) ) { return 3; } - if ( 0 == strcasecmp( "{{SITENAME}}_对话", $text ) ) { return 5; } - if ( 0 == strcasecmp( "图像", $text ) ) { return 6; } - if ( 0 == strcasecmp( "图像对话", $text ) ) { return 7; } - return false; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsZh_cn; - return $wgQuickbarSettingsZh_cn; - } - - function getSkinNames() { - global $wgSkinNamesZh_cn; - return $wgSkinNamesZh_cn; - } - - function getDateFormats() { - return false; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function date( $ts, $adj = false, $format = true, $timecorrection = false ) { - if ( $adj ) { $ts = $this->userAdjust( $ts ); } - - $d = substr( $ts, 0, 4 ) . "年" . - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . - (0 + substr( $ts, 6, 2 )) . "日"; - return $d; - } - - /** - * $format and $timecorrection are for compatibility with Language::date - */ - function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) { - return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj ); - } - - function getMessage( $key ) { - global $wgAllMessagesZh_cn; - if( isset( $wgAllMessagesZh_cn[$key] ) ) - return $wgAllMessagesZh_cn[$key]; - else - return parent::getMessage( $key ); - } - - # inherit default iconv(), ucfirst(), checkTitleEncoding() - +class LanguageZh_cn extends Language { function stripForSearch( $string ) { # MySQL fulltext index doesn't grok utf-8, so we # need to fold cases and convert to hex @@ -134,7 +14,7 @@ class LanguageZh_cn extends LanguageUtf8 { "' U8' . bin2hex( \"$1\" )", mb_strtolower( $string ) ); } else { - global $wikiLowerChars; + list( , $wikiLowerChars ) = Language::getCaseMaps(); return preg_replace( "/([\\xc0-\\xff][\\x80-\\xbf]*)/e", "' U8' . bin2hex( strtr( \"\$1\", \$wikiLowerChars ) )", diff --git a/languages/LanguageZh_hk.deps.php b/languages/LanguageZh_hk.deps.php deleted file mode 100644 index 3f1cafd4e1..0000000000 --- a/languages/LanguageZh_hk.deps.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageZh_sg.deps.php b/languages/LanguageZh_sg.deps.php deleted file mode 100644 index 0373819335..0000000000 --- a/languages/LanguageZh_sg.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageZh_tw.deps.php b/languages/LanguageZh_tw.deps.php deleted file mode 100644 index 521b0e2634..0000000000 --- a/languages/LanguageZh_tw.deps.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/languages/LanguageZh_tw.php b/languages/LanguageZh_tw.php deleted file mode 100644 index a55f044617..0000000000 --- a/languages/LanguageZh_tw.php +++ /dev/null @@ -1,101 +0,0 @@ - "媒體", - NS_SPECIAL => "特殊", - NS_MAIN => "", - NS_TALK => "討論", - NS_USER => "用戶", - NS_USER_TALK => "用戶討論", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "討論", - NS_IMAGE => "圖像", - NS_IMAGE_TALK => "圖像討論", - NS_MEDIAWIKI => "媒體維基", - NS_MEDIAWIKI_TALK => "媒體維基討論", - NS_TEMPLATE => "樣板", - NS_TEMPLATE_TALK => "樣板討論", - NS_HELP => "幫助", - NS_HELP_TALK => "幫助討論", - NS_CATEGORY => "分類", - NS_CATEGORY_TALK => "分類討論" -); - -/* private */ $wgQuickbarSettingsZh_tw = array( - "無", /* "None" */ - "左側固定", /* "Fixed left" */ - "右側固定", /* "Fixed right" */ - "左側漂移" /* "Floating left" */ -); - -/* private */ $wgSkinNamesZh_tw = array( - "標準",/* "Standard" */ - "懷舊",/* "Nostalgia" */ - "科隆香水藍" /* "Cologne Blue" */ -) + $wgSkinNamesEn; - -/* private */ $wgBookstoreListZh_tw = array( - "博客來書店" => "http://www.books.com.tw/exep/openfind_book_keyword.php?cat1=4&key1=$1", - "三民書店" => "http://www.sanmin.com.tw/page-qsearch.asp?ct=search_isbn&qu=$1", - "天下書店" => "http://www.cwbook.com.tw/cw/TS.jsp?schType=product.isbn&schStr=$1", - "新絲書店" => "http://www.silkbook.com/function/Search_List_Book.asp?item=5&text=$1" -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesZh_tw.php'); -} - -class LanguageZh_tw extends LanguageZh_cn { - function getBookstoreList () { - global $wgBookstoreListZh_tw ; - return $wgBookstoreListZh_tw ; - } - - function getNamespaces() { - global $wgNamespaceNamesZh_tw; - return $wgNamespaceNamesZh_tw; - } - - - function getNsIndex( $text ) { - global $wgNamespaceNamesZh_tw; - - foreach ( $wgNamespaceNamesZh_tw as $i => $n ) { - if ( 0 == strcasecmp( $n, $text ) ) { return $i; } - } - # Aliases - if ( 0 == strcasecmp( "對話", $text ) ) { return 1; } - if ( 0 == strcasecmp( "用戶對話", $text ) ) { return 3; } - if ( 0 == strcasecmp( "維基百科對話", $text ) ) { return 5; } - if ( 0 == strcasecmp( "圖像對話", $text ) ) { return 7; } - return false; - } - - function getQuickbarSettings() { - global $wgQuickbarSettingsZh_tw; - return $wgQuickbarSettingsZh_tw; - } - - function getSkinNames() { - global $wgSkinNamesZh_tw; - return $wgSkinNamesZh_tw; - } - - function getMessage( $key ) { - global $wgAllMessagesZh_tw; - if(array_key_exists($key, $wgAllMessagesZh_tw)) - return $wgAllMessagesZh_tw[$key]; - else - return parent::getMessage( $key ); - } - -} - - -?> diff --git a/languages/MessagesAb.php b/languages/MessagesAb.php new file mode 100644 index 0000000000..7be9a31617 --- /dev/null +++ b/languages/MessagesAb.php @@ -0,0 +1,5 @@ + diff --git a/languages/MessagesAf.php b/languages/MessagesAf.php index 7b691fc1a6..379d28c5b1 100644 --- a/languages/MessagesAf.php +++ b/languages/MessagesAf.php @@ -1,7 +1,43 @@ 'Standaard', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Keulen blou', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Spesiaal', + NS_MAIN => '', + NS_TALK => 'Bespreking', + NS_USER => 'Gebruiker', + NS_USER_TALK => 'Gebruikerbespreking', + # NS_PROJECT set by $wgMetaNamespace, + NS_PROJECT_TALK => '$1bespreking', + NS_IMAGE => 'Beeld', + NS_IMAGE_TALK => 'Beeldbespreking', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWikibespreking', + NS_TEMPLATE => 'Sjabloon', + NS_TEMPLATE_TALK => 'Sjabloonbespreking', + NS_HELP => 'Hulp', + NS_HELP_TALK => 'Hulpbespreking', + NS_CATEGORY => 'Kategorie', + NS_CATEGORY_TALK => 'Kategoriebespreking' +); + +# South Africa uses space for thousands and comma for decimal +# Reference: AWS Reël 7.4 p. 52, 2002 edition +# glibc is wrong in this respect in some versions +$separatorTransformTable = array( ',' => "\xc2\xa0", '.' => ',' ); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; -/* private */ $wgAllMessagesAf = array( +$messages = array( # User Toggles "tog-underline" => "Onderstreep skakels.", @@ -54,7 +90,6 @@ # Bits of text used by many pages: # -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "Tuisblad", "about" => "Omtrent", "aboutsite" => "Inligting oor {{SITENAME}}", diff --git a/languages/MessagesAn.php b/languages/MessagesAn.php new file mode 100644 index 0000000000..a10cd23206 --- /dev/null +++ b/languages/MessagesAn.php @@ -0,0 +1,24 @@ + 'Media', + NS_SPECIAL => 'Espezial', + NS_MAIN => '', + NS_TALK => 'Descusión', + NS_USER => 'Usuario', + NS_USER_TALK => 'Descusión_usuario', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Descusión_$1', + NS_IMAGE => 'Imachen', + NS_IMAGE_TALK => 'Descusión_imachen', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Descusión_MediaWiki', + NS_TEMPLATE => 'Plantilla', + NS_TEMPLATE_TALK => 'Descusión_plantilla', + NS_HELP => 'Aduya', + NS_HELP_TALK => 'Descusión_aduya', + NS_CATEGORY => 'Categoría', + NS_CATEGORY_TALK => 'Descusión_categoría', +); + +?> diff --git a/languages/MessagesAr.php b/languages/MessagesAr.php index 8073648b8b..c316aa20ab 100644 --- a/languages/MessagesAr.php +++ b/languages/MessagesAr.php @@ -1,6 +1,120 @@ 2, + # Underlines seriously harm legibility. Force off: + 'underline' => 0, +); + +$namespaceNames = array( + NS_MEDIA => 'ملف', + NS_SPECIAL => 'خاص', + NS_MAIN => '', + NS_TALK => 'نقاش', + NS_USER => 'مستخدم', + NS_USER_TALK => 'نقاش_المستخدم', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'نقاش' . '_$1', + NS_IMAGE => 'صورة', + NS_IMAGE_TALK => 'نقاش_الصورة', + NS_MEDIAWIKI => 'ميدياويكي', + NS_MEDIAWIKI_TALK => 'نقاش_ميدياويكي', + NS_TEMPLATE => 'قالب', + NS_TEMPLATE_TALK => 'نقاش_قالب', + NS_HELP => 'مساعدة', + NS_HELP_TALK => 'نقاش_المساعدة', + NS_CATEGORY => 'تصنيف', + NS_CATEGORY_TALK => 'نقاش_التصنيف' +); + + +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#REDIRECT' , '#تحويل' ), + 'notoc' => array( 0, '__NOTOC__' , '__لافهرس__' ), + 'forcetoc' => array( 0, '__FORCETOC__' , '__لصق_فهرس__' ), + 'toc' => array( 0, '__TOC__' , '__فهرس__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__' , '__لاتحريرقسم__' ), + 'start' => array( 0, '__START__' , '__ابدأ__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH' , 'شهر' , 'شهر_حالي' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' , 'اسم_شهر', 'اسم_شهر_حالي'), +# 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), +# 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), + 'currentday' => array( 1, 'CURRENTDAY' , 'يوم' ), +# 'currentday2' => array( 1, 'CURRENTDAY2' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME' , 'اسم_يوم' ), + 'currentyear' => array( 1, 'CURRENTYEAR' , 'عام' ), + 'currenttime' => array( 1, 'CURRENTTIME' , 'وقت' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ,'عددالمقالات' , 'عدد_المقالات'), + 'numberoffiles' => array( 1, 'NUMBEROFFILES' , 'عددالملفات' , 'عدد_الملفات'), + 'pagename' => array( 1, 'PAGENAME' , 'اسم_صفحة' ), + 'pagenamee' => array( 1, 'PAGENAMEE' , 'عنوان_صفحة' ), + 'namespace' => array( 1, 'NAMESPACE' , 'نطاق' ), + 'namespacee' => array( 1, 'NAMESPACEE' , 'عنوان_نطاق' ), + 'fullpagename' => array( 1, 'FULLPAGENAME', 'اسم_كامل' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE' , 'عنوان_كامل' ), + 'msg' => array( 0, 'MSG:' , 'رسالة:' ), + 'subst' => array( 0, 'SUBST:' , 'نسخ:' , 'نسخ_قالب:' ), + 'msgnw' => array( 0, 'MSGNW:' , 'مصدر:' , 'مصدر_قالب:' ), + 'end' => array( 0, '__END__' , '__نهاية__', '__إنهاء__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' , 'تصغير' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1' ,'تصغير=$1' ), + 'img_right' => array( 1, 'right' , 'يمين' ), + 'img_left' => array( 1, 'left' , 'يسار' ), + 'img_none' => array( 1, 'none' , 'بدون' ), + 'img_width' => array( 1, '$1px' , '$1بك' ), + 'img_center' => array( 1, 'center', 'centre' , 'وسط' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame' , 'إطار', 'اطار'), + 'int' => array( 0, 'INT:' , 'محتوى:' ), + 'sitename' => array( 1, 'SITENAME' , 'اسم_الموقع' ), + 'ns' => array( 0, 'NS:' , 'نط:' ), + 'localurl' => array( 0, 'LOCALURL:' , 'عنوان:' ), +# 'localurle' => array( 0, 'LOCALURLE:' ), + 'server' => array( 0, 'SERVER' , 'العنوان' ), + 'servername' => array( 0, 'SERVERNAME' , 'اسم_عنوان' ), + 'scriptpath' => array( 0, 'SCRIPTPATH' , 'مسار' ), +# 'grammar' => array( 0, 'GRAMMAR:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', 'لاتحويل_عنوان'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', 'لاتحويل_محتوى' ), + 'currentweek' => array( 1, 'CURRENTWEEK' , 'أسبوع' ), + 'currentdow' => array( 1, 'CURRENTDOW' , 'رقم_يوم' ), + 'revisionid' => array( 1, 'REVISIONID' , 'نسخة' ), +# 'plural' => array( 0, 'PLURAL:' ), + 'fullurl' => array( 0, 'FULLURL:', 'عنوان_كامل:' ), +# 'fullurle' => array( 0, 'FULLURLE:' ), +# 'lcfirst' => array( 0, 'LCFIRST:' ), +# 'ucfirst' => array( 0, 'UCFIRST:' ), +# 'lc' => array( 0, 'LC:' ), +# 'uc' => array( 0, 'UC:' ), +# 'raw' => array( 0, 'RAW:' ), +); + +$digitTransformTable = array( + '0' => '٠', + '1' => '١', + '2' => '٢', + '3' => '٣', + '4' => '٤', + '5' => '٥', + '6' => '٦', + '7' => '٧', + '8' => '٨', + '9' => '٩', + '.' => '٫', // wrong table? + ',' => '٬' +); + +$messages = array( # Dates 'sunday' => 'الأحد', 'monday' => 'الإثنين', @@ -20,6 +134,17 @@ 'september' => 'سبتمبر', 'november' => 'نوفمبر', 'december' => 'ديسمبر', +'jan' => 'يناير', +'feb' => 'فبراير', +'mar' => 'مارس', +'apr' => 'ابريل', +'may' => 'مايو', +'jun' => 'يونيو', +'jul' => 'يوليو', +'aug' => 'أغسطس', +'sep' => 'سبتمبر', +'nov' => 'نوفمبر', +'dec' => 'ديسمبر', # Bits of text used by many pages: # diff --git a/languages/MessagesArc.php b/languages/MessagesArc.php new file mode 100644 index 0000000000..400e7d5f3c --- /dev/null +++ b/languages/MessagesArc.php @@ -0,0 +1,15 @@ + 2, +); + +?> diff --git a/languages/MessagesAs.php b/languages/MessagesAs.php new file mode 100644 index 0000000000..3ab1c32ef3 --- /dev/null +++ b/languages/MessagesAs.php @@ -0,0 +1,20 @@ + '০', + '1' => '১', + '2' => '২', + '3' => '৩', + '4' => '৪', + '5' => '৫', + '6' => '৬', + '7' => '৭', + '8' => '৮', + '9' => '৯' +); +?> diff --git a/languages/MessagesAst.php b/languages/MessagesAst.php new file mode 100644 index 0000000000..5fcd7d5d72 --- /dev/null +++ b/languages/MessagesAst.php @@ -0,0 +1,29 @@ + 'Media', + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discusión', + NS_USER => 'Usuariu', + NS_USER_TALK => 'Usuariu_discusión', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_discusión', + NS_IMAGE => 'Imaxen', + NS_IMAGE_TALK => 'Imaxen_discusión', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_discusión', + NS_TEMPLATE => 'Plantilla', + NS_TEMPLATE_TALK => 'Plantilla_discusión', + NS_HELP => 'Ayuda', + NS_HELP_TALK => 'Ayuda_discusión', + NS_CATEGORY => 'Categoría', + NS_CATEGORY_TALK => 'Categoría_discusión', +); + +?> diff --git a/languages/MessagesAv.php b/languages/MessagesAv.php new file mode 100644 index 0000000000..39a715bf8b --- /dev/null +++ b/languages/MessagesAv.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/languages/MessagesAy.php b/languages/MessagesAy.php new file mode 100644 index 0000000000..cd0d143bef --- /dev/null +++ b/languages/MessagesAy.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesAz.php b/languages/MessagesAz.php index c0f7bbbc2d..d7adbbb5c4 100644 --- a/languages/MessagesAz.php +++ b/languages/MessagesAz.php @@ -1,7 +1,35 @@ 'Mediya', + NS_SPECIAL => 'Xüsusi', + NS_MAIN => '', + NS_TALK => 'Müzakirə', + NS_USER => 'İstifadəçi', + NS_USER_TALK => 'İstifadəçi_müzakirəsi', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_müzakirəsi', + NS_IMAGE => 'Şəkil', + NS_IMAGE_TALK => 'Şəkil_müzakirəsi', + NS_MEDIAWIKI => 'MediyaViki', + NS_MEDIAWIKI_TALK => 'MediyaViki_müzakirəsi', + NS_TEMPLATE => 'Şablon', + NS_TEMPLATE_TALK => 'Şablon_müzakirəsi', + NS_HELP => 'Kömək', + NS_HELP_TALK => 'Kömək_müzakirəsi', + NS_CATEGORY => 'Kateqoriya', + NS_CATEGORY_TALK => 'Kateqoriya_müzakirəsi', +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); + -global $wgAllMessagesAz; -$wgAllMessagesAz = array( +$messages = array( # User preference toggles # Kullanıcı seçenekleri 'tog-fancysig' => 'Xam imza (daxili bağlantı yaratmaz)', diff --git a/languages/MessagesBa.php b/languages/MessagesBa.php new file mode 100644 index 0000000000..e206b1cccc --- /dev/null +++ b/languages/MessagesBa.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesBat_smg.php b/languages/MessagesBat_smg.php new file mode 100644 index 0000000000..f072854fc1 --- /dev/null +++ b/languages/MessagesBat_smg.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesBe.php b/languages/MessagesBe.php index c4a8213b9e..e634ba83d1 100644 --- a/languages/MessagesBe.php +++ b/languages/MessagesBe.php @@ -1,7 +1,142 @@ 'Клясычны', + 'nostalgia' => 'Настальгія', + 'cologneblue' => 'Кёльнскі смутак', + 'davinci' => 'Да Вінчы', + 'mono' => 'Мона', + 'monobook' => 'Монакніга', + 'myskin' => 'MySkin', + 'chick' => 'Цыпа' +); + +$datePreferences = array( + 'default', + 'dmy', + 'ISO 8601', +); + +$defaultDateFormat = 'dmy'; + +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j.F.Y', + 'dmy both' => 'H:i, j.F.Y', +); + +$magicWords = array( + 'redirect' => array( 0, '#перанакіраваньне', '#redirect' ), + 'notoc' => array( 0, '__NOTOC__', '__БЯЗЬ_ЗЬМЕСТУ__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__ЗЬМЕСТ_ПРЫМУСАМ__' ), + 'toc' => array( 0, '__TOC__', '__ЗЬМЕСТ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_РЭДАГАВАНЬНЯ_СЭКЦЫІ__' ), + 'start' => array( 0, '__START__', '__ПАЧАТАК__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'БЯГУЧЫ_МЕСЯЦ' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'НАЗВА_БЯГУЧАГА_МЕСЯЦА' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'НАЗВА_БЯГУЧАГА_МЕСЯЦА_Ў_РОДНЫМ_СКЛОНЕ' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'СКАРОЧАНАЯ_НАЗВА_БЯГУЧАГА_МЕСЯЦА' ), + 'currentday' => array( 1, 'CURRENTDAY', 'БЯГУЧЫ_ДЗЕНЬ' ), + 'currentday2' => array( 1, 'CURRENTDAY2', 'БЯГУЧЫ_ДЗЕНЬ_2' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'НАЗВА_БЯГУЧАГА_ДНЯ' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'БЯГУЧЫ_ГОД' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'БЯГУЧЫ_ЧАС' ), + 'numberofpages' => array( 1, 'NUMBEROFPAGES', 'КОЛЬКАСЬЦЬ_СТАРОНАК' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'КОЛЬКАСЬЦЬ_АРТЫКУЛАЎ' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'КОЛЬКАСЬЦЬ_ФАЙЛАЎ' ), + 'numberofusers' => array( 1, 'NUMBEROFUSERS', 'КОЛЬКАСЬЦЬ_УДЗЕЛЬНІКАЎ' ), + 'pagename' => array( 1, 'PAGENAME', 'НАЗВА_СТАРОНКІ' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'НАЗВА_СТАРОНКІ_2' ), + 'namespace' => array( 1, 'NAMESPACE', 'ПРАСТОРА_НАЗВАЎ' ), + 'namespacee' => array( 1, 'NAMESPACEE', 'ПРАСТОРА_НАЗВАЎ_2' ), + 'talkspace' => array( 1, 'TALKSPACE', 'ПРАСТОРА_НАЗВАЎ_АБМЕРКАВАНЬНЯ' ), + 'talkspacee' => array( 1, 'TALKSPACEE', 'ПРАСТОРА_НАЗВАЎ_АБМЕРКАВАНЬНЯ_2' ), + 'subjectspace' => array( 1, 'SUBJECTSPACE', 'ARTICLESPACE', 'ПРАСТОРА_НАЗВАЎ_ПРАДМЕТУ', 'ПРАСТОРА_НАЗВАЎ_АРТЫКУЛА' ), + 'subjectspacee' => array( 1, 'SUBJECTSPACEE', 'ARTICLESPACEE', 'ПРАСТОРА_НАЗВАЎ_ПРАДМЕТУ_2', 'ПРАСТОРА_НАЗВАЎ_АРТЫКУЛА_2' ), + 'fullpagename' => array( 1, 'FULLPAGENAME', 'ПОЎНАЯ_НАЗВА_СТАРОНКІ' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'ПОЎНАЯ_НАЗВА_СТАРОНКІ_2' ), + 'subpagename' => array( 1, 'SUBPAGENAME', 'НАЗВА_ПАДСТАРОНКІ' ), + 'subpagenamee' => array( 1, 'SUBPAGENAMEE', 'НАЗВА_ПАДСТАРОНКІ_2' ), + 'basepagename' => array( 1, 'BASEPAGENAME', 'НАЗВА_БАЗАВАЙ_СТАРОНКІ' ), + 'basepagenamee' => array( 1, 'BASEPAGENAMEE', 'НАЗВА_БАЗАВАЙ_СТАРОНКІ_2' ), + 'talkpagename' => array( 1, 'TALKPAGENAME', 'НАЗВА_СТАРОНКІ_АБМЕРКАВАНЬНЯ' ), + 'talkpagenamee' => array( 1, 'TALKPAGENAMEE', 'НАЗВА_СТАРОНКІ_АБМЕРКАВАНЬНЯ_2' ), + 'subjectpagename' => array( 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME', 'НАЗВА_СТАРОНКІ_ПРАДМЕТУ', 'НАЗВА_СТАРОНКІ_АРТЫКУЛА' ), + 'subjectpagenamee' => array( 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE', 'НАЗВА_СТАРОНКІ_ПРАДМЕТУ_2', 'НАЗВА_СТАРОНКІ_АРТЫКУЛА_2' ), + 'msg' => array( 0, 'MSG:', 'ПАВЕДАМЛЕНЬНЕ:' ), + 'subst' => array( 0, 'SUBST:', 'ПАДСТАНОЎКА:' ), + 'msgnw' => array( 0, 'MSGNW:', 'ПАВЕДАМЛЕНЬНЕ_БЯЗЬ_ВІКІ:' ), + 'end' => array( 0, '__END__', '__КАНЕЦ__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'значак', 'міні' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'значак=$1', 'міні=$1' ), + 'img_right' => array( 1, 'right', 'справа' ), + 'img_left' => array( 1, 'left', 'зьлева' ), + 'img_none' => array( 1, 'none', 'няма' ), + 'img_width' => array( 1, '$1px', '$1пкс' ), + 'img_center' => array( 1, 'center', 'centre', 'цэнтар' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'НАЗВА_САЙТУ' ), + 'ns' => array( 0, 'NS:', 'ПН:' ), + 'localurl' => array( 0, 'LOCALURL:', 'ЛЯКАЛЬНЫ_АДРАС:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'ЛЯКАЛЬНЫ_АДРАС_2:' ), + 'server' => array( 0, 'SERVER', 'СЭРВЭР' ), + 'servername' => array( 0, 'SERVERNAME', 'НАЗВА_СЭРВЭРА' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'ШЛЯХ_ДА_СКРЫПТА' ), + 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТЫКА:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗ_КАНВЭРТАЦЫІ_НАЗВЫ__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗ_КАНВЭРТАЦЫІ_ТЭКСТУ__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'БЯГУЧЫ_ТЫДЗЕНЬ' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'БЯГУЧЫ_ДЗЕНЬ_ТЫДНЯ' ), + 'revisionid' => array( 1, 'REVISIONID', 'ID_ВЭРСІІ' ), + 'plural' => array( 0, 'PLURAL:', 'МНОЖНЫ_ЛІК:'), + 'fullurl' => array( 0, 'FULLURL:', 'ПОЎНЫ_АДРАС:' ), + 'fullurle' => array( 0, 'FULLURLE:', 'ПОЎНЫ_АДРАС_2:' ), + 'lcfirst' => array( 0, 'LCFIRST:', 'ПЕРШАЯ_ЛІТАРА_МАЛАЯ:' ), + 'ucfirst' => array( 0, 'UCFIRST:', 'ПЕРШАЯ_ЛІТАРА_ВЯЛІКАЯ:' ), + 'lc' => array( 0, 'LC:', 'МАЛЫМІ_ЛІТАРАМІ:' ), + 'uc' => array( 0, 'UC:', 'ВЯЛІКІМІ_ЛІТАРАМІ:' ), + 'raw' => array( 0, 'RAW:', 'НЕАПРАЦАВАНЫ' ), + 'displaytitle' => array( 1, 'DISPLAYTITLE', 'АДЛЮСТРАВАНАЯ_НАЗВА' ), + 'rawsuffix' => array( 1, 'R', 'Н' ), + 'newsectionlink' => array( 1, '__NEWSECTIONLINK__', '__СПАСЫЛКА_НА_НОВУЮ_СЭКЦЫЮ__' ), + 'currentversion' => array( 1, 'CURRENTVERSION', 'БЯГУЧАЯ_ВЭРСІЯ' ), + 'urlencode' => array( 0, 'URLENCODE:' ), +); +$namespaceNames = array( + NS_MEDIA => 'Мэдыя', + NS_SPECIAL => 'Спэцыяльныя', + NS_MAIN => '', + NS_TALK => 'Абмеркаваньне', + NS_USER => 'Удзельнік', + NS_USER_TALK => 'Гутаркі_ўдзельніка', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Абмеркаваньне_$1', + NS_IMAGE => 'Выява', + NS_IMAGE_TALK => 'Абмеркаваньне_выявы', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Абмеркаваньне_MediaWiki', + NS_TEMPLATE => 'Шаблён', + NS_TEMPLATE_TALK => 'Абмеркаваньне_шаблёну', + NS_HELP => 'Дапамога', + NS_HELP_TALK => 'Абмеркаваньне_дапамогі', + NS_CATEGORY => 'Катэгорыя', + NS_CATEGORY_TALK => 'Абмеркаваньне_катэгорыі' +); +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([абвгґджзеёжзійклмнопрстуўфхцчшыьэюяćčłńśšŭźža-z]+)(.*)$/sDu'; + + +$messages = array( # Belarusian Cyrillic alphabet: # Аа Бб Вв Гг Дд (ДЖдж ДЗдз) Ее Ёё Жж Зз Іі Йй Кк Лл Мм Нн Оо Пп Рр Сс Тт Уу Ўў Фф Хх Цц Чч Шш Ыы Ьь Ээ Юю Яя # Short ([^a-z]): абвгд (ДЖдж ДЗдз) еёжзійклмнопрстуўфхцчшыьэюя @@ -11,7 +146,6 @@ $wgAllMessagesBe = array( # Short ([^a-z]): ćč (DŽdž) łńśšŭźž # Note: use /u (unicode) and /i to turn of case-sensativity. -'linktrail' => '/^([абвгґджзеёжзійклмнопрстуўфхцчшыьэюяćčłńśšŭźža-z]+)(.*)$/sDu', '1movedto2' => '[[$1]] перанесеная ў [[$2]]', '1movedto2_redir' => '[[$1]] перанесеная ў [[$2]] з выдаленьнем перанакіраваньня', diff --git a/languages/MessagesBg.php b/languages/MessagesBg.php index e7032f1c6b..61409bcaa0 100644 --- a/languages/MessagesBg.php +++ b/languages/MessagesBg.php @@ -1,6 +1,103 @@ 'Медия', + NS_SPECIAL => 'Специални', + NS_MAIN => '', + NS_TALK => 'Беседа', + NS_USER => 'Потребител', + NS_USER_TALK => 'Потребител_беседа', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_беседа', + NS_IMAGE => 'Картинка', + NS_IMAGE_TALK => 'Картинка_беседа', + NS_MEDIAWIKI => 'МедияУики', + NS_MEDIAWIKI_TALK => 'МедияУики_беседа', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Шаблон_беседа', + NS_HELP => 'Помощ', + NS_HELP_TALK => 'Помощ_беседа', + NS_CATEGORY => 'Категория', + NS_CATEGORY_TALK => 'Категория_беседа' +); + +$quickbarSettings = array( + 'Без меню', 'Неподвижно вляво', 'Неподвижно вдясно', 'Плаващо вляво', 'Плаващо вдясно' +); + +$skinNames = array( + 'standard' => 'Класика', + 'nostalgia' => 'Носталгия', + 'cologneblue' => 'Кьолнско синьо', + 'smarty' => 'Падингтън', + 'montparnasse' => 'Монпарнас', + 'davinci' => 'ДаВинчи', + 'mono' => 'Моно', + 'monobook' => 'Монобук', + 'myskin' => 'Мой облик', +); + +$datePreferences = false; + +$bookstoreList = array( + 'books.bg' => 'http://www.books.bg/ISBN/$1', +); + +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect', '#пренасочване', '#виж' ), + 'notoc' => array( 0, '__NOTOC__', '__БЕЗСЪДЪРЖАНИЕ__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__СЪССЪДЪРЖАНИЕ__' ), + 'toc' => array( 0, '__TOC__', '__СЪДЪРЖАНИЕ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_РЕДАКТИРАНЕ_НА_РАЗДЕЛИ__' ), + 'start' => array( 0, '__START__', '__НАЧАЛО__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТЕКУЩМЕСЕЦ' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'ТЕКУЩМЕСЕЦИМЕ' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'ТЕКУЩМЕСЕЦИМЕРОД' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ТЕКУЩМЕСЕЦСЪКР' ), + 'currentday' => array( 1, 'CURRENTDAY', 'ТЕКУЩДЕН' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'ТЕКУЩДЕНИМЕ' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'ТЕКУЩАГОДИНА' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'ТЕКУЩОВРЕМЕ' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЙСТАТИИ' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'БРОЙФАЙЛОВЕ' ), + 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦАИ' ), + 'namespace' => array( 1, 'NAMESPACE', 'ИМЕННОПРОСТРАНСТВО' ), + 'subst' => array( 0, 'SUBST:', 'ЗАМЕСТ:' ), + 'msgnw' => array( 0, 'MSGNW:', 'СЪОБЩNW:' ), + 'end' => array( 0, '__END__', '__КРАЙ__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1'), + 'img_right' => array( 1, 'right', 'вдясно', 'дясно', 'д' ), + 'img_left' => array( 1, 'left', 'вляво', 'ляво', 'л' ), + 'img_none' => array( 1, 'none', 'н' ), + 'img_width' => array( 1, '$1px', '$1пкс' , '$1п' ), + 'img_center' => array( 1, 'center', 'centre', 'център', 'центр', 'ц' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка', 'врамка' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'ИМЕНАСАЙТА' ), + 'ns' => array( 0, 'NS:', 'ИП:' ), + 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛЕНАДРЕС:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛЕНАДРЕСИ:' ), + 'server' => array( 0, 'SERVER', 'СЪРВЪР' ), + 'servername' => array( 0, 'SERVERNAME', 'ИМЕНАСЪРВЪРА' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'ПЪТДОСКРИПТА' ), + 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), + 'currentweek' => array( 1, 'CURRENTWEEK', 'ТЕКУЩАСЕДМИЦА'), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' ), +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); -/* private */ $wgAllMessagesBg = array( +$messages = array( # User toggles 'tog-underline' => 'Подчертаване на препратките', diff --git a/languages/MessagesBm.php b/languages/MessagesBm.php new file mode 100644 index 0000000000..8dd53fe4c8 --- /dev/null +++ b/languages/MessagesBm.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesBn.php b/languages/MessagesBn.php index 905fadd693..b6c1528d56 100644 --- a/languages/MessagesBn.php +++ b/languages/MessagesBn.php @@ -1,7 +1,38 @@ 'বিশেষ', + NS_MAIN => '', + NS_TALK => 'আলাপ', + NS_USER => 'ব্যবহারকারী', + NS_USER_TALK => 'ব্যবহারকারী_আলাপ', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_আলাপ', + NS_IMAGE => 'চিত্র', + NS_IMAGE_TALK => 'চিত্র_আলাপ', + NS_MEDIAWIKI_TALK => 'MediaWiki_আলাপ' +); +$datePreferences = false; +$digitTransformTable = array( + '0' => '০', + '1' => '১', + '2' => '২', + '3' => '৩', + '4' => '৪', + '5' => '৫', + '6' => '৬', + '7' => '৭', + '8' => '৮', + '9' => '৯' +); + + +$messages = array( # Dates 'sunday' => 'রবিবার', @@ -105,4 +136,4 @@ $wgAllMessagesBn = array( ); -?> \ No newline at end of file +?> diff --git a/languages/MessagesBo.php b/languages/MessagesBo.php new file mode 100644 index 0000000000..ce8b4411a6 --- /dev/null +++ b/languages/MessagesBo.php @@ -0,0 +1,20 @@ + '༠', + '1' => '༡', + '2' => '༢', + '3' => '༣', + '4' => '༤', + '5' => '༥', + '6' => '༦', + '7' => '༧', + '8' => '༨', + '9' => '༩' +); +?> diff --git a/languages/LanguageBpy.php b/languages/MessagesBpy.php similarity index 62% rename from languages/LanguageBpy.php rename to languages/MessagesBpy.php index 98596ce6a3..375936498c 100644 --- a/languages/LanguageBpy.php +++ b/languages/MessagesBpy.php @@ -7,11 +7,5 @@ * @subpackage Language */ -class LanguageBpy extends LanguageBn { - - function getFallbackLanguage() { - return 'bn'; - } -} - +$fallback = 'bn'; ?> diff --git a/languages/MessagesBr.php b/languages/MessagesBr.php index e0ef7bd125..dd868db17f 100644 --- a/languages/MessagesBr.php +++ b/languages/MessagesBr.php @@ -1,7 +1,64 @@ 'Media', + NS_SPECIAL => 'Dibar', + NS_MAIN => '', + NS_TALK => 'Kaozeal', + NS_USER => 'Implijer', + NS_USER_TALK => 'Kaozeadenn_Implijer', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Kaozeadenn_$1', + NS_IMAGE => 'Skeudenn', + NS_IMAGE_TALK => 'Kaozeadenn_Skeudenn', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Kaozeadenn_MediaWiki', + NS_TEMPLATE => 'Patrom', + NS_TEMPLATE_TALK => 'Kaozeadenn_Patrom', + NS_HELP => 'Skoazell', + NS_HELP_TALK => 'Kaozeadenn_Skoazell', + NS_CATEGORY => 'Rummad', + NS_CATEGORY_TALK => 'Kaozeadenn_Rummad' +); + +$quickbarSettings = array( + 'Hini ebet', 'Kleiz', 'Dehou', 'War-neuñv a-gleiz' +); + +$skinNames = array( + 'standard' => 'Standard', + 'nostalgia' => 'Melkoni', + 'cologneblue' => 'Glaz Kologn', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin' +); + + + +$bookstoreList = array( + 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1', + 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&', + 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1', + 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1', +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'j M Y "da" H:i', +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); +$linkTrail = "/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sDu"; + -/* private */ $wgAllMessagesBr = array( +$messages = array( # User Toggles @@ -72,7 +129,6 @@ 'subcategorycount' => '$1 isrummad zo d\'ar rummad-mañ.', 'allarticles' => 'An holl bennadoù', -'linktrail' => "/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sDu", 'mainpage' => 'Degemer', 'mainpagetext' => 'Meziant {{SITENAME}} staliet.', 'portal' => 'Porched ar gumuniezh', diff --git a/languages/MessagesBs.php b/languages/MessagesBs.php index 1ce70be232..839c8f95b7 100644 --- a/languages/MessagesBs.php +++ b/languages/MessagesBs.php @@ -1,7 +1,98 @@ 'Medija', + NS_SPECIAL => 'Posebno', + NS_MAIN => '', + NS_TALK => 'Razgovor', + NS_USER => 'Korisnik', + NS_USER_TALK => 'Razgovor_sa_korisnikom', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Razgovor_{{grammar:instrumental|$1}}', + NS_IMAGE => 'Slika', + NS_IMAGE_TALK => 'Razgovor_o_slici', + NS_MEDIAWIKI => 'MedijaViki', + NS_MEDIAWIKI_TALK => 'Razgovor_o_MedijaVikiju', + NS_TEMPLATE => 'Šablon', + NS_TEMPLATE_TALK => 'Razgovor_o_šablonu', + NS_HELP => 'Pomoć', + NS_HELP_TALK => 'Razgovor_o_pomoći', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Razgovor_o_kategoriji', +); + +$quickbarSettings = array( + 'Nikakva', 'Pričvršćena lijevo', 'Pričvršćena desno', 'Plutajuća lijevo' +); + +$skinNames = array( + 'Obična', 'Nostalgija', 'Kelnsko plavo', 'Pedington', 'Monparnas' +); + +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#Preusmjeri', '#redirect', '#preusmjeri', '#PREUSMJERI' ), + 'notoc' => array( 0, '__NOTOC__', '__BEZSADRŽAJA__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__FORSIRANISADRŽAJ__' ), + 'toc' => array( 0, '__TOC__', '__SADRŽAJ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZ_IZMENA__', '__BEZIZMENA__' ), + 'start' => array( 0, '__START__', '__POČETAK__' ), + 'end' => array( 0, '__END__', '__KRAJ__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'TRENUTNIMJESEC' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'TRENUTNIMJESECIME' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'TRENUTNIMJESECROD' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'TRENUTNIMJESECSKR' ), + 'currentday' => array( 1, 'CURRENTDAY', 'TRENUTNIDAN' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'TRENUTNIDANIME' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'TRENUTNAGODINA' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'TRENUTNOVRIJEME' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'BROJČLANAKA' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'BROJDATOTEKA', 'BROJFAJLOVA' ), + 'pagename' => array( 1, 'PAGENAME', 'STRANICA' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'STRANICE' ), + 'namespace' => array( 1, 'NAMESPACE', 'IMENSKIPROSTOR' ), + 'namespacee' => array( 1, 'NAMESPACEE', 'IMENSKIPROSTORI' ), + 'fullpagename' => array( 1, 'FULLPAGENAME', 'PUNOIMESTRANE' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'PUNOIMESTRANEE' ), + 'msg' => array( 0, 'MSG:', 'POR:' ), + 'subst' => array( 0, 'SUBST:', 'ZAMJENI:' ), + 'msgnw' => array( 0, 'MSGNW:', 'NVPOR:' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1' ), + 'img_right' => array( 1, 'right', 'desno', 'd' ), + 'img_left' => array( 1, 'left', 'lijevo', 'l' ), + 'img_none' => array( 1, 'none', 'n', 'bez' ), + 'img_width' => array( 1, '$1px', '$1piksel' , '$1p' ), + 'img_center' => array( 1, 'center', 'centre', 'centar', 'c' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'okvir', 'ram' ), + 'int' => array( 0, 'INT:', 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'IMESAJTA' ), + 'ns' => array( 0, 'NS:', 'IP:' ), + 'localurl' => array( 0, 'LOCALURL:', 'LOKALNAADRESA:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'LOKALNEADRESE:' ), + 'server' => array( 0, 'SERVER', 'SERVER' ), + 'servername' => array( 0, 'SERVERNAME', 'IMESERVERA' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTA' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__BEZTC__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__BEZCC__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'TRENUTNASEDMICA' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'TRENUTNIDOV' ), + 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZIJE' ), + 'plural' => array( 0, 'PLURAL:', 'MNOŽINA:' ), + 'fullurl' => array( 0, 'FULLURL:', 'PUNURL:' ), + 'fullurle' => array( 0, 'FULLURLE:', 'PUNURLE:' ), + 'lcfirst' => array( 0, 'LCFIRST:', 'LCPRVI:' ), + 'ucfirst' => array( 0, 'UCFIRST:', 'UCPRVI:' ), + 'lc' => array( 0, 'LC:', 'LC:' ), + 'uc' => array( 0, 'UC:', 'UC:' ), +); + +$fallback8bitEncoding = "iso-8859-2"; +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-zćčžšđž]+)(.*)$/sDu'; + +$messages = array( '1movedto2' => 'stranica [[$1]] premještena u stranicu [[$2]]', '1movedto2_redir' => 'stranica [[$1]] premještena u stranicu [[$2]] putem preusmjerenja', 'Monobook.css' => '/* @@ -204,6 +295,7 @@ nemojte ih slati ovdje. Takođe, slanje članka podrazumijeva i vašu izjavu da 'currentrev' => 'Trenutna revizija', 'databaseerror' => 'Greška u bazi', 'dateformat' => 'Format datuma', +'datedefault' => 'Nije bitno', 'dberrortext' => 'Desila se sintaksna greška upita baze. Ovo je moguće zbog ilegalnog upita, ili moguće greške u softveru. Poslednji pokušani upit je bio:
    $1
    @@ -411,7 +503,6 @@ ovu staru verziju, (vrt) = vrati na ovu staru verziju. 'linklistsub' => '(Spisak veza)', 'linkshere' => 'Sledeće stranice su povezane ovdje:', 'linkstoimage' => 'Sledeće stranice koriste ovu sliku:', -'linktrail' => '/^([a-zćčžšđž]+)(.*)$/sDu', 'listusers' => 'Spisak korisnika', 'loadhist' => 'Učitaje se istorija stranice', 'loadingrev' => 'učitava se revizija za razliku', diff --git a/languages/MessagesCa.php b/languages/MessagesCa.php index 19fd847723..24b27e8755 100644 --- a/languages/MessagesCa.php +++ b/languages/MessagesCa.php @@ -1,7 +1,58 @@ "Estàndard", + 'nostalgia' => "Nostàlgia", + 'cologneblue' => "Colònia blava", +); + +$bookstoreList = array( + 'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.es/cgi-bin/vtls.web.gateway?searchtype=control+numcard&searcharg=$1', + 'Totselsllibres.com' => 'http://www.totselsllibres.com/tel/publi/busquedaAvanzadaLibros.do?ISBN=$1', + 'inherit' => true, +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discussió', + NS_USER => 'Usuari', + NS_USER_TALK => 'Usuari_Discussió', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Discussió', + NS_IMAGE => 'Imatge', + NS_IMAGE_TALK => 'Imatge_Discussió', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Discussió', + NS_TEMPLATE => 'Plantilla', + NS_TEMPLATE_TALK => 'Plantilla_Discussió', + NS_HELP => 'Ajuda', + NS_HELP_TALK => 'Ajuda_Discussió', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Categoria_Discussió' +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H:i, M j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i, j M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); + +$linkTrail = '/^([a-zàèéíòóúç·ïü\']+)(.*)$/sDu'; -global $wgAllMessagesCa; -$wgAllMessagesCa = array( +$messages = array( 'tog-underline' => 'Subratlla els enllaços:', 'tog-highlightbroken' => 'Formata els enllaços trencats d\'aquesta manera (altrament, es faria d\'aquesta altra manera?).', 'tog-justify' => 'Alineació justificada dels paràgrafs', diff --git a/languages/MessagesCe.php b/languages/MessagesCe.php new file mode 100644 index 0000000000..6c3519cf95 --- /dev/null +++ b/languages/MessagesCe.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesCs.php b/languages/MessagesCs.php index b811cae572..5fb0dd7fd1 100644 --- a/languages/MessagesCs.php +++ b/languages/MessagesCs.php @@ -1,7 +1,110 @@ 'Média', + NS_SPECIAL => 'Speciální', + NS_MAIN => '', + NS_TALK => 'Diskuse', + NS_USER => 'Uživatel', + NS_USER_TALK => '$1_diskuse', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_diskuse', + NS_IMAGE => 'Soubor', + NS_IMAGE_TALK => 'Soubor_diskuse', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskuse', + NS_TEMPLATE => 'Šablona', + NS_TEMPLATE_TALK => 'Šablona_diskuse', + NS_HELP => 'Nápověda', + NS_HELP_TALK => 'Nápověda_diskuse', + NS_CATEGORY => 'Kategorie', + NS_CATEGORY_TALK => 'Kategorie_diskuse', +); + +$quickbarSettings = array( + 'Žádný', 'Leží vlevo', 'Leží vpravo', 'Visí vlevo' +); + +$skinNames = array( + 'standard' => 'Standard', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Kolínská modř', + 'chick' => 'Kuře' +); + +# Hledání knihy podle ISBN +# $wgBookstoreListCs = .. +$bookstoreList = array( + 'Národní knihovna' => 'http://sigma.nkp.cz/F/?func=find-a&find_code=ISN&request=$1', + 'Státní technická knihovna' => 'http://www.stk.cz/cgi-bin/dflex/CZE/STK/BROWSE?A=01&V=$1', + 'inherit' => true, +); +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +# Nepoužívá se, pro používání je třeba povolit getMagicWords dole v LanguageCs. +$magicWords = array( +## ID CASE SYNONYMS + 'redirect' => array( 0, '#REDIRECT', '#PŘESMĚRUJ' ), + 'notoc' => array( 0, '__NOTOC__', '__BEZOBSAHU__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__VŽDYOBSAH__' ), + 'toc' => array( 0, '__TOC__', '__OBSAH__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZEDITOVATČÁST__' ), + 'start' => array( 0, '__START__', '__ZAČÁTEK__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'AKTUÁLNÍMĚSÍC' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AKTUÁLNÍMĚSÍCJMÉNO' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'AKTUÁLNÍMĚSÍCGEN' ), +# 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' 'AKTUÁLNÍMĚSÍCZKR' ), + 'currentday' => array( 1, 'CURRENTDAY', 'AKTUÁLNÍDEN' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AKTUÁLNÍDENJMÉNO' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTUÁLNÍROK' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'AKTUÁLNÍČAS' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'POČETČLÁNKŮ' ), + 'pagename' => array( 1, 'PAGENAME', 'NÁZEVSTRANY' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'NÁZEVSTRANYE' ), + 'namespace' => array( 1, 'NAMESPACE', 'JMENNÝPROSTOR' ), + 'msg' => array( 0, 'MSG:' ), + 'subst' => array( 0, 'SUBST:', 'VLOŽIT:' ), + 'msgnw' => array( 0, 'MSGNW:', 'VLOŽITNW:' ), + 'end' => array( 0, '__END__', '__KONEC__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'náhled' ), + 'img_right' => array( 1, 'right', 'vpravo' ), + 'img_left' => array( 1, 'left', 'vlevo' ), + 'img_none' => array( 1, 'none', 'žádné' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre', 'střed' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rám' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'NÁZEVSERVERU' ), + 'ns' => array( 0, 'NS:' ), + 'localurl' => array( 0, 'LOCALURL:', 'MÍSTNÍURL:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'MÍSTNÍURLE:' ), + 'server' => array( 0, 'SERVER' ), + 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZE' ) +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); +$linkTrail = '/^([a-záčďéěíňóřšťúůýž]+)(.*)$/sDu'; + +$datePreferences = false; +$defaultDateFormat = 'dmy'; + +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. n. Y', + 'dmy both' => 'H:i, j. n. Y', +); -/* private */ $wgAllMessagesCs = array( +$messages = array( # Části textu používané různými stránkami: 'categories' => 'Kategorie', @@ -59,7 +162,6 @@ 'dec' => '12.', # Písmena, která se mají objevit jako část odkazu ve formě '[[jazyk]]y' atd: -'linktrail' => '/^([a-záčďéěíňóřšťúůýž]+)(.*)$/sDu', 'mainpage' => 'Hlavní strana', 'mainpagetext' => 'Wiki software úspěšně nainstalován.', 'mainpagedocfooter' => 'Podívejte se prosím do [http://meta.wikimedia.org/wiki/MediaWiki_i18n dokumentace k nastavení rozhraní] a [http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide uživatelské příručky] pro nápovědu k použití a nastavení.', diff --git a/languages/MessagesCsb.php b/languages/MessagesCsb.php index 1723d08dc0..4f4e27321a 100644 --- a/languages/MessagesCsb.php +++ b/languages/MessagesCsb.php @@ -1,7 +1,31 @@ 'Media', + NS_SPECIAL => 'Specjalnô', + NS_MAIN => '', + NS_TALK => 'Diskùsëjô', + NS_USER => 'Brëkòwnik', + NS_USER_TALK => 'Diskùsëjô_brëkòwnika', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Diskùsëjô_$1', + NS_IMAGE => 'Òbrôzk', + NS_IMAGE_TALK => 'Diskùsëjô_òbrôzków', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Diskùsëjô_MediaWiki', + NS_TEMPLATE => 'Szablóna', + NS_TEMPLATE_TALK => 'Diskùsëjô_Szablónë', + NS_HELP => 'Pòmòc', + NS_HELP_TALK => 'Diskùsëjô_Pòmòcë', + NS_CATEGORY => 'Kategòrëjô', + NS_CATEGORY_TALK => 'Diskùsëjô_Kategòrëji' +); + +$messages = array( '1movedto2' => '$1 przeniesłé do $2', 'aboutpage' => '{{ns:4}}:Ò_{{SITENAME}}', 'aboutsite' => 'Ò {{SITENAME}}', diff --git a/languages/MessagesCv.php b/languages/MessagesCv.php index ee66de15d5..24c50b5d73 100644 --- a/languages/MessagesCv.php +++ b/languages/MessagesCv.php @@ -1,7 +1,35 @@ 'Медиа', + NS_SPECIAL => 'Ятарлă', + NS_MAIN => '', + NS_TALK => 'Сӳтсе явасси', + NS_USER => 'Хутшăнакан', + NS_USER_TALK => 'Хутшăнаканăн_канашлу_страници', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_сӳтсе_явмалли', + NS_IMAGE => 'Ӳкерчĕк', + NS_IMAGE_TALK => 'Ӳкерчĕке_сӳтсе_явмалли', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_сӳтсе_явмалли', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Шаблона_сӳтсе_явмалли', + NS_HELP => 'Пулăшу', + NS_HELP_TALK => 'Пулăшăва_сӳтсе_явмалли', + NS_CATEGORY => 'Категори', + NS_CATEGORY_TALK => 'Категорине_сӳтсе_явмалли', +); + +$linkTrail = '/^([a-zа-яĕçăӳ"»]+)(.*)$/sDu'; + +$messages = array( 'Monobook.js' => '/* tooltips and access keys */ var ta = new Object(); @@ -108,7 +136,6 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');', 'edithelppage' => '{{ns:project}}:Улшăнусене кĕртме пулăшакан пулăшу', 'unblocklogentry' => '«$1» блокировкăран кăларнă', 'rclinks' => 'Юлашки $2 кун хушшинче тунă $1 улшăнусене кăтартмалла
    $3', -'linktrail' => '/^([a-zа-яĕçăӳ"»]+)(.*)$/sDu', 'delete_and_move' => 'Кăларса пăрахса куçарасси', '1movedto2' => '$1 $2 çине куçарнă', 'mainpage' => 'Тĕп страницă', diff --git a/languages/MessagesCy.php b/languages/MessagesCy.php index 30915372b2..79edd411e1 100644 --- a/languages/MessagesCy.php +++ b/languages/MessagesCy.php @@ -1,7 +1,82 @@ "Media", + NS_SPECIAL => "Arbennig", + NS_MAIN => "", + NS_TALK => "Sgwrs", + NS_USER => "Defnyddiwr", + NS_USER_TALK => "Sgwrs_Defnyddiwr", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "Sgwrs_$1", + NS_IMAGE => "Delwedd", + NS_IMAGE_TALK => "Sgwrs_Delwedd", + NS_MEDIAWIKI => "MediaWici", + NS_MEDIAWIKI_TALK => "Sgwrs_MediaWici", + NS_TEMPLATE => "Nodyn", + NS_TEMPLATE_TALK => "Sgwrs_Nodyn", + NS_CATEGORY => "Categori", + NS_CATEGORY_TALK => "Sgwrs_Categori", + NS_HELP => "Cymorth", + NS_HELP_TALK => "Sgwrs Cymorth" +); + +$quickbarSettings = array( + "Dim", "Sefydlog chwith", "Sefydlog de", "Arnawf de" +); + +$skinNames = array( + 'standard' => "Safonol", + 'nostalgia' => "Hiraeth", + 'cologneblue' => "Glas Cwlen", +); + +$datePreferences = false; +$bookstoreList = array( + "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN", + "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1", + "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1", + "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1", + "Amazon.co.uk" => "http://www.amazon.co.uk/exec/obidos/ISBN=$1" +); + + +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, "#redirect", "#ail-cyfeirio" ), + 'notoc' => array( 0, "__NOTOC__", "__DIMTAFLENCYNNWYS__" ), + 'noeditsection' => array( 0, "__NOEDITSECTION__", "__DIMADRANGOLYGU__" ), + 'start' => array( 0, "__START__", "__DECHRAU__" ), + 'currentmonth' => array( 1, "CURRENTMONTH", "MISCYFOES" ), + 'currentmonthname' => array( 1, "CURRENTMONTHNAME", "ENWMISCYFOES" ), + 'currentday' => array( 1, "CURRENTDAY", "DYDDIADCYFOES" ), + 'currentdayname' => array( 1, "CURRENTDAYNAME", "ENWDYDDCYFOES" ), + 'currentyear' => array( 1, "CURRENTYEAR", "FLWYDDYNCYFOES" ), + 'currenttime' => array( 1, "CURRENTTIME", "AMSERCYFOES" ), + 'numberofarticles' => array( 1, "NUMBEROFARTICLES","NIFEROERTHYGLAU" ), + 'currentmonthnamegen' => array( 1, "CURRENTMONTHNAMEGEN", "GENENWMISCYFOES" ), + 'subst' => array( 1, "SUBST:" ), + 'msgnw' => array( 0, "MSGNW:" ), + 'end' => array( 0, "__DIWEDD__" ), + 'img_thumbnail' => array( 1, "ewin bawd", "bawd", "thumb", "thumbnail" ), + 'img_right' => array( 1, "de", "right" ), + 'img_left' => array( 1, "chwith", "left" ), + 'img_none' => array( 1, "dim", "none" ), + 'img_width' => array( 1, "$1px" ), + 'img_center' => array( 1, "canol", "centre", "center" ), + 'int' => array( 0, "INT:" ) + +); +$linkTrail = "/^([àáâèéêìíîïòóôûŵŷa-z]+)(.*)\$/sDu"; -/* private */ $wgAllMessagesCy = array( +$messages = array( # User Toggles "tog-underline" => "Tanllinellu cysylltiadau", @@ -62,7 +137,6 @@ "category" => "categori", "category_header" => "Erthyglau mewn categori \"$1\"", "subcategories" => "Is-categorïau", -"linktrail" => "/^([àáâèéêìíîïòóôûŵŷa-z]+)(.*)\$/sDu", "mainpage" => "Prif tudalen", "mainpagetext" => "Meddalwedd {{SITENAME}} wedi sefydlu'n llwyddiannus", "about" => "Amdano", diff --git a/languages/MessagesDa.php b/languages/MessagesDa.php index e1f3886c07..362f2ebed3 100644 --- a/languages/MessagesDa.php +++ b/languages/MessagesDa.php @@ -1,11 +1,64 @@ 'Media', + NS_SPECIAL => 'Speciel', + NS_MAIN => '', + NS_TALK => 'Diskussion', + NS_USER => 'Bruger', + NS_USER_TALK => 'Bruger_diskussion', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_diskussion', + NS_IMAGE => 'Billede', + NS_IMAGE_TALK => 'Billede_diskussion', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskussion', + NS_TEMPLATE => 'Skabelon', + NS_TEMPLATE_TALK => 'Skabelon_diskussion', + NS_HELP => 'Hjælp', + NS_HELP_TALK => 'Hjælp_diskussion', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Kategori_diskussion' +); + +$quickbarSettings = array( + 'Ingen', 'Fast venstre', 'Fast højre', 'Flydende venstre' +); + +$skinNames = array( + 'standard' => 'Klassisk', + 'nostalgia' => 'Nostalgi', + 'cologneblue' => 'Cologne-blå', +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'j. M Y "kl." H:i', +); + +$bookstoreList = array( + "Bibliotek.dk" => "http://bibliotek.dk/vis.php?base=dfa&origin=kommando&field1=ccl&term1=is=$1&element=L&start=1&step=10", + "Bogguide.dk" => "http://www.bogguide.dk/find_boeger_bog.asp?ISBN=$1", + 'inherit' => true, +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-zæøå]+)(.*)$/sDu'; #------------------------------------------------------------------- # Default messages #------------------------------------------------------------------- -/* private */ $wgAllMessagesDa = array( +$messages = array( # User preference toggles "tog-underline" => "Understreg henvisninger", "tog-highlightbroken" => "Brug røde henvisninger til tomme sider", @@ -75,7 +128,6 @@ "category_header" => 'Artikler i kategorien "$1"', "subcategories" => "Underkategorier", -"linktrail" => '/^([a-zæøå]+)(.*)$/sDu', "mainpage" => "Forside", "mainpagetext" => "MediaWiki er nu installeret.", "mainpagedocfooter" => "Se vores engelsksprogede [http://meta.wikimedia.org/wiki/MediaWiki_i18n dokumentation om tilpasning af brugergrænsefladen] diff --git a/languages/MessagesDe.php b/languages/MessagesDe.php index c747f4cce4..683199191d 100644 --- a/languages/MessagesDe.php +++ b/languages/MessagesDe.php @@ -1,7 +1,71 @@ 'Media', + NS_SPECIAL => 'Spezial', + NS_MAIN => '', + NS_TALK => 'Diskussion', + NS_USER => 'Benutzer', + NS_USER_TALK => 'Benutzer_Diskussion', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Diskussion', + NS_IMAGE => 'Bild', + NS_IMAGE_TALK => 'Bild_Diskussion', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Diskussion', + NS_TEMPLATE => 'Vorlage', + NS_TEMPLATE_TALK => 'Vorlage_Diskussion', + NS_HELP => 'Hilfe', + NS_HELP_TALK => 'Hilfe_Diskussion', + NS_CATEGORY => 'Kategorie', + NS_CATEGORY_TALK => 'Kategorie_Diskussion' +); + +$quickbarSettings = array( + 'Keine', 'Links, fest', 'Rechts, fest', 'Links, schwebend' +); + +$skinNames = array( + 'standard' => 'Klassik', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Kölnisch Blau', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Küken' +); + + +$bookstoreList = array( + 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1', + 'amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', + 'buch.de' => 'http://www.buch.de/de.buch.shop/shop/1/home/schnellsuche/buch/?fqbi=$1', + 'buchhandel.de' => 'http://www.buchhandel.de/vlb/vlb.cgi?type=voll&isbn=$1', + 'Karlsruher Virtueller Katalog (KVK)' => 'http://www.ubka.uni-karlsruhe.de/kvk.html?SB=$1', + 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1' +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([äöüßa-z]+)(.*)$/sDu'; + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j. Y', + 'mdy both' => 'H:i, M j. Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'H:i, j. M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); + +$messages = array( # stylesheets 'Common.css' => '/** CSS an dieser Stelle wirkt sich auf alle Skins aus */', diff --git a/languages/MessagesDv.php b/languages/MessagesDv.php new file mode 100644 index 0000000000..47806a05c6 --- /dev/null +++ b/languages/MessagesDv.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesDz.php b/languages/MessagesDz.php new file mode 100644 index 0000000000..cda23ec5ab --- /dev/null +++ b/languages/MessagesDz.php @@ -0,0 +1,22 @@ + + */ +$digitTransformTable = array( + '0' => '༠', + '1' => '༡', + '2' => '༢', + '3' => '༣', + '4' => '༤', + '5' => '༥', + '6' => '༦', + '7' => '༧', + '8' => '༨', + '9' => '༩' +); + +?> diff --git a/languages/MessagesEl.php b/languages/MessagesEl.php index 1462ed669f..720d1f6b00 100644 --- a/languages/MessagesEl.php +++ b/languages/MessagesEl.php @@ -1,7 +1,57 @@ 'Μέσον', + NS_SPECIAL => 'Ειδικό', + NS_MAIN => '', + NS_TALK => 'Συζήτηση', + NS_USER => 'Χρήστης', + NS_USER_TALK => 'Συζήτηση_χρήστη', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_συζήτηση', + NS_IMAGE => 'Εικόνα', + NS_IMAGE_TALK => 'Συζήτηση_εικόνας', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_talk', + NS_TEMPLATE => 'Πρότυπο', + NS_TEMPLATE_TALK => 'Συζήτηση_προτύπου', + NS_HELP => 'Βοήθεια', + NS_HELP_TALK => 'Συζήτηση_βοήθειας', + NS_CATEGORY => 'Κατηγορία', + NS_CATEGORY_TALK => 'Συζήτηση_κατηγορίας', +); +$fallback8bitEncoding = 'iso-8859-7'; +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-z]+)(.*)$/sD'; -global $wgAllMessagesEl; -$wgAllMessagesEl = array( +$messages = array( # User preference toggles #----------------------------------------# @@ -83,7 +133,6 @@ $wgAllMessagesEl = array( 'category_header' => 'Άρθρα στην κατηγορία "$1"', 'subcategories' => 'Υποκατηγορίες', -'linktrail' => '/^([a-z]+)(.*)$/sD', 'linkprefix' => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD', 'mainpage' => 'Αρχική σελίδα', 'mainpagetext' => 'To λογισμικό Wiki εγκαταστάθηκε επιτυχώς.', diff --git a/languages/Messages.php b/languages/MessagesEn.php similarity index 89% rename from languages/Messages.php rename to languages/MessagesEn.php index 4be231af32..df91e71a49 100644 --- a/languages/Messages.php +++ b/languages/MessagesEn.php @@ -1,5 +1,281 @@ 2 ); + */ +$rtl = false; + +/** + * Optional array mapping ASCII digits 0-9 to local digits. + */ +$digitTransformTable = null; + +/** + * Transform table for decimal point '.' and thousands separator ',' + */ +$separatorTransformTable = null; + +/** + * Overrides for the default user options. This is mainly used by RTL languages. + */ +$defaultUserOptionOverrides = array(); + +/** + * Extra user preferences which will be shown in Special:Preferences as + * checkboxes. Extra settings in derived languages will automatically be + * appended to the array of the fallback languages. + */ +$extraUserToggles = array(); + +/** + * URLs do not specify their encoding. UTF-8 is used by default, but if the + * URL is not a valid UTF-8 sequence, we have to try to guess what the real + * encoding is. The encoding used in this case is defined below, and must be + * supported by iconv(). + */ +$fallback8bitEncoding = 'windows-1252'; + +/** + * To allow "foo[[bar]]" to extend the link over the whole word "foobar" + */ +$linkPrefixExtension = false; + +/** + * Namespace names. NS_PROJECT is always set to $wgMetaNamespace after the + * settings are loaded, it will be ignored even if you specify it here. + * + * NS_PROJECT_TALK will be set to $wgMetaNamespaceTalk if that variable is + * set, otherwise the string specified here will be used. The string may + * contain "$1", which will be replaced by the name of NS_PROJECT. It may + * also contain a grammatical transformation, e.g. + * + * NS_PROJECT_TALK => 'Keskustelu_{{grammar:elative|$1}}' + * + * Only one grammatical transform may be specified in the string. For + * performance reasons, this transformation is done locally by the language + * module rather than by the full wikitext parser. As a result, no other + * parser features are available. + */ +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Talk', + NS_USER => 'User', + NS_USER_TALK => 'User_talk', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_talk', + NS_IMAGE => 'Image', + NS_IMAGE_TALK => 'Image_talk', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_talk', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Template_talk', + NS_HELP => 'Help', + NS_HELP_TALK => 'Help_talk', + NS_CATEGORY => 'Category', + NS_CATEGORY_TALK => 'Category_talk', +); + +/** + * Array of namespace aliases, mapping from name to NS_xxx index + */ +$namespaceAliases = array(); + +/** + * Labels of the quickbar settings in Special:Preferences + */ +$quickbarSettings = array( + 'None', 'Fixed left', 'Fixed right', 'Floating left', 'Floating right' +); + +/** + * Skin names. If any key is not specified, the English one will be used. + */ +$skinNames = array( + 'standard' => 'Classic', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Cologne Blue', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Chick' +); + +/** + * Deprecated, use the message array + */ +$mathNames = array( + MW_MATH_PNG => 'mw_math_png', + MW_MATH_SIMPLE => 'mw_math_simple', + MW_MATH_HTML => 'mw_math_html', + MW_MATH_SOURCE => 'mw_math_source', + MW_MATH_MODERN => 'mw_math_modern', + MW_MATH_MATHML => 'mw_math_mathml' +); + +/** + * A list of date format preference keys which can be selected in user + * preferences. New preference keys can be added, provided they are supported + * by the language class's timeanddate(). Only the 5 keys listed below are + * supported by the wikitext converter (DateFormatter.php). + * + * The special key "default" is an alias for either dmy or mdy depending on + * $wgAmericanDates + */ +$datePreferences = array( + 'default', + 'mdy', + 'dmy', + 'ymd', + 'ISO 8601', +); + +$defaultDateFormat = 'dmy or mdy'; + +$datePreferenceMigrationMap = array( + 'default', + 'mdy', + 'dmy', + 'ymd' +); + +/** + * These are formats for dates generated by MediaWiki (as opposed to the wikitext + * DateFormatter). Documentation for the format string can be found in + * Language.php, search for sprintfDate. + * + * This array is automatically inherited by all subclasses. Individual keys can be + * overridden. + */ +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'F j, Y', + 'mdy both' => 'H:i, F j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j F Y', + 'dmy both' => 'H:i, j F Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y F j', + 'ymd both' => 'H:i, Y F j', + + 'ISO 8601 time' => 'xnH:xni', + 'ISO 8601 date' => 'xnY-xnm-xnd', + 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni', +); + +$bookstoreList = array( + 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', + 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', + 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#REDIRECT' ), + 'notoc' => array( 0, '__NOTOC__' ), + 'nogallery' => array( 0, '__NOGALLERY__' ), + 'forcetoc' => array( 0, '__FORCETOC__' ), + 'toc' => array( 0, '__TOC__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__' ), + 'start' => array( 0, '__START__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), + 'currentday' => array( 1, 'CURRENTDAY' ), + 'currentday2' => array( 1, 'CURRENTDAY2' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME' ), + 'currentyear' => array( 1, 'CURRENTYEAR' ), + 'currenttime' => array( 1, 'CURRENTTIME' ), + 'numberofpages' => array( 1, 'NUMBEROFPAGES' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), + 'numberofusers' => array( 1, 'NUMBEROFUSERS' ), + 'pagename' => array( 1, 'PAGENAME' ), + 'pagenamee' => array( 1, 'PAGENAMEE' ), + 'namespace' => array( 1, 'NAMESPACE' ), + 'namespacee' => array( 1, 'NAMESPACEE' ), + 'talkspace' => array( 1, 'TALKSPACE' ), + 'talkspacee' => array( 1, 'TALKSPACEE' ), + 'subjectspace' => array( 1, 'SUBJECTSPACE', 'ARTICLESPACE' ), + 'subjectspacee' => array( 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ), + 'fullpagename' => array( 1, 'FULLPAGENAME' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE' ), + 'subpagename' => array( 1, 'SUBPAGENAME' ), + 'subpagenamee' => array( 1, 'SUBPAGENAMEE' ), + 'basepagename' => array( 1, 'BASEPAGENAME' ), + 'basepagenamee' => array( 1, 'BASEPAGENAMEE' ), + 'talkpagename' => array( 1, 'TALKPAGENAME' ), + 'talkpagenamee' => array( 1, 'TALKPAGENAMEE' ), + 'subjectpagename' => array( 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ), + 'subjectpagenamee' => array( 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ), + 'msg' => array( 0, 'MSG:' ), + 'subst' => array( 0, 'SUBST:' ), + 'msgnw' => array( 0, 'MSGNW:' ), + 'end' => array( 0, '__END__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1'), + 'img_right' => array( 1, 'right' ), + 'img_left' => array( 1, 'left' ), + 'img_none' => array( 1, 'none' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME' ), + 'ns' => array( 0, 'NS:' ), + 'localurl' => array( 0, 'LOCALURL:' ), + 'localurle' => array( 0, 'LOCALURLE:' ), + 'server' => array( 0, 'SERVER' ), + 'servername' => array( 0, 'SERVERNAME' ), + 'scriptpath' => array( 0, 'SCRIPTPATH' ), + 'grammar' => array( 0, 'GRAMMAR:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), + 'currentweek' => array( 1, 'CURRENTWEEK' ), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' ), + 'plural' => array( 0, 'PLURAL:' ), + 'fullurl' => array( 0, 'FULLURL:' ), + 'fullurle' => array( 0, 'FULLURLE:' ), + 'lcfirst' => array( 0, 'LCFIRST:' ), + 'ucfirst' => array( 0, 'UCFIRST:' ), + 'lc' => array( 0, 'LC:' ), + 'uc' => array( 0, 'UC:' ), + 'raw' => array( 0, 'RAW:' ), + 'displaytitle' => array( 1, 'DISPLAYTITLE' ), + 'rawsuffix' => array( 1, 'R' ), + 'newsectionlink' => array( 1, '__NEWSECTIONLINK__' ), + 'currentversion' => array( 1, 'CURRENTVERSION' ), + 'urlencode' => array( 0, 'URLENCODE:' ), + 'currenttimestamp' => array( 1, 'CURRENTTIMESTAMP' ), + 'directionmark' => array( 1, 'DIRECTIONMARK', 'DIRMARK' ), + 'language' => array( 0, '#LANGUAGE:' ), + 'contentlanguage' => array( 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ), + 'pagesinnamespace' => array( 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ), + 'numberofadmins' => array( 1, 'NUMBEROFADMINS' ), + 'formatnum' => array( 0, 'FORMATNUM' ), + +); + +$linkTrail = '/^([a-z]+)(.*)$/sD'; #------------------------------------------------------------------- # Default messages @@ -8,8 +284,7 @@ # hyphen (-). If you need more characters, you may be able to change # the regex in MagicWord::initRegex -global $wgAllMessagesEn; -$wgAllMessagesEn = array( +$messages = array( /* The sidebar for MonoBook is generated from this message, lines that do not begin with * or ** are discarded, furthermore lines that do begin with ** and diff --git a/languages/MessagesEnRTL.php b/languages/MessagesEnRTL.php new file mode 100644 index 0000000000..9b557cd64d --- /dev/null +++ b/languages/MessagesEnRTL.php @@ -0,0 +1,5 @@ + diff --git a/languages/MessagesEo.php b/languages/MessagesEo.php index f8ed5925b8..8d85d27b34 100644 --- a/languages/MessagesEo.php +++ b/languages/MessagesEo.php @@ -1,7 +1,50 @@ 'Media', + NS_SPECIAL => 'Speciala', + NS_MAIN => '', + NS_TALK => 'Diskuto', + NS_USER => 'Vikipediisto', # FIXME: Generalize v-isto kaj v-io + NS_USER_TALK => 'Vikipediista_diskuto', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_diskuto', + NS_IMAGE => 'Dosiero', #FIXME: Check the magic for Image: and Media: + NS_IMAGE_TALK => 'Dosiera_diskuto', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskuto', + NS_TEMPLATE => 'Ŝablono', + NS_TEMPLATE_TALK => 'Ŝablona_diskuto', + NS_HELP => 'Helpo', + NS_HELP_TALK => 'Helpa_diskuto', + NS_CATEGORY => 'Kategorio', + NS_CATEGORY_TALK => 'Kategoria_diskuto', +); + +$quickbarSettings = array( + 'Nenia', 'Fiksiĝas maldekstre', 'Fiksiĝas dekstre', 'Ŝvebas maldekstre' +); + +$skinNames = array( + 'standard' => 'Klasika', + 'nostalgia' => 'Nostalgio', + 'cologneblue' => 'Kolonja Bluo', + 'mono' => 'Senkolora', + 'monobook' => 'Librejo', + 'chick' => 'Kokido', +); + +$separatorTransformTable = array(',' => ' ', '.' => ',' ); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'H:i, j. M Y', +); + -global $wgAllMessagesEo; -$wgAllMessagesEo = array( +$messages = array( 'tog-underline' => 'Substreku ligilojn', 'tog-highlightbroken' => 'Ruĝigu ligilojn al neekzistantaj paĝoj', 'tog-justify' => 'Alkadrigu liniojn', diff --git a/languages/MessagesEs.php b/languages/MessagesEs.php index 708cd5be66..3627218944 100644 --- a/languages/MessagesEs.php +++ b/languages/MessagesEs.php @@ -1,7 +1,56 @@ 'Estándar', +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discusión', + NS_USER => 'Usuario', + NS_USER_TALK => 'Usuario_Discusión', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Discusión', + NS_IMAGE => 'Imagen', + NS_IMAGE_TALK => 'Imagen_Discusión', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Discusión', + NS_TEMPLATE => 'Plantilla', + NS_TEMPLATE_TALK => 'Plantilla_Discusión', + NS_HELP => 'Ayuda', + NS_HELP_TALK => 'Ayuda_Discusión', + NS_CATEGORY => 'Categoría', + NS_CATEGORY_TALK => 'Categoría_Discusión', +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i j M Y', +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-záéíóúñ]+)(.*)$/sDu'; + + + + +$messages = array( 'tog-underline' => 'Subrayar enlaces', 'tog-highlightbroken' => 'Destacar enlaces a artículos vacíos como este (alternativa: como éste?).', 'tog-justify' => 'Ajustar párrafos', diff --git a/languages/MessagesEt.php b/languages/MessagesEt.php index 715b0ee865..33b2b225d7 100644 --- a/languages/MessagesEt.php +++ b/languages/MessagesEt.php @@ -1,7 +1,102 @@ 'Meedia', + NS_SPECIAL => 'Eri', + NS_MAIN => '', + NS_TALK => 'Arutelu', + NS_USER => 'Kasutaja', + NS_USER_TALK => 'Kasutaja_arutelu', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_arutelu', + NS_IMAGE => 'Pilt', + NS_IMAGE_TALK => 'Pildi_arutelu', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_arutelu', + NS_TEMPLATE => 'Mall', + NS_TEMPLATE_TALK => 'Malli_arutelu', + NS_HELP => 'Juhend', + NS_HELP_TALK => 'Juhendi_arutelu', + NS_CATEGORY => 'Kategooria', + NS_CATEGORY_TALK => 'Kategooria_arutelu' +); + +$skinNames = array( + 'standard' => 'Standard', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Kölni sinine', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'Mu oma nahk' +); + +$quickbarSettings = array( + 'Ei_ole', 'Püsivalt_vasakul', 'Püsivalt paremal', 'Ujuvalt vasakul' +); + +#Lisasin eestimaised poed, aga võõramaiseid ei julenud kustutada. + +$bookstoreList = array( + 'Apollo' => 'http://www.apollo.ee/search.php?keyword=$1&search=OTSI', + 'minu Raamat' => 'http://www.raamat.ee/advanced_search_result.php?keywords=$1', + 'Raamatukoi' => 'http://www.raamatukoi.ee/cgi-bin/index?valik=otsing&paring=$1', + 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', + 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', + 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + + +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect', "#suuna" ), +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; + +$datePreferences = array( + 'default', + 'et numeric', + 'dmy', + 'et roman', + 'ISO 8601' +); + +$datePreferenceMigrationMap = array( + 'default', + 'et numeric', + 'dmy', + 'et roman', +); + +$defaultDateFormat = 'dmy'; + +$dateFormats = array( + 'et numeric time' => 'H:i', + 'et numeric date' => 'd.m.Y', + 'et numeric both' => 'd.m.Y, "kell" H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j. F Y', + 'dmy both' => 'j. F Y, "kell" H:i', + + 'et roman time' => 'H:i', + 'et roman date' => 'j. xrm Y', + 'et roman both' => 'j. xrm Y, "kell" H:i', +); + +$messages = array( "tog-underline" => "Lingid alla kriipsutada", "tog-highlightbroken" => "Vorminda lingirikkednii (alternatiiv: nii?).", "tog-justify" => "Lõikude rööpjoondus", @@ -57,7 +152,6 @@ $wgAllMessagesEt = array( 'subcategories' => 'Alamkategooriad', -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "Esileht", "mainpagetext" => "Wiki tarkvara installeeritud.", "mainpagedocfooter" => "Juhiste saamiseks kasutamise ning konfigureerimise kohta vaata palun inglisekeelset [http://meta.wikimedia.org/wiki/MediaWiki_i18n dokumentatsiooni liidese kohaldamisest] diff --git a/languages/MessagesEu.php b/languages/MessagesEu.php index 2dbb29b86d..f9f5d8a8c9 100644 --- a/languages/MessagesEu.php +++ b/languages/MessagesEu.php @@ -1,7 +1,42 @@ 'Lehenetsia', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Cologne Blue', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse' +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Aparteko', + NS_MAIN => '', + NS_TALK => 'Eztabaida', + NS_USER => 'Lankide', + NS_USER_TALK => 'Lankide_eztabaida', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_eztabaida', + NS_IMAGE => 'Irudi', + NS_IMAGE_TALK => 'Irudi_eztabaida', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_eztabaida', + NS_TEMPLATE => 'Txantiloi', + NS_TEMPLATE_TALK => 'Txantiloi_eztabaida', + NS_CATEGORY => 'Kategoria', + NS_CATEGORY_TALK => 'Kategoria_eztabaida', +); + +$messages = array( '1movedto2' => '$1 izenburua $2-en truke aldatu da.', 'about' => 'buruz', 'aboutpage' => '{{ns:project}}:{{SITENAME}}ri_buruz', // TODO: grammar diff --git a/languages/MessagesFa.php b/languages/MessagesFa.php index 15fa59c6be..da77ae6da8 100644 --- a/languages/MessagesFa.php +++ b/languages/MessagesFa.php @@ -1,7 +1,67 @@ 'استاندارد', + 'nostalgia' => 'نوستالژی', + 'cologneblue' => 'آبی کلون', + 'smarty' => 'پدینگتون', + 'montparnasse' => 'مون‌پارناس', +); +$namespaceNames = array( + NS_MEDIA => 'مدیا', + NS_SPECIAL => 'ویژه', + NS_MAIN => '', + NS_TALK => 'بحث', + NS_USER => 'کاربر', + NS_USER_TALK => 'بحث_کاربر', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'بحث_$1', + NS_IMAGE => 'تصویر', + NS_IMAGE_TALK => 'بحث_تصویر', + NS_MEDIAWIKI => 'مدیاویکی', + NS_MEDIAWIKI_TALK => 'بحث_مدیاویکی', + NS_TEMPLATE => 'الگو', + NS_TEMPLATE_TALK => 'بحث_الگو', + NS_HELP => 'راهنما', + NS_HELP_TALK => 'بحث_راهنما', + NS_CATEGORY => 'رده', + NS_CATEGORY_TALK => 'بحث_رده' +); + +$digitTransformTable = array( + "0" => "۰", + "1" => "۱", + "2" => "۲", + "3" => "۳", + "4" => "۴", + "5" => "۵", + "6" => "۶", + "7" => "۷", + "8" => "۸", + "9" => "۹", + "%" => "٪", + "." => "٫", // wrong table? + "," => "٬" +); + +$rtl = true; +$defaultUserOptionOverrides = array( + # Swap sidebar to right side by default + 'quickbar' => 2, + # Underlines seriously harm legibility. Force off: + 'underline' => 0, +); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; /* This may need to be changed --RP */ -global $wgAllMessagesFa; -$wgAllMessagesFa = array( +$messages = array( # User toggles 'tog-underline' => "زیر پیوندها خط کشیده شود", @@ -62,7 +122,6 @@ $wgAllMessagesFa = array( 'category_header' => "مقاله‌های رده‌ی «$1»", 'subcategories' => "زیررده‌ها", -'linktrail' => "/^([a-z]+)(.*)\$/sD", /* This may need to be changed --RP */ 'mainpage' => "صفحه‌ی اصلی", 'mainpagetext' => "نرم‌افزار ویکی با موفقیت نصب شد.", 'about' => "درباره", diff --git a/languages/MessagesFi.php b/languages/MessagesFi.php index 1e3984caa2..5dfea225f8 100644 --- a/languages/MessagesFi.php +++ b/languages/MessagesFi.php @@ -1,7 +1,83 @@ 'Perus', + 'cologneblue' => 'Kölnin sininen', + 'myskin' => 'Oma tyylisivu' +); + +$quickbarSettings = array( + 'Ei mitään', 'Tekstin mukana, vasen', 'Tekstin mukana, oikea', 'Pysyen vasemmalla', 'Pysyen oikealla' +); + +$datePreferences = array( + 'default', + 'fi normal', + 'fi seconds', + 'fi numeric', +); + +$dateFormats = array( + 'fi normal time' => 'H.i', + 'fi normal date' => 'j. F Y', + 'fi normal both' => 'j. F Y "kello" H.i', + + 'fi seconds time' => 'H:i:s', + 'fi seconds date' => 'j. F Y', + 'fi seconds both' => 'j. F Y "kello" H:i:s', + + 'fi numeric time' => 'H.i', + 'fi numeric date' => 'j.n.Y', + 'fi numeric both' => 'j.n.Y "kello" H.i', +); + +$datePreferenceMigrationMap = array( + 'default', + 'fi normal', + 'fi seconds', + 'fi numeric', +); + +$bookstoreList = array( + 'Bookplus' => 'http://www.bookplus.fi/product.php?isbn=$1', + 'Helsingin yliopiston kirjasto' => 'http://pandora.lib.hel.fi/cgi-bin/mhask/monihask.py?volname=&author=&keyword=&ident=$1&submit=Hae&engine_helka=ON', + 'Pääkaupunkiseudun kirjastot' => 'http://www.helmet.fi/search*fin/i?SEARCH=$1', + 'Tampereen seudun kirjastot' => 'http://kirjasto.tampere.fi/Piki?formid=fullt&typ0=6&dat0=$1' +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Toiminnot', + NS_MAIN => '', + NS_TALK => 'Keskustelu', + NS_USER => 'Käyttäjä', + NS_USER_TALK => 'Keskustelu_käyttäjästä', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Keskustelu_{{grammar:elative|$1}}', + NS_IMAGE => 'Kuva', + NS_IMAGE_TALK => 'Keskustelu_kuvasta', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_talk', + NS_TEMPLATE => 'Malline', + NS_TEMPLATE_TALK => 'Keskustelu_mallineesta', + NS_HELP => 'Ohje', + NS_HELP_TALK => 'Keskustelu_ohjeesta', + NS_CATEGORY => 'Luokka', + NS_CATEGORY_TALK => 'Keskustelu_luokasta' +); + + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); +$linkTrail = '/^([a-zäö]+)(.*)$/sDu'; + + -global $wgAllMessagesFi; -$wgAllMessagesFi = array( +$messages = array( # User preference toggles 'tog-underline' => 'Alleviivaa linkit:', diff --git a/languages/MessagesFo.php b/languages/MessagesFo.php index 66953ca436..ad7946488d 100644 --- a/languages/MessagesFo.php +++ b/languages/MessagesFo.php @@ -1,7 +1,55 @@ 'http://www.bokasolan.fo/vleitari.asp?haattur=bok.alfa&Heiti=&Hovindur=&Forlag=&innbinding=Oell&bolkur=Allir&prisur=Allir&Aarstal=Oell&mal=Oell&status=Oell&ISBN=$1', + 'inherit' => true, +); + +$namespaceNames = array( + NS_MEDIA => 'Miðil', + NS_SPECIAL => 'Serstakur', + NS_MAIN => '', + NS_TALK => 'Kjak', + NS_USER => 'Brúkari', + NS_USER_TALK => 'Brúkari_kjak', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_kjak', + NS_IMAGE => 'Mynd', + NS_IMAGE_TALK => 'Mynd_kjak', + NS_MEDIAWIKI => 'MidiaWiki', + NS_MEDIAWIKI_TALK => 'MidiaWiki_kjak', + NS_TEMPLATE => 'Fyrimynd', + NS_TEMPLATE_TALK => 'Fyrimynd_kjak', + NS_HELP => 'Hjálp', + NS_HELP_TALK => 'Hjálp_kjak', + NS_CATEGORY => 'Bólkur', + NS_CATEGORY_TALK => 'Bólkur_kjak' +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'j. M Y "kl." H:i', +); + +$linkTrail = '/^([áðíóúýæøa-z]+)(.*)$/sDu'; + +$messages = array( # User toggles "tog-underline" => "Undurstrika ávísingar", @@ -63,7 +111,6 @@ $wgAllMessagesFo = array( 'mw_math_modern' => "Tilmælt nýtíðarkagara", 'mw_math_mathml' => 'MathML if possible (experimental)', -'linktrail' => '/^([áðíóúýæøa-z]+)(.*)$/sDu', ); -?> \ No newline at end of file +?> diff --git a/languages/MessagesFr.php b/languages/MessagesFr.php index 6045469fe6..ffd88cbcf8 100644 --- a/languages/MessagesFr.php +++ b/languages/MessagesFr.php @@ -1,7 +1,65 @@ 'Standard', + 'nostalgia' => 'Nostalgie', +); + +$bookstoreList = array( + 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1', + 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&', + 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1', + 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Discuter', + NS_USER => 'Utilisateur', + NS_USER_TALK => 'Discussion_Utilisateur', + NS_PROJECT => '$1', + NS_PROJECT_TALK => 'Discussion_$1', + NS_IMAGE => 'Image', + NS_IMAGE_TALK => 'Discussion_Image', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', + NS_TEMPLATE => 'Modèle', + NS_TEMPLATE_TALK => 'Discussion_Modèle', + NS_HELP => 'Aide', + NS_HELP_TALK => 'Discussion_Aide', + NS_CATEGORY => 'Catégorie', + NS_CATEGORY_TALK => 'Discussion_Catégorie' +); +$linkTrail = '/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sDu'; + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'F j, Y', + 'mdy both' => 'F j, Y à H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j F Y', + 'dmy both' => 'j F Y à H:i', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y F j', + 'ymd both' => 'Y F j à H:i', +); + +$separatorTransformTable = array( ',' => "\xc2\xa0", '.' => ',' ); -global $wgAllMessagesFr; -$wgAllMessagesFr = array( +$messages = array( # User preference Toggles @@ -87,7 +145,6 @@ $wgAllMessagesFr = array( 'category_header' => 'Articles dans la catégorie « $1 ».', 'subcategories' => 'Sous-catégories', -'linktrail' => '/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sDu', 'mainpage' => 'Accueil', 'mainpagetext' => '\'\'\'MediaWiki a été installé avec succès.\'\'\'', 'mainpagedocfooter' => 'Consultez le [http://meta.wikipedia.org/wiki/Aide:Contenu Guide de l\'utilisateur] pour plus d\'informations sur l\'utilisation de ce logiciel.', diff --git a/languages/MessagesFur.php b/languages/MessagesFur.php index b0fbbe37ec..e725f53365 100644 --- a/languages/MessagesFur.php +++ b/languages/MessagesFur.php @@ -1,7 +1,48 @@ 'Nostalgie', +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Speciâl', + NS_MAIN => '', + NS_TALK => 'Discussion', + NS_USER => 'Utent', + NS_USER_TALK => 'Discussion_utent', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discussion_$1', + NS_IMAGE => 'Figure', + NS_IMAGE_TALK => 'Discussion_figure', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', + NS_TEMPLATE => 'Model', + NS_TEMPLATE_TALK => 'Discussion_model', + NS_HELP => 'Jutori', + NS_HELP_TALK => 'Discussion_jutori', + NS_CATEGORY => 'Categorie', + NS_CATEGORY_TALK => 'Discussion_categorie' +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j "di" M Y', + 'dmy both' => 'j "di" M Y "a lis" H:i', +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); -global $wgAllMessagesFur; -$wgAllMessagesFur = array( +$messages = array( '1movedto2' => "$1 movût in $2", 'about' => "Informazions", 'aboutsite' => "Informazions su {{SITENAME}}", diff --git a/languages/MessagesFy.php b/languages/MessagesFy.php index 75b54d5aba..0e85a11f2b 100644 --- a/languages/MessagesFy.php +++ b/languages/MessagesFy.php @@ -1,7 +1,65 @@ 'Standert', + 'nostalgia' => 'Nostalgy', +); + +$dateFormats = array( + 'mdy time' => 'H.i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H.i, M j, Y', + + 'dmy time' => 'H.i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H.i, j M Y', + + 'ymd time' => 'H.i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H.i, Y M j', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Wiki', + NS_MAIN => '', + NS_TALK => 'Oerlis', + NS_USER => 'Meidogger', + NS_USER_TALK => 'Meidogger_oerlis', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_oerlis', + NS_IMAGE => 'Ofbyld', + NS_IMAGE_TALK => 'Ofbyld_oerlis', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_oerlis', + NS_TEMPLATE => 'Berjocht', + NS_TEMPLATE_TALK => 'Berjocht_oerlis', + NS_HELP => 'Hulp', + NS_HELP_TALK => 'Hulp_oerlis', + NS_CATEGORY => 'Kategory', + NS_CATEGORY_TALK => 'Kategory_oerlis' +); + +$namespaceAliases = array( + 'Brûker' => NS_USER, + 'Brûker_oerlis' => NS_USER_TALK, +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-zàáèéìíòóùúâêîôûäëïöü]+)(.*)$/sDu'; + -global $wgAllMessagesFy; -$wgAllMessagesFy = array( +$messages = array( # User Toggles "tog-underline" => "Keppelings ûnderstreekje", diff --git a/languages/MessagesGa.php b/languages/MessagesGa.php index 1aadb84ee6..b06064324e 100644 --- a/languages/MessagesGa.php +++ b/languages/MessagesGa.php @@ -1,11 +1,111 @@ 'Gnáth', + 'nostalgia' => 'Sean-nós', + 'cologneblue' => 'Gorm na Colóna', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Chick' +); + +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect', '#athsheoladh' ), + 'notoc' => array( 0, '__NOTOC__', '__GANCÁ__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__CÁGACHUAIR__' ), + 'toc' => array( 0, '__TOC__', '__CÁ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__GANMHÍRATHRÚ__' ), + 'start' => array( 0, '__START__', '__TÚS__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'MÍLÁITHREACH' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AINMNAMÍOSALÁITHREAÍ' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'GINAINMNAMÍOSALÁITHREAÍ' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'GIORRÚNAMÍOSALÁITHREAÍ' ), + 'currentday' => array( 1, 'CURRENTDAY', 'LÁLÁITHREACH' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AINMANLAELÁITHRIGH' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'BLIAINLÁITHREACH' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'AMLÁITHREACH' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'LÍONNANALT' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'LÍONNAGCOMHAD' ), + 'pagename' => array( 1, 'PAGENAME', 'AINMANLGH' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'AINMANLGHB' ), + 'namespace' => array( 1, 'NAMESPACE', 'AINMSPÁS' ), + 'msg' => array( 0, 'MSG:', 'TCHT:' ), + 'subst' => array( 0, 'SUBST:', 'IONAD:' ), + 'msgnw' => array( 0, 'MSGNW:', 'TCHTFS:' ), + 'end' => array( 0, '__END__', '__DEIREADH__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mionsamhail', 'mion' ), + 'img_right' => array( 1, 'right', 'deas' ), + 'img_left' => array( 1, 'left', 'clé' ), + 'img_none' => array( 1, 'none', 'faic' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre', 'lár' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'fráma', 'frámaithe' ), + 'int' => array( 0, 'INT:', 'INMH:' ), + 'sitename' => array( 1, 'SITENAME', 'AINMANTSUÍMH' ), + 'ns' => array( 0, 'NS:', 'AS:' ), + 'localurl' => array( 0, 'LOCALURL:', 'URLÁITIÚIL' ), + 'localurle' => array( 0, 'LOCALURLE:', 'URLÁITIÚILB' ), + 'server' => array( 0, 'SERVER', 'FREASTALAÍ' ), + 'servername' => array( 0, 'SERVERNAME', 'AINMANFHREASTALAÍ' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'SCRIPTCHOSÁN' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMADACH:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__GANTIONTÚNADTEIDEAL__', '__GANTT__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__GANTIONTÚNANÁBHAIR__', '__GANTA__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'SEACHTAINLÁITHREACH' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'LÁLÁITHREACHNAS' ), + 'revisionid' => array( 1, 'REVISIONID', 'IDANLEASAITHE' ), +); + +$namespaceNames = array( + NS_MEDIA => 'Meán', + NS_SPECIAL => 'Speisialta', + NS_MAIN => '', + NS_TALK => 'Plé', + NS_USER => 'Úsáideoir', + NS_USER_TALK => 'Plé_úsáideora', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Plé_{{grammar:genitive|$1}}', + NS_IMAGE => 'Íomhá', + NS_IMAGE_TALK => 'Plé_íomhá', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Plé_MediaWiki', + NS_TEMPLATE => 'Teimpléad', + NS_TEMPLATE_TALK => 'Plé_teimpléid', + NS_HELP => 'Cabhair', + NS_HELP_TALK => 'Plé_cabhrach', + NS_CATEGORY => 'Catagóir', + NS_CATEGORY_TALK => 'Plé_catagóire' +); + +$namespaceAliases = array( + 'Plé_í­omhá' => NS_IMAGE_TALK, + 'Múnla' => NS_TEMPLATE, + 'Plé_múnla' => NS_TEMPLATE_TALK, + 'Rang' => NS_CATEGORY +); + +$linkTrail = '/^([a-z]+)(.*)\$/sD'; #------------------------------------------------------------------- # Default messages #------------------------------------------------------------------- -/* private */ $wgAllMessagesGa = array( +$messages = array( # User Toggles'tog-underline' => "Cuir línte faoi na naisc", 'tog-highlightbroken' => "Cuir dath dearg ar naisc briste, mar sin @@ -82,7 +182,6 @@ 'category_header' => 'Ailt sa chatagóir "$1"', "subcategories" => "Fo-chatagóirí", -"linktrail" => '/^([a-z]+)(.*)\$/sD', "mainpage" => "Príomhleathanach", "mainpagetext" => "Suiteáladh an ríomhchlár vicí go rathúil.", "mainpagedocfooter" => "Féach ar [http://meta.wikimedia.org/wiki/MediaWiki_i18n doiciméid um conas an chomhéadán a athrú] diff --git a/languages/MessagesGn.php b/languages/MessagesGn.php new file mode 100644 index 0000000000..7ca6dc716c --- /dev/null +++ b/languages/MessagesGn.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesGsw.php b/languages/MessagesGsw.php index b32f2d8a1d..4772adb723 100644 --- a/languages/MessagesGsw.php +++ b/languages/MessagesGsw.php @@ -1,7 +1,9 @@ 'Links unterstryche', 'tog-highlightbroken' => 'Links uf lääri Themene durestryche', 'tog-justify' => 'Tekscht als Blocksatz', diff --git a/languages/MessagesGu.php b/languages/MessagesGu.php new file mode 100644 index 0000000000..842267c1d5 --- /dev/null +++ b/languages/MessagesGu.php @@ -0,0 +1,19 @@ + '૦', + '1' => '૧', + '2' => '૨', + '3' => '૩', + '4' => '૪', + '5' => '૫', + '6' => '૬', + '7' => '૭', + '8' => '૮', + '9' => '૯' +); +?> diff --git a/languages/MessagesHe.php b/languages/MessagesHe.php index 839c438549..f488b54602 100644 --- a/languages/MessagesHe.php +++ b/languages/MessagesHe.php @@ -1,7 +1,145 @@ 2, +); +$linkTrail = '/^([a-zא-ת]+)(.*)$/sDu'; +$fallback8bitEncoding = "windows-1255"; + +$skinNames = array( + "standard" => "רגיל", + "nostalgia" => "נוסטלגי", + "cologneblue" => "מים כחולים", + "davinci" => "דה־וינצ'י", + "simple" => "פשוט", + "mono" => "מונו", + "monobook" => "מונובוק", + "myskin" => "הרקע שלי", + "chick" => "צ'יק" +); + +$quickbarSettings = array( + "ללא", "קבוע משמאל", "קבוע מימין", "צף משמאל", "צף מימין" +); + +$bookstoreList = array( + "מיתוס" => "http://www.mitos.co.il/", + "iBooks" => "http://www.ibooks.co.il/", + "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=\$1", + "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=\$1" +); + +$magicWords = array( + 'redirect' => array( 0, '#הפניה', '#REDIRECT' ), + 'notoc' => array( 0, '__ללא_תוכן_עניינים__', '__ללא_תוכן__', '__NOTOC__' ), + 'nogallery' => array( 0, '__ללא_גלריה__', '__NOGALLERY__' ), + 'forcetoc' => array( 0, '__חייב_תוכן_עניינים__', '__חייב_תוכן__', '__FORCETOC__' ), + 'toc' => array( 0, '__תוכן_עניינים__', '__תוכן__', '__TOC__' ), + 'noeditsection' => array( 0, '__ללא_עריכה__', '__NOEDITSECTION__' ), + 'start' => array( 0, '__התחלה__', '__START__' ), + 'currentmonth' => array( 1, 'חודש נוכחי', 'CURRENTMONTH' ), + 'currentmonthname' => array( 1, 'שם חודש נוכחי', 'CURRENTMONTHNAME' ), + 'currentmonthnamegen' => array( 1, 'שם חודש נוכחי קניין', 'CURRENTMONTHNAMEGEN' ), + 'currentmonthabbrev' => array( 1, 'קיצור חודש נוכחי', 'CURRENTMONTHABBREV' ), + 'currentday' => array( 1, 'יום נוכחי', 'CURRENTDAY' ), + 'currentday2' => array( 1, 'יום נוכחי 2', 'CURRENTDAY2' ), + 'currentdayname' => array( 1, 'שם יום נוכחי', 'CURRENTDAYNAME' ), + 'currentyear' => array( 1, 'שנה נוכחית', 'CURRENTYEAR' ), + 'currenttime' => array( 1, 'שעה נוכחית', 'CURRENTTIME' ), + 'numberofpages' => array( 1, 'מספר דפים כולל', 'מספר דפים', 'NUMBEROFPAGES' ), + 'numberofarticles' => array( 1, 'מספר ערכים', 'NUMBEROFARTICLES' ), + 'numberoffiles' => array( 1, 'מספר קבצים', 'NUMBEROFFILES' ), + 'numberofusers' => array( 1, 'מספר משתמשים', 'NUMBEROFUSERS' ), + 'pagename' => array( 1, 'שם הדף', 'PAGENAME' ), + 'pagenamee' => array( 1, 'שם הדף מקודד', 'PAGENAMEE' ), + 'namespace' => array( 1, 'מרחב השם', 'NAMESPACE' ), + 'namespacee' => array( 1, 'מרחב השם מקודד', 'NAMESPACEE' ), + 'talkspace' => array( 1, 'מרחב השיחה', 'TALKSPACE' ), + 'talkspacee' => array( 1, 'מרחב השיחה מקודד', 'TALKSPACEE' ), + 'subjectspace' => array( 1, 'מרחב הנושא', 'מרחב הערכים', 'SUBJECTSPACE', 'ARTICLESPACE' ), + 'subjectspacee' => array( 1, 'מרחב הנושא מקודד', 'מרחב הערכים מקודד', 'SUBJECTSPACEE', 'ARTICLESPACEE' ), + 'fullpagename' => array( 1, 'שם הדף המלא', 'FULLPAGENAME' ), + 'fullpagenamee' => array( 1, 'שם הדף המלא מקודד', 'FULLPAGENAMEE' ), + 'subpagename' => array( 1, 'שם דף המשנה', 'SUBPAGENAME' ), + 'subpagenamee' => array( 1, 'שם דף המשנה מקודד', 'SUBPAGENAMEE' ), + 'basepagename' => array( 1, 'שם דף הבסיס', 'BASEPAGENAME' ), + 'basepagenamee' => array( 1, 'שם דף הבסיס מקודד', 'BASEPAGENAMEE' ), + 'talkpagename' => array( 1, 'שם דף השיחה', 'TALKPAGENAME' ), + 'talkpagenamee' => array( 1, 'שם דף השיחה מקודד', 'TALKPAGENAMEE' ), + 'subjectpagename' => array( 1, 'שם דף הנושא', 'שם הערך', 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ), + 'subjectpagenamee' => array( 1, 'שם דף הנושא מקודד', 'שם הערך מקודד', 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ), + 'msg' => array( 0, 'הכללה:', 'MSG:' ), + 'subst' => array( 0, 'ס:', 'SUBST:' ), + 'msgnw' => array( 0, 'הכללת מקור', 'MSGNW:' ), + 'end' => array( 0, '__סוף__', '__END__' ), + 'img_thumbnail' => array( 1, 'ממוזער', 'thumbnail', 'thumb' ), + 'img_manualthumb' => array( 1, 'ממוזער=$1', 'thumbnail=$1', 'thumb=$1'), + 'img_right' => array( 1, 'ימין', 'right' ), + 'img_left' => array( 1, 'שמאל', 'left' ), + 'img_none' => array( 1, 'ללא', 'none' ), + 'img_width' => array( 1, '$1px', '$1px' ), + 'img_center' => array( 1, 'מרכז', 'center', 'centre' ), + 'img_framed' => array( 1, 'ממוסגר', 'מסגרת', 'framed', 'enframed', 'frame' ), + 'int' => array( 0, 'הודעה:', 'INT:' ), + 'sitename' => array( 1, 'שם האתר', 'SITENAME' ), + 'ns' => array( 0, 'מרחב שם:', 'NS:' ), + 'localurl' => array( 0, 'כתובת יחסית:', 'LOCALURL:' ), + 'localurle' => array( 0, 'כתובת יחסית מקודד:', 'LOCALURLE:' ), + 'server' => array( 0, 'כתובת השרת', 'שרת', 'SERVER' ), + 'servername' => array( 0, 'שם השרת', 'SERVERNAME' ), + 'scriptpath' => array( 0, 'נתיב הקבצים', 'SCRIPTPATH' ), + 'grammar' => array( 0, 'דקדוק:', 'GRAMMAR:' ), + 'notitleconvert' => array( 0, '__ללא_המרת_כותרת__', '__NOTITLECONVERT__', '__NOTC__'), + 'nocontentconvert' => array( 0, '__ללא_המרת_תוכן__', '__NOCONTENTCONVERT__', '__NOCC__'), + 'currentweek' => array( 1, 'שבוע נוכחי', 'CURRENTWEEK' ), + 'currentdow' => array( 1, 'מספר יום נוכחי', 'CURRENTDOW' ), + 'revisionid' => array( 1, 'מזהה גרסה', 'REVISIONID' ), + 'plural' => array( 0, 'רבים:', 'PLURAL:' ), + 'fullurl' => array( 0, 'כתובת מלאה:', 'FULLURL:' ), + 'fullurle' => array( 0, 'כתובת מלאה מקודד:', 'FULLURLE:' ), + 'lcfirst' => array( 0, 'אות ראשונה קטנה:', 'LCFIRST:' ), + 'ucfirst' => array( 0, 'אות ראשונה גדולה:', 'UCFIRST:' ), + 'lc' => array( 0, 'אותיות קטנות:', 'LC:' ), + 'uc' => array( 0, 'אותיות גדולות:', 'UC:' ), + 'raw' => array( 0, 'ללא עיבוד:', 'RAW:' ), + 'displaytitle' => array( 1, 'כותרת תצוגה', 'DISPLAYTITLE' ), + 'rawsuffix' => array( 1, 'ללא פסיק', 'R' ), + 'newsectionlink' => array( 1, '__יצירת_הערה__', '__NEWSECTIONLINK__' ), + 'currentversion' => array( 1, 'גרסה נוכחית', 'CURRENTVERSION' ), + 'urlencode' => array( 0, 'נתיב מקודד:', 'URLENCODE:' ), + 'currenttimestamp' => array( 1, 'זמן נוכחי', 'CURRENTTIMESTAMP' ), + 'directionmark' => array( 1, 'סימן כיווניות', 'DIRECTIONMARK', 'DIRMARK' ), + 'language' => array( 0, '#שפה:', '#LANGUAGE:' ), + 'contentlanguage' => array( 1, 'שפת תוכן', 'CONTENTLANGUAGE', 'CONTENTLANG' ), + 'pagesinnamespace' => array( 1, 'דפים במרחב השם:', 'PAGESINNAMESPACE:', 'PAGESINNS:' ), + 'numberofadmins' => array( 1, 'מספר מפעילים', 'NUMBEROFADMINS' ), +); + +$namespaceNames = array( + NS_MEDIA => "מדיה", + NS_SPECIAL => "מיוחד", + NS_MAIN => "", + NS_TALK => "שיחה", + NS_USER => "משתמש", + NS_USER_TALK => "שיחת_משתמש", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "שיחת_$1", + NS_IMAGE => "תמונה", + NS_IMAGE_TALK => "שיחת_תמונה", + NS_MEDIAWIKI => "מדיה_ויקי", + NS_MEDIAWIKI_TALK => "שיחת_מדיה_ויקי", + NS_TEMPLATE => "תבנית", + NS_TEMPLATE_TALK => "שיחת_תבנית", + NS_HELP => "עזרה", + NS_HELP_TALK => "שיחת_עזרה", + NS_CATEGORY => "קטגוריה", + NS_CATEGORY_TALK => "שיחת_קטגוריה", +); + + +$messages = array( # User preference toggles "tog-underline" => "סמן קישורים בקו תחתי", diff --git a/languages/MessagesHi.php b/languages/MessagesHi.php index c2be3b3baa..dda9634826 100644 --- a/languages/MessagesHi.php +++ b/languages/MessagesHi.php @@ -1,7 +1,40 @@ 'Media', + NS_SPECIAL => 'विशेष', + NS_MAIN => '', + NS_TALK => 'वार्ता', + NS_USER => 'सदस्य', + NS_USER_TALK => 'सदस्य_वार्ता', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_वार्ता', + NS_IMAGE => 'चित्र', + NS_IMAGE_TALK => 'चित्र_वार्ता', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_talk', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Template_talk', + NS_CATEGORY => 'श्रेणी', + NS_CATEGORY_TALK => 'श्रेणी_वार्ता', +); + +$digitTransformTable = array( + "0" => "०", + "1" => "१", + "2" => "२", + "3" => "३", + "4" => "४", + "5" => "५", + "6" => "६", + "7" => "७", + "8" => "८", + "9" => "९" +); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; + -/* private */ $wgAllMessagesHi = array( +$messages = array( # Dates # @@ -39,7 +72,6 @@ # Bits of text used by many pages: # -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "मुख्य पृष्ठ", "about" => "अबाउट", "aboutsite" => "{{SITENAME}} के बारे में", diff --git a/languages/MessagesHr.php b/languages/MessagesHr.php index aa1c3fbb83..a473a5c1de 100644 --- a/languages/MessagesHr.php +++ b/languages/MessagesHr.php @@ -1,7 +1,63 @@ 'Standardna', + 'nostalgia' => 'Nostalgija', + 'cologneblue' => 'Kölnska plava', + 'smarty' => 'Paddington', + 'montparnasse' => 'Montparnasse', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Chick' +); + +$namespaceNames = array( + NS_MEDIA => 'Mediji', + NS_SPECIAL => 'Posebno', + NS_MAIN => '', + NS_TALK => 'Razgovor', + NS_USER => 'Suradnik', + NS_USER_TALK => 'Razgovor_sa_suradnikom', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Razgovor_$1', + NS_IMAGE => 'Slika', + NS_IMAGE_TALK => 'Razgovor_o_slici', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_razgovor', + NS_TEMPLATE => 'Predložak', + NS_TEMPLATE_TALK => 'Razgovor_o_predlošku', + NS_HELP => 'Pomoć', + NS_HELP_TALK => 'Razgovor_o_pomoći', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Razgovor_o_kategoriji' +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. F Y.', + 'dmy both' => 'H:i, j. F Y.', +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$fallback8bitEncoding = 'iso-8859-2'; +$linkTrail = '/^([čšžćđßa-z]+)(.*)$/sDu'; + + +$messages = array( 'tog-underline' => 'Podcrtane poveznice', 'tog-highlightbroken' => 'Istakni prazne poveznice drugom bojom (inače, upitnikom na kraju).', 'tog-justify' => 'Poravnaj odlomke i zdesna', diff --git a/languages/MessagesHu.php b/languages/MessagesHu.php index e5eacb50c8..55728109c9 100644 --- a/languages/MessagesHu.php +++ b/languages/MessagesHu.php @@ -1,7 +1,57 @@ "Média", + NS_SPECIAL => "Speciális", + NS_MAIN => "", + NS_TALK => "Vita", + NS_USER => "User", + NS_USER_TALK => "User_vita", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "$1_vita", + NS_IMAGE => "Kép", + NS_IMAGE_TALK => "Kép_vita", + NS_MEDIAWIKI => "MediaWiki", + NS_MEDIAWIKI_TALK => "MediaWiki_vita", + NS_TEMPLATE => "Sablon", + NS_TEMPLATE_TALK => "Sablon_vita", + NS_HELP => "Segítség", + NS_HELP_TALK => "Segítség_vita", + NS_CATEGORY => "Kategória", + NS_CATEGORY_TALK => "Kategória_vita" +); + + +$quickbarSettings = array( + "Nincs", "Fix baloldali", "Fix jobboldali", "Lebegő baloldali" +); + +$skinNames = array( + 'standard' => "Alap", + 'nostalgia' => "Nosztalgia", + 'cologneblue' => "Kölni kék" +); + +$fallback8bitEncoding = "iso8859-2"; +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); + +$datePreferences = false; +$defaultDateFormat = 'ymd'; +$dateFormats = array( + 'ymd time' => 'H:i', + 'ymd date' => 'Y. F j.', + 'ymd both' => 'Y. F j., H:i', +); + +$messages = array( 'tog-underline' => 'Linkek aláhúzása:', 'tog-highlightbroken' => 'Törött linkek így (alternatíva: így?).', 'tog-justify' => 'Bekezdések teljes szélességű tördelése („sorkizárás”)', @@ -69,7 +119,7 @@ $wgAllMessagesHu = array( 'mainpagetext' => 'Wiki szoftver sikeresen telepítve.', 'portal' => 'Közösségi portál', 'about' => 'Névjegy', -'aboutsite' => 'A {{SITENAME}}ROL', +'aboutsite' => 'A {{grammar:rol|{{SITENAME}}}}', 'aboutpage' => 'Project:Névjegy', 'article' => 'Szócikk', 'help' => 'Segítség', @@ -239,7 +289,7 @@ Ne felejtsd el átnézni a személyes {{SITENAME}} beállításaidat.', 'loginproblem' => 'Valami probléma van a belépéseddel.
    Kérlek, próbáld ismét!', 'alreadyloggedin' => 'Kedves $1, már be vagy lépve!
    ', 'login' => 'Belépés', -'loginprompt' => 'Engedélyezned kell a cookie-kat, hogy bejelentkezhess a {{SITENAME}}BA.', +'loginprompt' => 'Engedélyezned kell a cookie-kat, hogy bejelentkezhess a {{grammar:ba|{{SITENAME}}}}.', 'userlogin' => 'Belépés', 'logout' => 'Kilépés', 'userlogout' => 'Kilépés', @@ -264,7 +314,7 @@ Ne felejtsd el átnézni a személyes {{SITENAME}} beállításaidat.', 'nocookieslogin' => 'A(z) {{SITENAME}} cookie-kat ("sütiket") használ az azonosításhoz, de te ezeket letiltottad. Engedélyezd őket, majd próbálkozz ismét.', 'noname' => 'Nem adtál meg érvényes felhasználói nevet.', 'loginsuccesstitle' => 'Sikeres belépés', -'loginsuccess' => 'Beléptél a {{SITENAME}}BA "$1"-ként.', +'loginsuccess' => 'Beléptél a {{grammar:ba|{{SITENAME}}}} "$1"-ként.', 'nosuchuser' => 'Nincs olyan felhasználó hogy "$1". Ellenőrizd a gépelést, vagy készíts új nevet a fent látható űrlappal.', 'wrongpassword' => 'A megadott jelszó helytelen.', @@ -572,7 +622,7 @@ mást, amit fontosnak tartasz. Ha egy képet töltöttél fel, így tudod beille 'sitestats' => 'Server statisztika', 'userstats' => 'Felhasználói statisztikák', 'sitestatstext' => 'Az adatbázisban összesen \'\'\'$1\'\'\' lap található. -Ebben benne vannak a „vita”-lapok, a {{SITENAME}}ROL szóló lapok, a +Ebben benne vannak a „vita”-lapok, a {{grammar:rol|{{SITENAME}}}} szóló lapok, a nagyon rövid („csonk”) lapok, átirányítások, és más olyan lapok, amik vélhetően nem számítanak igazi lapnak. Ezeket nem számítva \'\'$2\'\' lapunk van. @@ -630,7 +680,7 @@ $7 [http://meta.wikimedia.org/wiki/Help:Job_queue elvégzetlen feladat] van.', 'move' => 'Átmozgat', 'movethispage' => 'Mozgasd ezt a lapot', 'unusedimagestext' => '

    Vedd figyelembe azt hogy más -lapok - mint például a nemzetközi {{SITENAME}}K - közvetlenül +lapok - mint például a nemzetközi {{grammar:k|{{SITENAME}}}} - közvetlenül hivatkozhatnak egy file URL-jére, ezért szerepelhet itt annak ellenére hogy aktívan használják.

    ', 'unusedcategoriestext' => 'A következő kategóriákban egyetlen cikk, illetve alkategória sem szerepel.', diff --git a/languages/MessagesIa.php b/languages/MessagesIa.php index 1c9de6eea9..1178d3f5b5 100644 --- a/languages/MessagesIa.php +++ b/languages/MessagesIa.php @@ -1,7 +1,41 @@ 'Blau Colonia', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Discussion', + NS_USER => 'Usator', + NS_USER_TALK => 'Discussion_Usator', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discussion_$1', + NS_IMAGE => 'Imagine', + NS_IMAGE_TALK => 'Discussion_Imagine', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', + NS_TEMPLATE => 'Patrono', + NS_TEMPLATE_TALK => 'Discussion_Patrono', + NS_HELP => 'Adjuta', + NS_HELP_TALK => 'Discussion_Adjuta', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discussion_Categoria' +); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; + -global $wgAllMessagesIa; -$wgAllMessagesIa = array( +$messages = array( # User Toggles # @@ -58,7 +92,6 @@ $wgAllMessagesIa = array( # Bits of text used by many pages: # -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "Frontispicio", "about" => "A proposito", "aboutsite" => "A proposito de {{SITENAME}}", diff --git a/languages/MessagesId.php b/languages/MessagesId.php index 2454975625..1cf1139121 100644 --- a/languages/MessagesId.php +++ b/languages/MessagesId.php @@ -1,7 +1,55 @@ 'Standar', +); + +$bookstoreList = array( + 'Gramedia Cyberstore (via Google)' => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id', + 'Bhinneka.com bookstore' => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1', +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Istimewa', + NS_MAIN => '', + NS_TALK => 'Bicara', + NS_USER => 'Pengguna', + NS_USER_TALK => 'Bicara_Pengguna', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Pembicaraan_$1', + NS_IMAGE => 'Gambar', + NS_IMAGE_TALK => 'Pembicaraan_Gambar', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Pembicaraan_MediaWiki', + NS_TEMPLATE => 'Templat', + NS_TEMPLATE_TALK => 'Pembicaraan_Templat', + NS_HELP => 'Bantuan', + NS_HELP_TALK => 'Pembicaraan_Bantuan', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Pembicaraan_Kategori' +); + +$namespaceAliases = array( + 'Gambar_Pembicaraan' => NS_IMAGE_TALK, + 'MediaWiki_Pembicaraan' => NS_MEDIAWIKI_TALK, + 'Templat_Pembicaraan' => NS_TEMPLATE_TALK, + 'Bantuan_Pembicaraan' => NS_HELP_TALK, + 'Kategori_Pembicaraan' => NS_CATEGORY_TALK, +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$datePreferences = false; -global $wgAllMessagesId; -$wgAllMessagesId = array( +$messages = array( # User preference toggles 'tog-underline' => 'Garis bawahi pranala', diff --git a/languages/MessagesIi.php b/languages/MessagesIi.php new file mode 100644 index 0000000000..314684f22e --- /dev/null +++ b/languages/MessagesIi.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesIs.php b/languages/MessagesIs.php index 551f944050..a286ffa9db 100644 --- a/languages/MessagesIs.php +++ b/languages/MessagesIs.php @@ -1,12 +1,89 @@ 'Klassískt', + 'nostalgia' => 'Gamaldags', + 'cologneblue' => 'Kölnarblátt', + 'myskin' => 'Mitt þema', +); + +$datePreferences = array( + 'default', + 'dmyt', + 'short dmyt', + 'tdmy', + 'short tdmy', + 'ISO 8601', +); + +$datePreferenceMigrationMap = array( + 'default', + 'dmyt', + 'short dmyt', + 'tdmy', + 'short tdmy', +); + +$dateFormats = array( + 'dmyt time' => 'H:i', + 'dmyt date' => 'j. F Y', + 'dmyt both' => 'j. F Y "kl." H:i', + + 'short dmyt time' => 'H:i', + 'short dmyt date' => 'j. M. Y', + 'short dmyt both' => 'j. M. Y "kl." H:i', + + 'tdmy time' => 'H:i', + 'tdmy date' => 'j. F Y', + 'tdmy both' => 'H:i, j. F Y', + + 'short tdmy time' => 'H:i', + 'short tdmy date' => 'j. M. Y', + 'short tdmy both' => 'H:i, j. M. Y', +); + +$magicWords = array( + 'redirect' => array( 0, '#tilvísun', '#TILVÍSUN', '#redirect' ), // MagicWord::initRegex() sucks +); +$namespaceNames = array( + NS_MEDIA => 'Miðill', + NS_SPECIAL => 'Kerfissíða', + NS_MAIN => '', + NS_TALK => 'Spjall', + NS_USER => 'Notandi', + NS_USER_TALK => 'Notandaspjall', + NS_PROJECT_TALK => '$1spjall', + NS_IMAGE => 'Mynd', + NS_IMAGE_TALK => 'Myndaspjall', + NS_MEDIAWIKI => 'Melding', + NS_MEDIAWIKI_TALK => 'Meldingarspjall', + NS_TEMPLATE => 'Snið', + NS_TEMPLATE_TALK => 'Sniðaspjall', + NS_HELP => 'Hjálp', + NS_HELP_TALK => 'Hjálparspjall', + NS_CATEGORY => 'Flokkur', + NS_CATEGORY_TALK => 'Flokkaspjall' +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkPrefixExtension = true; +$linkTrail = '/^([áðéíóúýþæöa-z-–]+)(.*)$/sDu'; + #------------------------------------------------------------------- # Default messages #------------------------------------------------------------------- -$wgAllMessagesIs = array( -'linktrail' => '/^([áðéíóúýþæöa-z-–]+)(.*)$/sDu', +$messages = array( 'linkprefix'=> '/^(.*?)([áÁðÐéÉíÍóÓúÚýÝþÞæÆöÖA-Za-z-–]+)$/sDu', '1movedto2' => "$1 færð á $2", diff --git a/languages/MessagesIt.php b/languages/MessagesIt.php index d8a0a39ee0..fba8441b87 100644 --- a/languages/MessagesIt.php +++ b/languages/MessagesIt.php @@ -1,7 +1,51 @@ 'Media', + NS_SPECIAL => 'Speciale', + NS_MAIN => '', + NS_TALK => 'Discussione', + NS_USER => 'Utente', + NS_USER_TALK => 'Discussioni_utente', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discussioni_$1', + NS_IMAGE => 'Immagine', + NS_IMAGE_TALK => 'Discussioni_immagine', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussioni_MediaWiki', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Discussioni_template', + NS_HELP => 'Aiuto', + NS_HELP_TALK => 'Discussioni_aiuto', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discussioni_categoria' +); + +$quickbarSettings = array( + 'Nessuno', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra' +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H:i, M j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i, j M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); -global $wgAllMessagesIt; -$wgAllMessagesIt = array( +$messages = array( # User preference toggles "tog-underline" => "Sottolinea i collegamenti", diff --git a/languages/MessagesJa.php b/languages/MessagesJa.php index 9aac453014..def903b4a9 100644 --- a/languages/MessagesJa.php +++ b/languages/MessagesJa.php @@ -1,7 +1,57 @@ "標準", + 'nostalgia' => "ノスタルジア", + 'cologneblue' => "ケルンブルー", +); + +$datePreferences = array( + 'default', + 'ISO 8601', +); + +$defaultDateFormat = 'ja'; + +$dateFormats = array( + 'ja time' => 'H:i', + 'ja date' => 'Y年n月j日 (D)', + 'ja both' => 'Y年n月j日 (D) H:i', +); + +$namespaceNames = array( + NS_MEDIA => "Media", /* Media */ + NS_SPECIAL => "特別", /* Special */ + NS_MAIN => "", + NS_TALK => "ノート", /* Talk */ + NS_USER => "利用者", /* User */ + NS_USER_TALK => "利用者‐会話", /* User_talk */ + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1‐ノート', /* Wikipedia_talk */ + NS_IMAGE => "画像", /* Image */ + NS_IMAGE_TALK => "画像‐ノート", /* Image_talk */ + NS_MEDIAWIKI => "MediaWiki", /* MediaWiki */ + NS_MEDIAWIKI_TALK => "MediaWiki‐ノート", /* MediaWiki_talk */ + NS_TEMPLATE => "Template", /* Template */ + NS_TEMPLATE_TALK => "Template‐ノート", /* Template_talk */ + NS_HELP => "Help", /* Help */ + NS_HELP_TALK => "Help‐ノート", /* Help_talk */ + NS_CATEGORY => "Category", /* Category */ + NS_CATEGORY_TALK => "Category‐ノート" /* Category_talk */ +); + + +$messages = array( 'tog-underline' => 'リンクの下線:', 'tog-highlightbroken' => '未作成のページへのリンクをハイライトする', 'tog-justify' => '段落を均等割り付けする', @@ -47,6 +97,13 @@ $wgAllMessagesJa = array( 'thursday' => '木曜日', 'friday' => '金曜日', 'saturday' => '土曜日', +'sun' => '日', +'mon' => '月', +'tue' => '火', +'wed' => '水', +'thu' => '木', +'fri' => '金', +'sat' => '土', 'january' => '1月', 'february' => '2月', 'march' => '3月', diff --git a/languages/MessagesJv.php b/languages/MessagesJv.php index dd310e4a4e..45899f69f2 100644 --- a/languages/MessagesJv.php +++ b/languages/MessagesJv.php @@ -1,6 +1,45 @@ 'Media', + NS_SPECIAL => 'Astamiwa', + NS_MAIN => '', + NS_TALK => 'Dhiskusi', + NS_USER => 'Panganggo', + NS_USER_TALK => 'Dhiskusi_Panganggo', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Dhiskusi_$1', + NS_IMAGE => 'Gambar', + NS_IMAGE_TALK => 'Dhiskusi_Gambar', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Dhiskusi_MediaWiki', + NS_TEMPLATE => 'Cithakan', + NS_TEMPLATE_TALK => 'Dhiskusi_Cithakan', + NS_HELP => 'Pitulung', + NS_HELP_TALK => 'Dhiskusi_Pitulung', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Dhiskusi_Kategori' +); + +$namespaceAliases = array( + 'Gambar_Dhiskusi' => NS_IMAGE_TALK, + 'MediaWiki_Dhiskusi' => NS_MEDIAWIKI_TALK, + 'Cithakan_Dhiskusi' => NS_TEMPLATE_TALK, + 'Pitulung_Dhiskusi' => NS_HELP_TALK, + 'Kategori_Dhiskusi' => NS_CATEGORY_TALK, ); ?> diff --git a/languages/MessagesKa.php b/languages/MessagesKa.php new file mode 100644 index 0000000000..7d00fe3385 --- /dev/null +++ b/languages/MessagesKa.php @@ -0,0 +1,28 @@ + 'მედია', + NS_SPECIAL => 'სპეციალური', + NS_MAIN => '', + NS_TALK => 'განხილვა', + NS_USER => 'მომხმარებელი', + NS_USER_TALK => 'მომხმარებელი_განხილვა', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_განხილვა', + NS_IMAGE => 'სურათი', + NS_IMAGE_TALK => 'სურათი_განხილვა', + NS_MEDIAWIKI => 'მედიავიკი', + NS_MEDIAWIKI_TALK => 'მედიავიკი_განხილვა', + NS_TEMPLATE => 'თარგი', + NS_TEMPLATE_TALK => 'თარგი_განხილვა', + NS_HELP => 'დახმარება', + NS_HELP_TALK => 'დახმარება_განხილვა', + NS_CATEGORY => 'კატეგორია', + NS_CATEGORY_TALK => 'კატეგორია_განხილვა' +); + +?> diff --git a/languages/MessagesKm.php b/languages/MessagesKm.php new file mode 100644 index 0000000000..bb2f807eb7 --- /dev/null +++ b/languages/MessagesKm.php @@ -0,0 +1,22 @@ + + */ +$digitTransformTable = array( + '0' => '០', + '1' => '១', + '2' => '២', + '3' => '៣', + '4' => '៤', + '5' => '៥', + '6' => '៦', + '7' => '៧', + '8' => '៨', + '9' => '៩' +); + +?> diff --git a/languages/MessagesKn.php b/languages/MessagesKn.php index 16c24bc9d6..5a7ca0db26 100644 --- a/languages/MessagesKn.php +++ b/languages/MessagesKn.php @@ -1,7 +1,54 @@ + * http://en.wikipedia.org/wiki/User:Hpnadig + * Ashwath Mattur + * http://en.wikipedia.org/wiki/User:Ashwatham + * + * Also see the Kannada Localisation Initiative at: + * http://kannada.sourceforge.net/ + * + * @package MediaWiki + * @subpackage Language + */ + +$namespaceNames = array( + NS_MEDIA => 'ಮೀಡಿಯ', + NS_SPECIAL => 'ವಿಶೇಷ', + NS_MAIN => '', + NS_TALK => 'ಚರ್ಚೆಪುಟ', + NS_USER => 'ಸದಸ್ಯ', + NS_USER_TALK => 'ಸದಸ್ಯರ_ಚರ್ಚೆಪುಟ', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_ಚರ್ಚೆ', + NS_IMAGE => 'ಚಿತ್ರ', + NS_IMAGE_TALK => 'ಚಿತ್ರ_ಚರ್ಚೆಪುಟ', + NS_MEDIAWIKI => 'ಮೀಡಿಯವಿಕಿ', + NS_MEDIAWIKI_TALK => 'ಮೀಡೀಯವಿಕಿ_ಚರ್ಚೆ', + NS_TEMPLATE => 'ಟೆಂಪ್ಲೇಟು', + NS_TEMPLATE_TALK => 'ಟೆಂಪ್ಲೇಟು_ಚರ್ಚೆ', + NS_HELP => 'ಸಹಾಯ', + NS_HELP_TALK => 'ಸಹಾಯ_ಚರ್ಚೆ', + NS_CATEGORY => 'ವರ್ಗ', + NS_CATEGORY_TALK => 'ವರ್ಗ_ಚರ್ಚೆ' +); +$digitTransformTable = array( + '0' => '೦', + '1' => '೧', + '2' => '೨', + '3' => '೩', + '4' => '೪', + '5' => '೫', + '6' => '೬', + '7' => '೭', + '8' => '೮', + '9' => '೯' +); -/* private */ $wgAllMessagesKn = array( +$messages = array( 'jan' => 'ಜನವರಿ', 'feb' => 'ಫೆಬ್ರುವರಿ', 'mar' => 'ಮಾರ್ಚ್', diff --git a/languages/MessagesKo.php b/languages/MessagesKo.php index cd0fcc22c1..56f7195ca0 100644 --- a/languages/MessagesKo.php +++ b/languages/MessagesKo.php @@ -1,7 +1,56 @@ 'Media', + NS_SPECIAL => '특수기능', + NS_MAIN => '', + NS_TALK => '토론', + NS_USER => '사용자', + NS_USER_TALK => '사용자토론', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1토론', + NS_IMAGE => '그림', + NS_IMAGE_TALK => '그림토론', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki토론', + NS_TEMPLATE => '틀', + NS_TEMPLATE_TALK => '틀토론', + NS_HELP => '도움말', + NS_HELP_TALK => '도움말토론', + NS_CATEGORY => '분류', + NS_CATEGORY_TALK => '분류토론', +); + +$quickbarSettings = array( + '없음', '왼쪽', '오른쪽', '왼쪽 고정', '오른쪽 고정' +); + +$skinNames = array( + 'standard' => '표준', + 'davinci' => '다빈치', + 'mono' => '모노', + 'monobook' => '모노북', + 'my skin' => '내 스킨', +); + +$bookstoreList = array( + 'Aladdin.co.kr' => 'http://www.aladdin.co.kr/catalog/book.asp?ISBN=$1', + 'inherit' => true, +); + +$datePreferences = false; +$defaultDateFormat = 'ko'; +$dateFormats = array( + 'ko time' => 'H:i', + 'ko date' => 'Y년 M월 j일 (D)', + 'ko both' => 'Y년 M월 j일 (D) H:i', +); -global $wgAllMessagesKo; -$wgAllMessagesKo = array( +$messages = array( 'tog-underline' => '고리에 밑줄치기:', 'tog-highlightbroken' => '없는 문서로 가는 고리를 이렇게 보이기 (선택하지 않으면 이렇게? 보임)', 'tog-justify' => '문단 정렬', @@ -45,6 +94,13 @@ $wgAllMessagesKo = array( 'thursday' => '목요일', 'friday' => '금요일', 'saturday' => '토요일', +'sun' => '일', +'mon' => '월', +'tue' => '화', +'wed' => '수', +'thu' => '목', +'fri' => '금', +'sat' => '토', 'january' => '1월', 'february' => '2월', 'march' => '3월', diff --git a/languages/MessagesKs.php b/languages/MessagesKs.php new file mode 100644 index 0000000000..07e90cb706 --- /dev/null +++ b/languages/MessagesKs.php @@ -0,0 +1,11 @@ + diff --git a/languages/MessagesKu.php b/languages/MessagesKu.php index 9fa00707df..d7c31ad687 100644 --- a/languages/MessagesKu.php +++ b/languages/MessagesKu.php @@ -1,7 +1,32 @@ 'Medya', + NS_SPECIAL => 'Taybet', + NS_MAIN => '', + NS_TALK => 'Nîqaş', + NS_USER => 'Bikarhêner', + NS_USER_TALK => 'Bikarhêner_nîqaş', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_nîqaş', + NS_IMAGE => 'Wêne', + NS_IMAGE_TALK => 'Wêne_nîqaş', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_nîqaş', + NS_TEMPLATE => 'Şablon', + NS_TEMPLATE_TALK => 'Şablon_nîqaş', + NS_HELP => 'Alîkarî', + NS_HELP_TALK => 'Alîkarî_nîqaş', + NS_CATEGORY => 'Kategorî', + NS_CATEGORY_TALK => 'Kategorî_nîqaş' +); + +$messages = array( 'skinpreview' => '(Pêşdîtin)', 'sunday' => 'yekşem', 'monday' => 'duşem', diff --git a/languages/MessagesKv.php b/languages/MessagesKv.php new file mode 100644 index 0000000000..847676d5dd --- /dev/null +++ b/languages/MessagesKv.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesLa.php b/languages/MessagesLa.php index f1d99ee4a3..1ff092f636 100644 --- a/languages/MessagesLa.php +++ b/languages/MessagesLa.php @@ -1,7 +1,41 @@ 'Norma', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Caerulus Colonia' +); + +$namespaceNames = array( + NS_SPECIAL => 'Specialis', + NS_MAIN => '', + NS_TALK => 'Disputatio', + NS_USER => 'Usor', + NS_USER_TALK => 'Disputatio_Usoris', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Disputatio_{{grammar:genitive|$1}}', + NS_IMAGE => 'Imago', + NS_IMAGE_TALK => 'Disputatio_Imaginis', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Disputatio_MediaWiki', + NS_TEMPLATE => 'Formula', + NS_TEMPLATE_TALK => 'Disputatio_Formulae', + NS_HELP => 'Auxilium', + NS_HELP_TALK => 'Disputatio_Auxilii', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Disputatio_Categoriae', +); + +$messages = array( 'tog-underline' => 'Subscribere nexi', 'tog-highlightbroken' => 'Formare nexos fractos sici (alioqui: sic?).', 'tog-justify' => 'Saepire capites', diff --git a/languages/MessagesLi.php b/languages/MessagesLi.php index f7adc076d0..b6742edd36 100644 --- a/languages/MessagesLi.php +++ b/languages/MessagesLi.php @@ -1,7 +1,56 @@ 'Standaard', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Keuls blauw', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Speciaal', + NS_MAIN => '', + NS_TALK => 'Euverlik', + NS_USER => 'Gebroeker', + NS_USER_TALK => 'Euverlik_gebroeker', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Euverlik_$1', + NS_IMAGE => 'Aafbeilding', + NS_IMAGE_TALK => 'Euverlik_afbeelding', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Euverlik_MediaWiki', + NS_TEMPLATE => 'Sjabloon', + NS_TEMPLATE_TALK => 'Euverlik_sjabloon', + NS_HELP => 'Help', + NS_HELP_TALK => 'Euverlik_help', + NS_CATEGORY => 'Kategorie', + NS_CATEGORY_TALK => 'Euverlik_kategorie' +); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'M j, Y H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'j M Y H:i', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'Y M j H:i', +); + +$messages = array( 'tog-underline' => 'Links ongersjtreipe', 'tog-highlightbroken' => 'Formatteer gebraoke links op dees meneer (angesj: zoe?).', 'tog-justify' => 'Paragrafe oetvulle', diff --git a/languages/MessagesLo.php b/languages/MessagesLo.php new file mode 100644 index 0000000000..b2663f1742 --- /dev/null +++ b/languages/MessagesLo.php @@ -0,0 +1,22 @@ + + */ +$digitTransformTable = array( + '0' => '໐', + '1' => '໑', + '2' => '໒', + '3' => '໓', + '4' => '໔', + '5' => '໕', + '6' => '໖', + '7' => '໗', + '8' => '໘', + '9' => '໙' +); + +?> diff --git a/languages/MessagesLt.php b/languages/MessagesLt.php index 42865a2d05..9e65643287 100644 --- a/languages/MessagesLt.php +++ b/languages/MessagesLt.php @@ -1,9 +1,51 @@ 'Medija', + NS_SPECIAL => 'Specialus', + NS_MAIN => '', + NS_TALK => 'Aptarimas', + NS_USER => 'Naudotojas', + NS_USER_TALK => 'Naudotojo_aptarimas', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_aptarimas', + NS_IMAGE => 'Vaizdas', + NS_IMAGE_TALK => 'Vaizdo_aptarimas', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_aptarimas', + NS_TEMPLATE => 'Šablonas', + NS_TEMPLATE_TALK => 'Šablono_aptarimas', + NS_HELP => 'Pagalba', + NS_HELP_TALK => 'Pagalbos_aptarimas', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Kategorijos_aptarimas', +); + +$quickbarSettings = array( + 'Nerodyti', 'Fiksuoti kairėje', 'Fiksuoti dešinėje', 'Plaukiojantis kairėje' +); + +$skinNames = array( + 'standard' => 'Standartinė', + 'nostalgia' => 'Nostalgija', + 'cologneblue' => 'Kiolno Mėlyna', + 'davinci' => 'Da Vinči', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Chick' +); +$fallback8bitEncoding = 'windows-1257'; +$separatorTransformTable = array(',' => ' ', '.' => ',' ); -/* Messages for LanguageLt */ -global $wgAllMessagesLt; -$wgAllMessagesLt = array( +$messages = array( '1movedto2' => 'Straipsnis \'$1\' pervadintas į \'$2\'', '1movedto2_redir' => '\'$1\' pervadintas į \'$2\' (anksčiau buvo nukreipiamasis)', 'Monobook.js' => '/* tooltips and access keys */ diff --git a/languages/MessagesLv.php b/languages/MessagesLv.php index 7d21c7eb9e..0a0e82b811 100644 --- a/languages/MessagesLv.php +++ b/languages/MessagesLv.php @@ -1,7 +1,39 @@ 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Diskusija', + NS_USER => 'Lietotājs', + NS_USER_TALK => 'Lietotāja_diskusija', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '{{grammar:ģenitīvs|$1}}_diskusija', + NS_IMAGE => 'Attēls', + NS_IMAGE_TALK => 'Attēla_diskusija', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskusija', + NS_TEMPLATE => 'Veidne', + NS_TEMPLATE_TALK => 'Veidnes_diskusija', + NS_HELP => 'Palīdzība', + NS_HELP_TALK => 'Palīdzības_diskusija', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Kategorijas_diskusija', +); +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); + + +$messages= array( 'tog-underline' => 'Pasvītrot saites:', 'tog-highlightbroken' => 'Saites uz neesošām lapām rādīt šādi (alternatīva: šādi?).', 'tog-justify' => 'Taisnot rindkopas', diff --git a/languages/MessagesMk.php b/languages/MessagesMk.php index 9fe0e459fc..7e2519c1eb 100644 --- a/languages/MessagesMk.php +++ b/languages/MessagesMk.php @@ -1,7 +1,93 @@ 'Класика', + 'nostalgia' => 'Носталгија', + 'cologneblue' => 'Келнско сино', + 'davinci' => 'ДаВинчи', + 'mono' => 'Моно', + 'monobook' => 'Monobook', + 'myskin' => 'Моја маска', + 'chick' => 'Шик' +); + +$magicWords = array( + 'redirect' => array( 0, '#redirect', '#пренасочување', '#види' ), + 'notoc' => array( 0, '__NOTOC__', '__БЕЗСОДРЖИНА__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__СОСОДРЖИНА__' ), + 'toc' => array( 0, '__TOC__', '__СОДРЖИНА__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__' , '__БЕЗ_УРЕДУВАЊЕ_НА_СЕКЦИИ__'), + 'start' => array( 0, '__START__' , '__ПОЧЕТОК__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'СЕГАШЕНМЕСЕЦ' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'СЕГАШЕНМЕСЕЦИМЕ' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'СЕГАШЕНМЕСЕЦИМЕРОД' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'СЕГАШЕНМЕСЕЦСКР' ), + 'currentday' => array( 1, 'CURRENTDAY', 'СЕГАШЕНДЕН' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'СЕГАШЕНДЕНИМЕ' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'СЕГАШНАГОДИНА' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'СЕГАШНОВРЕМЕ' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЈСТАТИИ' ), + 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦАИ' ), + 'namespace' => array( 1, 'NAMESPACE', 'ИМЕПРОСТОР' ), + 'subst' => array( 0, 'SUBST:', 'ЗАМЕСТ:' ), + 'msgnw' => array( 0, 'MSGNW:', 'ИЗВЕШТNW:' ), + 'end' => array( 0, '', '__КРАЈ__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), + 'img_right' => array( 1, 'right', 'десно', 'д' ), + 'img_left' => array( 1, 'left', 'лево', 'л' ), + 'img_none' => array( 1, 'none', 'н' ), + 'img_width' => array( 1, '$1px', '$1пкс' , '$1п' ), + 'img_center' => array( 1, 'center', 'centre', 'центар', 'ц' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'рамка', 'ворамка' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'ИМЕНАСАЈТ' ), + 'ns' => array( 0, 'NS:' ), + 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛНААДРЕСА:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛНААДРЕСАИ:' ), + 'server' => array( 0, 'SERVER', 'СЕРВЕР' ), + 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), + 'currentweek' => array( 1, 'CURRENTWEEK', 'СЕГАШНАСЕДМИЦА'), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' ), +); + +$namespaceNames = array( + NS_MEDIA => 'Медија', + NS_SPECIAL => 'Специјални', + NS_MAIN => '', + NS_TALK => 'Разговор', + NS_USER => 'Корисник', + NS_USER_TALK => 'Разговор_со_корисник', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Разговор_за_$1', + NS_IMAGE => 'Слика', + NS_IMAGE_TALK => 'Разговор_за_слика', + NS_MEDIAWIKI => 'МедијаВики', + NS_MEDIAWIKI_TALK => 'Разговор_за_МедијаВики', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Разговор_за_шаблон', + NS_HELP => 'Помош', + NS_HELP_TALK => 'Разговор_за_помош', + NS_CATEGORY => 'Категорија', + NS_CATEGORY_TALK => 'Разговор_за_категорија', +); + +$linkTrail = '/^([a-zабвгдѓежзѕијклљмнњопрстќуфхцчџш]+)(.*)$/sDu'; +$separatorTransformTable = array(',' => '.', '.' => ',' ); + +$messages = array( 'tog-underline' => 'Потцртај ги врските', 'tog-highlightbroken' => 'Покажи ги неправилните врски вака (алтернативно: вака?).', 'tog-justify' => 'Двостранично порамнување на параграфите', diff --git a/languages/MessagesMl.php b/languages/MessagesMl.php new file mode 100644 index 0000000000..d004f4359b --- /dev/null +++ b/languages/MessagesMl.php @@ -0,0 +1,23 @@ + + */ + +$digitTransformTable = array( + '0' => '൦', + '1' => '൧', + '2' => '൨', + '3' => '൩', + '4' => '൪', + '5' => '൫', + '6' => '൬', + '7' => '൭', + '8' => '൮', + '9' => '൯' +); + +?> diff --git a/languages/MessagesMs.php b/languages/MessagesMs.php index 74ac9adfaf..3f8dd35333 100644 --- a/languages/MessagesMs.php +++ b/languages/MessagesMs.php @@ -1,7 +1,42 @@ 'Media', + NS_SPECIAL => 'Istimewa', #Special + NS_MAIN => '', + NS_TALK => 'Perbualan',#Talk + NS_USER => 'Pengguna',#User + NS_USER_TALK => 'Perbualan_Pengguna',#User_talk + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Perbualan_$1',#Wikipedia_talk + NS_IMAGE => 'Imej',#Image + NS_IMAGE_TALK => 'Imej_Perbualan',#Image_talk + NS_MEDIAWIKI => 'MediaWiki',#MediaWiki + NS_MEDIAWIKI_TALK => 'MediaWiki_Perbualan',#MediaWiki_talk + NS_TEMPLATE => 'Templat',#Template + NS_TEMPLATE_TALK => 'Perbualan_Templat',#Template_talk + NS_CATEGORY => 'Kategori',#Category + NS_CATEGORY_TALK => 'Perbualan_Kategori',#Category_talk + NS_HELP => 'Bantuan',#Help + NS_HELP_TALK => 'Perbualan_Bantuan' #Help_talk +); + +$datePreferences = false; + + +$messages = array( # User Toggles diff --git a/languages/MessagesNah.php b/languages/MessagesNah.php index 9ebf344f3b..b3f4b31fa5 100644 --- a/languages/MessagesNah.php +++ b/languages/MessagesNah.php @@ -1,7 +1,21 @@ + * + * @copyright Copyright © 2006, Rob Church + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + */ -global $wgAllMessagesNah; -$wgAllMessagesNah = array( +# Per conversation with a user in IRC, we inherit from Spanish and work from there +# Nahuatl was the language of the Aztecs, and a modern speaker is most likely to +# understand Spanish if a Nah translation is not available +$fallback = 'es'; + +$messages = array( # Month names 'january' => 'Tlacenti', @@ -34,4 +48,4 @@ $wgAllMessagesNah = array( ); -?> \ No newline at end of file +?> diff --git a/languages/MessagesNap.php b/languages/MessagesNap.php new file mode 100644 index 0000000000..64924cf395 --- /dev/null +++ b/languages/MessagesNap.php @@ -0,0 +1,10 @@ + diff --git a/languages/MessagesNds.php b/languages/MessagesNds.php index 5ca7d58f31..9a94187687 100644 --- a/languages/MessagesNds.php +++ b/languages/MessagesNds.php @@ -1,7 +1,106 @@ array( 0, '#redirect', '#wiederleiden' ), + 'notoc' => array( 0, '__NOTOC__', '__KEENINHOLTVERTEKEN__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__WIESINHOLTVERTEKEN__' ), + 'toc' => array( 0, '__TOC__', '__INHOLTVERTEKEN__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__KEENÄNNERNLINK__' ), + 'start' => array( 0, '__START__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'AKTMAAND' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'AKTMAANDNAAM' ), + 'currentday' => array( 1, 'CURRENTDAY', 'AKTDAG' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'AKTDAGNAAM' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTJOHR' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'AKTTIED' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'ARTIKELTALL' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'AKTMAANDNAAMGEN' ), + 'pagename' => array( 1, 'PAGENAME', 'SIETNAAM' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'SIETNAAME' ), + 'namespace' => array( 1, 'NAMESPACE', 'NAAMRUUM' ), + 'subst' => array( 0, 'SUBST:' ), + 'msgnw' => array( 0, 'MSGNW:' ), + 'end' => array( 0, '__END__', '__ENN__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'duum' ), + 'img_right' => array( 1, 'right', 'rechts' ), + 'img_left' => array( 1, 'left', 'links' ), + 'img_none' => array( 1, 'none', 'keen' ), + 'img_width' => array( 1, '$1px', '$1px' ), + 'img_center' => array( 1, 'center', 'centre', 'merrn' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rahmt' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'STEEDNAAM' ), + 'ns' => array( 0, 'NS:', 'NR:' ), + 'localurl' => array( 0, 'LOCALURL:', 'STEEDURL:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'STEEDURLE:' ), + 'server' => array( 0, 'SERVER', 'SERVER' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMMATIK:' ) +); + +$skinNames = array( + 'standard' => 'Klassik', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Kölsch Blau', + 'smarty' => 'Paddington', + 'chick' => 'Küken' +); + + +$bookstoreList = array( + 'Verteken vun leverbore Böker' => 'http://www.buchhandel.de/sixcms/list.php?page=buchhandel_profisuche_frameset&suchfeld=isbn&suchwert=$1=0&y=0', + 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1', + 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', + 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Spezial', + NS_MAIN => '', + NS_TALK => 'Diskuschoon', + NS_USER => 'Bruker', + NS_USER_TALK => 'Bruker_Diskuschoon', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Diskuschoon', + NS_IMAGE => 'Bild', + NS_IMAGE_TALK => 'Bild_Diskuschoon', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Diskuschoon', + NS_TEMPLATE => 'Vörlaag', + NS_TEMPLATE_TALK => 'Vörlaag_Diskuschoon', + NS_HELP => 'Hülp', + NS_HELP_TALK => 'Hülp_Diskuschoon', + NS_CATEGORY => 'Kategorie', + NS_CATEGORY_TALK => 'Kategorie_Diskuschoon' +); +$linkTrail = '/^([äöüßa-z]+)(.*)$/sDu'; +$separatorTransformTable = array(',' => '.', '.' => ',' ); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j., Y', + 'mdy both' => 'H:i, M j., Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'H:i, j. M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j.', + 'ymd both' => 'H:i, Y M j.', +); -/* private */ $wgAllMessagesNds = array( +$messages = array( # Schalter för de Brukers 'tog-underline' => 'Verwies ünnerstrieken', 'tog-highlightbroken' => 'Verwies op leddige Sieten hervörheven', @@ -61,7 +160,6 @@ 'category' => 'Kategorie', 'category_header' => 'Sieten in de Kategorie $1', 'subcategories' => 'Ünnerkategorien', -'linktrail' => '/^([äöüßa-z]+)(.*)$/sDu', 'mainpage' => 'Hööftsiet', 'mainpagetext' => 'De Wiki-Software is mit Spood installeert worrn.', 'mainpagedocfooter' => 'Kiek de [http://meta.wikipedia.org/wiki/MediaWiki_i18n Dokumentatschoon för dat Anpassen vun de Brukerböversiet] diff --git a/languages/MessagesNds_nl.php b/languages/MessagesNds_nl.php new file mode 100644 index 0000000000..cfacc11621 --- /dev/null +++ b/languages/MessagesNds_nl.php @@ -0,0 +1,60 @@ +, Jens Frank + * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Jens Frank + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + */ + +$fallback = 'nds'; + +$skinNames = array( + 'standard' => 'Klassiek', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Keuls blauw', + 'smarty' => 'Paddington', + 'chick' => 'Sjiek' +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Speciaol', + NS_MAIN => '', + NS_TALK => 'Overleg', + NS_USER => 'Gebruker', + NS_USER_TALK => 'Overleg_gebruker', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Overleg_$1', + NS_IMAGE => 'Ofbeelding', + NS_IMAGE_TALK => 'Overleg_ofbeelding', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Overleg_MediaWiki', + NS_TEMPLATE => 'Sjabloon', + NS_TEMPLATE_TALK => 'Overleg_sjabloon', + NS_HELP => 'Help', + NS_HELP_TALK => 'Overleg_help', + NS_CATEGORY => 'Categorie', + NS_CATEGORY_TALK => 'Overleg_categorie' +); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H:i, M j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i, j M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); + + +?> diff --git a/languages/MessagesNl.php b/languages/MessagesNl.php index f4edac48d7..b5bac7828e 100644 --- a/languages/MessagesNl.php +++ b/languages/MessagesNl.php @@ -1,5 +1,61 @@ 'Standaard', + 'nostalgia' => 'Nostalgie', + 'cologneblue' => 'Keuls blauw', +); + +$bookstoreList = array( + 'Koninklijke Bibliotheek' => 'http://opc4.kb.nl/DB=1/SET=5/TTL=1/CMD?ACT=SRCH&IKT=1007&SRT=RLV&TRM=$1' +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Speciaal', + NS_MAIN => '', + NS_TALK => 'Overleg', + NS_USER => 'Gebruiker', + NS_USER_TALK => 'Overleg_gebruiker', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Overleg_$1', + NS_IMAGE => 'Afbeelding', + NS_IMAGE_TALK => 'Overleg_afbeelding', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Overleg_MediaWiki', + NS_TEMPLATE => 'Sjabloon', + NS_TEMPLATE_TALK => 'Overleg_sjabloon', + NS_HELP => 'Help', + NS_HELP_TALK => 'Overleg_help', + NS_CATEGORY => 'Categorie', + NS_CATEGORY_TALK => 'Overleg_categorie' +); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'M j, Y H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'j M Y H:i', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'Y M j H:i', +); +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = '/^([a-zäöüïëéèà]+)(.*)$/sDu'; #------------------------------------------------------------------- # Default messages @@ -8,8 +64,7 @@ # hyphen (-). If you need more characters, you may be able to change # the regex in MagicWord::initRegex -global $wgAllMessagesNl; -$wgAllMessagesNl = array( +$messages = array( /* The sidebar for MonoBook is generated from this message, lines that do not begin with * or ** are discarded, furthermore lines that do begin with ** and diff --git a/languages/MessagesNn.php b/languages/MessagesNn.php index 5dc439af1b..2fada2ad51 100644 --- a/languages/MessagesNn.php +++ b/languages/MessagesNn.php @@ -1,11 +1,167 @@ 'Klassisk', + 'nostalgia' => 'Nostalgi', + 'cologneblue' => 'Kölnerblå', + 'myskin' => 'MiDrakt' +); + +$datePreferences = array( + 'default', + 'dmyt', + 'short dmyt', + 'tdmy', + 'short dmyt', + 'ISO 8601', +); + +$datePreferenceMigrationMap = array( + 'default', + 'dmyt', + 'short dmyt', + 'tdmy', + 'short tdmy', +); + +$dateFormats = array( + /* + 'Standard', + '15. januar 2001 kl. 16:12', + '15. jan. 2001 kl. 16:12', + '16:12, 15. januar 2001', + '16:12, 15. jan. 2001', + 'ISO 8601' => '2001-01-15 16:12:34' + */ + 'dmyt time' => 'H:i', + 'dmyt date' => 'j. F Y', + 'dmyt both' => 'j. F Y "kl." H:i', + + 'short dmyt time' => 'H:i', + 'short dmyt date' => 'j. M. Y', + 'short dmyt both' => 'j. M. Y "kl." H:i', + + 'tdmy time' => 'H:i', + 'tdmy date' => 'j. F Y', + 'tdmy both' => 'H:i, j. F Y', + + 'short tdmy time' => 'H:i', + 'short tdmy date' => 'j. M. Y', + 'short tdmy both' => 'H:i, j. M. Y', +); + +$bookstoreList = array( + 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?kilde=biblio&fid=isbn&lang=nn&term=$1', + 'BokBerit' => 'http://www.bokberit.no/annet_sted/bocker/$1.html', + 'Bokkilden' => 'http://www.bokkilden.no/ProductDetails.aspx?ProductId=$1', + 'Haugenbok' => 'http://www.haugenbok.no/resultat.cfm?st=hurtig&isbn=$1', + 'Akademika' => 'http://www.akademika.no/sok.php?isbn=$1', + 'Gnist' => 'http://www.gnist.no/sok.php?isbn=$1', + 'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1', + 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect', '#omdiriger' ), + 'notoc' => array( 0, '__NOTOC__', '__INGAINNHALDSLISTE__', '__INGENINNHOLDSLISTE__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__ALLTIDINNHALDSLISTE__', '__ALLTIDINNHOLDSLISTE__' ), + 'toc' => array( 0, '__TOC__', '__INNHALDSLISTE__', '__INNHOLDSLISTE__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__INGABOLKENDRING__', '__INGABOLKREDIGERING__', '__INGENDELENDRING__'), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'MÅNADNO', 'MÅNEDNÅ' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'MÅNADNONAMN', 'MÅNEDNÅNAVN' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'MÅNADNOKORT', 'MÅNEDNÅKORT' ), + 'currentday' => array( 1, 'CURRENTDAY', 'DAGNO', 'DAGNÅ' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'DAGNONAMN', 'DAGNÅNAVN' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'ÅRNO', 'ÅRNÅ' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'TIDNO', 'TIDNÅ' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'INNHALDSSIDETAL', 'INNHOLDSSIDETALL' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'FILTAL' ), + 'pagename' => array( 1, 'PAGENAME', 'SIDENAMN', 'SIDENAVN' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'SIDENAMNE', 'SIDENAVNE' ), + 'namespace' => array( 1, 'NAMESPACE', 'NAMNEROM', 'NAVNEROM' ), + 'subst' => array( 0, 'SUBST:', 'LIMINN:' ), + 'msgnw' => array( 0, 'MSGNW:', 'IKWIKMELD:' ), + 'end' => array( 0, '__END__', '__SLUTT__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini', 'miniatyr' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1', 'miniatyr=$1' ), + 'img_right' => array( 1, 'right', 'høgre', 'høyre' ), + 'img_left' => array( 1, 'left', 'venstre' ), + 'img_none' => array( 1, 'none', 'ingen' ), + 'img_width' => array( 1, '$1px', '$1pk' ), + 'img_center' => array( 1, 'center', 'centre', 'sentrum' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'ramme' ), + 'sitename' => array( 1, 'SITENAME', 'NETTSTADNAMN' ), + 'ns' => array( 0, 'NS:', 'NR:' ), + 'localurl' => array( 0, 'LOCALURL:', 'LOKALLENKJE:', 'LOKALLENKE:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'LOKALLENKJEE:', 'LOKALLENKEE:' ), + 'server' => array( 0, 'SERVER', 'TENAR', 'TJENER' ), + 'servername' => array( 0, 'SERVERNAME', 'TENARNAMN', 'TJENERNAVN' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTSTI' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMMATIKK:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'VEKENRNO', 'UKENRNÅ' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'VEKEDAGNRNO', 'UKEDAGNRNÅ' ), + 'revisionid' => array( 1, 'REVISIONID', 'VERSJONSID' ) +); + +$namespaceNames = array( + NS_MEDIA => 'Filpeikar', + NS_SPECIAL => 'Spesial', + NS_MAIN => '', + NS_TALK => 'Diskusjon', + NS_USER => 'Brukar', + NS_USER_TALK => 'Brukardiskusjon', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1-diskusjon', + NS_IMAGE => 'Fil', + NS_IMAGE_TALK => 'Fildiskusjon', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki-diskusjon', + NS_TEMPLATE => 'Mal', + NS_TEMPLATE_TALK => 'Maldiskusjon', + NS_HELP => 'Hjelp', + NS_HELP_TALK => 'Hjelpdiskusjon', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Kategoridiskusjon' +); + +$separatorTransformTable = array( + ',' => "\xc2\xa0", + '.' => ',' +); +$linkTrail = '/^([æøåa-z]+)(.*)$/sDu'; #------------------------------------------------------------------- # Default messages #------------------------------------------------------------------- -/* private */ $wgAllMessagesNn = array( +$messages = array( # User preference toggles 'tog-underline' => 'Strek under lenkjer:', 'tog-highlightbroken' => 'Vis lenkjer til tomme sider slik (alternativt slik?)', @@ -79,7 +235,6 @@ 'category_header' => 'Artiklar i kategorien «$1»', 'subcategories' => 'Underkategoriar', -'linktrail' => '/^([æøåa-z]+)(.*)$/sDu', 'mainpage' => 'Hovudside', 'mainpagetext' => 'MediaWiki er no installert.', 'mainpagedocfooter' => 'Sjå [http://meta.wikipedia.org/wiki/MediaWiki_localization dokumentasjon for å tilpasse brukargrensesnittet] og [http://meta.wikipedia.org/wiki/Help:Contents brukarmanualen] for bruk og konfigurasjonshjelp.', diff --git a/languages/MessagesNo.php b/languages/MessagesNo.php index cdf0c84cab..c2de67a8d5 100644 --- a/languages/MessagesNo.php +++ b/languages/MessagesNo.php @@ -1,7 +1,68 @@ 'Standard', + 'nostalgia' => 'Nostalgi', + 'cologneblue' => 'Kölnerblå' +); + +$bookstoreList = array( + 'Antikvariat.net' => 'http://www.antikvariat.net/', + 'Frida' => 'http://wo.uio.no/as/WebObjects/frida.woa/wa/fres?action=sok&isbn=$1&visParametre=1&sort=alfabetisk&bs=50', + 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1&op=and&fid=bd&term=&arstall=&sortering=sortdate-&treffPrSide=50', + 'Akademika' => 'http://www.akademika.no/sok.php?ts=4&sok=$1', + 'Haugenbok' => 'http://www.haugenbok.no/resultat.cfm?st=extended&isbn=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + +$namespaceNames = array( + NS_MEDIA => 'Medium', + NS_SPECIAL => 'Spesial', + NS_MAIN => '', + NS_TALK => 'Diskusjon', + NS_USER => 'Bruker', + NS_USER_TALK => 'Brukerdiskusjon', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1-diskusjon', + NS_IMAGE => 'Bilde', + NS_IMAGE_TALK => 'Bildediskusjon', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki-diskusjon', + NS_TEMPLATE => 'Mal', + NS_TEMPLATE_TALK => 'Maldiskusjon', + NS_HELP => 'Hjelp', + NS_HELP_TALK => 'Hjelpdiskusjon', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Kategoridiskusjon', +); + +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j., Y', + 'mdy both' => 'M j., Y "kl." H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'j. M Y "kl." H:i', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j.', + 'ymd both' => 'Y M j. "kl." H:i', +); + + +$messages = array( 'tog-underline' => 'Strek under lenker:', 'tog-highlightbroken' => 'Formater ødelagte lenker slik (alternativt: slik?).', 'tog-justify' => 'Blokkjusterte avsnitt', diff --git a/languages/MessagesNon.php b/languages/MessagesNon.php new file mode 100644 index 0000000000..17b7e2a49a --- /dev/null +++ b/languages/MessagesNon.php @@ -0,0 +1,11 @@ + diff --git a/languages/MessagesNv.php b/languages/MessagesNv.php new file mode 100644 index 0000000000..d0646cc70a --- /dev/null +++ b/languages/MessagesNv.php @@ -0,0 +1,72 @@ + 'Łáa\'ígíí', + 'monobook' => 'NaaltsoosŁáa\'ígíí' +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Naaltsoos_baa_yinísht\'į́', + NS_USER => 'Choinish\'įįhí', + NS_USER_TALK => 'Choinish\'įįhí_baa_yinísht\'į́', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_baa_yinísht\'į́', + NS_IMAGE => 'E\'elyaaígíí', + NS_IMAGE_TALK => 'E\'elyaaígíí_baa_yinísht\'į́', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_baa_yinísht\'į́', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Template_talk', + NS_HELP => 'Aná\'álwo\'', + NS_HELP_TALK => 'Aná\'álwo\'_baa_yinísht\'į́', + NS_CATEGORY => 'T\'ááłáhági_át\'éego', + NS_CATEGORY_TALK => 'T\'ááłáhági_át\'éego_baa_yinísht\'į́' +); + +$datePreferences = false; + +$messages = array( +'sunday' => 'Damóogo', +'monday' => 'Damóo biiskání', +'tuesday' => 'Damóodóó naakiską́o', +'wednesday' => 'Damóodóó tágí jį́', +'thursday' => 'Damóodóó dį́į́\' yiską́o', +'friday' => 'Nda\'iiníísh', +'saturday' => 'Yiską́ damóo', + +'january' => 'Yas Niłt\'ees', +'february' => 'Atsá Biyáázh', +'march' => 'Wóózhch\'į́į́d', +'april' => 'T\'ą́ą́chil', +'may_long' => 'T\'ą́ą́tsoh', +'june' => 'Ya\'iishjááshchilí', +'july' => 'Ya\'iishjáástsoh', +'august' => 'Bini\'ant\'ą́ą́ts\'ózí', +'september' => 'Bini\'ant\'ą́ą́tsoh', +'october' => 'Ghąąjį', +'november' => 'Níłch\'its\'ósí', +'december' => 'Níłch\'itsoh', + +'jan' => 'Ynts', +'feb' => 'Atsb', +'mar' => 'Wozh', +'apr' => 'Tchi', +'may' => 'Ttso', +'jun' => 'Yjsh', +'jul' => 'Yjts', +'aug' => 'Btsz', +'sep' => 'Btsx', +'oct' => 'Ghąj', +'nov' => 'Ntss', +'dec' => 'Ntsx', +); + +?> diff --git a/languages/MessagesOc.php b/languages/MessagesOc.php index 5da87fa188..70f7f729f1 100644 --- a/languages/MessagesOc.php +++ b/languages/MessagesOc.php @@ -1,7 +1,60 @@ 'Normal', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Còlonha Blau', +); + +$bookstoreList = array( + 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1' +); + +$namespaceNames = array( + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discutir', + NS_USER => 'Utilisator', + NS_USER_TALK => 'Discutida_Utilisator', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discutida_$1', + NS_IMAGE => 'Imatge', + NS_IMAGE_TALK => 'Discutida_Imatge', + NS_MEDIAWIKI => 'Mediaòiqui', + NS_MEDIAWIKI_TALK => 'Discutida_Mediaòiqui', + NS_TEMPLATE => 'Modèl', + NS_TEMPLATE_TALK => 'Discutida_Modèl', + NS_HELP => 'Ajuda', + NS_HELP_TALK => 'Discutida_Ajuda', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discutida_Categoria', +); +$linkTrail = "/^([a-zàâçéèêîôû]+)(.*)\$/sDu"; + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'M j, Y à H:i', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'j M Y à H:i', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'Y M j à H:i', +); -/* private */ $wgAllMessagesOc = array( +$messages = array( # User Toggles @@ -67,7 +120,6 @@ "subcategories" => "Sous-catégories", // Looxix "Subcategories", -"linktrail" => "/^([a-zàâçéèêîôû]+)(.*)\$/sDu", "mainpage" => "Accueil", "mainpagetext" => "Logiciel {{SITENAME}} installé.", "about" => "À propos", diff --git a/languages/MessagesOr.php b/languages/MessagesOr.php new file mode 100644 index 0000000000..c5136493ff --- /dev/null +++ b/languages/MessagesOr.php @@ -0,0 +1,22 @@ + + */ +$digitTransformTable = array( + '0' => '୦', + '1' => '୧', + '2' => '୨', + '3' => '୩', + '4' => '୪', + '5' => '୫', + '6' => '୬', + '7' => '୭', + '8' => '୮', + '9' => '୯', +); + +?> diff --git a/languages/MessagesOs.php b/languages/MessagesOs.php index 83c8a101e7..eb83cabe14 100644 --- a/languages/MessagesOs.php +++ b/languages/MessagesOs.php @@ -1,7 +1,51 @@ 'Стандартон', + 'nostalgia' => 'Æнкъард', + 'cologneblue' => 'Кёльны æрхæндæг', + 'davinci' => 'Да Винчи', + 'mono' => 'Моно', + 'monobook' => 'Моно-чиныг', + 'myskin' => 'Мæхи', + 'chick' => 'Карк' +); +$namespaceNames = array( + NS_MEDIA => 'Media', //чтоб не писать "Мультимедия" + NS_SPECIAL => 'Сæрмагонд', + NS_MAIN => '', + NS_TALK => 'Дискусси', + NS_USER => 'Архайæг', + NS_USER_TALK => 'Архайæджы_дискусси', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Дискусси_$1', + NS_IMAGE => 'Ныв', + NS_IMAGE_TALK => 'Нывы_тыххæй_дискусси', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Дискусси_MediaWiki', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Шаблоны_тыххæй_дискусси', + NS_HELP => 'Æххуыс', + NS_HELP_TALK => 'Æххуысы_тыххæй_дискусси', + NS_CATEGORY => 'Категори', + NS_CATEGORY_TALK => 'Категорийы_тыххæй_дискусси', +); + +$linkTrail = '/^((?:[a-z]|а|æ|б|в|г|д|е|ё|ж|з|и|й|к|л|м|н|о|п|р|с|т|у|ф|х|ц|ч|ш|щ|ъ|ы|ь|э|ю|я|“|»)+)(.*)$/sDu'; +$fallback8bitEncoding = 'windows-1251'; -/* private */ $wgAllMessagesOs = array( +$messages = array( 'titlematches' => 'Статьяты сæргæндты æмцаутæ', 'toc' => 'Сæргæндтæ', 'addedwatch' => "Дæ цæст кæмæ дарыс, уыцы статьятæм бафтыд.", diff --git a/languages/MessagesPa.php b/languages/MessagesPa.php index 8154afb4bb..359272f454 100644 --- a/languages/MessagesPa.php +++ b/languages/MessagesPa.php @@ -1,7 +1,57 @@ 'ਮਿਆਰੀ', +); + +$namespaceNames = array( + NS_MEDIA => 'ਮੀਡੀਆ', + NS_SPECIAL => 'ਖਾਸ', + NS_MAIN => '', + NS_TALK => 'ਚਰਚਾ', + NS_USER => 'ਮੈਂਬਰ', + NS_USER_TALK => 'ਮੈਂਬਰ_ਚਰਚਾ', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_ਚਰਚਾ', + NS_IMAGE => 'ਤਸਵੀਰ', + NS_IMAGE_TALK => 'ਤਸਵੀਰ_ਚਰਚਾ', + NS_MEDIAWIKI => 'ਮੀਡੀਆਵਿਕਿ', + NS_MEDIAWIKI_TALK => 'ਮੀਡੀਆਵਿਕਿ_ਚਰਚਾ', + NS_TEMPLATE => 'ਨਮੂਨਾ', + NS_TEMPLATE_TALK => 'ਨਮੂਨਾ_ਚਰਚਾ', + NS_HELP => 'ਮਦਦ', + NS_HELP_TALK => 'ਮਦਦ_ਚਰਚਾ', + NS_CATEGORY => 'ਸ਼੍ਰੇਣੀ', + NS_CATEGORY_TALK => 'ਸ਼੍ਰੇਣੀ_ਚਰਚਾ' +); + +$digitTransformTable = array( + '0' => '੦', + '1' => '੧', + '2' => '੨', + '3' => '੩', + '4' => '੪', + '5' => '੫', + '6' => '੬', + '7' => '੭', + '8' => '੮', + '9' => '੯' +); +$linkTrail = '/^([ਁਂਃਅਆਇਈਉਊਏਐਓਔਕਖਗਘਙਚਛਜਝਞਟਠਡਢਣਤਥਦਧਨਪਫਬਭਮਯਰਲਲ਼ਵਸ਼ਸਹ਼ਾਿੀੁੂੇੈੋੌ੍ਖ਼ਗ਼ਜ਼ੜਫ਼ੰੱੲੳa-z]+)(.*)$/sDu'; + -global $wgAllMessagesPa; -$wgAllMessagesPa = array( +$messages = array( # Bits of text used by many pages: # @@ -43,7 +93,6 @@ $wgAllMessagesPa = array( 'category_header' => 'ਸ਼੍ਰੇਣੀ \'$1\' ਵਾਲੇ ਲੇਖ', 'subcategories' => 'ਉਪਸ਼੍ਰੇਣੀਆਂ', -'linktrail' => '/^([ਁਂਃਅਆਇਈਉਊਏਐਓਔਕਖਗਘਙਚਛਜਝਞਟਠਡਢਣਤਥਦਧਨਪਫਬਭਮਯਰਲਲ਼ਵਸ਼ਸਹ਼ਾਿੀੁੂੇੈੋੌ੍ਖ਼ਗ਼ਜ਼ੜਫ਼ੰੱੲੳa-z]+)(.*)$/sDu', 'mainpage' => 'ਮੁੱਖ ਪੰਨਾ', 'mainpagetext' => 'ਵਿਕਿ ਸਾਫ਼ਟਵੇਅਰ ਚੰਗੀ ਤਰ੍ਹਾਂ ਇੰਸਟਾਲ ਹੋ ਗਿਆ ਹੈ', diff --git a/languages/MessagesPl.php b/languages/MessagesPl.php index de1e84c0c3..5456e3ee43 100644 --- a/languages/MessagesPl.php +++ b/languages/MessagesPl.php @@ -1,7 +1,58 @@ 'Media', + NS_SPECIAL => 'Specjalna', + NS_MAIN => '', + NS_TALK => 'Dyskusja', + NS_USER => 'Użytkownik', + NS_USER_TALK => 'Dyskusja_użytkownika', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Dyskusja_$1', + NS_IMAGE => 'Grafika', + NS_IMAGE_TALK => 'Dyskusja_grafiki', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Dyskusja_MediaWiki', + NS_TEMPLATE => 'Szablon', + NS_TEMPLATE_TALK => 'Dyskusja_szablonu', + NS_HELP => 'Pomoc', + NS_HELP_TALK => 'Dyskusja_pomocy', + NS_CATEGORY => 'Kategoria', + NS_CATEGORY_TALK => 'Dyskusja_kategorii' +); + +$quickbarSettings = array( + 'Brak', 'Stały, z lewej', 'Stały, z prawej', 'Unoszący się, z lewej' +); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H:i, M j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i, j M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); + +$fallback8bitEncoding = 'iso-8859-2'; +$separatorTransformTable = array( + ',' => "\xc2\xa0", // @bug 2749 + '.' => ',' +); +$linkTrail = '/^([a-zęóąśłżźćńĘÓĄŚŁŻŹĆŃ]+)(.*)$/sDu'; + -global $wgAllMessagesPl; -$wgAllMessagesPl = array( +$messages = array( # User preference toggles 'tog-underline' => 'Podkreślenie linków:', diff --git a/languages/MessagesPms.php b/languages/MessagesPms.php index 90abf89795..92fc319149 100644 --- a/languages/MessagesPms.php +++ b/languages/MessagesPms.php @@ -1,7 +1,41 @@ , Jens Frank + * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Jens Frank + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + */ +$fallback = 'it'; -global $wgAllMessagesPms; -$wgAllMessagesPms = array( +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Discussion', + NS_USER => 'Utent', + NS_USER_TALK => 'Ciaciarade', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discussion_ant_sla_$1', + NS_IMAGE => 'Figura', + NS_IMAGE_TALK => 'Discussion_dla_figura', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_dla_MediaWiki', + NS_TEMPLATE => 'Stamp', + NS_TEMPLATE_TALK => 'Discussion_dlë_stamp', + NS_HELP => 'Agiut', + NS_HELP_TALK => 'Discussion_ant_sl\'agiut', + NS_CATEGORY => 'Categorìa', + NS_CATEGORY_TALK => 'Discussion_ant_sla_categorìa' +); + + +$messages = array( 'tog-underline' => 'Anliure con la sotliniadura', 'tog-highlightbroken' => 'Buta an evidensa j\'anliure che a men-o a
    dj\'artìcol ancó pa scrit', diff --git a/languages/MessagesPs.php b/languages/MessagesPs.php new file mode 100644 index 0000000000..439e7cdba1 --- /dev/null +++ b/languages/MessagesPs.php @@ -0,0 +1,17 @@ + 2, + # Underlines seriously harm legibility. Force off: + 'underline' => 0, +); + +?> diff --git a/languages/MessagesPt.php b/languages/MessagesPt.php index 2d3dbaedfb..f25df271cf 100644 --- a/languages/MessagesPt.php +++ b/languages/MessagesPt.php @@ -1,7 +1,124 @@ 'Media', # -2 + NS_SPECIAL => 'Especial', # -1 + NS_MAIN => '', # 0 + NS_TALK => 'Discussão', # 1 + NS_USER => 'Usuário', + NS_USER_TALK => 'Usuário_Discussão', +/* + Above entries are for PT_br. The following entries should + be used instead. But: + + DO NOT USE THOSE ENTRIES WITHOUT MIGRATING STUFF ON + WIKIMEDIA WEB SERVERS FIRST !! You will just break a lot + of links 8-) + + NS_USER => 'Utilizador', # 2 + NS_USER_TALK => 'Utilizador_Discussão', # 3 +*/ + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Discussão', # 5 + NS_IMAGE => 'Imagem', # 6 + NS_IMAGE_TALK => 'Imagem_Discussão', # 7 + NS_MEDIAWIKI => 'MediaWiki', # 8 + NS_MEDIAWIKI_TALK => 'MediaWiki_Discussão', # 9 + NS_TEMPLATE => 'Predefinição', # 10 + NS_TEMPLATE_TALK => 'Predefinição_Discussão', # 11 + NS_HELP => 'Ajuda', # 12 + NS_HELP_TALK => 'Ajuda_Discussão', # 13 + NS_CATEGORY => 'Categoria', # 14 + NS_CATEGORY_TALK => 'Categoria_Discussão' # 15 +); + +$quickbarSettings = array( + 'Nenhuma', 'Fixo à esquerda', 'Fixo à direita', 'Flutuando à esquerda', 'Flutuando à direita' +); + +$skinNames = array( + 'standard' => 'Clássico', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Azul colonial', + 'davinci' => 'DaVinci', + 'mono' => 'Mono', + 'monobook' => 'MonoBook', + 'myskin' => 'MySkin', + 'chick' => 'Chick' +); + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#REDIRECT', '#redir' ), + 'notoc' => array( 0, '__NOTOC__' ), + 'forcetoc' => array( 0, '__FORCETOC__' ), + 'toc' => array( 0, '__TOC__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__' ), + 'start' => array( 0, '__START__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' ), + 'currentday' => array( 1, 'CURRENTDAY' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME' ), + 'currentyear' => array( 1, 'CURRENTYEAR' ), + 'currenttime' => array( 1, 'CURRENTTIME' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), + 'pagename' => array( 1, 'PAGENAME' ), + 'pagenamee' => array( 1, 'PAGENAMEE' ), + 'namespace' => array( 1, 'NAMESPACE' ), + 'msg' => array( 0, 'MSG:' ), + 'subst' => array( 0, 'SUBST:' ), + 'msgnw' => array( 0, 'MSGNW:' ), + 'end' => array( 0, '__END__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1'), + 'img_right' => array( 1, 'right', 'direita' ), + 'img_left' => array( 1, 'left', 'esquerda' ), + 'img_none' => array( 1, 'none', 'nenhum' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME' ), + 'ns' => array( 0, 'NS:' ), + 'localurl' => array( 0, 'LOCALURL:' ), + 'localurle' => array( 0, 'LOCALURLE:' ), + 'server' => array( 0, 'SERVER' ), + 'servername' => array( 0, 'SERVERNAME' ), + 'scriptpath' => array( 0, 'SCRIPTPATH' ), + 'grammar' => array( 0, 'GRAMMAR:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), + 'currentweek' => array( 1, 'CURRENTWEEK' ), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' ), +); + +$separatorTransformTable = array(',' => ' ', '.' => ',' ); +#$linkTrail = '/^([a-z]+)(.*)$/sD';# ignore list + -/* private */ $wgAllMessagesPt = array( +$messages = array( # User preference toggles 'tog-underline' => 'Sublinhar hiperligações', @@ -86,7 +203,6 @@ 'subcategories' => 'Subcategorias', -#'linktrail' => '/^([a-z]+)(.*)$/sD', # ignore list #'linkprefix' => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD', # ignore list 'mainpage' => 'Página principal', 'mainpagetext' => "'''MediaWiki instalado com sucesso.'''", diff --git a/languages/MessagesPt_br.php b/languages/MessagesPt_br.php index 565c390a32..bc6f0f61a5 100644 --- a/languages/MessagesPt_br.php +++ b/languages/MessagesPt_br.php @@ -1,7 +1,43 @@ 'Padrão', +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discussão', + NS_USER => 'Usuário', + NS_USER_TALK => 'Usuário_Discussão', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_Discussão', + NS_IMAGE => 'Imagem', + NS_IMAGE_TALK => 'Imagem_Discussão', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Discussão', + NS_TEMPLATE => 'Predefinição', + NS_TEMPLATE_TALK => 'Predefinição_Discussão', + NS_HELP => 'Ajuda', + NS_HELP_TALK => 'Ajuda_Discussão', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Categoria_Discussão' +); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; + -global $wgAllMessagesPt_br; -$wgAllMessagesPt_br = array( +$messages = array( # User Toggles "tog-underline" => "Sublinha links", "tog-highlightbroken" => "Formata links quebrados como isto (alternative: como isto?).", @@ -62,7 +98,6 @@ $wgAllMessagesPt_br = array( "category_header" => "Articles in category \"$1\"", "subcategories" => "Subcategories", -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "Página principal", "mainpagetext" => "Software Wiki instalado com sucesso.", "about" => "Sobre", diff --git a/languages/MessagesQu.php b/languages/MessagesQu.php new file mode 100644 index 0000000000..c3bcbf95af --- /dev/null +++ b/languages/MessagesQu.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesRmy.php b/languages/MessagesRmy.php index c493330c53..e7ccc1ad28 100644 --- a/languages/MessagesRmy.php +++ b/languages/MessagesRmy.php @@ -1,7 +1,21 @@ 'Telekategoriye', 'mainpage' => 'Sherutni patrin', 'portal' => 'Maladipnasko than', diff --git a/languages/MessagesRo.php b/languages/MessagesRo.php index 2abc6fe00a..8d4de494ac 100644 --- a/languages/MessagesRo.php +++ b/languages/MessagesRo.php @@ -1,7 +1,78 @@ 'Normală', + 'nostalgia' => 'Nostalgie' +); + +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect' ), + 'notoc' => array( 0, '__NOTOC__', '__FARACUPRINS__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__FARAEDITSECTIUNE__' ), + 'start' => array( 0, '__START__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', '{{NUMARLUNACURENTA}}' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', '{{NUMELUNACURENTA}}' ), + 'currentday' => array( 1, 'CURRENTDAY', '{{NUMARZIUACURENTA}}' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', '{{NUMEZIUACURENTA}}' ), + 'currentyear' => array( 1, 'CURRENTYEAR', '{{ANULCURENT}}' ), + 'currenttime' => array( 1, 'CURRENTTIME', '{{ORACURENTA}}' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', '{{NUMARDEARTICOLE}}' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', '{{NUMELUNACURENTAGEN}}' ), + 'subst' => array( 0, 'SUBST:' ), + 'msgnw' => array( 0, 'MSGNW:', 'MSJNOU:' ), + 'end' => array( 0, '__END__', '__FINAL__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), + 'img_right' => array( 1, 'right' ), + 'img_left' => array( 1, 'left' ), + 'img_none' => array( 1, 'none' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre' ), + 'int' => array( 0, 'INT:' ) +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Discuţie', + NS_USER => 'Utilizator', + NS_USER_TALK => 'Discuţie_Utilizator', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discuţie_$1', + NS_IMAGE => 'Imagine', + NS_IMAGE_TALK => 'Discuţie_Imagine', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discuţie_MediaWiki', + NS_TEMPLATE => 'Format', + NS_TEMPLATE_TALK => 'Discuţie_Format', + NS_HELP => 'Ajutor', + NS_HELP_TALK => 'Discuţie_Ajutor', + NS_CATEGORY => 'Categorie', + NS_CATEGORY_TALK => 'Discuţie_Categorie' +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j F Y', + 'dmy both' => 'j F Y H:i', +); + +$fallback8bitEncoding = 'iso8859-2'; + + -global $wgAllMessagesRo; -$wgAllMessagesRo = array( +$messages = array( 'tog-underline' => 'Subliniază legăturile', 'tog-highlightbroken' => 'Formatează legăturile necreate aşa (alternativă: aşa?).', 'tog-justify' => 'Aranjează justificat paragrafele', diff --git a/languages/MessagesRu.php b/languages/MessagesRu.php index 21e28b03e4..fa4bf9046d 100644 --- a/languages/MessagesRu.php +++ b/languages/MessagesRu.php @@ -8,8 +8,130 @@ * */ -global $wgAllMessagesRu; -$wgAllMessagesRu = array( +$namespaceNames = array( + NS_MEDIA => 'Медиа', + NS_SPECIAL => 'Служебная', + NS_MAIN => '', + NS_TALK => 'Обсуждение', + NS_USER => 'Участник', + NS_USER_TALK => 'Обсуждение_участника', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Обсуждение_{{grammar:genitive|$1}}', + NS_IMAGE => 'Изображение', + NS_IMAGE_TALK => 'Обсуждение_изображения', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Обсуждение_MediaWiki', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Обсуждение_шаблона', + NS_HELP => 'Справка', + NS_HELP_TALK => 'Обсуждение_справки', + NS_CATEGORY => 'Категория', + NS_CATEGORY_TALK => 'Обсуждение_категории', +); + + +$quickbarSettings = array( + 'Не показывать', 'Неподвижная слева', 'Неподвижная справа', 'Плавающая слева', 'Плавающая справа' +); + +$skinNames = array( + 'standard' => 'Стандартный', + 'nostalgia' => 'Ностальгия', + 'cologneblue' => 'Кёльнская тоска', + 'davinci' => 'Да Винчи', + 'mono' => 'Моно', + 'monobook' => 'Моно-книга', + 'myskin' => 'Своё', + 'chick' => 'Цыпа' +); + + +$bookstoreList = array( + 'ОЗОН' => 'http://www.ozon.ru/?context=advsearch_book&isbn=$1', + 'Books.Ru' => 'http://www.books.ru/shop/search/advanced?as%5Btype%5D=books&as%5Bname%5D=&as%5Bisbn%5D=$1&as%5Bauthor%5D=&as%5Bmaker%5D=&as%5Bcontents%5D=&as%5Binfo%5D=&as%5Bdate_after%5D=&as%5Bdate_before%5D=&as%5Bprice_less%5D=&as%5Bprice_more%5D=&as%5Bstrict%5D=%E4%E0&as%5Bsub%5D=%E8%F1%EA%E0%F2%FC&x=22&y=8', + 'Яндекс.Маркет' => 'http://market.yandex.ru/search.xml?text=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#REDIRECT', '#ПЕРЕНАПРАВЛЕНИЕ', '#ПЕРЕНАПР'), + 'notoc' => array( 0, '__NOTOC__', '__БЕЗСОДЕРЖАНИЯ__'), + 'forcetoc' => array( 0, '__FORCETOC__'), + 'toc' => array( 0, '__TOC__', '__СОДЕРЖАНИЕ__'), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗРЕДАКТИРОВАНИЯРАЗДЕЛА__'), + 'start' => array( 0, '__START__', '__НАЧАЛО__'), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТЕКУЩИЙМЕСЯЦ'), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME','НАЗВАНИЕТЕКУЩЕГОМЕСЯЦА'), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN','НАЗВАНИЕТЕКУЩЕГОМЕСЯЦАРОД'), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'НАЗВАНИЕТЕКУЩЕГОМЕСЯЦААБР'), + 'currentday' => array( 1, 'CURRENTDAY','ТЕКУЩИЙДЕНЬ'), + 'currentday2' => array( 1, 'CURRENTDAY2','ТЕКУЩИЙДЕНЬ2'), + 'currentdayname' => array( 1, 'CURRENTDAYNAME','НАЗВАНИЕТЕКУЩЕГОДНЯ'), + 'currentyear' => array( 1, 'CURRENTYEAR','ТЕКУЩИЙГОД'), + 'currenttime' => array( 1, 'CURRENTTIME','ТЕКУЩЕЕВРЕМЯ'), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES','КОЛИЧЕСТВОСТАТЕЙ'), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'КОЛИЧЕСТВОФАЛОВ'), + 'pagename' => array( 1, 'PAGENAME','НАЗВАНИЕСТРАНИЦЫ'), + 'pagenamee' => array( 1, 'PAGENAMEE','НАЗВАНИЕСТРАНИЦЫ2'), + 'namespace' => array( 1, 'NAMESPACE','ПРОСТРАНСТВОИМЁН'), + 'msg' => array( 0, 'MSG:'), + 'subst' => array( 0, 'SUBST:','ПОДСТ:'), + 'msgnw' => array( 0, 'MSGNW:'), + 'end' => array( 0, '__END__','__КОНЕЦ__'), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини'), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1'), + 'img_right' => array( 1, 'right','справа'), + 'img_left' => array( 1, 'left','слева'), + 'img_none' => array( 1, 'none'), + 'img_width' => array( 1, '$1px','$1пкс'), + 'img_center' => array( 1, 'center', 'centre','центр'), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame','обрамить'), + 'int' => array( 0, 'INT:'), + 'sitename' => array( 1, 'SITENAME','НАЗВАНИЕСАЙТА'), + 'ns' => array( 0, 'NS:','ПИ:'), + 'localurl' => array( 0, 'LOCALURL:'), + 'localurle' => array( 0, 'LOCALURLE:'), + 'server' => array( 0, 'SERVER','СЕРВЕР'), + 'servername' => array( 0, 'SERVERNAME', 'НАЗВАНИЕСЕРВЕРА'), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'ПУТЬКСКРИПТУ'), + 'grammar' => array( 0, 'GRAMMAR:'), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗПРЕОБРАЗОВАНИЯЗАГОЛОВКА__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗПРЕОБРАЗОВАНИЯТЕКСТА__'), + 'currentweek' => array( 1, 'CURRENTWEEK','ТЕКУЩАЯНЕДЕЛЯ'), + 'currentdow' => array( 1, 'CURRENTDOW','ТЕКУЩИЙДЕНЬНЕДЕЛИ'), + 'revisionid' => array( 1, 'REVISIONID', 'ИДВЕРСИИ'), +); + +$separatorTransformTable = array( + ',' => "\xc2\xa0", + '.' => ',' +); + +$fallback8bitEncoding = 'windows-1251'; +$linkPrefixExtension = true; +$linkTrail = '/^([a-zабвгдеёжзийклмнопрстуфхцчшщъыьэюя“»]+)(.*)$/sDu'; + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'xg j, Y', + 'mdy both' => 'H:i, xg j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j xg Y', + 'dmy both' => 'H:i, j xg Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y xg j', + 'ymd both' => 'H:i, Y xg j', +); + +$messages = array( # User preference toggles 'tog-underline' => 'Подчёркивать ссылки:', @@ -105,7 +227,6 @@ $wgAllMessagesRu = array( 'subcategories' => 'Подкатегории', -'linktrail' => '/^([a-zабвгдеёжзийклмнопрстуфхцчшщъыьэюя“»]+)(.*)$/sDu', 'linkprefix' => '/^(.*?)(„|«)$/sD', 'mainpage' => 'Заглавная страница', 'mainpagetext' => 'Вики-движок «MediaWiki» успешно установлен.', diff --git a/languages/MessagesSc.php b/languages/MessagesSc.php index 7d7a228693..7adcda46f3 100644 --- a/languages/MessagesSc.php +++ b/languages/MessagesSc.php @@ -1,7 +1,42 @@ 'Speciale', + NS_MAIN => '', + NS_TALK => 'Contièndha', + NS_USER => 'Utente', + NS_USER_TALK => 'Utente_discussioni', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_discussioni', + NS_IMAGE => 'Immàgini', + NS_IMAGE_TALK => 'Immàgini_contièndha' +); + +$quickbarSettings = array( + "Nessuno", "Fisso a sinistra", "Fisso a destra", "Fluttuante a sinistra" +); + +$dateFormats = array( + 'mdy time' => 'H:i', + 'mdy date' => 'M j, Y', + 'mdy both' => 'H:i, M j, Y', + + 'dmy time' => 'H:i', + 'dmy date' => 'j M Y', + 'dmy both' => 'H:i, j M Y', + + 'ymd time' => 'H:i', + 'ymd date' => 'Y M j', + 'ymd both' => 'H:i, Y M j', +); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; -/* private */ $wgAllMessagesSc = array( +$messages = array( # User Toggles "tog-underline" => "Sottolinea links", @@ -52,7 +87,6 @@ # Bits of text used by many pages: # -"linktrail" => "/^([a-z]+)(.*)\$/sD", 'mainpage' => 'Pàggina principali', 'about' => 'A proposito di', 'aboutsite' => 'A proposito di {{SITENAME}}', diff --git a/languages/MessagesSd.php b/languages/MessagesSd.php new file mode 100644 index 0000000000..f4cc7db11e --- /dev/null +++ b/languages/MessagesSd.php @@ -0,0 +1,12 @@ + diff --git a/languages/MessagesSk.php b/languages/MessagesSk.php index b868627095..1f432b5fa7 100644 --- a/languages/MessagesSk.php +++ b/languages/MessagesSk.php @@ -1,7 +1,160 @@ '2001-01-15 16:12:34'*/ + + 'dmyt time' => 'H:i', + 'dmyt date' => 'j. F Y', + 'dmyt both' => 'j. F Y H:i', + + 'short dmyt time' => 'H:i', + 'short dmyt date' => 'j. M. Y', + 'short dmyt both' => 'j. M. Y H:i', + + 'tdmy time' => 'H:i', + 'tdmy date' => 'j. F Y', + 'tdmy both' => 'H:i, j. F Y', + + 'short tdmy time' => 'H:i', + 'short tdmy date' => 'j. M. Y', + 'short tdmy both' => 'H:i, j. M. Y', + +); + +$bookstoreList = array( + 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1', + 'BokBerit' => 'http://www.bokberit.no/annet_sted/bocker/$1.html', + 'Bokkilden' => 'http://www.bokkilden.no/ProductDetails.aspx?ProductId=$1', + 'Haugenbok' => 'http://www.haugenbok.no/searchresults.cfm?searchtype=simple&isbn=$1', + 'Akademika' => 'http://www.akademika.no/sok.php?isbn=$1', + 'Gnist' => 'http://www.gnist.no/sok.php?isbn=$1', + 'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1', + 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1' +); + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( + # ID CASE SYNONYMS + 'redirect' => array( 0, '#redirect', '#presmeruj' ), + 'notoc' => array( 0, '__NOTOC__', '__BEZOBSAHU__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__VYNÚŤOBSAH__' ), + 'toc' => array( 0, '__TOC__', '__OBSAH__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__NEUPRAVUJSEKCIE__' ), + 'start' => array( 0, '__START__', '__ŠTART__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'MESIAC' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'MENOMESIACA' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'MENOAKTUÁLNEHOMESIACAGEN' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'MENOAKTUÁLNEHOMESIACASKRATKA' ), + 'currentday' => array( 1, 'CURRENTDAY', 'AKTUÁLNYDEŇ' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'MENOAKTUÁLNEHODŇA' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTUÁLNYROK' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'AKTUÁLNYČAS' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'POČETČLÁNKOV' ), + 'pagename' => array( 1, 'PAGENAME', 'MENOSTRÁNKY' ), + 'pagenamee' => array( 1, 'PAGENAMEE' ), + 'namespace' => array( 1, 'NAMESPACE', 'MENNÝPRIESTOR' ), + 'msg' => array( 0, 'MSG:', 'SPRÁVA:' ), + 'subst' => array( 0, 'SUBST:' ), + 'msgnw' => array( 0, 'MSGNW:' ), + 'end' => array( 0, '__END__', '__KONIEC__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'náhľad', 'náhľadobrázka' ), + 'img_right' => array( 1, 'right', 'vpravo' ), + 'img_left' => array( 1, 'left', 'vľavo' ), + 'img_none' => array( 1, 'none', 'žiadny' ), + 'img_width' => array( 1, '$1px', '$1bod' ), + 'img_center' => array( 1, 'center', 'centre', 'stred' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rám' ), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'MENOLOKALITY' ), + 'ns' => array( 0, 'NS:', 'MP:' ), + 'localurl' => array( 0, 'LOCALURL:' ), + 'localurle' => array( 0, 'LOCALURLE:' ), + 'server' => array( 0, 'SERVER' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'AKTUÁLNYTÝŽDEŇ' ), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' ), +); + +$namespaceNames = array( + NS_MEDIA => 'Médiá', + NS_SPECIAL => 'Špeciálne', + NS_MAIN => '', + NS_TALK => 'Diskusia', + NS_USER => 'Redaktor', + NS_USER_TALK => 'Diskusia_s_redaktorom', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Diskusia_k_{{grammar:datív|$1}}', + NS_IMAGE => 'Obrázok', + NS_IMAGE_TALK => 'Diskusia_k_obrázku', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Diskusia_k_MediaWiki', + NS_TEMPLATE => 'Šablóna', + NS_TEMPLATE_TALK => 'Diskusia_k_šablóne', + NS_HELP => 'Pomoc', + NS_HELP_TALK => 'Diskusia_k_pomoci', + NS_CATEGORY => 'Kategória', + NS_CATEGORY_TALK => 'Diskusia_ku_kategórii' +); + +# Compatbility with old names +$namespaceAliases = array( + "Komentár" => NS_TALK, + "Komentár_k_redaktorovi" => NS_USER_TALK, + "Komentár_k_Wikipédii" => NS_PROJECT_TALK, + "Komentár_k_obrázku" => NS_IMAGE_TALK, + "Komentár_k_MediaWiki" => NS_MEDIAWIKI_TALK, +); + +$separatorTransformTable = array( + ',' => "\xc2\xa0", + '.' => ',' +); + +$linkTrail = '/^([a-záäčďéíľĺňóôŕšťúýž]+)(.*)$/sDu'; + + +$messages = array( 'tog-underline' => 'Podčiarkuj odkazy', 'tog-highlightbroken' => 'Neexistujúce odkazy zobrazuj červenou', 'tog-justify' => 'Zarovnávaj odstavce', diff --git a/languages/MessagesSl.php b/languages/MessagesSl.php index 6aaf3b30d5..4707f40888 100644 --- a/languages/MessagesSl.php +++ b/languages/MessagesSl.php @@ -1,7 +1,54 @@ 'Media', + NS_SPECIAL => 'Posebno', + NS_MAIN => '', + NS_TALK => 'Pogovor', + NS_USER => 'Uporabnik', + NS_USER_TALK => 'Uporabniški_pogovor', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Pogovor_{{grammar:mestnik|$1}}', + NS_IMAGE => 'Slika', + NS_IMAGE_TALK => 'Pogovor_o_sliki', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Pogovor_o_MediaWiki', + NS_TEMPLATE => 'Predloga', + NS_TEMPLATE_TALK => 'Pogovor_o_predlogi', + NS_HELP => 'Pomoč', + NS_HELP_TALK => 'Pogovor_o_pomoči', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Pogovor_o_kategoriji' +); + +$datePreferences = false; +$fallback8bitEncoding = "iso-8859-2"; +$separatorTransformTable = array(',' => '.', '.' => ',' ); + + +$messages = array( 'tog-underline' => 'Podčrtavanje povezav:', 'tog-highlightbroken' => 'Oblikuj pretrgane povezave kot (druga možnost: kot?)', 'tog-justify' => 'Poravnavaj odstavke', @@ -71,6 +118,18 @@ $wgAllMessagesSl = array( 'oct' => 'okt.', 'nov' => 'nov.', 'dec' => 'dec.', +'january-gen' => 'januarja', +'february-gen' => 'februarja', +'march-gen' => 'marca', +'april-gen' => 'aprila', +'may-gen' => 'maja', +'june-gen' => 'junija', +'july-gen' => 'julija', +'august-gen' => 'avgusta', +'september-gen' => 'septembra', +'october-gen' => 'oktobra', +'november-gen' => 'novembra', +'december-gen' => 'decembra', 'categories' => '{{plural:$1|Kategorija|Kategoriji|Kategorije|Kategorije|Kategorije}}', 'category' => 'Kategorija', 'category_header' => 'Strani v kategoriji »$1«', diff --git a/languages/MessagesSq.php b/languages/MessagesSq.php index 1ca978b95c..ff9140ac7b 100644 --- a/languages/MessagesSq.php +++ b/languages/MessagesSq.php @@ -1,7 +1,60 @@ 'Standarte', + 'nostalgia' => 'Nostalgjike', + 'cologneblue' => 'Kolonjë Blu' +); + +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Speciale', + NS_MAIN => '', + NS_TALK => 'Diskutim', + NS_USER => 'Përdoruesi', + NS_USER_TALK => 'Përdoruesi_diskutim', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_diskutim', + NS_IMAGE => 'Figura', + NS_IMAGE_TALK => 'Figura_diskutim', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskutim', + NS_TEMPLATE => 'Stampa', + NS_TEMPLATE_TALK => 'Stampa_diskutim', + NS_HELP => 'Ndihmë', + NS_HELP_TALK => 'Ndihmë_diskutim' +); + +# Compatbility with alt names +$namespaceAliases = array( + 'Perdoruesi' => NS_USER, + 'Perdoruesi_diskutim' => NS_USER_TALK, +); + +$datePreferences = array( + 'default', + 'dmy', + 'ISO 8601', +); +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j F Y', + 'dmy both' => 'j F Y H:i', +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); + +$messages = array( 'tog-underline' => 'Nënvizo lidhjet', 'tog-highlightbroken' => 'Trego lidhjet e faqeve bosh kështu (ndryshe: kështu?).', 'tog-justify' => 'Rregullim i kryeradhës', diff --git a/languages/MessagesSr.php b/languages/MessagesSr.php new file mode 100644 index 0000000000..94ff5ca24c --- /dev/null +++ b/languages/MessagesSr.php @@ -0,0 +1,12 @@ + diff --git a/languages/MessagesSr_ec.php b/languages/MessagesSr_ec.php index 22407ab82b..64b9d7a15a 100644 --- a/languages/MessagesSr_ec.php +++ b/languages/MessagesSr_ec.php @@ -1,7 +1,195 @@ "Медија", + NS_SPECIAL => "Посебно", + NS_MAIN => "", + NS_TALK => "Разговор", + NS_USER => "Корисник", + NS_USER_TALK => "Разговор_са_корисником", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "Разговор_о_$1", + NS_IMAGE => "Слика", + NS_IMAGE_TALK => "Разговор_о_слици", + NS_MEDIAWIKI => "МедијаВики", + NS_MEDIAWIKI_TALK => "Разговор_о_МедијаВикију", + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Разговор_о_шаблону', + NS_HELP => 'Помоћ', + NS_HELP_TALK => 'Разговор_о_помоћи', + NS_CATEGORY => 'Категорија', + NS_CATEGORY_TALK => 'Разговор_о_категорији', +); + +$quickbarSettings = array( + "Никаква", "Причвршћена лево", "Причвршћена десно", "Плутајућа лево" +); + +$skinNames = array( + "Обична", "Носталгија", "Келнско плаво", "Педингтон", "Монпарнас" +); + +$extraUserToggles = array( + 'nolangconversion', +); + +$datePreferenceMigrationMap = array( + 'default', + 'hh:mm d. month y.', + 'hh:mm d month y', + 'hh:mm dd.mm.yyyy', + 'hh:mm d.m.yyyy', + 'hh:mm d. mon y.', + 'hh:mm d mon y', + 'h:mm d. month y.', + 'h:mm d month y', + 'h:mm dd.mm.yyyy', + 'h:mm d.m.yyyy', + 'h:mm d. mon y.', + 'h:mm d mon y', +); + +$datePreferences = array( + 'default', + 'hh:mm d. month y.', + 'hh:mm d month y', + 'hh:mm dd.mm.yyyy', + 'hh:mm d.m.yyyy', + 'hh:mm d. mon y.', + 'hh:mm d mon y', + 'h:mm d. month y.', + 'h:mm d month y', + 'h:mm dd.mm.yyyy', + 'h:mm d.m.yyyy', + 'h:mm d. mon y.', + 'h:mm d mon y', +); + +$defaultDateFormat = 'hh:mm d. month y.'; + +$dateFormats = array( + /* + 'Није битно', + '06:12, 5. јануар 2001.', + '06:12, 5 јануар 2001', + '06:12, 05.01.2001.', + '06:12, 5.1.2001.', + '06:12, 5. јан 2001.', + '06:12, 5 јан 2001', + '6:12, 5. јануар 2001.', + '6:12, 5 јануар 2001', + '6:12, 05.01.2001.', + '6:12, 5.1.2001.', + '6:12, 5. јан 2001.', + '6:12, 5 јан 2001', + */ + + 'hh:mm d. month y. time' => 'H:i', + 'hh:mm d month y time' => 'H:i', + 'hh:mm dd.mm.yyyy time' => 'H:i', + 'hh:mm d.m.yyyy time' => 'H:i', + 'hh:mm d. mon y. time' => 'H:i', + 'hh:mm d mon y time' => 'H:i', + 'h:mm d. month y. time' => 'G:i', + 'h:mm d month y time' => 'G:i', + 'h:mm dd.mm.yyyy time' => 'G:i', + 'h:mm d.m.yyyy time' => 'G:i', + 'h:mm d. mon y. time' => 'G:i', + 'h:mm d mon y time' => 'G:i', + + 'hh:mm d. month y. date' => 'j. F Y.', + 'hh:mm d month y date' => 'j F Y', + 'hh:mm dd.mm.yyyy date' => 'd.m.Y', + 'hh:mm d.m.yyyy date' => 'j.n.Y', + 'hh:mm d. mon y. date' => 'j. M Y.', + 'hh:mm d mon y date' => 'j M Y', + 'h:mm d. month y. date' => 'j. F Y.', + 'h:mm d month y date' => 'j F Y', + 'h:mm dd.mm.yyyy date' => 'd.m.Y', + 'h:mm d.m.yyyy date' => 'j.n.Y', + 'h:mm d. mon y. date' => 'j. M Y.', + 'h:mm d mon y date' => 'j M Y', + + 'hh:mm d. month y. both' =>'H:i, j. F Y.', + 'hh:mm d month y both' =>'H:i, j F Y', + 'hh:mm dd.mm.yyyy both' =>'H:i, d.m.Y', + 'hh:mm d.m.yyyy both' =>'H:i, j.n.Y', + 'hh:mm d. mon y. both' =>'H:i, j. M Y.', + 'hh:mm d mon y both' =>'H:i, j M Y', + 'h:mm d. month y. both' =>'G:i, j. F Y.', + 'h:mm d month y both' =>'G:i, j F Y', + 'h:mm dd.mm.yyyy both' =>'G:i, d.m.Y', + 'h:mm d.m.yyyy both' =>'G:i, j.n.Y', + 'h:mm d. mon y. both' =>'G:i, j. M Y.', + 'h:mm d mon y both' =>'G:i, j M Y', +); + +/* NOT USED IN STABLE VERSION */ +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#Преусмери', '#redirect', '#преусмери', '#ПРЕУСМЕРИ' ), + 'notoc' => array( 0, '__NOTOC__', '__БЕЗСАДРЖАЈА__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__ФОРСИРАНИСАДРЖАЈ__' ), + 'toc' => array( 0, '__TOC__', '__САДРЖАЈ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_ИЗМЕНА__', '__БЕЗИЗМЕНА__' ), + 'start' => array( 0, '__START__', '__ПОЧЕТАК__' ), + 'end' => array( 0, '__END__', '__КРАЈ__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТРЕНУТНИМЕСЕЦ' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'ТРЕНУТНИМЕСЕЦИМЕ' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'ТРЕНУТНИМЕСЕЦРОД' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ТРЕНУТНИМЕСЕЦСКР' ), + 'currentday' => array( 1, 'CURRENTDAY', 'ТРЕНУТНИДАН' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'ТРЕНУТНИДАНИМЕ' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'ТРЕНУТНАГОДИНА' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'ТРЕНУТНОВРЕМЕ' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЈЧЛАНАКА' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'БРОЈДАТОТЕКА', 'БРОЈФАЈЛОВА' ), + 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦЕ' ), + 'namespace' => array( 1, 'NAMESPACE', 'ИМЕНСКИПРОСТОР' ), + 'namespacee' => array( 1, 'NAMESPACEE', 'ИМЕНСКИПРОСТОРИ' ), + 'fullpagename' => array( 1, 'FULLPAGENAME', 'ПУНОИМЕСТРАНЕ' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'ПУНОИМЕСТРАНЕЕ' ), + 'msg' => array( 0, 'MSG:', 'ПОР:' ), + 'subst' => array( 0, 'SUBST:', 'ЗАМЕНИ:' ), + 'msgnw' => array( 0, 'MSGNW:', 'НВПОР:' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1' ), + 'img_right' => array( 1, 'right', 'десно', 'д' ), + 'img_left' => array( 1, 'left', 'лево', 'л' ), + 'img_none' => array( 1, 'none', 'н', 'без' ), + 'img_width' => array( 1, '$1px', '$1пискел' , '$1п' ), + 'img_center' => array( 1, 'center', 'centre', 'центар', 'ц' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'оквир', 'рам' ), + 'int' => array( 0, 'INT:', 'ИНТ:' ), + 'sitename' => array( 1, 'SITENAME', 'ИМЕСАЈТА' ), + 'ns' => array( 0, 'NS:', 'ИП:' ), + 'localurl' => array( 0, 'LOCALURL:', 'ЛОКАЛНААДРЕСА:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'ЛОКАЛНЕАДРЕСЕ:' ), + 'server' => array( 0, 'SERVER', 'СЕРВЕР' ), + 'servername' => array( 0, 'SERVERNAME', 'ИМЕСЕРВЕРА' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'СКРИПТА' ), + 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗТЦ__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗЦЦ__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'ТРЕНУТНАНЕДЕЉА' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'ТРЕНУТНИДОВ' ), + 'revisionid' => array( 1, 'REVISIONID', 'ИДРЕВИЗИЈЕ' ), + 'plural' => array( 0, 'PLURAL:', 'МНОЖИНА:' ), + 'fullurl' => array( 0, 'FULLURL:', 'ПУНУРЛ:' ), + 'fullurle' => array( 0, 'FULLURLE:', 'ПУНУРЛЕ:' ), + 'lcfirst' => array( 0, 'LCFIRST:', 'ЛЦПРВИ:' ), + 'ucfirst' => array( 0, 'UCFIRST:', 'УЦПРВИ:' ), + 'lc' => array( 0, 'LC:', 'ЛЦ:' ), + 'uc' => array( 0, 'UC:', 'УЦ:' ), +); +$separatorTransformTable = array(',' => '.', '.' => ',' ); -$wgAllMessagesSr_ec = array( +$messages = array( # stylesheets 'Common.css' => '/** CSS koji važi za sve skinove */', 'Monobook.css' => '/** Samo za MonoBook skin */', diff --git a/languages/MessagesSr_el.php b/languages/MessagesSr_el.php index ad5f8d7e1f..7d66ec37c8 100644 --- a/languages/MessagesSr_el.php +++ b/languages/MessagesSr_el.php @@ -1,7 +1,198 @@ "Medija", + NS_SPECIAL => "Posebno", + NS_MAIN => "", + NS_TALK => "Razgovor", + NS_USER => "Korisnik", + NS_USER_TALK => "Razgovor_sa_korisnikom", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "Razgovor_o_$1", + NS_IMAGE => "Slika", + NS_IMAGE_TALK => "Razgovor_o_slici", + NS_MEDIAWIKI => "MedijaViki", + NS_MEDIAWIKI_TALK => "Razgovor_o_MedijaVikiju", + NS_TEMPLATE => 'Šablon', + NS_TEMPLATE_TALK => 'Razgovor_o_šablonu', + NS_HELP => 'Pomoć', + NS_HELP_TALK => 'Razgovor_o_pomoći', + NS_CATEGORY => 'Kategorija', + NS_CATEGORY_TALK => 'Razgovor_o_kategoriji', +); + +$quickbarSettings = array( + "Nikakva", "Pričvršćena levo", "Pričvršćena desno", "Plutajuća levo" +); + +$skinNames = array( + "Obična", "Nostalgija", "Kelnsko plavo", "Pedington", "Monparnas" +); + +$extraUserToggles = array( + 'nolangconversion', +); + +$datePreferenceMigrationMap = array( + 'default', + 'hh:mm d. month y.', + 'hh:mm d month y', + 'hh:mm dd.mm.yyyy', + 'hh:mm d.m.yyyy', + 'hh:mm d. mon y.', + 'hh:mm d mon y', + 'h:mm d. month y.', + 'h:mm d month y', + 'h:mm dd.mm.yyyy', + 'h:mm d.m.yyyy', + 'h:mm d. mon y.', + 'h:mm d mon y', +); + +$datePreferences = array( + 'default', + 'hh:mm d. month y.', + 'hh:mm d month y', + 'hh:mm dd.mm.yyyy', + 'hh:mm d.m.yyyy', + 'hh:mm d. mon y.', + 'hh:mm d mon y', + 'h:mm d. month y.', + 'h:mm d month y', + 'h:mm dd.mm.yyyy', + 'h:mm d.m.yyyy', + 'h:mm d. mon y.', + 'h:mm d mon y', +); + +$defaultDateFormat = 'hh:mm d. month y.'; + +$dateFormats = array( + /* + 'Није битно', + '06:12, 5. јануар 2001.', + '06:12, 5 јануар 2001', + '06:12, 05.01.2001.', + '06:12, 5.1.2001.', + '06:12, 5. јан 2001.', + '06:12, 5 јан 2001', + '6:12, 5. јануар 2001.', + '6:12, 5 јануар 2001', + '6:12, 05.01.2001.', + '6:12, 5.1.2001.', + '6:12, 5. јан 2001.', + '6:12, 5 јан 2001', + */ + + 'hh:mm d. month y. time' => 'H:i', + 'hh:mm d month y time' => 'H:i', + 'hh:mm dd.mm.yyyy time' => 'H:i', + 'hh:mm d.m.yyyy time' => 'H:i', + 'hh:mm d. mon y. time' => 'H:i', + 'hh:mm d mon y time' => 'H:i', + 'h:mm d. month y. time' => 'G:i', + 'h:mm d month y time' => 'G:i', + 'h:mm dd.mm.yyyy time' => 'G:i', + 'h:mm d.m.yyyy time' => 'G:i', + 'h:mm d. mon y. time' => 'G:i', + 'h:mm d mon y time' => 'G:i', + + 'hh:mm d. month y. date' => 'j. F Y.', + 'hh:mm d month y date' => 'j F Y', + 'hh:mm dd.mm.yyyy date' => 'd.m.Y', + 'hh:mm d.m.yyyy date' => 'j.n.Y', + 'hh:mm d. mon y. date' => 'j. M Y.', + 'hh:mm d mon y date' => 'j M Y', + 'h:mm d. month y. date' => 'j. F Y.', + 'h:mm d month y date' => 'j F Y', + 'h:mm dd.mm.yyyy date' => 'd.m.Y', + 'h:mm d.m.yyyy date' => 'j.n.Y', + 'h:mm d. mon y. date' => 'j. M Y.', + 'h:mm d mon y date' => 'j M Y', + + 'hh:mm d. month y. both' =>'H:i, j. F Y.', + 'hh:mm d month y both' =>'H:i, j F Y', + 'hh:mm dd.mm.yyyy both' =>'H:i, d.m.Y', + 'hh:mm d.m.yyyy both' =>'H:i, j.n.Y', + 'hh:mm d. mon y. both' =>'H:i, j. M Y.', + 'hh:mm d mon y both' =>'H:i, j M Y', + 'h:mm d. month y. both' =>'G:i, j. F Y.', + 'h:mm d month y both' =>'G:i, j F Y', + 'h:mm dd.mm.yyyy both' =>'G:i, d.m.Y', + 'h:mm d.m.yyyy both' =>'G:i, j.n.Y', + 'h:mm d. mon y. both' =>'G:i, j. M Y.', + 'h:mm d mon y both' =>'G:i, j M Y', +); + + +/* NOT USED IN STABLE VERSION */ +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#Preusmeri', '#redirect', '#preusmeri', '#PREUSMERI' ), + 'notoc' => array( 0, '__NOTOC__', '__BEZSADRŽAJA__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__FORSIRANISADRŽAJ__' ), + 'toc' => array( 0, '__TOC__', '__SADRŽAJ__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__BEZ_IZMENA__', '__BEZIZMENA__' ), + 'start' => array( 0, '__START__', '__POČETAK__' ), + 'end' => array( 0, '__END__', '__KRAJ__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH', 'TRENUTNIMESEC' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'TRENUTNIMESECIME' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'TRENUTNIMESECROD' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'TRENUTNIMESECSKR' ), + 'currentday' => array( 1, 'CURRENTDAY', 'TRENUTNIDAN' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'TRENUTNIDANIME' ), + 'currentyear' => array( 1, 'CURRENTYEAR', 'TRENUTNAGODINA' ), + 'currenttime' => array( 1, 'CURRENTTIME', 'TRENUTNOVREME' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'BROJČLANAKA' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'BROJDATOTEKA', 'BROJFAJLOVA' ), + 'pagename' => array( 1, 'PAGENAME', 'STRANICA' ), + 'pagenamee' => array( 1, 'PAGENAMEE', 'STRANICE' ), + 'namespace' => array( 1, 'NAMESPACE', 'IMENSKIPROSTOR' ), + 'namespacee' => array( 1, 'NAMESPACEE', 'IMENSKIPROSTORI' ), + 'fullpagename' => array( 1, 'FULLPAGENAME', 'PUNOIMESTRANE' ), + 'fullpagenamee' => array( 1, 'FULLPAGENAMEE', 'PUNOIMESTRANEE' ), + 'msg' => array( 0, 'MSG:', 'POR:' ), + 'subst' => array( 0, 'SUBST:', 'ZAMENI:' ), + 'msgnw' => array( 0, 'MSGNW:', 'NVPOR:' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'mini' ), + 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'mini=$1' ), + 'img_right' => array( 1, 'right', 'desno', 'd' ), + 'img_left' => array( 1, 'left', 'levo', 'l' ), + 'img_none' => array( 1, 'none', 'n', 'bez' ), + 'img_width' => array( 1, '$1px', '$1piskel' , '$1p' ), + 'img_center' => array( 1, 'center', 'centre', 'centar', 'c' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'okvir', 'ram' ), + 'int' => array( 0, 'INT:', 'INT:' ), + 'sitename' => array( 1, 'SITENAME', 'IMESAJTA' ), + 'ns' => array( 0, 'NS:', 'IP:' ), + 'localurl' => array( 0, 'LOCALURL:', 'LOKALNAADRESA:' ), + 'localurle' => array( 0, 'LOCALURLE:', 'LOKALNEADRESE:' ), + 'server' => array( 0, 'SERVER', 'SERVER' ), + 'servername' => array( 0, 'SERVERNAME', 'IMESERVERA' ), + 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTA' ), + 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__BEZTC__' ), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__BEZCC__' ), + 'currentweek' => array( 1, 'CURRENTWEEK', 'TRENUTNANEDELjA' ), + 'currentdow' => array( 1, 'CURRENTDOW', 'TRENUTNIDOV' ), + 'revisionid' => array( 1, 'REVISIONID', 'IDREVIZIJE' ), + 'plural' => array( 0, 'PLURAL:', 'MNOŽINA:' ), + 'fullurl' => array( 0, 'FULLURL:', 'PUNURL:' ), + 'fullurle' => array( 0, 'FULLURLE:', 'PUNURLE:' ), + 'lcfirst' => array( 0, 'LCFIRST:', 'LCPRVI:' ), + 'ucfirst' => array( 0, 'UCFIRST:', 'UCPRVI:' ), + 'lc' => array( 0, 'LC:', 'LC:' ), + 'uc' => array( 0, 'UC:', 'UC:' ), +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); -$wgAllMessagesSr_el = array( +$messages = array( # stylesheets 'Common.css' => '/** CSS koji važi za sve skinove */', 'Monobook.css' => '/** Samo za MonoBook skin */', diff --git a/languages/LanguageZh_hk.php b/languages/MessagesSr_jc.php similarity index 53% rename from languages/LanguageZh_hk.php rename to languages/MessagesSr_jc.php index 7e55a77b2f..8bc334de73 100644 --- a/languages/LanguageZh_hk.php +++ b/languages/MessagesSr_jc.php @@ -3,9 +3,8 @@ * @package MediaWiki * @subpackage Language */ -require_once( "LanguageZh_tw.php"); -class LanguageZh_hk extends LanguageZh_tw { # Inherit everything for now -} +$fallback = 'sr-ec'; + ?> diff --git a/languages/LanguageZh_sg.php b/languages/MessagesSr_jl.php similarity index 53% rename from languages/LanguageZh_sg.php rename to languages/MessagesSr_jl.php index 6e43c3c541..8bc334de73 100644 --- a/languages/LanguageZh_sg.php +++ b/languages/MessagesSr_jl.php @@ -3,9 +3,8 @@ * @package MediaWiki * @subpackage Language */ -require_once( "LanguageZh_cn.php"); -class LanguageZh_sg extends LanguageZh_cn { # Inherit everything for now -} +$fallback = 'sr-ec'; + ?> diff --git a/languages/MessagesSu.php b/languages/MessagesSu.php index 38f3ff571d..c05e1b08f8 100644 --- a/languages/MessagesSu.php +++ b/languages/MessagesSu.php @@ -1,7 +1,35 @@ 'Média', + NS_SPECIAL => 'Husus', + NS_MAIN => '', + NS_TALK => 'Obrolan', + NS_USER => 'Pamaké', + NS_USER_TALK => 'Obrolan_pamaké', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Obrolan_$1', + NS_IMAGE => 'Gambar', + NS_IMAGE_TALK => 'Obrolan_gambar', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Obrolan_MediaWiki', + NS_TEMPLATE => 'Citakan', + NS_TEMPLATE_TALK => 'Obrolan_citakan', + NS_HELP => 'Pitulung', + NS_HELP_TALK => 'Obrolan_pitulung', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Obrolan_kategori', +); + + +$messages = array( # dates 'sunday' => 'Minggu', diff --git a/languages/MessagesSv.php b/languages/MessagesSv.php index 3d4b9e8c39..89feae9a09 100644 --- a/languages/MessagesSv.php +++ b/languages/MessagesSv.php @@ -1,7 +1,65 @@ "Standard", + 'nostalgia' => "Nostalgi", + 'cologneblue' => "Cologne Blå", +); +$namespaceNames = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Diskussion', + NS_USER => 'Användare', + NS_USER_TALK => 'Användardiskussion', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1diskussion', + NS_IMAGE => 'Bild', + NS_IMAGE_TALK => 'Bilddiskussion', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_diskussion', + NS_TEMPLATE => 'Mall', + NS_TEMPLATE_TALK => 'Malldiskussion', + NS_HELP => 'Hjälp', + NS_HELP_TALK => 'Hjälp_diskussion', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Kategoridiskussion' +); + +$linkTrail = '/^([a-zåäöéÅÄÖÉ]+)(.*)$/sDu'; +$separatorTransformTable = array( + ',' => "\xc2\xa0", // @bug 2749 + '.' => ',' +); + +$dateFormats = array( + 'mdy time' => 'H.i', + 'mdy date' => 'F j, Y', + 'mdy both' => 'F j, Y "kl." H.i', + + 'dmy time' => 'H.i', + 'dmy date' => 'j F Y', + 'dmy both' => 'j F Y "kl." H.i', + + 'ymd time' => 'H.i', + 'ymd date' => 'Y F j', + 'ymd both' => 'Y F j "kl." H.i', +); + +$messages = array( 'tog-underline' => 'Stryk under länkar', 'tog-highlightbroken' => 'Formatera trasiga länkar så här (alternativt: så här).', 'tog-justify' => 'Justera indrag', diff --git a/languages/MessagesTa.php b/languages/MessagesTa.php index 39c20a6e18..8953450786 100644 --- a/languages/MessagesTa.php +++ b/languages/MessagesTa.php @@ -1,7 +1,54 @@ "இயல்பான", + 'nostalgia' => "பசுமை நினைவு (Nostalgia)", + 'cologneblue' => "கொலோன் (Cologne) நீலம் Blue", + 'smarty' => "பாடிங்டன் (Paddington)", + 'montparnasse' => "மொண்ட்பார்னாசே (Montparnasse)", +); + +$namespaceNames = array( + NS_MEDIA => 'ஊடகம்', + NS_SPECIAL => 'சிறப்பு', + NS_MAIN => '', + NS_TALK => 'பேச்சு', + NS_USER => 'பயனர்', + NS_USER_TALK => 'பயனர்_பேச்சு', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_பேச்சு', + NS_IMAGE => 'படிமம்', + NS_IMAGE_TALK => 'படிமப்_பேச்சு', + NS_MEDIAWIKI => 'மீடியாவிக்கி', + NS_MEDIAWIKI_TALK => 'மீடியாவிக்கி_பேச்சு', + NS_TEMPLATE => 'வார்ப்புரு', + NS_TEMPLATE_TALK => 'வார்ப்புரு_பேச்சு', + NS_HELP => 'உதவி', + NS_HELP_TALK => 'உதவி_பேச்சு', + NS_CATEGORY => 'பகுப்பு', + NS_CATEGORY_TALK => 'பகுப்பு_பேச்சு', +); + +$namespaceAliases = array( + 'விக்கிபீடியா' => NS_PROJECT, + 'விக்கிபீடியா_பேச்சு' => NS_PROJECT_TALK, + 'உருவப்_பேச்சு' => NS_IMAGE_TALK +); +$linkTrail = "/^([\xE0\xAE\x80-\xE0\xAF\xBF]+)(.*)$/sDu"; + + +$messages = array( # User Toggles # diff --git a/languages/MessagesTe.php b/languages/MessagesTe.php index 77e307b155..829bfcc49f 100644 --- a/languages/MessagesTe.php +++ b/languages/MessagesTe.php @@ -1,7 +1,49 @@ + */ -global $wgAllMessagesTe; -$wgAllMessagesTe = array( +$namespaceNames = array( + NS_MEDIA => 'మీడియా', + NS_SPECIAL => 'ప్రత్యేక', + NS_MAIN => '', + NS_TALK => 'చర్చ', + NS_USER => 'సభ్యుడు', + NS_USER_TALK => 'సభ్యునిపై_చర్చ', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_చర్చ', + NS_IMAGE => 'బొమ్మ', + NS_IMAGE_TALK => 'బొమ్మపై_చర్చ', + NS_MEDIAWIKI => 'మీడియావికీ', + NS_MEDIAWIKI_TALK => 'మీడియావికీ_చర్చ', + NS_TEMPLATE => 'మూస', + NS_TEMPLATE_TALK => 'మూస_చర్చ', + NS_HELP => 'సహాయము', + NS_HELP_TALK => 'సహాయము_చర్చ', + NS_CATEGORY => 'వర్గం', + NS_CATEGORY_TALK => 'వర్గం_చర్చ' +); +$linkTrail = "/^([\xE0\xB0\x81-\xE0\xB1\xAF]+)(.*)$/sDu"; + +// nobody seems to use these anymore +/*$digitTransformTable = array( + '0' => '౦', + '1' => '౧', + '2' => '౨', + '3' => '౩', + '4' => '౪', + '5' => '౫', + '6' => '౬', + '7' => '౭', + '8' => '౮', + '9' => '౯' +);*/ + +$messages = array( 'tog-underline' => 'లింకుల కింద గీతగీయి:', 'tog-highlightbroken' => 'తెగిపోయిన లింకులను ఇలా చూపించు (ఇంకో పధ్ధతి: ?).', 'tog-justify' => 'పేరాలను ఇరు పక్కలా సమానంగా సర్దు', diff --git a/languages/MessagesTh.php b/languages/MessagesTh.php index 375813d185..9e8387d2ba 100644 --- a/languages/MessagesTh.php +++ b/languages/MessagesTh.php @@ -1,7 +1,43 @@ 'สื่อ', + NS_SPECIAL => 'พิเศษ', + NS_MAIN => '', + NS_TALK => 'พูดคุย', + NS_USER => 'ผู้ใช้', + NS_USER_TALK => 'คุยกับผู้ใช้', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'คุยเรื่อง$1', + NS_IMAGE => 'ภาพ', + NS_IMAGE_TALK => 'คุยเรื่องภาพ', + NS_MEDIAWIKI => 'มีเดียวิกิ', + NS_MEDIAWIKI_TALK => 'คุยเรื่องมีเดียวิกิ', + NS_TEMPLATE => 'แม่แบบ', + NS_TEMPLATE_TALK => 'คุยเรื่องแม่แบบ', + NS_HELP => 'วิธีใช้', + NS_HELP_TALK => 'คุยเรื่องวิธีใช้', + NS_CATEGORY => 'หมวดหมู่', + NS_CATEGORY_TALK => 'คุยเรื่องหมวดหมู่', +); + +$quickbarSettings = array( + "ไม่มี", "อยู่ทางซ้าย", "อยู่ทางขวา", "ลอยทางซ้าย" +); + -/* private */ $wgAllMessagesTh = array( +$messages = array( # User Toggles # diff --git a/languages/LanguageTlh.php b/languages/MessagesTlh.php similarity index 66% rename from languages/LanguageTlh.php rename to languages/MessagesTlh.php index 1f4e1f6301..073b07d7ed 100644 --- a/languages/LanguageTlh.php +++ b/languages/MessagesTlh.php @@ -5,17 +5,15 @@ * @subpackage Language */ -require_once( "LanguageUtf8.php" ); - -/* private */ $wgNamespaceNamesTlh = array( +$namespaceNames = array( NS_MEDIA => "Doch", NS_SPECIAL => "le'", NS_MAIN => "", NS_TALK => "ja'chuq", NS_USER => "lo'wI'", NS_USER_TALK => "lo'wI'_ja'chuq", - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . "_ja'chuq", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => "$1_ja'chuq", NS_IMAGE => "nagh_beQ", NS_IMAGE_TALK => "nagh_beQ_ja'chuq", NS_MEDIAWIKI => "MediaWiki", @@ -26,13 +24,7 @@ require_once( "LanguageUtf8.php" ); NS_HELP_TALK => "QaH_ja'chuq", NS_CATEGORY => "Segh", NS_CATEGORY_TALK => "Segh_ja'chuq" -) + $wgNamespaceNamesEn; +); -class LanguageTlh extends LanguageUtf8 { - function getNamespaces() { - global $wgNamespaceNamesTlh; - return $wgNamespaceNamesTlh; - } -} ?> diff --git a/languages/MessagesTr.php b/languages/MessagesTr.php index 8e30f2c017..229e931c95 100644 --- a/languages/MessagesTr.php +++ b/languages/MessagesTr.php @@ -1,7 +1,36 @@ 'Media', + NS_SPECIAL => 'Özel', + NS_MAIN => '', + NS_TALK => 'Tartışma', + NS_USER => 'Kullanıcı', + NS_USER_TALK => 'Kullanıcı_mesaj', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_tartışma', + NS_IMAGE => 'Resim', + NS_IMAGE_TALK => 'Resim_tartışma', + NS_MEDIAWIKI => 'MedyaViki', + NS_MEDIAWIKI_TALK => 'MedyaViki_tartışma', + NS_TEMPLATE => 'Şablon', + NS_TEMPLATE_TALK => 'Şablon_tartışma', + NS_HELP => 'Yardım', + NS_HELP_TALK => 'Yardım_tartışma', + NS_CATEGORY => 'Kategori', + NS_CATEGORY_TALK => 'Kategori_tartışma', +); + +$separatorTransformTable = array(',' => '.', '.' => ',' ); + + +$messages = array( 'tog-underline' => 'Bağlatıların altını çiz', 'tog-highlightbroken' => 'Boş bağlantıları bu şekilde (alternatif: bu şekilde?) göster.', 'tog-justify' => 'Paragraf iki yana yaslayarak ayarla', diff --git a/languages/MessagesTt.php b/languages/MessagesTt.php index 487544f526..14be566482 100644 --- a/languages/MessagesTt.php +++ b/languages/MessagesTt.php @@ -1,7 +1,84 @@ 'Media', + NS_SPECIAL => 'Maxsus', + NS_MAIN => '', + NS_TALK => 'Bäxäs', + NS_USER => 'Äğzä', + NS_USER_TALK => "Äğzä_bäxäse", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_bäxäse', + NS_IMAGE => "Räsem", + NS_IMAGE_TALK => "Räsem_bäxäse", + NS_MEDIAWIKI => "MediaWiki", + NS_MEDIAWIKI_TALK => "MediaWiki_bäxäse", + NS_TEMPLATE => "Ürnäk", + NS_TEMPLATE_TALK => "Ürnäk_bäxäse", + NS_HELP => "Yärdäm", + NS_HELP_TALK => "Yärdäm_bäxäse", + NS_CATEGORY => "Törkem", + NS_CATEGORY_TALK => "Törkem_bäxäse" +); + +$datePreferences = false; +$defaultDateFormat = 'dmy'; +$dateFormats = array( + 'dmy time' => 'H:i', + 'dmy date' => 'j. M Y', + 'dmy both' => 'j. M Y, H:i', +); + +# Note to translators: +# Please include the English words as synonyms. This allows people +# from other wikis to contribute more easily. +# +$magicWords = array( +# ID CASE SYNONYMS + 'redirect' => array( 0, '#yünältü' ), + 'notoc' => array( 0, '__ETYUQ__' ), + 'forcetoc' => array( 0, '__ETTIQ__' ), + 'toc' => array( 0, '__ET__' ), + 'noeditsection' => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ), + 'start' => array( 0, '__BAŞLAW__' ), + 'currentmonth' => array( 1, 'AĞIMDAĞI_AY' ), + 'currentmonthname' => array( 1, 'AĞIMDAĞI_AY_İSEME' ), + 'currentday' => array( 1, 'AĞIMDAĞI_KÖN' ), + 'currentdayname' => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ), + 'currentyear' => array( 1, 'AĞIMDAĞI_YIL' ), + 'currenttime' => array( 1, 'AĞIMDAĞI_WAQIT' ), + 'numberofarticles' => array( 1, 'MÄQÄLÄ_SANI' ), + 'currentmonthnamegen' => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ), + 'pagename' => array( 1, 'BİTİSEME' ), + 'namespace' => array( 1, 'İSEMARA' ), + 'subst' => array( 0, 'TÖPÇEK:' ), + 'msgnw' => array( 0, 'MSGNW:' ), + 'end' => array( 0, '__AZAQ__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' ), + 'img_right' => array( 1, 'uñda' ), + 'img_left' => array( 1, 'sulda' ), + 'img_none' => array( 1, 'yuq' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame' ), + 'int' => array( 0, 'EÇKE:' ), + 'sitename' => array( 1, 'SÄXİFÄİSEME' ), + 'ns' => array( 0, 'İA:' ), + 'localurl' => array( 0, 'URINLIURL:' ), + 'localurle' => array( 0, 'URINLIURLE:' ), + 'server' => array( 0, 'SERVER' ) +); + +$fallback8bitEncoding = "windows-1254"; -/* private */ $wgAllMessagesTt = array( +$messages = array( # week days, months 'sunday' => "Yäkşämbe", @@ -39,4 +116,4 @@ ); -?> \ No newline at end of file +?> diff --git a/languages/MessagesTyv.php b/languages/MessagesTyv.php index f0fe870340..1c680214e0 100644 --- a/languages/MessagesTyv.php +++ b/languages/MessagesTyv.php @@ -1,10 +1,57 @@ 'Медиа', //Media + NS_SPECIAL => 'Тускай', //Special + NS_MAIN => '', + NS_TALK => 'Чугаа', //Talk + NS_USER => 'Aжыглакчы', //User + NS_USER_TALK => 'Aжыглакчы_чугаа', //User_talk + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_чугаа', //_talk + NS_IMAGE => 'Чурук', //Image + NS_IMAGE_TALK => 'Чурук_чугаа', //Image_talk + NS_MEDIAWIKI => 'МедиаВики', //MediaWiki + NS_MEDIAWIKI_TALK => 'МедиаВики_чугаа', //MediaWiki_talk + NS_TEMPLATE => 'Хээ', //Template + NS_TEMPLATE_TALK => 'Хээ_чугаа', //Template_talk + NS_HELP => 'Дуза', //Help + NS_HELP_TALK => 'Дуза_чугаа', //Help_talk + NS_CATEGORY => 'Бөлүк', //Category + NS_CATEGORY_TALK => 'Бөлүк_чугаа', //Category_talk +); + +$skinNames = array( + 'standard' => 'Classic', //Classic + 'nostalgia' => 'Nostalgia', //Nostalgia + 'cologneblue' => 'Cologne Blue', //Cologne Blue + 'davinci' => 'ДаВинчи', //DaVinci + 'mono' => 'Моно', //Mono + 'monobook' => 'Моно-Ном', //MonoBook + 'myskin' => 'MySkin', //MySkin + 'chick' => 'Chick' //Chick +); + +$bookstoreList = array( + 'ОЗОН' => 'http://www.ozon.ru/?context=advsearch_book&isbn=$1', + 'Books.Ru' => 'http://www.books.ru/shop/search/advanced?as%5Btype%5D=books&as%5Bname%5D=&as%5Bisbn%5D=$1&as%5Bauthor%5D=&as%5Bmaker%5D=&as%5Bcontents%5D=&as%5Binfo%5D=&as%5Bdate_after%5D=&as%5Bdate_before%5D=&as%5Bprice_less%5D=&as%5Bprice_more%5D=&as%5Bstrict%5D=%E4%E0&as%5Bsub%5D=%E8%F1%EA%E0%F2%FC&x=22&y=8', + 'Яндекс.Маркет' => 'http://market.yandex.ru/search.xml?text=$1', + 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1', + 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', + 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', + 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1' +); + +$fallback8bitEncoding = "windows-1251"; + -/* private */ $wgAllMessagesTyv = array( +$messages = array( # User preference toggles 'tog-hideminor' => 'Сөөлгү өскерлиишкиннер арында бичии өскерлиишкиннер чажырар', //Hide minor edits in recent changes diff --git a/languages/MessagesUdm.php b/languages/MessagesUdm.php index 8c7a0bc7f1..c1acc8c37a 100644 --- a/languages/MessagesUdm.php +++ b/languages/MessagesUdm.php @@ -1,7 +1,39 @@ 'Медиа', + NS_SPECIAL => 'Панель', + NS_MAIN => '', + NS_TALK => 'Вераськон', + NS_USER => 'Викиавтор', + NS_USER_TALK => 'Викиавтор_сярысь_вераськон', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_сярысь_вераськон', + NS_IMAGE => 'Суред', + NS_IMAGE_TALK => 'Суред_сярысь_вераськон', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_сярысь_вераськон', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Шаблон_сярысь_вераськон', + NS_HELP => 'Валэктон', + NS_HELP_TALK => 'Валэктон_сярысь_вераськон', + NS_CATEGORY => 'Категория', + NS_CATEGORY_TALK => 'Категория_сярысь_вераськон', +); + +$linkTrail = '/^([a-zа-яёӝӟӥӧӵ“»]+)(.*)$/sDu'; +$fallback8bitEncoding = 'windows-1251'; +$separatorTransformTable = array(',' => ' ', '.' => ',' ); + +$messages = array( 'linkprefix' => '/^(.*?)(„|«)$/sDu', 'article' => 'Статья', 'createaccount' => 'выль вики-авторлэн регистрациез', @@ -16,4 +48,4 @@ $wgAllMessagesUdm = array( 'preferences' => 'настройкаос', ); -?> \ No newline at end of file +?> diff --git a/languages/MessagesUg.php b/languages/MessagesUg.php new file mode 100644 index 0000000000..9531c0101b --- /dev/null +++ b/languages/MessagesUg.php @@ -0,0 +1,10 @@ + diff --git a/languages/MessagesUk.php b/languages/MessagesUk.php index d12288706a..6e64708757 100644 --- a/languages/MessagesUk.php +++ b/languages/MessagesUk.php @@ -1,7 +1,49 @@ 'Медіа', + NS_SPECIAL => 'Спеціальні', + NS_MAIN => '', + NS_TALK => 'Обговорення', + NS_USER => 'Користувач', + NS_USER_TALK => 'Обговорення_користувача', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Обговорення_$1', + NS_IMAGE => 'Зображення', + NS_IMAGE_TALK => 'Обговорення_зображення', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Обговорення_MediaWiki', + NS_TEMPLATE => 'Шаблон', + NS_TEMPLATE_TALK => 'Обговорення_шаблону', + NS_HELP => 'Довідка', + NS_HELP_TALK => 'Обговорення_довідки', + NS_CATEGORY => 'Категорія', + NS_CATEGORY_TALK => 'Обговорення_категорії' +); + +$quickbarSettings = array( + "Не показувати панель", "Фіксована зліва", "Фіксована справа", "Плаваюча зліва" +); + +$skinNames = array( + 'standard' => "Стандартне", + 'nostalgia' => "Ностальгія", + 'cologneblue' => "Кельнське Синє" +); + + +$datePreferences = false; + +$fallback8bitEncoding = "windows-1251"; +$separatorTransformTable = array(',' => '.', '.' => ',' ); +$linkTrail = "/^([a-z]+)(.*)\$/sD"; -/* private */ $wgAllMessagesUk = array( +$messages = array( # User Toggles "tog-underline" => "Підкреслювати зв'язки", @@ -67,7 +109,6 @@ # Bits of text used by many pages: # -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "Головна стаття", "mainpagetext" => "Програмне забезпечення вікі встановлено.", "about" => "Про", diff --git a/languages/MessagesUr.php b/languages/MessagesUr.php new file mode 100644 index 0000000000..25c9d869f6 --- /dev/null +++ b/languages/MessagesUr.php @@ -0,0 +1,12 @@ + 2, + # Underlines seriously harm legibility. Force off: + 'underline' => 0, +); + + +?> diff --git a/languages/MessagesVec.php b/languages/MessagesVec.php index 0ede1298eb..078d6d0344 100644 --- a/languages/MessagesVec.php +++ b/languages/MessagesVec.php @@ -1,7 +1,36 @@ 'Media', + NS_SPECIAL => 'Speciale', + NS_MAIN => '', + NS_TALK => 'Discussion', + NS_USER => 'Utente', + NS_USER_TALK => 'Discussion_utente', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Discussion_$1', + NS_IMAGE => 'Imagine', + NS_IMAGE_TALK => 'Discussion_imagine', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Discussion_template', + NS_HELP => 'Aiuto', + NS_HELP_TALK => 'Discussion_aiuto', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discussion_categoria' +); + +$messages = array( 'tog-underline' => 'Sottolinea links', 'tog-highlightbroken' => 'Evidenzsia i links che i punta a
    arthicołi ancora da scrivere', 'tog-justify' => 'Paragrafo: giustificato', diff --git a/languages/MessagesVi.php b/languages/MessagesVi.php index aadbe9fd8e..dd319f25eb 100644 --- a/languages/MessagesVi.php +++ b/languages/MessagesVi.php @@ -1,7 +1,107 @@ 'Phương_tiện', + NS_SPECIAL => 'Đặc_biệt', + NS_MAIN => '', + NS_TALK => 'Thảo_luận', + NS_USER => 'Thành_viên', + NS_USER_TALK => 'Thảo_luận_Thành_viên', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => 'Thảo_luận_$1', + NS_IMAGE => 'Hình', + NS_IMAGE_TALK => 'Thảo_luận_Hình', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'Thảo_luận_MediaWiki', + NS_TEMPLATE => 'Tiêu_bản', + NS_TEMPLATE_TALK => 'Thảo_luận_Tiêu_bản', + NS_HELP => 'Trợ_giúp', + NS_HELP_TALK => 'Thảo_luận_Trợ_giúp', + NS_CATEGORY => 'Thể_loại', + NS_CATEGORY_TALK => 'Thảo_luận_Thể_loại' +); + +$quickbarSettings = array( + 'Không', 'Trái', 'Phải', 'Nổi bên trái' +); + +$skinNames = array( + 'standard' => 'Cổ điển', + 'nostalgia' => 'Vọng cổ', + 'myskin' => 'Cá nhân' +); + +$magicWords = array( + 'redirect' => array( 0, '#redirect' , '#đổi' ), + 'notoc' => array( 0, '__NOTOC__' , '__KHÔNGMỤCMỤC__' ), + 'forcetoc' => array( 0, '__FORCETOC__', '__LUÔNMỤCLỤC__' ), + 'toc' => array( 0, '__TOC__' , '__MỤCLỤC__' ), + 'noeditsection' => array( 0, '__NOEDITSECTION__', '__KHÔNGSỬAMỤC__' ), + 'start' => array( 0, '__START__' , '__BẮTĐẦU__' ), + 'currentmonth' => array( 1, 'CURRENTMONTH' , 'THÁNGNÀY' ), + 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' , 'TÊNTHÁNGNÀY' ), + 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' , 'TÊNDÀITHÁNGNÀY' ), + 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' , 'TÊNNGẮNTHÁNGNÀY' ), + 'currentday' => array( 1, 'CURRENTDAY' , 'NGÀYNÀY' ), + 'currentdayname' => array( 1, 'CURRENTDAYNAME' , 'TÊNNGÀYNÀY' ), + 'currentyear' => array( 1, 'CURRENTYEAR' , 'NĂMNÀY' ), + 'currenttime' => array( 1, 'CURRENTTIME' , 'GIỜNÀY' ), + 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' , 'SỐBÀI' ), + 'numberoffiles' => array( 1, 'NUMBEROFFILES' , 'SỐTẬPTIN' ), + 'pagename' => array( 1, 'PAGENAME' , 'TÊNTRANG' ), + 'pagenamee' => array( 1, 'PAGENAMEE' , 'TÊNTRANG2' ), + 'namespace' => array( 1, 'NAMESPACE' , 'KHÔNGGIANTÊN' ), + 'msg' => array( 0, 'MSG:' , 'NHẮN:' ), + 'subst' => array( 0, 'SUBST:' , 'THẾ:' ), + 'msgnw' => array( 0, 'MSGNW:' , 'NHẮNMỚI:' ), + 'end' => array( 0, '__END__' , '__KẾT__' ), + 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' , 'nhỏ' ), + 'img_right' => array( 1, 'right' , 'phải' ), + 'img_left' => array( 1, 'left' , 'trái' ), + 'img_none' => array( 1, 'none' , 'không' ), + 'img_width' => array( 1, '$1px' ), + 'img_center' => array( 1, 'center', 'centre' , 'giữa' ), + 'img_framed' => array( 1, 'framed', 'enframed', 'frame' , 'khung'), + 'int' => array( 0, 'INT:' ), + 'sitename' => array( 1, 'SITENAME' , 'TÊNMẠNG' ), + 'ns' => array( 0, 'NS:' ), + 'localurl' => array( 0, 'LOCALURL:' ), + 'localurle' => array( 0, 'LOCALURLE:' ), + 'server' => array( 0, 'SERVER' , 'MÁYCHỦ' ), + 'servername' => array( 0, 'SERVERNAME' , 'TÊNMÁYCHỦ' ), + 'scriptpath' => array( 0, 'SCRIPTPATH' , '' ), + 'grammar' => array( 0, 'GRAMMAR:' , 'NGỮPHÁP' ), + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', +'__NOTC__', '__KHÔNGCHUYỂNTÊN__'), + 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', +'__NOCC__', '__KHÔNGCHUYỂNNỘIDUNG__'), + 'currentweek' => array( 1, 'CURRENTWEEK' , 'TUẦNNÀY' ), + 'currentdow' => array( 1, 'CURRENTDOW' ), + 'revisionid' => array( 1, 'REVISIONID' , 'SỐBẢN' ), + ); + +$dateFormats = array( + MW_DATE_DEFAULT => 'Không lựa chọn', + 1 => '16:12, tháng 1 ngày 15 năm 2001', + 2 => '16:12, ngày 15 tháng 1 năm 2001', + 3 => '16:12, năm 2001 tháng 1 ngày 15', + 4 => '', + MW_DATE_ISO => '2001-01-15 16:12:34' +); + +$linkTrail = "/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sD"; +$separatorTransformTable = array(',' => '.', '.' => ',' ); -/* private */ $wgAllMessagesVi = array( +$messages = array( # User Toggles 'tog-editwidth' => 'Cửa sổ soạn thảo mở rộng', @@ -75,8 +175,6 @@ 'subcategories' => 'Tiểu thể loại', 'subcategorycount' => 'Thể loại này có $1 tiểu thể loại.', 'allarticles' => 'Mọi bài', -'linktrail' => -"/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sD", 'mainpage' => 'Trang đầu', 'mainpagetext' => 'Phần mềm {{SITENAME}} đã cài đặt.', 'portal' => 'Cộng đồng', diff --git a/languages/MessagesWa.php b/languages/MessagesWa.php index 62120b0b26..f2201e610d 100644 --- a/languages/MessagesWa.php +++ b/languages/MessagesWa.php @@ -1,4 +1,64 @@ 'default', + 2 => 'dmy', + 4 => 'walloon short', +); +$defaultDateFormat = 'dmy'; + +$dateFormats = array( + 'walloon short time' => 'H:i' +); + +$namespaceNames = array( + NS_MEDIA => "Media", /* Media */ + NS_SPECIAL => "Sipeciås", /* Special */ + NS_MAIN => "", + NS_TALK => "Copene", /* Talk */ + NS_USER => "Uzeu", /* User */ + NS_USER_TALK => "Uzeu_copene", /* User_talk */ + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_copene', + NS_IMAGE => "Imådje", /* Image */ + NS_IMAGE_TALK => "Imådje_copene", /* Image_talk */ + NS_MEDIAWIKI => "MediaWiki", /* MediaWiki */ + NS_MEDIAWIKI_TALK => "MediaWiki_copene", /* MediaWiki_talk */ + NS_TEMPLATE => "Modele", + NS_TEMPLATE_TALK => "Modele_copene", + NS_HELP => "Aidance", + NS_HELP_TALK => "Aidance_copene", + NS_CATEGORY => "Categoreye", + NS_CATEGORY_TALK => "Categoreye_copene", +); + +# definixha del cogne po les limeros +# (number format definition) +# en: 12,345.67 -> wa: 12 345,67 +$separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); + +#$linkTrail = '/^([a-zåâêîôûçéèA-ZÅÂÊÎÔÛÇÉÈ]+)(.*)$/sDu'; +$linkTrail = '/^([a-zåâêîôûçéè]+)(.*)$/sDu'; # # NOTE: @@ -7,8 +67,7 @@ # steward = mwaisse-manaedjeu tot avå # -global $wgAllMessagesWa; -$wgAllMessagesWa = array( +$messages = array( # User preference toggles 'tog-underline' => 'Sorlignî les loyéns', 'tog-highlightbroken' => 'Håyner les vudes loyéns come çouchal
        (oudonbén: come çouchal?).', @@ -88,7 +147,6 @@ $wgAllMessagesWa = array( 'category_header' => 'Årtikes el categoreye «$1»', 'subcategories' => 'Dizo-categoreyes', # using uppercase A-Z break things... -#'linktrail' => '/^([a-zåâêîôûçéèA-ZÅÂÊÎÔÛÇÉÈ]+)(.*)$/sDu', 'linktrail' => '/^([a-zåâêîôûçéè]+)(.*)$/sDu', #'linkprefix' => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD', 'mainpage' => 'Mwaisse pÃ¥dje', diff --git a/languages/MessagesXal.php b/languages/MessagesXal.php index f6acc40b31..3ae95a5e86 100644 --- a/languages/MessagesXal.php +++ b/languages/MessagesXal.php @@ -1,7 +1,35 @@ 'Аһар', + NS_SPECIAL => 'Көдлхнə', + NS_MAIN => '', + NS_TALK => 'Ухалвр', + NS_USER => 'Орлцач', + NS_USER_TALK => 'Орлцачна_тускар_ухалвр', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_тускар_ухалвр', + NS_IMAGE => 'Зург', + NS_IMAGE_TALK => 'Зургин_тускар_ухалвр', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_тускар_ухалвр', + NS_TEMPLATE => 'Зура', + NS_TEMPLATE_TALK => 'Зуран_тускар_ухалвр', + NS_HELP => 'Цəəлһлһн', + NS_HELP_TALK => 'Цəəлһлһин_тускар_ухалвр', + NS_CATEGORY => 'Янз', + NS_CATEGORY_TALK => 'Янзин_тускар_ухалвр', +); + +$fallback8bitEncoding = "windows-1251"; -/* private */ $wgAllMessagesXal = array( +$messages = array( 'edit' => 'Чиклх', 'article' => 'Халх', diff --git a/languages/MessagesYi.php b/languages/MessagesYi.php index 2e5dea94cd..7e84c0c4b6 100644 --- a/languages/MessagesYi.php +++ b/languages/MessagesYi.php @@ -1,7 +1,49 @@ 'מעדיע', + NS_SPECIAL => 'באַזונדער', + NS_MAIN => '', + NS_TALK => 'רעדן', + NS_USER => 'באַניצער', + NS_USER_TALK => 'באַניצער_רעדן', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_רעדן', + NS_IMAGE => 'בילד', + NS_IMAGE_TALK => 'בילד_רעדן', + NS_MEDIAWIKI => 'מעדיעװיקי', + NS_MEDIAWIKI_TALK => 'מעדיעװיקי_רעדן', + NS_TEMPLATE => 'מוסטער', + NS_TEMPLATE_TALK => 'מוסטער_רעדן', + NS_HELP => 'הילף', + NS_HELP_TALK => 'הילף_רעדן', + NS_CATEGORY => 'קאַטעגאָריע', + NS_CATEGORY_TALK => 'קאַטעגאָריע_רעדן' +); + +$namespaceAliases = array( + 'באזונדער' => NS_SPECIAL, + 'באנוצער' => NS_USER, + 'באנוצער_רעדן' => NS_USER_TALK, + 'מעדיעוויקי' => NS_MEDIAWIKI, + 'מעדיעוויקי_רעדן' => NS_MEDIAWIKI_TALK, + 'קאטעגאריע' => NS_CATEGORY, + 'קאטעגאריע_רעדן' => NS_CATEGORY_TALK, +); + +$rtl = true; +$defaultUserOptionOverrides = array( + # Swap sidebar to right side by default + 'quickbar' => 2, +); + +$messages = array( 'tog-usenewrc' => 'פֿאַרבעסערטע "לעצטע ענדערונגען" (JavaScript)', 'tog-watchdefault' => 'נאָכפֿאָלג אױטאָמאַטיש די װערטן װאָס איך באַאַרבעט', 'tog-previewontop' => 'צײַגן דעם "פֿאָרויסיקע װײַזונג" גלײַך בײַם ערשטע באַאַרבעטונג', diff --git a/languages/MessagesZa.php b/languages/MessagesZa.php new file mode 100644 index 0000000000..acf1e456f6 --- /dev/null +++ b/languages/MessagesZa.php @@ -0,0 +1,9 @@ + diff --git a/languages/MessagesZh.php b/languages/MessagesZh.php new file mode 100644 index 0000000000..a97bba1594 --- /dev/null +++ b/languages/MessagesZh.php @@ -0,0 +1,7 @@ + diff --git a/languages/MessagesZh_cn.php b/languages/MessagesZh_cn.php index 10ba8024e8..87d5e652d0 100644 --- a/languages/MessagesZh_cn.php +++ b/languages/MessagesZh_cn.php @@ -1,7 +1,66 @@ 'Media', + NS_SPECIAL => 'Special', + NS_MAIN => '', + NS_TALK => 'Talk', + NS_USER => 'User', + NS_USER_TALK => 'User_talk', + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1_talk', + NS_IMAGE => 'Image', + NS_IMAGE_TALK => 'Image_talk', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_talk', + NS_TEMPLATE => 'Template', + NS_TEMPLATE_TALK => 'Template_talk', + NS_HELP => 'Help', + NS_HELP_TALK => 'Help_talk', + NS_CATEGORY => 'Category', + NS_CATEGORY_TALK => 'Category_talk' +); + +$namespaceAliases = array( + "特殊" => NS_SPECIAL, + "对话" => NS_TALK, + "用户" => NS_USER, + "用户对话" => NS_USER_TALK, + # This has never worked so it's unlikely to annoy anyone if I disable it -- TS + #"{{SITENAME}}_对话" => NS_PROJECT_TALK + "图像" => NS_IMAGE, + "图像对话" => NS_IMAGE_TALK, +); + +$quickbarSettings = array( + "无", /* "None" */ + "左侧固定", /* "Fixed left" */ + "右侧固定", /* "Fixed right" */ + "左侧漂移" /* "Floating left" */ +); +$skinNames = array( + 'standard' => "标准", + 'nostalgia' => "怀旧", + 'cologneblue' => "科隆香水蓝" +); + +$extraUserToggles = array( + 'nolangconversion', +); +$datePreferences = false; +$defaultDateFormat = 'zh'; +$dateFormats = array( + 'zh time' => 'H:i', + 'zh date' => 'Yå¹´Mj日', + 'zh both' => 'H:i Yå¹´Mj日', +); -/* private */ $wgAllMessagesZh_cn = array( +$messages = array( # User Toggles "tog-underline" => "下划链接", /* "Underline links", */ @@ -62,7 +121,6 @@ "category" => "分类", "category_header" => "类别”$1“中的条目", "subcategories" => "附分类", -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "首页", "about" => "关于", "aboutsite" => "关于{{SITENAME}}", diff --git a/languages/MessagesZh_hk.php b/languages/MessagesZh_hk.php new file mode 100644 index 0000000000..998b76d1b8 --- /dev/null +++ b/languages/MessagesZh_hk.php @@ -0,0 +1,10 @@ + diff --git a/languages/MessagesZh_sg.php b/languages/MessagesZh_sg.php new file mode 100644 index 0000000000..945636c498 --- /dev/null +++ b/languages/MessagesZh_sg.php @@ -0,0 +1,10 @@ + diff --git a/languages/MessagesZh_tw.php b/languages/MessagesZh_tw.php index 3f36c6d1f3..0711488b66 100644 --- a/languages/MessagesZh_tw.php +++ b/languages/MessagesZh_tw.php @@ -1,7 +1,61 @@ "媒體", + NS_SPECIAL => "特殊", + NS_MAIN => "", + NS_TALK => "討論", + NS_USER => "用戶", + NS_USER_TALK => "用戶討論", + # NS_PROJECT set by $wgMetaNamespace + NS_PROJECT_TALK => '$1討論', + NS_IMAGE => "圖像", + NS_IMAGE_TALK => "圖像討論", + NS_MEDIAWIKI => "媒體維基", + NS_MEDIAWIKI_TALK => "媒體維基討論", + NS_TEMPLATE => "樣板", + NS_TEMPLATE_TALK => "樣板討論", + NS_HELP => "幫助", + NS_HELP_TALK => "幫助討論", + NS_CATEGORY => "分類", + NS_CATEGORY_TALK => "分類討論" +); + +$namespaceAliases = array( + "對話" => NS_TALK, + "用戶對話" => NS_USER_TALK, + "維基百科對話" => NS_PROJECT_TALK, + "圖像對話" => NS_IMAGE_TALK, +); + +$quickbarSettings = array( + "無", /* "None" */ + "左側固定", /* "Fixed left" */ + "右側固定", /* "Fixed right" */ + "左側漂移" /* "Floating left" */ +); + +$skinNames = array( + "標準",/* "Standard" */ + "懷舊",/* "Nostalgia" */ + "科隆香水藍" /* "Cologne Blue" */ +); + +$bookstoreList = array( + "博客來書店" => "http://www.books.com.tw/exep/openfind_book_keyword.php?cat1=4&key1=$1", + "三民書店" => "http://www.sanmin.com.tw/page-qsearch.asp?ct=search_isbn&qu=$1", + "天下書店" => "http://www.cwbook.com.tw/cw/TS.jsp?schType=product.isbn&schStr=$1", + "新絲書店" => "http://www.silkbook.com/function/Search_List_Book.asp?item=5&text=$1" +); -/* private */ $wgAllMessagesZh_tw = array( +$messages = array( /* User toggles */ "tog-underline" => "下劃鏈結", /* "Underline links", */ @@ -30,7 +84,6 @@ "category" => "分類", "category_header" => "類別”$1“中的條目", "subcategories" => "子分類", -"linktrail" => "/^([a-z]+)(.*)\$/sD", "mainpage" => "首頁", "about" => "關於", "aboutpage" => "{{ns:project}}:關於", diff --git a/languages/scripts/date-formats.php b/languages/scripts/date-formats.php new file mode 100644 index 0000000000..dd3fb7f5c1 --- /dev/null +++ b/languages/scripts/date-formats.php @@ -0,0 +1,45 @@ +getDatePreferences(); + if ( !$prefs ) { + $prefs = array( 'default' ); + } + print "date: "; + foreach ( $prefs as $index => $pref ) { + if ( $index > 0 ) { + print ' | '; + } + print $lang->date( $ts, false, $pref ); + } + print "\n$code time: "; + foreach ( $prefs as $index => $pref ) { + if ( $index > 0 ) { + print ' | '; + } + print $lang->time( $ts, false, $pref ); + } + print "\n$code both: "; + foreach ( $prefs as $index => $pref ) { + if ( $index > 0 ) { + print ' | '; + } + print $lang->timeanddate( $ts, false, $pref ); + } + print "\n\n"; +} + +?> diff --git a/languages/scripts/function-list.php b/languages/scripts/function-list.php new file mode 100644 index 0000000000..84efb29d4f --- /dev/null +++ b/languages/scripts/function-list.php @@ -0,0 +1,44 @@ + diff --git a/languages/scripts/validate.php b/languages/scripts/validate.php new file mode 100644 index 0000000000..10d98d3724 --- /dev/null +++ b/languages/scripts/validate.php @@ -0,0 +1,40 @@ +\n"; + exit( 1 ); +} +array_shift( $argv ); + +define( 'MEDIAWIKI', 1 ); +define( 'NOT_REALLY_MEDIAWIKI', 1 ); + +$IP = dirname( __FILE__ ) . '/../..'; + +require_once( "$IP/includes/Defines.php" ); +require_once( "$IP/languages/Language.php" ); + +$files = array(); +foreach ( $argv as $arg ) { + $files = array_merge( $files, glob( $arg ) ); +} + +foreach ( $files as $filename ) { + print "$filename..."; + $vars = getVars( $filename ); + $keys = array_keys( $vars ); + $diff = array_diff( $keys, Language::$mLocalisationKeys ); + if ( $diff ) { + print "\nWarning: unrecognised variable(s): " . implode( ', ', $diff ) ."\n"; + } else { + print " ok\n"; + } +} + +function getVars( $filename ) { + require( $filename ); + $vars = get_defined_vars(); + unset( $vars['filename'] ); + return $vars; +} +?> diff --git a/maintenance/InitialiseMessages.inc b/maintenance/InitialiseMessages.inc index 189fbd2518..ab0f3c597c 100644 --- a/maintenance/InitialiseMessages.inc +++ b/maintenance/InitialiseMessages.inc @@ -11,9 +11,9 @@ */ /** */ -function initialiseMessages( $overwrite = false, $messageArray = false ) { +function initialiseMessages( $overwrite = false, $messageArray = false, $outputCallback = false ) { global $wgContLang, $wgContLanguageCode; - global $wgContLangClass, $wgAllMessagesEn; + global $wgContLangClass; global $wgDisableLangConversion; global $wgForceUIMsgAsContentMsg; global $wgLanguageNames; @@ -26,7 +26,7 @@ function initialiseMessages( $overwrite = false, $messageArray = false ) { if ( $messageArray ) { $sortedArray = $messageArray; } else { - $sortedArray = $wgAllMessagesEn; + $sortedArray = Language::getMessagesFor( 'en' ); } ksort( $sortedArray ); @@ -37,11 +37,7 @@ function initialiseMessages( $overwrite = false, $messageArray = false ) { $variants[]=$wgContLanguageCode; foreach ($variants as $v) { - $langclass = 'Language'. str_replace( '-', '_', ucfirst( $v ) ); - if( !class_exists($langclass) ) { - wfDie( "class $langclass not defined. perhaps you need to include the file $langclass.php in $wgContLangClass.php?" ); - } - $lang = new $langclass; + $lang = Language::factory( $v ); if($v==$wgContLanguageCode) $suffix=''; @@ -69,12 +65,12 @@ function initialiseMessages( $overwrite = false, $messageArray = false ) { } } } - initialiseMessagesReal( $overwrite, $messages ); + initialiseMessagesReal( $overwrite, $messages, $outputCallback ); } /** */ -function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { - global $wgContLang, $wgScript, $wgServer, $wgAllMessagesEn; +function initialiseMessagesReal( $overwrite = false, $messageArray = false, $outputCallback = false ) { + global $wgContLang, $wgScript, $wgServer, $wgLanguageCode; global $wgOut, $wgArticle, $wgUser; global $wgMessageCache, $wgMemc, $wgDBname, $wgUseMemCached; @@ -91,14 +87,24 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { $fname = 'initialiseMessages'; $ns = NS_MEDIAWIKI; - # cur_user_text responsible for the modifications + # username responsible for the modifications # Don't change it unless you're prepared to update the DBs accordingly, otherwise the - # default messages won't be overwritte + # default messages won't be overwritten $username = 'MediaWiki default'; + if ( !$outputCallback ) { + # Print is not a function, and there doesn't appear to be any built-in + # workalikes, so let's just make our own anonymous function to do the + # same thing. + $outputCallback = create_function( '$s', 'print $s;' ); + } - print "Initialising \"MediaWiki\" namespace...\n"; + $outputCallback( "Initialising \"MediaWiki\" namespace for language code $wgLanguageCode...\n" ); + # Check that the serialized data files are OK + if ( Language::isLocalisationOutOfDate( $wgLanguageCode ) ) { + $outputCallback( "Warning: serialized data file may be out of date.\n" ); + } $dbr =& wfGetDB( DB_SLAVE ); $dbw =& wfGetDB( DB_MASTER ); @@ -107,13 +113,11 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { $timestamp = wfTimestampNow(); - #$sql = "SELECT cur_title,cur_is_new,cur_user_text FROM $cur WHERE cur_namespace=$ns AND cur_title IN("; - # Get keys from $wgAllMessagesEn, which is more complete than the local language $first = true; if ( $messageArray ) { $sortedArray = $messageArray; } else { - $sortedArray = $wgAllMessagesEn; + $sortedArray = $wgContLang->getAllMessages(); } ksort( $sortedArray ); @@ -132,7 +136,7 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { foreach ($chunks as $chunk) { $first = true; $sql = "SELECT page_title,page_is_new,rev_user_text FROM $page, $revision WHERE - page_namespace=$ns AND rev_page=page_id AND page_title IN("; + page_namespace=$ns AND rev_id=page_latest AND page_title IN("; foreach ( $chunk as $key => $enMsg ) { if ( $key == '' ) { @@ -171,20 +175,28 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { $talk = $wgContLang->getNsText( NS_TALK ); $mwtalk = $wgContLang->getNsText( NS_MEDIAWIKI_TALK ); + $numUpdated = 0; + $numKept = 0; + $numInserted = 0; + # Merge these into a single transaction for speed $dbw->begin(); # Process each message - foreach ( $sortedArray as $key => $enMsg ) { + foreach ( $sortedArray as $key => $message ) { if ( $key == '' ) { continue; // Skip odd members } # Get message text - if ( $messageArray ) { - $message = $enMsg; - } else { + if ( !$messageArray ) { $message = wfMsgNoDBForContent( $key ); } + if ( is_null( $message ) ) { + # This happens sometimes with out of date serialized data files + $outputCallback( "Warning: Skipping null message $key\n" ); + continue; + } + $titleObj = Title::newFromText( $wgContLang->ucfirst( $key ), NS_MEDIAWIKI ); $title = $titleObj->getDBkey(); @@ -197,7 +209,12 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { if( is_null( $revision ) || $revision->getText() != $message ) { $article = new Article( $titleObj ); $article->quickEdit( $message ); + ++$numUpdated; + } else { + ++$numKept; } + } else { + ++$numKept; } } else { $article = new Article( $titleObj ); @@ -212,14 +229,14 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) { ) ); $revid = $revision->insertOn( $dbw ); $article->updateRevisionOn( $dbw, $revision ); + ++$numInserted; } } $dbw->commit(); # Clear the relevant memcached key - print 'Clearing message cache...'; $wgMessageCache->clear(); - print "Done.\n"; + $outputCallback( "Done. Updated: $numUpdated, inserted: $numInserted, kept: $numKept.\n" ); } /** */ diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index 2bb5389e82..93edce12e7 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -28,16 +28,15 @@ if ( !isset( $optionsWithArgs ) ) { $optionsWithArgs[] = 'conf'; # For specifying the location of LocalSettings.php $self = array_shift( $argv ); -$self = __FILE__; -$IP = realpath( dirname( $self ) . '/..' ); +$IP = realpath( dirname( __FILE__ ) . '/..' ); #chdir( $IP ); +require_once( "$IP/StartProfiler.php" ); $options = array(); $args = array(); # Parse arguments - for( $arg = reset( $argv ); $arg !== false; $arg = next( $argv ) ) { if ( $arg == '--' ) { # End of options, remainder should be considered arguments @@ -141,7 +140,7 @@ if ( file_exists( '/home/wikipedia/common/langlist' ) ) { $DP = $IP; ini_set( 'include_path', ".:$IP:$IP/includes:$IP/languages:$IP/maintenance" ); - require_once( $IP.'/includes/ProfilerStub.php' ); + #require_once( $IP.'/includes/ProfilerStub.php' ); require_once( $IP.'/includes/Defines.php' ); require_once( $IP.'/CommonSettings.php' ); @@ -168,7 +167,7 @@ if ( file_exists( '/home/wikipedia/common/langlist' ) ) { } $wgCommandLineMode = true; $DP = $IP; - require_once( $IP.'/includes/ProfilerStub.php' ); + #require_once( $IP.'/includes/ProfilerStub.php' ); require_once( $IP.'/includes/Defines.php' ); require_once( $settingsFile ); ini_set( 'include_path', ".$sep$IP$sep$IP/includes$sep$IP/languages$sep$IP/maintenance" ); @@ -204,7 +203,7 @@ ini_set( 'memory_limit', -1 ); require_once( 'Setup.php' ); require_once( 'install-utils.inc' ); -$wgTitle = Title::newFromText( 'Command line script' ); +$wgTitle = null; # Much much faster startup than creating a title object set_time_limit(0); // -------------------------------------------------------------------- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index c27f0100de..0aabd27b42 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -31,7 +31,6 @@ $optionsWithArgs = array( 'regex' ); require_once( 'commandLine.inc' ); require_once( "$IP/includes/ObjectCache.php" ); require_once( "$IP/includes/BagOStuff.php" ); -require_once( "$IP/languages/LanguageUtf8.php" ); require_once( "$IP/includes/Hooks.php" ); require_once( "$IP/maintenance/parserTestsParserHook.php" ); require_once( "$IP/maintenance/parserTestsStaticParserHook.php" ); @@ -335,14 +334,12 @@ class ParserTest { 'wgLanguageCode' => $lang, 'wgContLanguageCode' => $lang, 'wgDBprefix' => 'parsertest_', - 'wgDefaultUserOptions' => array(), 'wgLang' => null, 'wgContLang' => null, 'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)), 'wgMaxTocLevel' => 999, 'wgCapitalLinks' => true, - 'wgDefaultUserOptions' => array(), 'wgNoFollowLinks' => true, 'wgThumbnailScriptPath' => false, 'wgUseTeX' => false, @@ -354,8 +351,7 @@ class ParserTest { $this->savedGlobals[$var] = $GLOBALS[$var]; $GLOBALS[$var] = $val; } - $langClass = 'Language' . str_replace( '-', '_', ucfirst( $lang ) ); - $langObj = setupLangObj( $langClass ); + $langObj = Language::factory( $lang ); $GLOBALS['wgLang'] = $langObj; $GLOBALS['wgContLang'] = $langObj; diff --git a/serialized/Makefile b/serialized/Makefile new file mode 100644 index 0000000000..21e31dee79 --- /dev/null +++ b/serialized/Makefile @@ -0,0 +1,28 @@ + +MESSAGE_SOURCES=$(wildcard ../languages/Messages*.php) +MESSAGE_TARGETS=$(patsubst ../languages/Messages%.php, Messages%.ser, $(MESSAGE_SOURCES)) +SPECIAL_TARGETS=Utf8Case.ser +ALL_TARGETS=$(MESSAGE_TARGETS) $(SPECIAL_TARGETS) +DIST_TARGETS=$(SPECIAL_TARGETS) \ + MessagesDe.ser \ + MessagesEn.ser \ + MessagesFr.ser \ + MessagesJa.ser \ + MessagesNl.ser \ + MessagesPl.ser \ + MessagesSv.ser + +.PHONY: all dist clean + +all: $(ALL_TARGETS) + +dist: $(DIST_TARGETS) + +clean: + rm -f $(ALL_TARGETS) + +Utf8Case.ser : ../includes/Utf8Case.php + php serialize.php -o $@ $< + +Messages%.ser : ../languages/Messages%.php ../languages/MessagesEn.php + php serialize-localisation.php -o $@ $< diff --git a/serialized/README b/serialized/README new file mode 100644 index 0000000000..c02444c71d --- /dev/null +++ b/serialized/README @@ -0,0 +1,37 @@ +This directory contains data files in the format of PHP's serialize() function. +The source data are typically array literals in PHP source files. We have +observed that unserialize(file_get_contents(...)) is faster than executing such +a file from an oparray cache like APC, and very much faster than loading it by +parsing the source file without such a cache. It should also be faster than +loading the data across the network with memcached, as long as you are careful +to put your MediaWiki root directory on a local hard drive rather than on NFS. +This is a good idea for performance in any case. + +To generate all data files: + + cd /path/to/wiki/serialized + make + +This requires GNU Make. At present, the only serialized data file which is +strictly required is Utf8Case.ser. This contains UTF-8 case conversion tables, +which have essentially never changed since MediaWiki was invented. + +The Messages*.ser files are localisation files, containing user interface text +and various other data related to language-specific behaviour. Because they +are merged with the fallback language (usually English) before caching, they +are all quite large, about 100KB each at the time of writing. If you generate +all of them, they take up about 15 MB. Hence, I don't expect we will include +all of them in the release tarballs. However, to obtain optimum performance, +YOU SHOULD GENERATE ALL THE LOCALISATION FILES THAT YOU WILL BE USING ON YOUR +WIKIS. + +You can generate individual files by typing a command such as: + cd /path/to/wiki/serialized + make MessagesAr.ser + +If you change a Messages*.php source file, you must recompile any serialized +data files which are present. If you change MessagesEn.php, this will +invalidate *all* Messages*.ser files. + +I think we should distribute a few Messages*.ser files in the release tarballs, +specifically the ones created by "make dist". diff --git a/serialized/Utf8Case.ser b/serialized/Utf8Case.ser new file mode 100644 index 0000000000..1398008e0d --- /dev/null +++ b/serialized/Utf8Case.ser @@ -0,0 +1 @@ +a:2:{s:14:"wikiUpperChars";a:745:{s:1:"a";s:1:"A";s:1:"b";s:1:"B";s:1:"c";s:1:"C";s:1:"d";s:1:"D";s:1:"e";s:1:"E";s:1:"f";s:1:"F";s:1:"g";s:1:"G";s:1:"h";s:1:"H";s:1:"i";s:1:"I";s:1:"j";s:1:"J";s:1:"k";s:1:"K";s:1:"l";s:1:"L";s:1:"m";s:1:"M";s:1:"n";s:1:"N";s:1:"o";s:1:"O";s:1:"p";s:1:"P";s:1:"q";s:1:"Q";s:1:"r";s:1:"R";s:1:"s";s:1:"S";s:1:"t";s:1:"T";s:1:"u";s:1:"U";s:1:"v";s:1:"V";s:1:"w";s:1:"W";s:1:"x";s:1:"X";s:1:"y";s:1:"Y";s:1:"z";s:1:"Z";s:2:"µ";s:2:"Μ";s:2:"à";s:2:"À";s:2:"á";s:2:"Á";s:2:"â";s:2:"Â";s:2:"ã";s:2:"Ã";s:2:"ä";s:2:"Ä";s:2:"Ã¥";s:2:"Å";s:2:"æ";s:2:"Æ";s:2:"ç";s:2:"Ç";s:2:"è";s:2:"È";s:2:"é";s:2:"É";s:2:"ê";s:2:"Ê";s:2:"ë";s:2:"Ë";s:2:"ì";s:2:"Ì";s:2:"í";s:2:"Í";s:2:"î";s:2:"Î";s:2:"ï";s:2:"Ï";s:2:"ð";s:2:"Ð";s:2:"ñ";s:2:"Ñ";s:2:"ò";s:2:"Ò";s:2:"ó";s:2:"Ó";s:2:"ô";s:2:"Ô";s:2:"õ";s:2:"Õ";s:2:"ö";s:2:"Ö";s:2:"ø";s:2:"Ø";s:2:"ù";s:2:"Ù";s:2:"ú";s:2:"Ú";s:2:"û";s:2:"Û";s:2:"ü";s:2:"Ü";s:2:"ý";s:2:"Ý";s:2:"þ";s:2:"Þ";s:2:"ÿ";s:2:"Ÿ";s:2:"ā";s:2:"Ā";s:2:"ă";s:2:"Ă";s:2:"ą";s:2:"Ą";s:2:"ć";s:2:"Ć";s:2:"ĉ";s:2:"Ĉ";s:2:"ċ";s:2:"Ċ";s:2:"č";s:2:"Č";s:2:"ď";s:2:"Ď";s:2:"đ";s:2:"Đ";s:2:"ē";s:2:"Ē";s:2:"ĕ";s:2:"Ĕ";s:2:"ė";s:2:"Ė";s:2:"ę";s:2:"Ę";s:2:"ě";s:2:"Ě";s:2:"ĝ";s:2:"Ĝ";s:2:"ğ";s:2:"Ğ";s:2:"Ä¡";s:2:"Ä ";s:2:"Ä£";s:2:"Ä¢";s:2:"Ä¥";s:2:"Ĥ";s:2:"ħ";s:2:"Ħ";s:2:"Ä©";s:2:"Ĩ";s:2:"Ä«";s:2:"Ī";s:2:"Ä­";s:2:"Ĭ";s:2:"į";s:2:"Ä®";s:2:"ı";s:1:"I";s:2:"ij";s:2:"IJ";s:2:"ĵ";s:2:"Ä´";s:2:"Ä·";s:2:"Ķ";s:2:"ĺ";s:2:"Ĺ";s:2:"ļ";s:2:"Ä»";s:2:"ľ";s:2:"Ľ";s:2:"ŀ";s:2:"Ä¿";s:2:"ł";s:2:"Ł";s:2:"ń";s:2:"Ń";s:2:"ņ";s:2:"Ņ";s:2:"ň";s:2:"Ň";s:2:"ŋ";s:2:"Ŋ";s:2:"ō";s:2:"Ō";s:2:"ŏ";s:2:"Ŏ";s:2:"ő";s:2:"Ő";s:2:"œ";s:2:"Œ";s:2:"ŕ";s:2:"Ŕ";s:2:"ŗ";s:2:"Ŗ";s:2:"ř";s:2:"Ř";s:2:"ś";s:2:"Ś";s:2:"ŝ";s:2:"Ŝ";s:2:"ş";s:2:"Ş";s:2:"Å¡";s:2:"Å ";s:2:"Å£";s:2:"Å¢";s:2:"Å¥";s:2:"Ť";s:2:"ŧ";s:2:"Ŧ";s:2:"Å©";s:2:"Ũ";s:2:"Å«";s:2:"Ū";s:2:"Å­";s:2:"Ŭ";s:2:"ů";s:2:"Å®";s:2:"ű";s:2:"Å°";s:2:"ų";s:2:"Ų";s:2:"ŵ";s:2:"Å´";s:2:"Å·";s:2:"Ŷ";s:2:"ź";s:2:"Ź";s:2:"ż";s:2:"Å»";s:2:"ž";s:2:"Ž";s:2:"Å¿";s:1:"S";s:2:"ƃ";s:2:"Ƃ";s:2:"ƅ";s:2:"Ƅ";s:2:"ƈ";s:2:"Ƈ";s:2:"ƌ";s:2:"Ƌ";s:2:"ƒ";s:2:"Ƒ";s:2:"ƕ";s:2:"Ƕ";s:2:"ƙ";s:2:"Ƙ";s:2:"Æ¡";s:2:"Æ ";s:2:"Æ£";s:2:"Æ¢";s:2:"Æ¥";s:2:"Ƥ";s:2:"ƨ";s:2:"Ƨ";s:2:"Æ­";s:2:"Ƭ";s:2:"Æ°";s:2:"Ư";s:2:"Æ´";s:2:"Ƴ";s:2:"ƶ";s:2:"Ƶ";s:2:"ƹ";s:2:"Ƹ";s:2:"ƽ";s:2:"Ƽ";s:2:"Æ¿";s:2:"Ç·";s:2:"Dž";s:2:"DŽ";s:2:"dž";s:2:"DŽ";s:2:"Lj";s:2:"LJ";s:2:"lj";s:2:"LJ";s:2:"Nj";s:2:"NJ";s:2:"nj";s:2:"NJ";s:2:"ǎ";s:2:"Ǎ";s:2:"ǐ";s:2:"Ǐ";s:2:"ǒ";s:2:"Ǒ";s:2:"ǔ";s:2:"Ǔ";s:2:"ǖ";s:2:"Ǖ";s:2:"ǘ";s:2:"Ǘ";s:2:"ǚ";s:2:"Ǚ";s:2:"ǜ";s:2:"Ǜ";s:2:"ǝ";s:2:"Ǝ";s:2:"ǟ";s:2:"Ǟ";s:2:"Ç¡";s:2:"Ç ";s:2:"Ç£";s:2:"Ç¢";s:2:"Ç¥";s:2:"Ǥ";s:2:"ǧ";s:2:"Ǧ";s:2:"Ç©";s:2:"Ǩ";s:2:"Ç«";s:2:"Ǫ";s:2:"Ç­";s:2:"Ǭ";s:2:"ǯ";s:2:"Ç®";s:2:"Dz";s:2:"DZ";s:2:"dz";s:2:"DZ";s:2:"ǵ";s:2:"Ç´";s:2:"ǹ";s:2:"Ǹ";s:2:"Ç»";s:2:"Ǻ";s:2:"ǽ";s:2:"Ǽ";s:2:"Ç¿";s:2:"Ǿ";s:2:"ȁ";s:2:"Ȁ";s:2:"ȃ";s:2:"Ȃ";s:2:"ȅ";s:2:"Ȅ";s:2:"ȇ";s:2:"Ȇ";s:2:"ȉ";s:2:"Ȉ";s:2:"ȋ";s:2:"Ȋ";s:2:"ȍ";s:2:"Ȍ";s:2:"ȏ";s:2:"Ȏ";s:2:"ȑ";s:2:"Ȑ";s:2:"ȓ";s:2:"Ȓ";s:2:"ȕ";s:2:"Ȕ";s:2:"ȗ";s:2:"Ȗ";s:2:"ș";s:2:"Ș";s:2:"ț";s:2:"Ț";s:2:"ȝ";s:2:"Ȝ";s:2:"ȟ";s:2:"Ȟ";s:2:"È£";s:2:"È¢";s:2:"È¥";s:2:"Ȥ";s:2:"ȧ";s:2:"Ȧ";s:2:"È©";s:2:"Ȩ";s:2:"È«";s:2:"Ȫ";s:2:"È­";s:2:"Ȭ";s:2:"ȯ";s:2:"È®";s:2:"ȱ";s:2:"È°";s:2:"ȳ";s:2:"Ȳ";s:2:"ɓ";s:2:"Ɓ";s:2:"ɔ";s:2:"Ɔ";s:2:"ɖ";s:2:"Ɖ";s:2:"ɗ";s:2:"Ɗ";s:2:"ə";s:2:"Ə";s:2:"ɛ";s:2:"Ɛ";s:2:"É ";s:2:"Ɠ";s:2:"É£";s:2:"Ɣ";s:2:"ɨ";s:2:"Ɨ";s:2:"É©";s:2:"Ɩ";s:2:"ɯ";s:2:"Ɯ";s:2:"ɲ";s:2:"Ɲ";s:2:"ɵ";s:2:"Ɵ";s:2:"ʀ";s:2:"Ʀ";s:2:"ʃ";s:2:"Æ©";s:2:"ʈ";s:2:"Æ®";s:2:"ʊ";s:2:"Ʊ";s:2:"ʋ";s:2:"Ʋ";s:2:"ʒ";s:2:"Æ·";s:2:"ͅ";s:2:"Ι";s:2:"ά";s:2:"Ά";s:2:"έ";s:2:"Έ";s:2:"ή";s:2:"Ή";s:2:"ί";s:2:"Ί";s:2:"α";s:2:"Α";s:2:"β";s:2:"Β";s:2:"γ";s:2:"Γ";s:2:"δ";s:2:"Δ";s:2:"ε";s:2:"Ε";s:2:"ζ";s:2:"Ζ";s:2:"η";s:2:"Η";s:2:"θ";s:2:"Θ";s:2:"ι";s:2:"Ι";s:2:"κ";s:2:"Κ";s:2:"λ";s:2:"Λ";s:2:"μ";s:2:"Μ";s:2:"ν";s:2:"Ν";s:2:"ξ";s:2:"Ξ";s:2:"ο";s:2:"Ο";s:2:"π";s:2:"Π";s:2:"ρ";s:2:"Ρ";s:2:"ς";s:2:"Σ";s:2:"σ";s:2:"Σ";s:2:"τ";s:2:"Τ";s:2:"υ";s:2:"Î¥";s:2:"φ";s:2:"Φ";s:2:"χ";s:2:"Χ";s:2:"ψ";s:2:"Ψ";s:2:"ω";s:2:"Ω";s:2:"ϊ";s:2:"Ϊ";s:2:"ϋ";s:2:"Ϋ";s:2:"ό";s:2:"Ό";s:2:"ύ";s:2:"Ύ";s:2:"ώ";s:2:"Ώ";s:2:"ϐ";s:2:"Β";s:2:"ϑ";s:2:"Θ";s:2:"ϕ";s:2:"Φ";s:2:"ϖ";s:2:"Π";s:2:"ϛ";s:2:"Ϛ";s:2:"ϝ";s:2:"Ϝ";s:2:"ϟ";s:2:"Ϟ";s:2:"Ï¡";s:2:"Ï ";s:2:"Ï£";s:2:"Ï¢";s:2:"Ï¥";s:2:"Ϥ";s:2:"ϧ";s:2:"Ϧ";s:2:"Ï©";s:2:"Ϩ";s:2:"Ï«";s:2:"Ϫ";s:2:"Ï­";s:2:"Ϭ";s:2:"ϯ";s:2:"Ï®";s:2:"Ï°";s:2:"Κ";s:2:"ϱ";s:2:"Ρ";s:2:"ϲ";s:2:"Σ";s:2:"ϵ";s:2:"Ε";s:2:"а";s:2:"А";s:2:"б";s:2:"Б";s:2:"в";s:2:"В";s:2:"г";s:2:"Г";s:2:"д";s:2:"Д";s:2:"е";s:2:"Е";s:2:"ж";s:2:"Ж";s:2:"з";s:2:"З";s:2:"и";s:2:"И";s:2:"й";s:2:"Й";s:2:"к";s:2:"К";s:2:"л";s:2:"Л";s:2:"м";s:2:"М";s:2:"н";s:2:"Н";s:2:"о";s:2:"О";s:2:"п";s:2:"П";s:2:"р";s:2:"Р";s:2:"с";s:2:"С";s:2:"т";s:2:"Т";s:2:"у";s:2:"У";s:2:"ф";s:2:"Ф";s:2:"х";s:2:"Ð¥";s:2:"ц";s:2:"Ц";s:2:"ч";s:2:"Ч";s:2:"ш";s:2:"Ш";s:2:"щ";s:2:"Щ";s:2:"ъ";s:2:"Ъ";s:2:"ы";s:2:"Ы";s:2:"ь";s:2:"Ь";s:2:"э";s:2:"Э";s:2:"ю";s:2:"Ю";s:2:"я";s:2:"Я";s:2:"ѐ";s:2:"Ѐ";s:2:"ё";s:2:"Ё";s:2:"ђ";s:2:"Ђ";s:2:"ѓ";s:2:"Ѓ";s:2:"є";s:2:"Є";s:2:"ѕ";s:2:"Ѕ";s:2:"і";s:2:"І";s:2:"ї";s:2:"Ї";s:2:"ј";s:2:"Ј";s:2:"љ";s:2:"Љ";s:2:"њ";s:2:"Њ";s:2:"ћ";s:2:"Ћ";s:2:"ќ";s:2:"Ќ";s:2:"ѝ";s:2:"Ѝ";s:2:"ў";s:2:"Ў";s:2:"џ";s:2:"Џ";s:2:"Ñ¡";s:2:"Ñ ";s:2:"Ñ£";s:2:"Ñ¢";s:2:"Ñ¥";s:2:"Ѥ";s:2:"ѧ";s:2:"Ѧ";s:2:"Ñ©";s:2:"Ѩ";s:2:"Ñ«";s:2:"Ѫ";s:2:"Ñ­";s:2:"Ѭ";s:2:"ѯ";s:2:"Ñ®";s:2:"ѱ";s:2:"Ñ°";s:2:"ѳ";s:2:"Ѳ";s:2:"ѵ";s:2:"Ñ´";s:2:"Ñ·";s:2:"Ѷ";s:2:"ѹ";s:2:"Ѹ";s:2:"Ñ»";s:2:"Ѻ";s:2:"ѽ";s:2:"Ѽ";s:2:"Ñ¿";s:2:"Ѿ";s:2:"ҁ";s:2:"Ҁ";s:2:"ҍ";s:2:"Ҍ";s:2:"ҏ";s:2:"Ҏ";s:2:"ґ";s:2:"Ґ";s:2:"ғ";s:2:"Ғ";s:2:"ҕ";s:2:"Ҕ";s:2:"җ";s:2:"Җ";s:2:"ҙ";s:2:"Ҙ";s:2:"қ";s:2:"Қ";s:2:"ҝ";s:2:"Ҝ";s:2:"ҟ";s:2:"Ҟ";s:2:"Ò¡";s:2:"Ò ";s:2:"Ò£";s:2:"Ò¢";s:2:"Ò¥";s:2:"Ò¤";s:2:"Ò§";s:2:"Ò¦";s:2:"Ò©";s:2:"Ò¨";s:2:"Ò«";s:2:"Òª";s:2:"Ò­";s:2:"Ò¬";s:2:"Ò¯";s:2:"Ò®";s:2:"Ò±";s:2:"Ò°";s:2:"Ò³";s:2:"Ò²";s:2:"Òµ";s:2:"Ò´";s:2:"Ò·";s:2:"Ò¶";s:2:"Ò¹";s:2:"Ò¸";s:2:"Ò»";s:2:"Òº";s:2:"Ò½";s:2:"Ò¼";s:2:"Ò¿";s:2:"Ò¾";s:2:"ӂ";s:2:"Ӂ";s:2:"ӄ";s:2:"Ӄ";s:2:"ӈ";s:2:"Ӈ";s:2:"ӌ";s:2:"Ӌ";s:2:"ӑ";s:2:"Ӑ";s:2:"ӓ";s:2:"Ӓ";s:2:"ӕ";s:2:"Ӕ";s:2:"ӗ";s:2:"Ӗ";s:2:"ә";s:2:"Ә";s:2:"ӛ";s:2:"Ӛ";s:2:"ӝ";s:2:"Ӝ";s:2:"ӟ";s:2:"Ӟ";s:2:"Ó¡";s:2:"Ó ";s:2:"Ó£";s:2:"Ó¢";s:2:"Ó¥";s:2:"Ó¤";s:2:"Ó§";s:2:"Ó¦";s:2:"Ó©";s:2:"Ó¨";s:2:"Ó«";s:2:"Óª";s:2:"Ó­";s:2:"Ó¬";s:2:"Ó¯";s:2:"Ó®";s:2:"Ó±";s:2:"Ó°";s:2:"Ó³";s:2:"Ó²";s:2:"Óµ";s:2:"Ó´";s:2:"Ó¹";s:2:"Ó¸";s:2:"Õ¡";s:2:"Ô±";s:2:"Õ¢";s:2:"Ô²";s:2:"Õ£";s:2:"Ô³";s:2:"Õ¤";s:2:"Ô´";s:2:"Õ¥";s:2:"Ôµ";s:2:"Õ¦";s:2:"Ô¶";s:2:"Õ§";s:2:"Ô·";s:2:"Õ¨";s:2:"Ô¸";s:2:"Õ©";s:2:"Ô¹";s:2:"Õª";s:2:"Ôº";s:2:"Õ«";s:2:"Ô»";s:2:"Õ¬";s:2:"Ô¼";s:2:"Õ­";s:2:"Ô½";s:2:"Õ®";s:2:"Ô¾";s:2:"Õ¯";s:2:"Ô¿";s:2:"Õ°";s:2:"Հ";s:2:"Õ±";s:2:"Ձ";s:2:"Õ²";s:2:"Ղ";s:2:"Õ³";s:2:"Ճ";s:2:"Õ´";s:2:"Մ";s:2:"Õµ";s:2:"Յ";s:2:"Õ¶";s:2:"Ն";s:2:"Õ·";s:2:"Շ";s:2:"Õ¸";s:2:"Ո";s:2:"Õ¹";s:2:"Չ";s:2:"Õº";s:2:"Պ";s:2:"Õ»";s:2:"Ջ";s:2:"Õ¼";s:2:"Ռ";s:2:"Õ½";s:2:"Ս";s:2:"Õ¾";s:2:"Վ";s:2:"Õ¿";s:2:"Տ";s:2:"ր";s:2:"Ր";s:2:"ց";s:2:"Ց";s:2:"ւ";s:2:"Ւ";s:2:"փ";s:2:"Փ";s:2:"ք";s:2:"Ք";s:2:"օ";s:2:"Օ";s:2:"ֆ";s:2:"Ֆ";s:3:"ḁ";s:3:"Ḁ";s:3:"ḃ";s:3:"Ḃ";s:3:"ḅ";s:3:"Ḅ";s:3:"ḇ";s:3:"Ḇ";s:3:"ḉ";s:3:"Ḉ";s:3:"ḋ";s:3:"Ḋ";s:3:"ḍ";s:3:"Ḍ";s:3:"ḏ";s:3:"Ḏ";s:3:"ḑ";s:3:"Ḑ";s:3:"ḓ";s:3:"Ḓ";s:3:"ḕ";s:3:"Ḕ";s:3:"ḗ";s:3:"Ḗ";s:3:"ḙ";s:3:"Ḙ";s:3:"ḛ";s:3:"Ḛ";s:3:"ḝ";s:3:"Ḝ";s:3:"ḟ";s:3:"Ḟ";s:3:"ḡ";s:3:"Ḡ";s:3:"ḣ";s:3:"Ḣ";s:3:"ḥ";s:3:"Ḥ";s:3:"ḧ";s:3:"Ḧ";s:3:"ḩ";s:3:"Ḩ";s:3:"ḫ";s:3:"Ḫ";s:3:"ḭ";s:3:"Ḭ";s:3:"ḯ";s:3:"Ḯ";s:3:"ḱ";s:3:"Ḱ";s:3:"ḳ";s:3:"Ḳ";s:3:"ḵ";s:3:"Ḵ";s:3:"ḷ";s:3:"Ḷ";s:3:"ḹ";s:3:"Ḹ";s:3:"ḻ";s:3:"Ḻ";s:3:"ḽ";s:3:"Ḽ";s:3:"ḿ";s:3:"Ḿ";s:3:"ṁ";s:3:"Ṁ";s:3:"ṃ";s:3:"Ṃ";s:3:"ṅ";s:3:"Ṅ";s:3:"ṇ";s:3:"Ṇ";s:3:"ṉ";s:3:"Ṉ";s:3:"ṋ";s:3:"Ṋ";s:3:"ṍ";s:3:"Ṍ";s:3:"ṏ";s:3:"Ṏ";s:3:"ṑ";s:3:"Ṑ";s:3:"ṓ";s:3:"Ṓ";s:3:"ṕ";s:3:"Ṕ";s:3:"ṗ";s:3:"Ṗ";s:3:"ṙ";s:3:"Ṙ";s:3:"ṛ";s:3:"Ṛ";s:3:"ṝ";s:3:"Ṝ";s:3:"ṟ";s:3:"Ṟ";s:3:"ṡ";s:3:"á¹ ";s:3:"á¹£";s:3:"á¹¢";s:3:"á¹¥";s:3:"Ṥ";s:3:"ṧ";s:3:"Ṧ";s:3:"ṩ";s:3:"Ṩ";s:3:"ṫ";s:3:"Ṫ";s:3:"á¹­";s:3:"Ṭ";s:3:"ṯ";s:3:"á¹®";s:3:"á¹±";s:3:"á¹°";s:3:"á¹³";s:3:"á¹²";s:3:"á¹µ";s:3:"á¹´";s:3:"á¹·";s:3:"Ṷ";s:3:"á¹¹";s:3:"Ṹ";s:3:"á¹»";s:3:"Ṻ";s:3:"á¹½";s:3:"á¹¼";s:3:"ṿ";s:3:"á¹¾";s:3:"ẁ";s:3:"Ẁ";s:3:"ẃ";s:3:"Ẃ";s:3:"ẅ";s:3:"Ẅ";s:3:"ẇ";s:3:"Ẇ";s:3:"ẉ";s:3:"Ẉ";s:3:"ẋ";s:3:"Ẋ";s:3:"ẍ";s:3:"Ẍ";s:3:"ẏ";s:3:"Ẏ";s:3:"ẑ";s:3:"Ẑ";s:3:"ẓ";s:3:"Ẓ";s:3:"ẕ";s:3:"Ẕ";s:3:"ẛ";s:3:"á¹ ";s:3:"ạ";s:3:"Ạ";s:3:"ả";s:3:"Ả";s:3:"ấ";s:3:"Ấ";s:3:"ầ";s:3:"Ầ";s:3:"ẩ";s:3:"Ẩ";s:3:"ẫ";s:3:"Ẫ";s:3:"ậ";s:3:"Ậ";s:3:"ắ";s:3:"Ắ";s:3:"ằ";s:3:"Ằ";s:3:"ẳ";s:3:"Ẳ";s:3:"ẵ";s:3:"Ẵ";s:3:"ặ";s:3:"Ặ";s:3:"ẹ";s:3:"Ẹ";s:3:"ẻ";s:3:"Ẻ";s:3:"ẽ";s:3:"Ẽ";s:3:"ế";s:3:"Ế";s:3:"ề";s:3:"Ề";s:3:"ể";s:3:"Ể";s:3:"ễ";s:3:"Ễ";s:3:"ệ";s:3:"Ệ";s:3:"ỉ";s:3:"Ỉ";s:3:"ị";s:3:"Ị";s:3:"ọ";s:3:"Ọ";s:3:"ỏ";s:3:"Ỏ";s:3:"ố";s:3:"Ố";s:3:"ồ";s:3:"Ồ";s:3:"ổ";s:3:"Ổ";s:3:"ỗ";s:3:"Ỗ";s:3:"ộ";s:3:"Ộ";s:3:"ớ";s:3:"Ớ";s:3:"ờ";s:3:"Ờ";s:3:"ở";s:3:"Ở";s:3:"ỡ";s:3:"á» ";s:3:"ợ";s:3:"Ợ";s:3:"ụ";s:3:"Ụ";s:3:"ủ";s:3:"Ủ";s:3:"ứ";s:3:"Ứ";s:3:"ừ";s:3:"Ừ";s:3:"á»­";s:3:"Ử";s:3:"ữ";s:3:"á»®";s:3:"á»±";s:3:"á»°";s:3:"ỳ";s:3:"Ỳ";s:3:"ỵ";s:3:"á»´";s:3:"á»·";s:3:"Ỷ";s:3:"ỹ";s:3:"Ỹ";s:3:"ἀ";s:3:"Ἀ";s:3:"ἁ";s:3:"Ἁ";s:3:"ἂ";s:3:"Ἂ";s:3:"ἃ";s:3:"Ἃ";s:3:"ἄ";s:3:"Ἄ";s:3:"ἅ";s:3:"Ἅ";s:3:"ἆ";s:3:"Ἆ";s:3:"ἇ";s:3:"Ἇ";s:3:"ἐ";s:3:"Ἐ";s:3:"ἑ";s:3:"Ἑ";s:3:"ἒ";s:3:"Ἒ";s:3:"ἓ";s:3:"Ἓ";s:3:"ἔ";s:3:"Ἔ";s:3:"ἕ";s:3:"Ἕ";s:3:"á¼ ";s:3:"Ἠ";s:3:"ἡ";s:3:"Ἡ";s:3:"á¼¢";s:3:"Ἢ";s:3:"á¼£";s:3:"Ἣ";s:3:"ἤ";s:3:"Ἤ";s:3:"á¼¥";s:3:"á¼­";s:3:"ἦ";s:3:"á¼®";s:3:"ἧ";s:3:"Ἧ";s:3:"á¼°";s:3:"Ἰ";s:3:"á¼±";s:3:"á¼¹";s:3:"á¼²";s:3:"Ἲ";s:3:"á¼³";s:3:"á¼»";s:3:"á¼´";s:3:"á¼¼";s:3:"á¼µ";s:3:"á¼½";s:3:"ἶ";s:3:"á¼¾";s:3:"á¼·";s:3:"Ἷ";s:3:"ὀ";s:3:"Ὀ";s:3:"ὁ";s:3:"Ὁ";s:3:"ὂ";s:3:"Ὂ";s:3:"ὃ";s:3:"Ὃ";s:3:"ὄ";s:3:"Ὄ";s:3:"ὅ";s:3:"Ὅ";s:3:"ὑ";s:3:"Ὑ";s:3:"ὓ";s:3:"Ὓ";s:3:"ὕ";s:3:"Ὕ";s:3:"ὗ";s:3:"Ὗ";s:3:"á½ ";s:3:"Ὠ";s:3:"ὡ";s:3:"Ὡ";s:3:"á½¢";s:3:"Ὢ";s:3:"á½£";s:3:"Ὣ";s:3:"ὤ";s:3:"Ὤ";s:3:"á½¥";s:3:"á½­";s:3:"ὦ";s:3:"á½®";s:3:"ὧ";s:3:"Ὧ";s:3:"á½°";s:3:"Ὰ";s:3:"á½±";s:3:"á¾»";s:3:"á½²";s:3:"Ὲ";s:3:"á½³";s:3:"Έ";s:3:"á½´";s:3:"Ὴ";s:3:"á½µ";s:3:"Ή";s:3:"ὶ";s:3:"Ὶ";s:3:"á½·";s:3:"Ί";s:3:"ὸ";s:3:"Ὸ";s:3:"á½¹";s:3:"Ό";s:3:"ὺ";s:3:"Ὺ";s:3:"á½»";s:3:"á¿«";s:3:"á½¼";s:3:"Ὼ";s:3:"á½½";s:3:"á¿»";s:3:"ᾀ";s:3:"ᾈ";s:3:"ᾁ";s:3:"ᾉ";s:3:"ᾂ";s:3:"ᾊ";s:3:"ᾃ";s:3:"ᾋ";s:3:"ᾄ";s:3:"ᾌ";s:3:"ᾅ";s:3:"ᾍ";s:3:"ᾆ";s:3:"ᾎ";s:3:"ᾇ";s:3:"ᾏ";s:3:"ᾐ";s:3:"ᾘ";s:3:"ᾑ";s:3:"ᾙ";s:3:"ᾒ";s:3:"ᾚ";s:3:"ᾓ";s:3:"ᾛ";s:3:"ᾔ";s:3:"ᾜ";s:3:"ᾕ";s:3:"ᾝ";s:3:"ᾖ";s:3:"ᾞ";s:3:"ᾗ";s:3:"ᾟ";s:3:"á¾ ";s:3:"ᾨ";s:3:"ᾡ";s:3:"ᾩ";s:3:"á¾¢";s:3:"ᾪ";s:3:"á¾£";s:3:"ᾫ";s:3:"ᾤ";s:3:"ᾬ";s:3:"á¾¥";s:3:"á¾­";s:3:"ᾦ";s:3:"á¾®";s:3:"ᾧ";s:3:"ᾯ";s:3:"á¾°";s:3:"Ᾰ";s:3:"á¾±";s:3:"á¾¹";s:3:"á¾³";s:3:"á¾¼";s:3:"á¾¾";s:2:"Ι";s:3:"ῃ";s:3:"ῌ";s:3:"ῐ";s:3:"Ῐ";s:3:"ῑ";s:3:"Ῑ";s:3:"á¿ ";s:3:"Ῠ";s:3:"á¿¡";s:3:"á¿©";s:3:"á¿¥";s:3:"Ῥ";s:3:"ῳ";s:3:"ῼ";s:3:"ⅰ";s:3:"Ⅰ";s:3:"ⅱ";s:3:"Ⅱ";s:3:"ⅲ";s:3:"Ⅲ";s:3:"ⅳ";s:3:"Ⅳ";s:3:"ⅴ";s:3:"Ⅴ";s:3:"ⅵ";s:3:"Ⅵ";s:3:"ⅶ";s:3:"Ⅶ";s:3:"ⅷ";s:3:"Ⅷ";s:3:"ⅸ";s:3:"Ⅸ";s:3:"ⅹ";s:3:"Ⅹ";s:3:"ⅺ";s:3:"Ⅺ";s:3:"ⅻ";s:3:"Ⅻ";s:3:"ⅼ";s:3:"Ⅼ";s:3:"ⅽ";s:3:"Ⅽ";s:3:"ⅾ";s:3:"Ⅾ";s:3:"ⅿ";s:3:"Ⅿ";s:3:"ⓐ";s:3:"Ⓐ";s:3:"ⓑ";s:3:"Ⓑ";s:3:"ⓒ";s:3:"Ⓒ";s:3:"ⓓ";s:3:"Ⓓ";s:3:"ⓔ";s:3:"Ⓔ";s:3:"ⓕ";s:3:"Ⓕ";s:3:"ⓖ";s:3:"Ⓖ";s:3:"ⓗ";s:3:"Ⓗ";s:3:"ⓘ";s:3:"Ⓘ";s:3:"ⓙ";s:3:"Ⓙ";s:3:"ⓚ";s:3:"Ⓚ";s:3:"ⓛ";s:3:"Ⓛ";s:3:"ⓜ";s:3:"Ⓜ";s:3:"ⓝ";s:3:"Ⓝ";s:3:"ⓞ";s:3:"Ⓞ";s:3:"ⓟ";s:3:"Ⓟ";s:3:"ⓠ";s:3:"Ⓠ";s:3:"ⓡ";s:3:"Ⓡ";s:3:"ⓢ";s:3:"Ⓢ";s:3:"ⓣ";s:3:"Ⓣ";s:3:"ⓤ";s:3:"Ⓤ";s:3:"ⓥ";s:3:"Ⓥ";s:3:"ⓦ";s:3:"Ⓦ";s:3:"ⓧ";s:3:"Ⓧ";s:3:"ⓨ";s:3:"Ⓨ";s:3:"ⓩ";s:3:"Ⓩ";s:3:"a";s:3:"A";s:3:"b";s:3:"ï¼¢";s:3:"c";s:3:"ï¼£";s:3:"d";s:3:"D";s:3:"e";s:3:"ï¼¥";s:3:"f";s:3:"F";s:3:"g";s:3:"G";s:3:"h";s:3:"H";s:3:"i";s:3:"I";s:3:"j";s:3:"J";s:3:"k";s:3:"K";s:3:"l";s:3:"L";s:3:"m";s:3:"ï¼­";s:3:"n";s:3:"ï¼®";s:3:"o";s:3:"O";s:3:"p";s:3:"ï¼°";s:3:"q";s:3:"ï¼±";s:3:"r";s:3:"ï¼²";s:3:"s";s:3:"ï¼³";s:3:"t";s:3:"ï¼´";s:3:"u";s:3:"ï¼µ";s:3:"v";s:3:"V";s:3:"w";s:3:"ï¼·";s:3:"x";s:3:"X";s:3:"y";s:3:"ï¼¹";s:3:"z";s:3:"Z";s:4:"𐐨";s:4:"𐐀";s:4:"𐐩";s:4:"𐐁";s:4:"𐐪";s:4:"𐐂";s:4:"𐐫";s:4:"𐐃";s:4:"𐐬";s:4:"𐐄";s:4:"𐐭";s:4:"𐐅";s:4:"𐐮";s:4:"𐐆";s:4:"𐐯";s:4:"𐐇";s:4:"𐐰";s:4:"𐐈";s:4:"𐐱";s:4:"𐐉";s:4:"𐐲";s:4:"𐐊";s:4:"𐐳";s:4:"𐐋";s:4:"𐐴";s:4:"𐐌";s:4:"𐐵";s:4:"𐐍";s:4:"𐐶";s:4:"𐐎";s:4:"𐐷";s:4:"𐐏";s:4:"𐐸";s:4:"𐐐";s:4:"𐐹";s:4:"𐐑";s:4:"𐐺";s:4:"𐐒";s:4:"𐐻";s:4:"𐐓";s:4:"𐐼";s:4:"𐐔";s:4:"𐐽";s:4:"𐐕";s:4:"𐐾";s:4:"𐐖";s:4:"𐐿";s:4:"𐐗";s:4:"𐑀";s:4:"𐐘";s:4:"𐑁";s:4:"𐐙";s:4:"𐑂";s:4:"𐐚";s:4:"𐑃";s:4:"𐐛";s:4:"𐑄";s:4:"𐐜";s:4:"𐑅";s:4:"𐐝";s:4:"𐑆";s:4:"𐐞";s:4:"𐑇";s:4:"𐐟";s:4:"𐑈";s:4:"𐐠";s:4:"𐑉";s:4:"𐐡";s:4:"𐑊";s:4:"𐐢";s:4:"𐑋";s:4:"𐐣";s:4:"𐑌";s:4:"𐐤";s:4:"𐑍";s:4:"𐐥";}s:14:"wikiLowerChars";a:735:{s:1:"A";s:1:"a";s:1:"B";s:1:"b";s:1:"C";s:1:"c";s:1:"D";s:1:"d";s:1:"E";s:1:"e";s:1:"F";s:1:"f";s:1:"G";s:1:"g";s:1:"H";s:1:"h";s:1:"I";s:1:"i";s:1:"J";s:1:"j";s:1:"K";s:1:"k";s:1:"L";s:1:"l";s:1:"M";s:1:"m";s:1:"N";s:1:"n";s:1:"O";s:1:"o";s:1:"P";s:1:"p";s:1:"Q";s:1:"q";s:1:"R";s:1:"r";s:1:"S";s:1:"s";s:1:"T";s:1:"t";s:1:"U";s:1:"u";s:1:"V";s:1:"v";s:1:"W";s:1:"w";s:1:"X";s:1:"x";s:1:"Y";s:1:"y";s:1:"Z";s:1:"z";s:2:"À";s:2:"à";s:2:"Á";s:2:"á";s:2:"Â";s:2:"â";s:2:"Ã";s:2:"ã";s:2:"Ä";s:2:"ä";s:2:"Å";s:2:"Ã¥";s:2:"Æ";s:2:"æ";s:2:"Ç";s:2:"ç";s:2:"È";s:2:"è";s:2:"É";s:2:"é";s:2:"Ê";s:2:"ê";s:2:"Ë";s:2:"ë";s:2:"Ì";s:2:"ì";s:2:"Í";s:2:"í";s:2:"Î";s:2:"î";s:2:"Ï";s:2:"ï";s:2:"Ð";s:2:"ð";s:2:"Ñ";s:2:"ñ";s:2:"Ò";s:2:"ò";s:2:"Ó";s:2:"ó";s:2:"Ô";s:2:"ô";s:2:"Õ";s:2:"õ";s:2:"Ö";s:2:"ö";s:2:"Ø";s:2:"ø";s:2:"Ù";s:2:"ù";s:2:"Ú";s:2:"ú";s:2:"Û";s:2:"û";s:2:"Ü";s:2:"ü";s:2:"Ý";s:2:"ý";s:2:"Þ";s:2:"þ";s:2:"Ā";s:2:"ā";s:2:"Ă";s:2:"ă";s:2:"Ą";s:2:"ą";s:2:"Ć";s:2:"ć";s:2:"Ĉ";s:2:"ĉ";s:2:"Ċ";s:2:"ċ";s:2:"Č";s:2:"č";s:2:"Ď";s:2:"ď";s:2:"Đ";s:2:"đ";s:2:"Ē";s:2:"ē";s:2:"Ĕ";s:2:"ĕ";s:2:"Ė";s:2:"ė";s:2:"Ę";s:2:"ę";s:2:"Ě";s:2:"ě";s:2:"Ĝ";s:2:"ĝ";s:2:"Ğ";s:2:"ğ";s:2:"Ä ";s:2:"Ä¡";s:2:"Ä¢";s:2:"Ä£";s:2:"Ĥ";s:2:"Ä¥";s:2:"Ħ";s:2:"ħ";s:2:"Ĩ";s:2:"Ä©";s:2:"Ī";s:2:"Ä«";s:2:"Ĭ";s:2:"Ä­";s:2:"Ä®";s:2:"į";s:2:"Ä°";s:1:"i";s:2:"IJ";s:2:"ij";s:2:"Ä´";s:2:"ĵ";s:2:"Ķ";s:2:"Ä·";s:2:"Ĺ";s:2:"ĺ";s:2:"Ä»";s:2:"ļ";s:2:"Ľ";s:2:"ľ";s:2:"Ä¿";s:2:"ŀ";s:2:"Ł";s:2:"ł";s:2:"Ń";s:2:"ń";s:2:"Ņ";s:2:"ņ";s:2:"Ň";s:2:"ň";s:2:"Ŋ";s:2:"ŋ";s:2:"Ō";s:2:"ō";s:2:"Ŏ";s:2:"ŏ";s:2:"Ő";s:2:"ő";s:2:"Œ";s:2:"œ";s:2:"Ŕ";s:2:"ŕ";s:2:"Ŗ";s:2:"ŗ";s:2:"Ř";s:2:"ř";s:2:"Ś";s:2:"ś";s:2:"Ŝ";s:2:"ŝ";s:2:"Ş";s:2:"ş";s:2:"Å ";s:2:"Å¡";s:2:"Å¢";s:2:"Å£";s:2:"Ť";s:2:"Å¥";s:2:"Ŧ";s:2:"ŧ";s:2:"Ũ";s:2:"Å©";s:2:"Ū";s:2:"Å«";s:2:"Ŭ";s:2:"Å­";s:2:"Å®";s:2:"ů";s:2:"Å°";s:2:"ű";s:2:"Ų";s:2:"ų";s:2:"Å´";s:2:"ŵ";s:2:"Ŷ";s:2:"Å·";s:2:"Ÿ";s:2:"ÿ";s:2:"Ź";s:2:"ź";s:2:"Å»";s:2:"ż";s:2:"Ž";s:2:"ž";s:2:"Ɓ";s:2:"ɓ";s:2:"Ƃ";s:2:"ƃ";s:2:"Ƅ";s:2:"ƅ";s:2:"Ɔ";s:2:"ɔ";s:2:"Ƈ";s:2:"ƈ";s:2:"Ɖ";s:2:"ɖ";s:2:"Ɗ";s:2:"ɗ";s:2:"Ƌ";s:2:"ƌ";s:2:"Ǝ";s:2:"ǝ";s:2:"Ə";s:2:"ə";s:2:"Ɛ";s:2:"ɛ";s:2:"Ƒ";s:2:"ƒ";s:2:"Ɠ";s:2:"É ";s:2:"Ɣ";s:2:"É£";s:2:"Ɩ";s:2:"É©";s:2:"Ɨ";s:2:"ɨ";s:2:"Ƙ";s:2:"ƙ";s:2:"Ɯ";s:2:"ɯ";s:2:"Ɲ";s:2:"ɲ";s:2:"Ɵ";s:2:"ɵ";s:2:"Æ ";s:2:"Æ¡";s:2:"Æ¢";s:2:"Æ£";s:2:"Ƥ";s:2:"Æ¥";s:2:"Ʀ";s:2:"ʀ";s:2:"Ƨ";s:2:"ƨ";s:2:"Æ©";s:2:"ʃ";s:2:"Ƭ";s:2:"Æ­";s:2:"Æ®";s:2:"ʈ";s:2:"Ư";s:2:"Æ°";s:2:"Ʊ";s:2:"ʊ";s:2:"Ʋ";s:2:"ʋ";s:2:"Ƴ";s:2:"Æ´";s:2:"Ƶ";s:2:"ƶ";s:2:"Æ·";s:2:"ʒ";s:2:"Ƹ";s:2:"ƹ";s:2:"Ƽ";s:2:"ƽ";s:2:"DŽ";s:2:"dž";s:2:"Dž";s:2:"dž";s:2:"LJ";s:2:"lj";s:2:"Lj";s:2:"lj";s:2:"NJ";s:2:"nj";s:2:"Nj";s:2:"nj";s:2:"Ǎ";s:2:"ǎ";s:2:"Ǐ";s:2:"ǐ";s:2:"Ǒ";s:2:"ǒ";s:2:"Ǔ";s:2:"ǔ";s:2:"Ǖ";s:2:"ǖ";s:2:"Ǘ";s:2:"ǘ";s:2:"Ǚ";s:2:"ǚ";s:2:"Ǜ";s:2:"ǜ";s:2:"Ǟ";s:2:"ǟ";s:2:"Ç ";s:2:"Ç¡";s:2:"Ç¢";s:2:"Ç£";s:2:"Ǥ";s:2:"Ç¥";s:2:"Ǧ";s:2:"ǧ";s:2:"Ǩ";s:2:"Ç©";s:2:"Ǫ";s:2:"Ç«";s:2:"Ǭ";s:2:"Ç­";s:2:"Ç®";s:2:"ǯ";s:2:"DZ";s:2:"dz";s:2:"Dz";s:2:"dz";s:2:"Ç´";s:2:"ǵ";s:2:"Ƕ";s:2:"ƕ";s:2:"Ç·";s:2:"Æ¿";s:2:"Ǹ";s:2:"ǹ";s:2:"Ǻ";s:2:"Ç»";s:2:"Ǽ";s:2:"ǽ";s:2:"Ǿ";s:2:"Ç¿";s:2:"Ȁ";s:2:"ȁ";s:2:"Ȃ";s:2:"ȃ";s:2:"Ȅ";s:2:"ȅ";s:2:"Ȇ";s:2:"ȇ";s:2:"Ȉ";s:2:"ȉ";s:2:"Ȋ";s:2:"ȋ";s:2:"Ȍ";s:2:"ȍ";s:2:"Ȏ";s:2:"ȏ";s:2:"Ȑ";s:2:"ȑ";s:2:"Ȓ";s:2:"ȓ";s:2:"Ȕ";s:2:"ȕ";s:2:"Ȗ";s:2:"ȗ";s:2:"Ș";s:2:"ș";s:2:"Ț";s:2:"ț";s:2:"Ȝ";s:2:"ȝ";s:2:"Ȟ";s:2:"ȟ";s:2:"È¢";s:2:"È£";s:2:"Ȥ";s:2:"È¥";s:2:"Ȧ";s:2:"ȧ";s:2:"Ȩ";s:2:"È©";s:2:"Ȫ";s:2:"È«";s:2:"Ȭ";s:2:"È­";s:2:"È®";s:2:"ȯ";s:2:"È°";s:2:"ȱ";s:2:"Ȳ";s:2:"ȳ";s:2:"Ά";s:2:"ά";s:2:"Έ";s:2:"έ";s:2:"Ή";s:2:"ή";s:2:"Ί";s:2:"ί";s:2:"Ό";s:2:"ό";s:2:"Ύ";s:2:"ύ";s:2:"Ώ";s:2:"ώ";s:2:"Α";s:2:"α";s:2:"Β";s:2:"β";s:2:"Γ";s:2:"γ";s:2:"Δ";s:2:"δ";s:2:"Ε";s:2:"ε";s:2:"Ζ";s:2:"ζ";s:2:"Η";s:2:"η";s:2:"Θ";s:2:"θ";s:2:"Ι";s:2:"ι";s:2:"Κ";s:2:"κ";s:2:"Λ";s:2:"λ";s:2:"Μ";s:2:"μ";s:2:"Ν";s:2:"ν";s:2:"Ξ";s:2:"ξ";s:2:"Ο";s:2:"ο";s:2:"Π";s:2:"π";s:2:"Ρ";s:2:"ρ";s:2:"Σ";s:2:"σ";s:2:"Τ";s:2:"τ";s:2:"Î¥";s:2:"υ";s:2:"Φ";s:2:"φ";s:2:"Χ";s:2:"χ";s:2:"Ψ";s:2:"ψ";s:2:"Ω";s:2:"ω";s:2:"Ϊ";s:2:"ϊ";s:2:"Ϋ";s:2:"ϋ";s:2:"Ϛ";s:2:"ϛ";s:2:"Ϝ";s:2:"ϝ";s:2:"Ϟ";s:2:"ϟ";s:2:"Ï ";s:2:"Ï¡";s:2:"Ï¢";s:2:"Ï£";s:2:"Ϥ";s:2:"Ï¥";s:2:"Ϧ";s:2:"ϧ";s:2:"Ϩ";s:2:"Ï©";s:2:"Ϫ";s:2:"Ï«";s:2:"Ϭ";s:2:"Ï­";s:2:"Ï®";s:2:"ϯ";s:2:"Ï´";s:2:"θ";s:2:"Ѐ";s:2:"ѐ";s:2:"Ё";s:2:"ё";s:2:"Ђ";s:2:"ђ";s:2:"Ѓ";s:2:"ѓ";s:2:"Є";s:2:"є";s:2:"Ѕ";s:2:"ѕ";s:2:"І";s:2:"і";s:2:"Ї";s:2:"ї";s:2:"Ј";s:2:"ј";s:2:"Љ";s:2:"љ";s:2:"Њ";s:2:"њ";s:2:"Ћ";s:2:"ћ";s:2:"Ќ";s:2:"ќ";s:2:"Ѝ";s:2:"ѝ";s:2:"Ў";s:2:"ў";s:2:"Џ";s:2:"џ";s:2:"А";s:2:"а";s:2:"Б";s:2:"б";s:2:"В";s:2:"в";s:2:"Г";s:2:"г";s:2:"Д";s:2:"д";s:2:"Е";s:2:"е";s:2:"Ж";s:2:"ж";s:2:"З";s:2:"з";s:2:"И";s:2:"и";s:2:"Й";s:2:"й";s:2:"К";s:2:"к";s:2:"Л";s:2:"л";s:2:"М";s:2:"м";s:2:"Н";s:2:"н";s:2:"О";s:2:"о";s:2:"П";s:2:"п";s:2:"Р";s:2:"р";s:2:"С";s:2:"с";s:2:"Т";s:2:"т";s:2:"У";s:2:"у";s:2:"Ф";s:2:"ф";s:2:"Ð¥";s:2:"х";s:2:"Ц";s:2:"ц";s:2:"Ч";s:2:"ч";s:2:"Ш";s:2:"ш";s:2:"Щ";s:2:"щ";s:2:"Ъ";s:2:"ъ";s:2:"Ы";s:2:"ы";s:2:"Ь";s:2:"ь";s:2:"Э";s:2:"э";s:2:"Ю";s:2:"ю";s:2:"Я";s:2:"я";s:2:"Ñ ";s:2:"Ñ¡";s:2:"Ñ¢";s:2:"Ñ£";s:2:"Ѥ";s:2:"Ñ¥";s:2:"Ѧ";s:2:"ѧ";s:2:"Ѩ";s:2:"Ñ©";s:2:"Ѫ";s:2:"Ñ«";s:2:"Ѭ";s:2:"Ñ­";s:2:"Ñ®";s:2:"ѯ";s:2:"Ñ°";s:2:"ѱ";s:2:"Ѳ";s:2:"ѳ";s:2:"Ñ´";s:2:"ѵ";s:2:"Ѷ";s:2:"Ñ·";s:2:"Ѹ";s:2:"ѹ";s:2:"Ѻ";s:2:"Ñ»";s:2:"Ѽ";s:2:"ѽ";s:2:"Ѿ";s:2:"Ñ¿";s:2:"Ҁ";s:2:"ҁ";s:2:"Ҍ";s:2:"ҍ";s:2:"Ҏ";s:2:"ҏ";s:2:"Ґ";s:2:"ґ";s:2:"Ғ";s:2:"ғ";s:2:"Ҕ";s:2:"ҕ";s:2:"Җ";s:2:"җ";s:2:"Ҙ";s:2:"ҙ";s:2:"Қ";s:2:"қ";s:2:"Ҝ";s:2:"ҝ";s:2:"Ҟ";s:2:"ҟ";s:2:"Ò ";s:2:"Ò¡";s:2:"Ò¢";s:2:"Ò£";s:2:"Ò¤";s:2:"Ò¥";s:2:"Ò¦";s:2:"Ò§";s:2:"Ò¨";s:2:"Ò©";s:2:"Òª";s:2:"Ò«";s:2:"Ò¬";s:2:"Ò­";s:2:"Ò®";s:2:"Ò¯";s:2:"Ò°";s:2:"Ò±";s:2:"Ò²";s:2:"Ò³";s:2:"Ò´";s:2:"Òµ";s:2:"Ò¶";s:2:"Ò·";s:2:"Ò¸";s:2:"Ò¹";s:2:"Òº";s:2:"Ò»";s:2:"Ò¼";s:2:"Ò½";s:2:"Ò¾";s:2:"Ò¿";s:2:"Ӂ";s:2:"ӂ";s:2:"Ӄ";s:2:"ӄ";s:2:"Ӈ";s:2:"ӈ";s:2:"Ӌ";s:2:"ӌ";s:2:"Ӑ";s:2:"ӑ";s:2:"Ӓ";s:2:"ӓ";s:2:"Ӕ";s:2:"ӕ";s:2:"Ӗ";s:2:"ӗ";s:2:"Ә";s:2:"ә";s:2:"Ӛ";s:2:"ӛ";s:2:"Ӝ";s:2:"ӝ";s:2:"Ӟ";s:2:"ӟ";s:2:"Ó ";s:2:"Ó¡";s:2:"Ó¢";s:2:"Ó£";s:2:"Ó¤";s:2:"Ó¥";s:2:"Ó¦";s:2:"Ó§";s:2:"Ó¨";s:2:"Ó©";s:2:"Óª";s:2:"Ó«";s:2:"Ó¬";s:2:"Ó­";s:2:"Ó®";s:2:"Ó¯";s:2:"Ó°";s:2:"Ó±";s:2:"Ó²";s:2:"Ó³";s:2:"Ó´";s:2:"Óµ";s:2:"Ó¸";s:2:"Ó¹";s:2:"Ô±";s:2:"Õ¡";s:2:"Ô²";s:2:"Õ¢";s:2:"Ô³";s:2:"Õ£";s:2:"Ô´";s:2:"Õ¤";s:2:"Ôµ";s:2:"Õ¥";s:2:"Ô¶";s:2:"Õ¦";s:2:"Ô·";s:2:"Õ§";s:2:"Ô¸";s:2:"Õ¨";s:2:"Ô¹";s:2:"Õ©";s:2:"Ôº";s:2:"Õª";s:2:"Ô»";s:2:"Õ«";s:2:"Ô¼";s:2:"Õ¬";s:2:"Ô½";s:2:"Õ­";s:2:"Ô¾";s:2:"Õ®";s:2:"Ô¿";s:2:"Õ¯";s:2:"Հ";s:2:"Õ°";s:2:"Ձ";s:2:"Õ±";s:2:"Ղ";s:2:"Õ²";s:2:"Ճ";s:2:"Õ³";s:2:"Մ";s:2:"Õ´";s:2:"Յ";s:2:"Õµ";s:2:"Ն";s:2:"Õ¶";s:2:"Շ";s:2:"Õ·";s:2:"Ո";s:2:"Õ¸";s:2:"Չ";s:2:"Õ¹";s:2:"Պ";s:2:"Õº";s:2:"Ջ";s:2:"Õ»";s:2:"Ռ";s:2:"Õ¼";s:2:"Ս";s:2:"Õ½";s:2:"Վ";s:2:"Õ¾";s:2:"Տ";s:2:"Õ¿";s:2:"Ր";s:2:"ր";s:2:"Ց";s:2:"ց";s:2:"Ւ";s:2:"ւ";s:2:"Փ";s:2:"փ";s:2:"Ք";s:2:"ք";s:2:"Օ";s:2:"օ";s:2:"Ֆ";s:2:"ֆ";s:3:"Ḁ";s:3:"ḁ";s:3:"Ḃ";s:3:"ḃ";s:3:"Ḅ";s:3:"ḅ";s:3:"Ḇ";s:3:"ḇ";s:3:"Ḉ";s:3:"ḉ";s:3:"Ḋ";s:3:"ḋ";s:3:"Ḍ";s:3:"ḍ";s:3:"Ḏ";s:3:"ḏ";s:3:"Ḑ";s:3:"ḑ";s:3:"Ḓ";s:3:"ḓ";s:3:"Ḕ";s:3:"ḕ";s:3:"Ḗ";s:3:"ḗ";s:3:"Ḙ";s:3:"ḙ";s:3:"Ḛ";s:3:"ḛ";s:3:"Ḝ";s:3:"ḝ";s:3:"Ḟ";s:3:"ḟ";s:3:"Ḡ";s:3:"ḡ";s:3:"Ḣ";s:3:"ḣ";s:3:"Ḥ";s:3:"ḥ";s:3:"Ḧ";s:3:"ḧ";s:3:"Ḩ";s:3:"ḩ";s:3:"Ḫ";s:3:"ḫ";s:3:"Ḭ";s:3:"ḭ";s:3:"Ḯ";s:3:"ḯ";s:3:"Ḱ";s:3:"ḱ";s:3:"Ḳ";s:3:"ḳ";s:3:"Ḵ";s:3:"ḵ";s:3:"Ḷ";s:3:"ḷ";s:3:"Ḹ";s:3:"ḹ";s:3:"Ḻ";s:3:"ḻ";s:3:"Ḽ";s:3:"ḽ";s:3:"Ḿ";s:3:"ḿ";s:3:"Ṁ";s:3:"ṁ";s:3:"Ṃ";s:3:"ṃ";s:3:"Ṅ";s:3:"ṅ";s:3:"Ṇ";s:3:"ṇ";s:3:"Ṉ";s:3:"ṉ";s:3:"Ṋ";s:3:"ṋ";s:3:"Ṍ";s:3:"ṍ";s:3:"Ṏ";s:3:"ṏ";s:3:"Ṑ";s:3:"ṑ";s:3:"Ṓ";s:3:"ṓ";s:3:"Ṕ";s:3:"ṕ";s:3:"Ṗ";s:3:"ṗ";s:3:"Ṙ";s:3:"ṙ";s:3:"Ṛ";s:3:"ṛ";s:3:"Ṝ";s:3:"ṝ";s:3:"Ṟ";s:3:"ṟ";s:3:"á¹ ";s:3:"ṡ";s:3:"á¹¢";s:3:"á¹£";s:3:"Ṥ";s:3:"á¹¥";s:3:"Ṧ";s:3:"ṧ";s:3:"Ṩ";s:3:"ṩ";s:3:"Ṫ";s:3:"ṫ";s:3:"Ṭ";s:3:"á¹­";s:3:"á¹®";s:3:"ṯ";s:3:"á¹°";s:3:"á¹±";s:3:"á¹²";s:3:"á¹³";s:3:"á¹´";s:3:"á¹µ";s:3:"Ṷ";s:3:"á¹·";s:3:"Ṹ";s:3:"á¹¹";s:3:"Ṻ";s:3:"á¹»";s:3:"á¹¼";s:3:"á¹½";s:3:"á¹¾";s:3:"ṿ";s:3:"Ẁ";s:3:"ẁ";s:3:"Ẃ";s:3:"ẃ";s:3:"Ẅ";s:3:"ẅ";s:3:"Ẇ";s:3:"ẇ";s:3:"Ẉ";s:3:"ẉ";s:3:"Ẋ";s:3:"ẋ";s:3:"Ẍ";s:3:"ẍ";s:3:"Ẏ";s:3:"ẏ";s:3:"Ẑ";s:3:"ẑ";s:3:"Ẓ";s:3:"ẓ";s:3:"Ẕ";s:3:"ẕ";s:3:"Ạ";s:3:"ạ";s:3:"Ả";s:3:"ả";s:3:"Ấ";s:3:"ấ";s:3:"Ầ";s:3:"ầ";s:3:"Ẩ";s:3:"ẩ";s:3:"Ẫ";s:3:"ẫ";s:3:"Ậ";s:3:"ậ";s:3:"Ắ";s:3:"ắ";s:3:"Ằ";s:3:"ằ";s:3:"Ẳ";s:3:"ẳ";s:3:"Ẵ";s:3:"ẵ";s:3:"Ặ";s:3:"ặ";s:3:"Ẹ";s:3:"ẹ";s:3:"Ẻ";s:3:"ẻ";s:3:"Ẽ";s:3:"ẽ";s:3:"Ế";s:3:"ế";s:3:"Ề";s:3:"ề";s:3:"Ể";s:3:"ể";s:3:"Ễ";s:3:"ễ";s:3:"Ệ";s:3:"ệ";s:3:"Ỉ";s:3:"ỉ";s:3:"Ị";s:3:"ị";s:3:"Ọ";s:3:"ọ";s:3:"Ỏ";s:3:"ỏ";s:3:"Ố";s:3:"ố";s:3:"Ồ";s:3:"ồ";s:3:"Ổ";s:3:"ổ";s:3:"Ỗ";s:3:"ỗ";s:3:"Ộ";s:3:"ộ";s:3:"Ớ";s:3:"ớ";s:3:"Ờ";s:3:"ờ";s:3:"Ở";s:3:"ở";s:3:"á» ";s:3:"ỡ";s:3:"Ợ";s:3:"ợ";s:3:"Ụ";s:3:"ụ";s:3:"Ủ";s:3:"ủ";s:3:"Ứ";s:3:"ứ";s:3:"Ừ";s:3:"ừ";s:3:"Ử";s:3:"á»­";s:3:"á»®";s:3:"ữ";s:3:"á»°";s:3:"á»±";s:3:"Ỳ";s:3:"ỳ";s:3:"á»´";s:3:"ỵ";s:3:"Ỷ";s:3:"á»·";s:3:"Ỹ";s:3:"ỹ";s:3:"Ἀ";s:3:"ἀ";s:3:"Ἁ";s:3:"ἁ";s:3:"Ἂ";s:3:"ἂ";s:3:"Ἃ";s:3:"ἃ";s:3:"Ἄ";s:3:"ἄ";s:3:"Ἅ";s:3:"ἅ";s:3:"Ἆ";s:3:"ἆ";s:3:"Ἇ";s:3:"ἇ";s:3:"Ἐ";s:3:"ἐ";s:3:"Ἑ";s:3:"ἑ";s:3:"Ἒ";s:3:"ἒ";s:3:"Ἓ";s:3:"ἓ";s:3:"Ἔ";s:3:"ἔ";s:3:"Ἕ";s:3:"ἕ";s:3:"Ἠ";s:3:"á¼ ";s:3:"Ἡ";s:3:"ἡ";s:3:"Ἢ";s:3:"á¼¢";s:3:"Ἣ";s:3:"á¼£";s:3:"Ἤ";s:3:"ἤ";s:3:"á¼­";s:3:"á¼¥";s:3:"á¼®";s:3:"ἦ";s:3:"Ἧ";s:3:"ἧ";s:3:"Ἰ";s:3:"á¼°";s:3:"á¼¹";s:3:"á¼±";s:3:"Ἲ";s:3:"á¼²";s:3:"á¼»";s:3:"á¼³";s:3:"á¼¼";s:3:"á¼´";s:3:"á¼½";s:3:"á¼µ";s:3:"á¼¾";s:3:"ἶ";s:3:"Ἷ";s:3:"á¼·";s:3:"Ὀ";s:3:"ὀ";s:3:"Ὁ";s:3:"ὁ";s:3:"Ὂ";s:3:"ὂ";s:3:"Ὃ";s:3:"ὃ";s:3:"Ὄ";s:3:"ὄ";s:3:"Ὅ";s:3:"ὅ";s:3:"Ὑ";s:3:"ὑ";s:3:"Ὓ";s:3:"ὓ";s:3:"Ὕ";s:3:"ὕ";s:3:"Ὗ";s:3:"ὗ";s:3:"Ὠ";s:3:"á½ ";s:3:"Ὡ";s:3:"ὡ";s:3:"Ὢ";s:3:"á½¢";s:3:"Ὣ";s:3:"á½£";s:3:"Ὤ";s:3:"ὤ";s:3:"á½­";s:3:"á½¥";s:3:"á½®";s:3:"ὦ";s:3:"Ὧ";s:3:"ὧ";s:3:"ᾈ";s:3:"ᾀ";s:3:"ᾉ";s:3:"ᾁ";s:3:"ᾊ";s:3:"ᾂ";s:3:"ᾋ";s:3:"ᾃ";s:3:"ᾌ";s:3:"ᾄ";s:3:"ᾍ";s:3:"ᾅ";s:3:"ᾎ";s:3:"ᾆ";s:3:"ᾏ";s:3:"ᾇ";s:3:"ᾘ";s:3:"ᾐ";s:3:"ᾙ";s:3:"ᾑ";s:3:"ᾚ";s:3:"ᾒ";s:3:"ᾛ";s:3:"ᾓ";s:3:"ᾜ";s:3:"ᾔ";s:3:"ᾝ";s:3:"ᾕ";s:3:"ᾞ";s:3:"ᾖ";s:3:"ᾟ";s:3:"ᾗ";s:3:"ᾨ";s:3:"á¾ ";s:3:"ᾩ";s:3:"ᾡ";s:3:"ᾪ";s:3:"á¾¢";s:3:"ᾫ";s:3:"á¾£";s:3:"ᾬ";s:3:"ᾤ";s:3:"á¾­";s:3:"á¾¥";s:3:"á¾®";s:3:"ᾦ";s:3:"ᾯ";s:3:"ᾧ";s:3:"Ᾰ";s:3:"á¾°";s:3:"á¾¹";s:3:"á¾±";s:3:"Ὰ";s:3:"á½°";s:3:"á¾»";s:3:"á½±";s:3:"á¾¼";s:3:"á¾³";s:3:"Ὲ";s:3:"á½²";s:3:"Έ";s:3:"á½³";s:3:"Ὴ";s:3:"á½´";s:3:"Ή";s:3:"á½µ";s:3:"ῌ";s:3:"ῃ";s:3:"Ῐ";s:3:"ῐ";s:3:"Ῑ";s:3:"ῑ";s:3:"Ὶ";s:3:"ὶ";s:3:"Ί";s:3:"á½·";s:3:"Ῠ";s:3:"á¿ ";s:3:"á¿©";s:3:"á¿¡";s:3:"Ὺ";s:3:"ὺ";s:3:"á¿«";s:3:"á½»";s:3:"Ῥ";s:3:"á¿¥";s:3:"Ὸ";s:3:"ὸ";s:3:"Ό";s:3:"á½¹";s:3:"Ὼ";s:3:"á½¼";s:3:"á¿»";s:3:"á½½";s:3:"ῼ";s:3:"ῳ";s:3:"Ω";s:2:"ω";s:3:"K";s:1:"k";s:3:"Å";s:2:"Ã¥";s:3:"Ⅰ";s:3:"ⅰ";s:3:"Ⅱ";s:3:"ⅱ";s:3:"Ⅲ";s:3:"ⅲ";s:3:"Ⅳ";s:3:"ⅳ";s:3:"Ⅴ";s:3:"ⅴ";s:3:"Ⅵ";s:3:"ⅵ";s:3:"Ⅶ";s:3:"ⅶ";s:3:"Ⅷ";s:3:"ⅷ";s:3:"Ⅸ";s:3:"ⅸ";s:3:"Ⅹ";s:3:"ⅹ";s:3:"Ⅺ";s:3:"ⅺ";s:3:"Ⅻ";s:3:"ⅻ";s:3:"Ⅼ";s:3:"ⅼ";s:3:"Ⅽ";s:3:"ⅽ";s:3:"Ⅾ";s:3:"ⅾ";s:3:"Ⅿ";s:3:"ⅿ";s:3:"Ⓐ";s:3:"ⓐ";s:3:"Ⓑ";s:3:"ⓑ";s:3:"Ⓒ";s:3:"ⓒ";s:3:"Ⓓ";s:3:"ⓓ";s:3:"Ⓔ";s:3:"ⓔ";s:3:"Ⓕ";s:3:"ⓕ";s:3:"Ⓖ";s:3:"ⓖ";s:3:"Ⓗ";s:3:"ⓗ";s:3:"Ⓘ";s:3:"ⓘ";s:3:"Ⓙ";s:3:"ⓙ";s:3:"Ⓚ";s:3:"ⓚ";s:3:"Ⓛ";s:3:"ⓛ";s:3:"Ⓜ";s:3:"ⓜ";s:3:"Ⓝ";s:3:"ⓝ";s:3:"Ⓞ";s:3:"ⓞ";s:3:"Ⓟ";s:3:"ⓟ";s:3:"Ⓠ";s:3:"ⓠ";s:3:"Ⓡ";s:3:"ⓡ";s:3:"Ⓢ";s:3:"ⓢ";s:3:"Ⓣ";s:3:"ⓣ";s:3:"Ⓤ";s:3:"ⓤ";s:3:"Ⓥ";s:3:"ⓥ";s:3:"Ⓦ";s:3:"ⓦ";s:3:"Ⓧ";s:3:"ⓧ";s:3:"Ⓨ";s:3:"ⓨ";s:3:"Ⓩ";s:3:"ⓩ";s:3:"A";s:3:"a";s:3:"ï¼¢";s:3:"b";s:3:"ï¼£";s:3:"c";s:3:"D";s:3:"d";s:3:"ï¼¥";s:3:"e";s:3:"F";s:3:"f";s:3:"G";s:3:"g";s:3:"H";s:3:"h";s:3:"I";s:3:"i";s:3:"J";s:3:"j";s:3:"K";s:3:"k";s:3:"L";s:3:"l";s:3:"ï¼­";s:3:"m";s:3:"ï¼®";s:3:"n";s:3:"O";s:3:"o";s:3:"ï¼°";s:3:"p";s:3:"ï¼±";s:3:"q";s:3:"ï¼²";s:3:"r";s:3:"ï¼³";s:3:"s";s:3:"ï¼´";s:3:"t";s:3:"ï¼µ";s:3:"u";s:3:"V";s:3:"v";s:3:"ï¼·";s:3:"w";s:3:"X";s:3:"x";s:3:"ï¼¹";s:3:"y";s:3:"Z";s:3:"z";s:4:"𐐀";s:4:"𐐨";s:4:"𐐁";s:4:"𐐩";s:4:"𐐂";s:4:"𐐪";s:4:"𐐃";s:4:"𐐫";s:4:"𐐄";s:4:"𐐬";s:4:"𐐅";s:4:"𐐭";s:4:"𐐆";s:4:"𐐮";s:4:"𐐇";s:4:"𐐯";s:4:"𐐈";s:4:"𐐰";s:4:"𐐉";s:4:"𐐱";s:4:"𐐊";s:4:"𐐲";s:4:"𐐋";s:4:"𐐳";s:4:"𐐌";s:4:"𐐴";s:4:"𐐍";s:4:"𐐵";s:4:"𐐎";s:4:"𐐶";s:4:"𐐏";s:4:"𐐷";s:4:"𐐐";s:4:"𐐸";s:4:"𐐑";s:4:"𐐹";s:4:"𐐒";s:4:"𐐺";s:4:"𐐓";s:4:"𐐻";s:4:"𐐔";s:4:"𐐼";s:4:"𐐕";s:4:"𐐽";s:4:"𐐖";s:4:"𐐾";s:4:"𐐗";s:4:"𐐿";s:4:"𐐘";s:4:"𐑀";s:4:"𐐙";s:4:"𐑁";s:4:"𐐚";s:4:"𐑂";s:4:"𐐛";s:4:"𐑃";s:4:"𐐜";s:4:"𐑄";s:4:"𐐝";s:4:"𐑅";s:4:"𐐞";s:4:"𐑆";s:4:"𐐟";s:4:"𐑇";s:4:"𐐠";s:4:"𐑈";s:4:"𐐡";s:4:"𐑉";s:4:"𐐢";s:4:"𐑊";s:4:"𐐣";s:4:"𐑋";s:4:"𐐤";s:4:"𐑌";s:4:"𐐥";s:4:"𐑍";}} \ No newline at end of file diff --git a/serialized/serialize-localisation.php b/serialized/serialize-localisation.php new file mode 100644 index 0000000000..10624ba541 --- /dev/null +++ b/serialized/serialize-localisation.php @@ -0,0 +1,34 @@ + diff --git a/serialized/serialize.php b/serialized/serialize.php new file mode 100644 index 0000000000..78b7789572 --- /dev/null +++ b/serialized/serialize.php @@ -0,0 +1,74 @@ + 50 ) { + global $stderr; + fwrite( $stderr, "Error: Recursion limit exceeded. Possible circular reference in array variable.\n" ); + exit( 2 ); + } + + if ( is_array( $var ) ) { + ++$recursionLevel; + $var = array_map( 'unixLineEndings', $var ); + --$recursionLevel; + } elseif ( is_string( $var ) ) { + $var = str_replace( "\r\n", "\n", $var ); + } + return $var; +} +?> -- 2.20.1