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

Change bibliography menu link for dictionaries #721

Open
peteroatley opened this issue Sep 26, 2024 · 2 comments
Open

Change bibliography menu link for dictionaries #721

peteroatley opened this issue Sep 26, 2024 · 2 comments
Assignees
Labels
high priority Something that should be given priority in fixing or implementing

Comments

@peteroatley
Copy link
Collaborator

peteroatley commented Sep 26, 2024

Linked to #697.

Existing dictionaries need the following link update in their Menu.

https://www.sil.org/search/node/xxx

to

https://www.sil.org/resources/search/language/xxx

Where xxx is the language code.

The link is under Languages->Bibliography. Not all dictionaries have this menu item.
Image

The link will also need changing for other languages e.g. French, Spanish, etc.

Spanish link is under Lengua->Bibliografía
Image

I don't know how easy it is to change the link for other languages, so the priority is to change it for English. However, there are several languages used in a number of websites which it would be good to do. If we need menu translations for each language, I can provide these.

Here is a link to the menu:

https://www.webonary.org/komo/wp-admin/nav-menus.php

@peteroatley peteroatley added the high priority Something that should be given priority in fixing or implementing label Sep 26, 2024
@phillip-hopper phillip-hopper self-assigned this Oct 16, 2024
@phillip-hopper
Copy link
Collaborator

Image

@phillip-hopper
Copy link
Collaborator

SELECT meta_value,
       REGEXP_REPLACE(meta_value, 'https?://.*sil.org/search/node/([a-zA-Z]+)', 'https://www.sil.org/resources/search/language/\\1')
FROM webonary.wp_490_postmeta
WHERE meta_value LIKE '%sil.org/search/node%'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Something that should be given priority in fixing or implementing
Projects
Status: Done - Working in Prod
Development

No branches or pull requests

2 participants