8000 bug: ENG-17965 - fix language code mapping by mkante-lilt · Pull Request #26 · lilt/tmgmt_lilt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bug: ENG-17965 - fix language code mapping #26

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

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

mkante-lilt
Copy link
Contributor

Add Language code mapper for Drupal code zh to Lilt code zt

@mkante-lilt mkante-lilt changed the title bug/ENG-17965 - fix language code mapping bug: ENG-17965 - fix language code mapping Oct 18, 2024
Copy link
Collaborator
@tgallant tgallant left a comment

Choose a reason for hiding this comment

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

LGTM.

it might be worth adding some more mappings in there that we know will be a problem later. for example i think we should probably add in all of these number mappings in now.

we have to publish new versions of the plugin and users have to upgrade to get the changes so might as well put some more mappings in there now rather than needing to republish again later.

Screen Shot 2024-10-18 at 1 49 38 PM

@tgallant
Copy link
Collaborator

@mkante-lilt one other question i have here is why this "Remote Language Mapping" option doesn't work in this case? in theory this should allow us to map things the way we want. if there is a bug in that implementation maybe it is worth fixing that instead.

Screen Shot 2024-10-18 at 1 53 52 PM

@mkante-lilt
Copy link
Contributor Author

@tgallant I didn't find a Drupal equivalent code name for those languages you mentioned Hijazi, Najdi, etc....
Although I found a section where user can add custom languages under admin/config/regional/language/add
Screenshot 2024-10-21 at 2 26 08 PM

Copy link
Collaborator
@tgallant tgallant left a comment

Choose a reason for hiding this comment

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

@mkante-lilt sounds good. i think we can keep it like this for now then. after this PR is merged we will have to follow these steps to publish a new release https://github.com/lilt/lilt_drupal_env?tab=readme-ov-file#creating-releases

@mkante-lilt mkante-lilt merged commit 8ca44e4 into 8.x-1.x Oct 21, 2024
@@ -18,6 +18,10 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;

const DRUPAL_LANG_FILTER_MAP = [
'zh' => 'zt', // drupal language code ===> Lilt language code
Copy link
Contributor

Choose a reason for hiding this comment

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

@vvdanila @mkante-lilt i believe the issue is that we are switching simplified to traditional, so this update will make it so that only traditional memories will be show now
so it looks like this fixed being able to select traditional memories (original ticket) the new ticket is that we no longer can select simplified
i think the way to go is to show both, lilt zh and zt memories instead (or see if we can do the actual mapping with LILT codes)

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.

3 participants
0