WMDE-leszek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/369412 )

Change subject: Add headers to fields of the lemma widget
......................................................................

Add headers to fields of the lemma widget

Bug: T172197
Change-Id: I40928e5e841340af78e55ff3bb5e7a562eeb9f9f
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M src/View/LexemeView.php
4 files changed, 13 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseLexeme 
refs/changes/12/369412/1

diff --git a/extension.json b/extension.json
index 8d7e642..ad5163b 100644
--- a/extension.json
+++ b/extension.json
@@ -148,7 +148,9 @@
                                "wikibase-save",
                                "wikibase-cancel",
                                "wikibase-add",
-                               "wikibase-remove"
+                               "wikibase-remove",
+                               "wikibase-lemma-field-lemma-label",
+                               "wikibase-lemma-field-language-label"
                        ]
                },
                "wikibase.lexeme.widgets.RepresentationWidget": {
diff --git a/i18n/en.json b/i18n/en.json
index 34ff1c6..ce2af99 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -18,6 +18,8 @@
        "wikibase-lexeme-statementsection-statements-about-sense": "Statements 
about $1",
        "wikibase-lexeme-view-senses": "Senses",
        "wikibase-lexeme-gloss-empty": "No gloss defined",
+       "wikibase-lemma-field-lemma-label": "Lemma",
+       "wikibase-lemma-field-language-label": "Language",
        "wikibase-form-field-representation-label": "Representation",
        "wikibase-form-field-language-label": "Language",
        "wikibase-gloss-field-language-label": "Language",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 79cb77e..3bbaf13 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -23,6 +23,8 @@
        "wikibase-lexeme-statementsection-statements-about-sense": "Heading for 
the list of statements giving specific information about the currently viewed 
Sense of a Lexeme.\n\nParameters:\n* $1 - Sense ID.\n{{Identical|Statements}}",
        "wikibase-lexeme-view-senses": "Subheading for the senses section on a 
lexeme page.\n{{Identical|Sense}}",
        "wikibase-lexeme-gloss-empty": "Placeholder message displayed instead 
of the gloss of the sense in case the gloss in the display language has not 
been specified yet.",
+       "wikibase-lemma-field-lemma-label": "Label of the field to input the 
lemma of the lexeme.",
+       "wikibase-lemma-field-language-label": "Label of the field to input the 
language code of the variant of the lemma.",
        "wikibase-form-field-representation-label": "Label of the field to 
input the representation of the form",
        "wikibase-form-field-language-label": "Label of the field to input the 
language code of the variant of the form representation",
        "wikibase-gloss-field-language-label": "Label of the field to input the 
language code of the language the gloss of the sense is defined in",
diff --git a/src/View/LexemeView.php b/src/View/LexemeView.php
index 3430be1..6c9155a 100644
--- a/src/View/LexemeView.php
+++ b/src/View/LexemeView.php
@@ -256,8 +256,14 @@
        <div v-else class="lemma-widget_edit-area">
                <ul class="lemma-widget_lemma-list">
                        <li v-for="lemma in lemmas" 
class="lemma-widget_lemma-edit-box">
+                               <span class="lemma-widget_lemma-value-label">
+                                       
{{'wikibase-lemma-field-lemma-label'|message}}
+                               </span>
                                <input size="1" 
class="lemma-widget_lemma-value-input" 
                                        v-model="lemma.value" 
:disabled="isSaving">
+                               <span class="lemma-widget_lemma-language-label">
+                                       
{{'wikibase-lemma-field-language-label'|message}}
+                               </span>
                                <input size="1" 
class="lemma-widget_lemma-language-input" 
                                        v-model="lemma.language" 
:disabled="isSaving">
                                <button class="lemma-widget_lemma-remove" 
v-on:click="remove(lemma)" 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40928e5e841340af78e55ff3bb5e7a562eeb9f9f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <leszek.mani...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to