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

Fix « Name » ZiM metadata #208

Merged
merged 1 commit into from
Mar 5, 2023
Merged

Fix « Name » ZiM metadata #208

merged 1 commit into from
Mar 5, 2023

Conversation

pavel-karatsiuba
Copy link
Collaborator

With this PR the Name metadata changes to fit the Naming convention. This is the pattern: {project}_{lang}_{selection}.
For phet the project part is equal to 'phets', lang is equal to the language abbreviation in iso-693-1 for multilingual is mul, and selection is equal to 'all'.
Examples: phets_mul_all, phets_en_all, phets_fr_all

Fix: #205

Copy link
Contributor

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

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

Don’t have tested it, but otherwise looks good.

@kelson42 kelson42 merged commit eb6cfd8 into main Mar 5, 2023
@kelson42 kelson42 deleted the metadata-name branch March 5, 2023 10:54
@kelson42 kelson42 changed the title Use iso-639-1 as "Name" metadata Fix « Name » ZiM metadata Mar 5, 2023
@@ -169,11 +171,11 @@ const exportTarget = async (target: Target, bananaI18n: Banana) => {
{
fileName: `./dist/${target.output}.zim`,
welcome: 'index.html',
fullTextIndexLanguage: languageCode,
fullTextIndexLanguage: iso6393LanguageCode,
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be getISO6393(target.languages[0]) instead? I think iso6393LanguageCode would contain mul which would disturb indexing.

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.

Incorrect Name metadata
3 participants