Skip to content

Change and add entries to language_map to handle the corrected Burmese 3-character language code #10671

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

Conversation

QuangPhung15
Copy link
Contributor

@QuangPhung15 QuangPhung15 commented Apr 10, 2025

Required #10519

This PR changed the 3-character code of Burmese from mya to bur because OL does not accept import with language code mya.

"error": "invalid language code: 'mya'"

This fix will help not only import 4k books from the Ebook Foundation but also all the future books imported in OL.

Technical

Testing

Run the tests.

Screenshot

Screenshot 2025-04-10 at 1 41 24 PM

This is just an example book import with bur language code (not an actual book).

Stakeholders

@mekarpeles

@QuangPhung15 QuangPhung15 marked this pull request as ready for review April 10, 2025 18:00
Copy link
Collaborator

@hornc hornc left a comment

Choose a reason for hiding this comment

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

This looks good to me.

It conforms to the LOC language codes where bur is recognised https://www.loc.gov/marc/languages/language_code.html#b

but mya is not: https://www.loc.gov/marc/languages/language_code.html#m

OL currently uses the LOC codes rather than ISO 639-3 , but it should be able to recognise the mya code and convert it, as this PR does.

@mekarpeles mekarpeles merged commit e3f92ef into internetarchive:master Apr 14, 2025
4 checks passed
@mekarpeles mekarpeles assigned hornc and unassigned cdrini Apr 14, 2025
@QuangPhung15 QuangPhung15 deleted the 10519/fix/Change_Burmese_language_code_from_mya_to_bur branch April 21, 2025 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants