jenkins-bot has submitted this change and it was merged.
Change subject: Replace be-x-old by be-tarask throughout
......................................................................
Replace be-x-old by be-tarask throughout
Also uncomments the this dataset in monuments_config
Bug: T112415
Change-Id: If92f126b85733f400bb7277c8116866576961c99
---
M common/Skin.18n.php
M erfgoedbot/categorize_images.py
M erfgoedbot/monuments_config.py
M erfgoedbot/sql/create_table_commonscat.sql
M erfgoedbot/sql/fill_table_monuments_all.sql
5 files changed, 86 insertions(+), 86 deletions(-)
Approvals:
Jean-Frédéric: Looks good to me, approved
jenkins-bot: Verified
diff --git a/common/Skin.18n.php b/common/Skin.18n.php
index de2007e..acf3cbf 100644
--- a/common/Skin.18n.php
+++ b/common/Skin.18n.php
@@ -1969,7 +1969,7 @@
*
* @author MediaWiki translators
*/
-$messages['be-x-old'] = array(
+$messages['be-tarask'] = array(
'personaltools' => 'Persuonalėnē rakondā',
'toolbox' => 'Rakondā',
'otherlanguages' => 'Kėtuom kalbuom',
diff --git a/erfgoedbot/categorize_images.py b/erfgoedbot/categorize_images.py
index ae95247..8832422 100644
--- a/erfgoedbot/categorize_images.py
+++ b/erfgoedbot/categorize_images.py
@@ -124,7 +124,7 @@
ignoreTemplates = {
'af': [u'commons'],
'ar': [u'تحويلة تصنيف', u'كومنز', u'كومونز', u'Commons'],
- 'be-x-old': [u'Commons', u'Commons category'],
+ 'be-tarask': [u'Commons', u'Commons category'],
'cs': [u'Commons', u'Sestřičky', u'Sisterlinks'],
'da': [u'Commons', u'Commons left', u'Commons2', u'Commonsbilleder',
u'Commonskat', u'Commonscat2', u'GalleriCommons', u'Søsterlinks'],
diff --git a/erfgoedbot/monuments_config.py b/erfgoedbot/monuments_config.py
index b2d2939..137432e 100755
--- a/erfgoedbot/monuments_config.py
+++ b/erfgoedbot/monuments_config.py
@@ -1250,87 +1250,87 @@
},
],
},
- # ('by', 'be-x-old'): { # Belarus in Belarussian
- # 'project': u'wikipedia',
- # 'lang': u'be-x-old',
- # 'headerTemplate': u'Вікі любіць славутасьці/Вяршыня сьпісу',
- # 'rowTemplate': u'Вікі любіць славутасьці/Элемэнт сьпісу',
- # 'commonsTemplate': u'Belarus heritage',
- # 'commonsTrackerCategory': u'Cultural heritage monuments in Belarus
with known IDs',
- # 'commonsCategoryBase': u'Cultural heritage monuments in Belarus',
- # 'autoGeocode': False,
- # 'unusedImagesPage': u'User:ErfgoedBot/Unused images of Belarusian
heritage monuments',
- # 'imagesWithoutIdPage': u'User:ErfgoedBot/Images of Belarusian
heritage monuments without ID',
- # 'namespaces': [4],
- # 'table': u'monuments_by_(be-x-old)',
- # 'truncate': False,
- # 'primkey': u'id',
- # 'fields': [
- # {
- # 'source': u'шыфр',
- # 'dest': u'id',
- # 'type': u'varchar(25)',
- # 'default': '0'
- # },
- # {
- # 'source': u'назва',
- # 'dest': u'name',
- # },
- # {
- # 'source': u'vobłaść-iso',
- # 'dest': u'oblast-iso',
- # },
- # {
- # 'source': u'rajon',
- # 'dest': u'rajon',
- # },
- # {
- # 'source': u'датаваньне',
- # 'dest': u'date',
- # },
- # {
- # 'source': u'населены пункт',
- # 'dest': u'place',
- # },
- # {
- # 'source': u'адрэса',
- # 'dest': u'address',
- # },
- # {
- # 'source': u'катэгорыя',
- # 'dest': u'category',
- # },
- # {
- # 'source': u'шырата',
- # 'dest': u'lat',
- # },
- # {
- # 'source': u'даўгата',
- # 'dest': u'lon',
- # },
- # {
- # 'source': u'каардынаты',
- # 'dest': u'coordinates',
- # },
- # {
- # 'source': u'выява',
- # 'dest': u'image',
- # },
- # {
- # 'source': u'commonscat',
- # 'dest': u'commonscat',
- # },
- # {
- # 'source': u'грамадзкі набытак', # Boolean, not clear what
the purpose is
- # 'dest': u'',
- # },
- # {
- # 'source': u'name',
- # 'dest': u'monument_article',
- # 'conv': u'extractWikilink',
- # },
- # ],
- # },
+ ('by', 'be-tarask'): { # Belarus in Belarussian
+ 'project': u'wikipedia',
+ 'lang': u'be-tarask',
+ 'headerTemplate': u'Вікі любіць славутасьці/Вяршыня сьпісу',
+ 'rowTemplate': u'Вікі любіць славутасьці/Элемэнт сьпісу',
+ 'commonsTemplate': u'Belarus heritage',
+ 'commonsTrackerCategory': u'Cultural heritage monuments in Belarus
with known IDs',
+ 'commonsCategoryBase': u'Cultural heritage monuments in Belarus',
+ 'autoGeocode': False,
+ 'unusedImagesPage': u'User:ErfgoedBot/Unused images of Belarusian
heritage monuments',
+ 'imagesWithoutIdPage': u'User:ErfgoedBot/Images of Belarusian heritage
monuments without ID',
+ 'namespaces': [4],
+ 'table': u'monuments_by_(be-tarask)',
+ 'truncate': False,
+ 'primkey': u'id',
+ 'fields': [
+ {
+ 'source': u'шыфр',
+ 'dest': u'id',
+ 'type': u'varchar(25)',
+ 'default': '0'
+ },
+ {
+ 'source': u'назва',
+ 'dest': u'name',
+ },
+ {
+ 'source': u'vobłaść-iso',
+ 'dest': u'oblast-iso',
+ },
+ {
+ 'source': u'rajon',
+ 'dest': u'rajon',
+ },
+ {
+ 'source': u'датаваньне',
+ 'dest': u'date',
+ },
+ {
+ 'source': u'населены пункт',
+ 'dest': u'place',
+ },
+ {
+ 'source': u'адрэса',
+ 'dest': u'address',
+ },
+ {
+ 'source': u'катэгорыя',
+ 'dest': u'category',
+ },
+ {
+ 'source': u'шырата',
+ 'dest': u'lat',
+ },
+ {
+ 'source': u'даўгата',
+ 'dest': u'lon',
+ },
+ {
+ 'source': u'каардынаты',
+ 'dest': u'coordinates',
+ },
+ {
+ 'source': u'выява',
+ 'dest': u'image',
+ },
+ {
+ 'source': u'commonscat',
+ 'dest': u'commonscat',
+ },
+ {
+ 'source': u'грамадзкі набытак', # Boolean, not clear what the
purpose is
+ 'dest': u'',
+ },
+ {
+ 'source': u'name',
+ 'dest': u'monument_article',
+ 'conv': u'extractWikilink',
+ },
+ ],
+ },
('ca', 'en'): { # Historic Places of Canada in English
'project': u'wikipedia',
'lang': u'en',
diff --git a/erfgoedbot/sql/create_table_commonscat.sql
b/erfgoedbot/sql/create_table_commonscat.sql
index e5a6bbe..e35bac7 100644
--- a/erfgoedbot/sql/create_table_commonscat.sql
+++ b/erfgoedbot/sql/create_table_commonscat.sql
@@ -1,6 +1,6 @@
DROP TABLE IF EXISTS `commonscat`;
CREATE TABLE `commonscat` (
- `site` ENUM ('be-x-old', 'ca', 'da', 'de', 'en', 'es', 'et', 'fr', 'gl',
'lb', 'nl', 'no', 'pl', 'pt', 'ro', 'sv' ) NOT NULL, -- Wikipedia the title
belongs to
+ `site` ENUM ('be-tarask', 'ca', 'da', 'de', 'en', 'es', 'et', 'fr', 'gl',
'lb', 'nl', 'no', 'pl', 'pt', 'ro', 'sv' ) NOT NULL, -- Wikipedia the title
belongs to
`title` VARCHAR (255) NOT NULL DEFAULT '', -- Title at site
`commonscat` VARCHAR (255), -- Commons category into which files listed at
title should be categorised
`changed` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
diff --git a/erfgoedbot/sql/fill_table_monuments_all.sql
b/erfgoedbot/sql/fill_table_monuments_all.sql
index 3303feb..2b99d34 100644
--- a/erfgoedbot/sql/fill_table_monuments_all.sql
+++ b/erfgoedbot/sql/fill_table_monuments_all.sql
@@ -388,7 +388,7 @@
/* Belarus */
REPLACE INTO `monuments_all_tmp` (`country`, `lang`, `id`, `adm0`, `adm1`,
`adm2`, `adm3`, `adm4`, `name`, `address`, `municipality`, `lat`, `lon`,
`lat_int`, `lon_int`, `image`, `commonscat`, `source`, `changed`,
`monument_article`, `registrant_url` )
SELECT 'by' AS `country`,
- 'be-x-old' AS `lang`,
+ 'be-tarask' AS `lang`,
`id` AS `id`,
'by' AS `adm0`,
LOWER(`oblast-iso`) AS `adm1`,
@@ -408,7 +408,7 @@
`changed` AS `changed`,
`monument_article` AS `monument_article`,
'' AS `registrant_url`
- FROM `monuments_by_(be-x-old)`;
+ FROM `monuments_by_(be-tarask)`;
/* Canada in English 3 times because of the 3 levels in one source table */
REPLACE INTO `monuments_all_tmp` (`country`, `lang`, `id`, `adm0`, `adm1`,
`adm2`, `adm3`, `adm4`, `name`, `address`, `municipality`, `lat`, `lon`,
`lat_int`, `lon_int`, `image`, `commonscat`, `source`, `changed`,
`monument_article`, `registrant_url` )
SELECT 'ca' AS `country`,
--
To view, visit https://gerrit.wikimedia.org/r/281220
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If92f126b85733f400bb7277c8116866576961c99
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <[email protected]>
Gerrit-Reviewer: Jean-Frédéric <[email protected]>
Gerrit-Reviewer: Multichill <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits