Mvolz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/198556

Change subject: Don't add openGraph 'locale' to language field
......................................................................

Don't add openGraph 'locale' to language field

'locale' values were not valid language codes
and were causing errors in on-wiki citaiton
templates accordingly. Set 'locale' to null
instead of 'language'.

Bug: T93337
Change-Id: I5e9e03ab42f41f576c0feab28d0f8ffc074e415f
---
M lib/translators/openGraph.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/citoid 
refs/changes/56/198556/1

diff --git a/lib/translators/openGraph.js b/lib/translators/openGraph.js
index 823ba80..4ca96e7 100644
--- a/lib/translators/openGraph.js
+++ b/lib/translators/openGraph.js
@@ -29,7 +29,7 @@
        image: null, // general OG property, unused in any Zotero type //could 
possible put in archive location?
        audio: null, // general OG property, unused in Zotero in any Zotero 
type //could possibly put in archive location?
        description: 'abstract', // general OG property, abstract common to all 
Zotero types
-       locale: 'language', // general OG property, common to all Zotero types
+       locale: null, // general OG property, common to all Zotero types
        determiner: null,  // general OG property, unused in any Zotero type
        'locale:alternate': null, // general OG property, unused in any Zotero 
type
        site_name: null, // general OG property, only used in webpage types - 
translate there

-- 
To view, visit https://gerrit.wikimedia.org/r/198556
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e9e03ab42f41f576c0feab28d0f8ffc074e415f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/citoid
Gerrit-Branch: master
Gerrit-Owner: Mvolz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to