Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-13152: Special purpose language: No linguistic content (zxx) #2973

Merged
merged 1 commit into from Jul 4, 2023
Merged

MBS-13152: Special purpose language: No linguistic content (zxx) #2973

merged 1 commit into from Jul 4, 2023

Conversation

jesus2099
Copy link
Contributor

@jesus2099 jesus2099 commented Jul 1, 2023

Goes along MBS-13152

  • Like [Artificial (Other)] (qaa)
  • Like [Multiple languages] (mul)
  • Like [No lyrics] (same zxx)

No linguistic language (zxx) should be renamed to [No linguistic language] (zxx) and should thus appear in release language list (select combo) after [Multiple languages] (Frequently used) [Artificial (Other)], instead of between Niuean and Nogai.

I guess it also requires a Database edit of the stored label in languages table.

Maybe I am missing some files.

@reosarevok
Copy link
Member

reosarevok commented Jul 1, 2023

For what it's worth, the po files should not be changed by hand, and the language renaming, if we decide to do it, should be done by an admin via the site (languages are not hardcoded in code).

Is there a ticket and/or forum thread for this with any specific discussion?

@jesus2099
Copy link
Contributor Author

I have created https://tickets.metabrainz.org/browse/MBS-13152 for this, then.
Are there any files that should be kept in this PR or do I cancel it?

Copy link
Member

@reosarevok reosarevok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to tests seem fine if we change the name from the DB, but I think everything else is unwanted.

admin/SetLanguageFrequencies Outdated Show resolved Hide resolved
@jesus2099
Copy link
Contributor Author

I have removed *.po files from PR and reverted admin/SetLanguageFrequencies.
Now there are only 3 file changes remaining:

  • po/languages.pot
  • t/lib/t/MusicBrainz/Server/Controller/WS/js/Edit.pm
  • t/sql/initial.sql

Maybe the .pot file should not be changed either?

@reosarevok
Copy link
Member

Yes, the .pot file is also for translations and will be changed automatically.

@jesus2099
Copy link
Contributor Author

I see I forgot a po/languages_notrim.pot.
I have reverted po/languages.pot now there are only 2 remaining changes:

  • t/lib/t/MusicBrainz/Server/Controller/WS/js/Edit.pm
  • t/sql/initial.sql

Are they OK?
If so, I have another PR where I must do some squash, so I will have to re-learn how to do that shortly and I will be able to make those 2 commits (more easy to follow-up now) into only 1.

Like [Artificial (Other)] (qaa)
Like [Multiple languages] (mul)
Like [No lyrics] (same zxx)

No linguistic language should be renamed to [No linguistic language] and
should appear in release language list (select combo)
after [Artificial (Other)] instead of between Niuean and Nogai
@jesus2099
Copy link
Contributor Author

I have changed 2 commits into 1.

@reosarevok reosarevok marked this pull request as ready for review July 4, 2023 06:44
Copy link
Member

@reosarevok reosarevok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good now I think.

@reosarevok reosarevok merged commit 84315ff into metabrainz:master Jul 4, 2023
2 checks passed
reosarevok added a commit that referenced this pull request Jul 4, 2023
* master:
  Special purpose language: No linguistic content (zxx) (#2973)
  MBS-13130: Use new pencil icon (#2970)
  MBS-13131: Move staticbrainz to static.metabrainz for instruments (#2967)
  Use Perl::Critic::Moose::RequireCleanNamespace (#2702)
  Add tests for who can add edit notes
  Use $edit_id over $edit->id
  Remove useless newline
  Simplify and better document email test
  Separate the transaction test
  Get rid of too long lines in note-adding test
  Use the standard $c->model syntax in Vote/EditNote tests
  Split all into two separate thematic tests
  Test more cases where voting should be blocked
  Slight improvements to test labels
  Split all into two separate thematic tests
  Get rid of too long lines in expiration test
  Move all no-vote email testing into the email test
  Use $edit_id rather than doing $edit->id every time
  Use $c over $test->c for brevity
  Move vote stats check to own subtest
  MBS-13100: Readd beginner voting restrictions
  Follow Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap with exceptions
  Follow Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap
  Add Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidGrep
  Move isShortenedUrl.js test to its own file
  Move formatSetlist.js test to its own file
  Improve test labels for fullwidthLatin tests
  Allow null and undefined in fullwidthLatin functions
  Separate fullwidthLatin tests for each function
  Move fullwidthLatin.js tests to their own file
  Tighten the Flow requirements for formatUserDate
  Move formatUserDate.js tests to their own file
  Fix eslint issues in areDatesEqual test
  Move areDatesEqual.js tests to their own file
  Amend test that was forbidden by Flow
  Fix eslint issues in compareDates test
  Move compareDates.js tests to their own file
  Fix eslint issues in formatDatePeriod test
  Move formatDatePeriod.js tests to their own file
  Allow undefined day / month / year and PartialDate in Flow
  Fix eslint issues in formatDate test
  Move formatDate.js tests to their own file
  Fix eslint issues in parseDate test
  Move parseDate.js tests to their own file
  Fix eslint issues in formatTrackLength test
  Move formatTrackLength.js tests to their own file
  Fix flow issues in age test
  Fix eslint issues in age test
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitStringySplit
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitReverseSortBlock
  Remove unneeded my
  MBS-12026: Still change deleted editor votes if they lack privs
  MBS-12942: Also indicate if target has pending edits in rels editor
  MBS-12942: Use new pending edits for rel icon
  MBS-12951: Use new + and x icons (#2964)
  MBS-13119: Readd anchor link to CDTocReleaseList (#2961)
  Move age.js tests to their own file
  Allow undefined day / month / year in Flow
  Fix eslint issues in dates test
  Move dates.js tests to their own file
  Remove Entity::CoreEntity (#2960)
  Add missing Role::CSRFToken to Form::User::Contact
  MBS-12660: Convert user contact form to React
@jesus2099 jesus2099 changed the title Special purpose language: No linguistic content (zxx) MBS-13152: Special purpose language: No linguistic content (zxx) Jul 4, 2023
@jesus2099 jesus2099 deleted the no-linguistic-content_is_a_special-purpose-language branch July 4, 2023 22:37
reosarevok added a commit that referenced this pull request Jul 10, 2023
* beta:
  Fix release search log flood since commit e38d8e9 (#2978)
  Drop decoda.com from malware domain list
  Special purpose language: No linguistic content (zxx) (#2973)
  MBS-13130: Use new pencil icon (#2970)
  MBS-13131: Move staticbrainz to static.metabrainz for instruments (#2967)
  Use Perl::Critic::Moose::RequireCleanNamespace (#2702)
  Add tests for who can add edit notes
  Use $edit_id over $edit->id
  Remove useless newline
  Simplify and better document email test
  Separate the transaction test
  Get rid of too long lines in note-adding test
  Use the standard $c->model syntax in Vote/EditNote tests
  Split all into two separate thematic tests
  Test more cases where voting should be blocked
  Slight improvements to test labels
  Split all into two separate thematic tests
  Get rid of too long lines in expiration test
  Move all no-vote email testing into the email test
  Use $edit_id rather than doing $edit->id every time
  Use $c over $test->c for brevity
  Move vote stats check to own subtest
  MBS-13100: Readd beginner voting restrictions
  Follow Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap with exceptions
  Follow Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap
  Add Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidGrep
  Move isShortenedUrl.js test to its own file
  Move formatSetlist.js test to its own file
  Improve test labels for fullwidthLatin tests
  Allow null and undefined in fullwidthLatin functions
  Separate fullwidthLatin tests for each function
  Move fullwidthLatin.js tests to their own file
  Tighten the Flow requirements for formatUserDate
  Move formatUserDate.js tests to their own file
  Fix eslint issues in areDatesEqual test
  Move areDatesEqual.js tests to their own file
  Amend test that was forbidden by Flow
  Fix eslint issues in compareDates test
  Move compareDates.js tests to their own file
  Fix eslint issues in formatDatePeriod test
  Move formatDatePeriod.js tests to their own file
  Allow undefined day / month / year and PartialDate in Flow
  Fix eslint issues in formatDate test
  Move formatDate.js tests to their own file
  Fix eslint issues in parseDate test
  Move parseDate.js tests to their own file
  Fix eslint issues in formatTrackLength test
  Move formatTrackLength.js tests to their own file
  Fix flow issues in age test
  Fix eslint issues in age test
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitStringySplit
  Follow Perl::Critic::Policy::BuiltinFunctions::ProhibitReverseSortBlock
  Remove unneeded my
  MBS-12026: Still change deleted editor votes if they lack privs
  MBS-12942: Also indicate if target has pending edits in rels editor
  MBS-12942: Use new pending edits for rel icon
  MBS-12951: Use new + and x icons (#2964)
  MBS-13119: Readd anchor link to CDTocReleaseList (#2961)
  Move age.js tests to their own file
  Allow undefined day / month / year in Flow
  Fix eslint issues in dates test
  Move dates.js tests to their own file
  Remove Entity::CoreEntity (#2960)
  Add missing Role::CSRFToken to Form::User::Contact
  MBS-12660: Convert user contact form to React
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants