Henning Snater has submitted this change and it was merged.

Change subject: Add separate messages for wikibase-deletedentity
......................................................................


Add separate messages for wikibase-deletedentity

Also move them from repo to WikibaseLib.i18n.php

Bug: 49887
Change-Id: Id6662d08ab99bd2e7d1b83e065fdcb53acd385f7
---
M lib/WikibaseLib.i18n.php
M lib/resources/Resources.php
M lib/resources/wikibase.utilities/wikibase.utilities.ui.js
M repo/Wikibase.i18n.php
4 files changed, 25 insertions(+), 13 deletions(-)

Approvals:
  Henning Snater: Verified; Looks good to me, approved



diff --git a/lib/WikibaseLib.i18n.php b/lib/WikibaseLib.i18n.php
index 109d615..0b32c97 100644
--- a/lib/WikibaseLib.i18n.php
+++ b/lib/WikibaseLib.i18n.php
@@ -21,6 +21,9 @@
        'wikibase-entity-item' => 'item',
        'wikibase-entity-property' => 'property',
        'wikibase-entity-query' => 'query',
+       'wikibase-deletedentity-item' => 'Deleted item',
+       'wikibase-deletedentity-property' => 'Deleted property',
+       'wikibase-deletedentity-query' => 'Deleted query',
        'wikibase-diffview-reference' => 'reference',
        'wikibase-diffview-rank' => 'rank',
        'wikibase-diffview-qualifier' => 'qualifier',
@@ -73,6 +76,24 @@
 {{Identical|Property}}',
        'wikibase-entity-query' => 'How we refer to entities of type query. See 
also Wikidatas glossary on [[d:Wikidata:Glossary#entity|entity]].
 {{Identical|Query}}',
+       'wikibase-deletedentity-item' => "Message displayed instead of an 
Item's label if the Item has been deleted (see [[d:Wikidata:Glossary]]).
+
+See also:
+* {{msg-mw|Wikibase-entity-item}}
+* {{msg-mw|Wikibase-deletedentity-property}}
+* {{msg-mw|Wikibase-deletedentity-query}}",
+       'wikibase-deletedentity-property' => "Message displayed instead of an 
Property's label if the Property has been deleted (see [[d:Wikidata:Glossary]]).
+
+See also:
+* {{msg-mw|Wikibase-entity-property}}
+* {{msg-mw|Wikibase-deletedentity-item}}
+* {{msg-mw|Wikibase-deletedentity-query}}",
+       'wikibase-deletedentity-query' => "Message displayed instead of an 
Query's label if the Query has been deleted (see [[d:Wikidata:Glossary]]).
+
+See also:
+* {{msg-mw|Wikibase-entity-query}}
+* {{msg-mw|Wikibase-deletedentity-item}}
+* {{msg-mw|Wikibase-deletedentity-property}}",
        'wikibase-diffview-reference' => 'Label within the header of a 
diff-operation on the entity diff view to describe that the diff-operation 
affects a reference. Will be shown as e.g. "claim / property q1 / reference".
 {{Identical|Reference}}',
        'wikibase-diffview-rank' => 'Label within the header of a 
diff-operation on the entity diff view to describe that the diff-operation 
affects the rank of the statement. Will be shown as e.g. "claim / property q1 / 
rank".
diff --git a/lib/resources/Resources.php b/lib/resources/Resources.php
index d802bf8..1e250de 100644
--- a/lib/resources/Resources.php
+++ b/lib/resources/Resources.php
@@ -235,7 +235,9 @@
                                'wikibase-ui-pendingquantitycounter-pending',
                                
'wikibase-ui-pendingquantitycounter-pending-pendingsubpart',
                                'wikibase-label-empty',
-                               'wikibase-deletedentity',
+                               'wikibase-deletedentity-item',
+                               'wikibase-deletedentity-property',
+                               'wikibase-deletedentity-query',
                                'word-separator',
                                'parentheses',
                        )
diff --git a/lib/resources/wikibase.utilities/wikibase.utilities.ui.js 
b/lib/resources/wikibase.utilities/wikibase.utilities.ui.js
index 92c5b80..1e7bdaa 100644
--- a/lib/resources/wikibase.utilities/wikibase.utilities.ui.js
+++ b/lib/resources/wikibase.utilities/wikibase.utilities.ui.js
@@ -94,9 +94,7 @@
                return $( '<span/>' ).text( entityId + SPACE ).append(
                        $( '<span>', { 'class': 'wb-entity-undefinedinfo' } 
).text(
                                mw.msg( 'parentheses',
-                                       mw.msg( 'wikibase-deletedentity',
-                                               mw.msg( 'wikibase-entity-' + 
entityType ) ) ) ) );
-
+                                       mw.msg( 'wikibase-deletedentity-' + 
entityType ) ) ) );
        };
 
        /**
diff --git a/repo/Wikibase.i18n.php b/repo/Wikibase.i18n.php
index e3d12df..c8bbe0a 100644
--- a/repo/Wikibase.i18n.php
+++ b/repo/Wikibase.i18n.php
@@ -35,7 +35,6 @@
        'wikibase-label-empty' => 'No label defined yet',
        'wikibase-label-edit-placeholder' => 'enter label',
        'wikibase-description-empty' => 'No description defined yet',
-       'wikibase-deletedentity' => 'Deleted $1',
        'wikibase-description-edit-placeholder' => 'enter description',
        'wikibase-sitelink-site-edit-placeholder' => 'site',
        'wikibase-sitelink-page-edit-placeholder' => 'article',
@@ -478,14 +477,6 @@
        'wikibase-label-edit-placeholder' => '[[File:Screenshot WikidataRepo 
2012-05-13 G.png|right|0x150px]]
 This is a generic text used as a placeholder while editing a new label. See 
also Wikidatas glossary on 
[[d:Wikidata:Glossary#languageattribute-label|label]].',
        'wikibase-description-empty' => "Placeholder message displayed instead 
of the item's description in case no description has been specified yet.  This 
message is displayed only when the user has JavaScript disabled. (When 
JavaScript is enabled, an input box will be displayed instead.)",
-       'wikibase-deletedentity' => "Message displayed instead of an Entity's 
label if the Entity has been deleted (see [[d:Wikidata:Glossary]]).
-
-Usually this message is used with some other message pointing to the entity.
-
-Parameters:
-* $1 - the kind of entity which got deleted. any one of the following messages:
-** {{msg-mw|Wikibase-entity-item}}
-** {{msg-mw|Wikibase-entity-property}}",
        'wikibase-description-edit-placeholder' => '[[File:Screenshot 
WikidataRepo 2012-05-13 G.png|right|0x150px]]
 This is a generic text used as a placeholder while editing a new description. 
See also Wikidatas glossary on 
[[d:Wikidata:Glossary#languageattribute-description|description]].',
        'wikibase-sitelink-site-edit-placeholder' => '[[File:Screenshot 
WikidataRepo 2012-05-13 E.png|right|0x150px]]

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id6662d08ab99bd2e7d1b83e065fdcb53acd385f7
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Se4598 <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Daniel Werner <[email protected]>
Gerrit-Reviewer: Henning Snater <[email protected]>
Gerrit-Reviewer: Pyfisch <[email protected]>
Gerrit-Reviewer: Se4598 <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to