Skip to content

Commit ba838e0

Browse files
author
billy clark
committed
Merge branch 'develop'
2 parents 7a894ec + 8665061 commit ba838e0

22 files changed

+155
-154
lines changed

src/Api/Model/Languageforge/Lexicon/Config/LexConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ public static function flexOptionlistCode($fieldName)
127127
* @var array
128128
*/
129129
private static $flexOptionlistNames = [
130-
"grammatical-info" => "Grammatical Category",
130+
"grammatical-info" => "Part of Speech",
131131
"semantic-domain-ddp4" => "Semantic Domain",
132132
"domain-type" => "Academic Domains",
133133
self::ENVIRONMENTS => "Environments",
134134
"location" => "Location",
135135
"usage-type" => "Usages",
136136
"reversal-type" => "Reversal Entries",
137-
"sense-type" => "Sense Type",
137+
"sense-type" => "Type",
138138
"anthro-code" => "Anthropology Categories",
139139
"do-not-publish-in" => "Publish In",
140140
"status" => "Status",
@@ -145,7 +145,7 @@ public static function flexOptionlistCode($fieldName)
145145
"paradigm" => "Paradigm",
146146
"users" => "Users",
147147
"translation-type" => "Translation Type",
148-
"from-part-of-speech" => "From Grammatical Category",
148+
"from-part-of-speech" => "From Part of Speech",
149149
"morph-type" => "Morph Type",
150150
"noun-slot" => "Noun Slot",
151151
"verb-slot" => "Verb Slot",

src/Api/Model/Languageforge/Lexicon/Config/LexConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ public function __construct()
8989
$this->entry->fieldOrder[] = LexConfig::SENSES_LIST;
9090

9191
$this->entry->fields[LexConfig::LEXEME] = new LexConfigMultiText();
92-
$this->entry->fields[LexConfig::LEXEME]->label = "Lexeme Form";
92+
$this->entry->fields[LexConfig::LEXEME]->label = "Word";
9393
$this->entry->fields[LexConfig::LEXEME]->inputSystems[] = "th";
9494

9595
$this->entry->fields[LexConfig::SENSES_LIST] = new LexConfigFieldList();
96-
$this->entry->fields[LexConfig::SENSES_LIST]->label = "Sense";
96+
$this->entry->fields[LexConfig::SENSES_LIST]->label = "Meaning";
9797
$this->entry->fields[LexConfig::SENSES_LIST]->fieldOrder[] = LexConfig::GLOSS;
9898
$this->entry->fields[LexConfig::SENSES_LIST]->fieldOrder[] = LexConfig::DEFINITION;
9999
$this->entry->fields[LexConfig::SENSES_LIST]->fieldOrder[] = LexConfig::PICTURES;

src/Api/Model/Languageforge/Lexicon/Import/LiftDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function readSense($sxeNode, $sense)
264264
);
265265
break;
266266
case "grammatical-info":
267-
// Grammatical Category
267+
// Part Of Speech
268268
$sense->partOfSpeech->value = \Normalizer::normalize((string) $element["value"]);
269269
break;
270270
case "illustration":

src/Api/Model/Languageforge/Lexicon/Import/LiftImport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function getReport()
279279

280280
/**
281281
* Convert a LIFT range to an option list of the right code
282-
* Usage example: rangeToOptionList($projectModel, 'grammatical-info', 'Grammatical Category', $liftRanges['grammatical-info'])
282+
* Usage example: rangeToOptionList($projectModel, 'grammatical-info', 'Part of Speech', $liftRanges['grammatical-info'])
283283
* @param LexProjectModel $projectModel
284284
* @param string $optionListCode
285285
* @param string $optionListName

src/Api/Model/Languageforge/Lexicon/LexCommentFieldReference.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
class LexCommentFieldReference extends ObjectForEncoding
88
{
9-
/** @var string */
9+
/** @var string - the field name e.g. "lexeme" */
1010
public $field;
1111

12-
/** @var string */
12+
/** @var string - the field name for display e.g. "Word" */
1313
public $fieldNameForDisplay;
1414

1515
/** @var string */
@@ -21,9 +21,11 @@ class LexCommentFieldReference extends ObjectForEncoding
2121
/** @var string */
2222
public $inputSystemAbbreviation;
2323

24-
/** @var string */
24+
// The EntryContext and SenseContext are strings storing the value of the effective "word" (the entry context) and "meaning" (the sense context) at the time the comment was made
25+
26+
/** @var string - the "Word" value of the entry at comment time */
2527
public $word;
2628

27-
/** @var string */
29+
/** @var string - the "Meaning" value of the entry at comment time */
2830
public $meaning;
2931
}

src/angular-app/bellows/apps/activity/activity-container.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Activity {
9393
if (index.includes('#examples')) {
9494
label = 'Example - ' + label;
9595
} else if (index.indexOf('#examples')) {
96-
label = 'Sense - ' + label;
96+
label = 'Meaning - ' + label;
9797
}
9898
return label;
9999
}
@@ -109,7 +109,7 @@ class Activity {
109109
label = 'Example ' + fieldLabel.example + (label !== 'examples' ? ' ' + label : '');
110110
}
111111
if (fieldLabel.sense) {
112-
label = 'Sense ' + fieldLabel.sense + (label !== 'senses' ? ' ' + label : '');
112+
label = 'Meaning ' + fieldLabel.sense + (label !== 'senses' ? ' ' + label : '');
113113
}
114114
return label;
115115
}

src/angular-app/bellows/core/offline/editor-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class EntryListModifiers {
5656
filterText = () => this.filterBy && this.filterBy.text || '';
5757
filterByLabel = () => this.filterBy && this.filterBy.option && this.filterBy.option.label || '';
5858
filterActive = () => !!(this.filterText() || this.filterBy && this.filterBy.option);
59-
sortOptionLabel = (s: string) => s === 'Default' ? `Default (${this.filterText() ? 'Relevance' : 'Lexeme Form'})` : s;
59+
sortOptionLabel = (s: string) => s === 'Default' ? `Default (${this.filterText() ? 'Relevance' : 'Word'})` : s;
6060
}
6161

6262
const entriesIncrement = 50;

src/angular-app/languageforge/lexicon/editor/field/dc-entry.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<dc-fieldrepeat config="$ctrl.config" model="$ctrl.model" control="$ctrl.control" parent-context-guid="$ctrl.contextGuid"></dc-fieldrepeat>
1818
</div>
1919
</div>
20-
21-
<div data-ng-if="$ctrl.control.rights.canEditEntry() && isAtEditorEntry()" class="addItem topAddMeaning">
22-
<a class="btn btn-sm btn-std" data-ng-click="$ctrl.addSense(0)"><i class="fa fa-plus"></i> Add Sense</a>
20+
<!-- Place links to "Add Meaning" at the top and bottom of the senses so users can easily find them -->
21+
<div data-ng-if="$ctrl.control.rights.canEditEntry() && isAtEditorEntry()" class="addItem topAddMeaning">
22+
<a class="btn btn-sm btn-std" data-ng-click="$ctrl.addSense(0)"><i class="fa fa-plus"></i> Add Meaning</a>
2323
</div>
2424
<div data-ng-if="$ctrl.config.fields.senses.fieldOrder.length > 0">
2525
<!--suppress JSUnusedLocalSymbols -->
@@ -30,6 +30,6 @@
3030
</div>
3131
</div>
3232
<div data-ng-if="$ctrl.control.rights.canEditEntry() && $ctrl.isAtEditorEntry()" class="addItem">
33-
<a class="btn btn-sm btn-std" data-ng-click="$ctrl.addSense()"><i class="fa fa-plus"></i> Add Sense</a>
33+
<a class="btn btn-sm btn-std" data-ng-click="$ctrl.addSense()"><i class="fa fa-plus"></i> Add Meaning</a>
3434
</div>
3535
</div>

src/angular-app/languageforge/lexicon/editor/field/dc-entry.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export class FieldEntryController implements angular.IController {
5252
}
5353

5454
deleteSense = (index: number): void => {
55-
const deletemsg = 'Are you sure you want to delete the sense <b>\'' +
55+
const deletemsg = 'Are you sure you want to delete the meaning <b>\'' +
5656
LexiconUtilityService.getMeaning(this.control.config, this.config.fields.senses as LexConfigFieldList,
5757
this.model.senses[index]) + '\'</b>?';
58-
this.modal.showModalSimple('Delete Sense', deletemsg, 'Cancel', 'Delete Sense')
58+
this.modal.showModalSimple('Delete Meaning', deletemsg, 'Cancel', 'Delete Meaning')
5959
.then(() => {
6060
// Adding or removing senses makes for a non-delta update, so save a possible delta update first
6161
this.control.saveCurrentEntry(false, () => {

src/angular-app/languageforge/lexicon/editor/field/dc-sense.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="dc-sense card">
22
<div class="meaning-label card-header">
33
<div data-ng-if="$ctrl.control.rights.canEditEntry() && $ctrl.isAtEditorEntry()" class="d-flex align-items-center">
4-
Sense <span class="notranslate pl-1">{{$ctrl.index+1}}</span>
4+
Meaning <span class="notranslate pl-1">{{$ctrl.index+1}}</span>
55

66
<span class="flex-grow"></span>
77

0 commit comments

Comments
 (0)