Skip to content

Commit

Permalink
MBS-13802: Always use "Created (in)" for characters
Browse files Browse the repository at this point in the history
We changed this for sidebar display for Created a while ago, but I missed
the artist editor, and area should use Created in for consistency.
  • Loading branch information
reosarevok committed Oct 31, 2024
1 parent 7cc03f9 commit cd35506
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions root/artist/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export function artistBeginAreaLabel(typeId: ?number): string {
case 5:
case 6:
return addColonText(lp('Founded in', 'group artist'));
case 4:
return addColonText(lp('Created in', 'character artist'));
default:
return addColonText(l('Begin area'));
}
Expand Down
14 changes: 14 additions & 0 deletions root/static/scripts/edit/MB/Control/ArtistEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ MB.Control.ArtistEdit = function () {
* Unknown: 0
* Person: 1
* Group: 2
* Character: 4
* Orchestra: 5
* Choir: 6
*/
Expand Down Expand Up @@ -70,6 +71,19 @@ MB.Control.ArtistEdit = function () {
self.disableGender();
break;

case '4':
self.changeDateText(
addColonText(lp('Created', 'character artist')),
addColonText(lp('Ended', 'artist end date')),
l('This artist has ended.'),
);
self.changeAreaText(
addColonText(lp('Created in', 'character artist')),
addColonText(l('End area')),
);
self.enableGender();
break;

case '0':
default:
self.changeDateText(
Expand Down

0 comments on commit cd35506

Please sign in to comment.