[wp-meta] [Making WordPress.org] #7473: Some suggestions from the local glossary do not appear
Making WordPress.org
noreply at wordpress.org
Fri Feb 16 11:18:40 UTC 2024
#7473: Some suggestions from the local glossary do not appear
--------------------------------------+---------------------
Reporter: Marc4 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Resolution:
Keywords: |
--------------------------------------+---------------------
Comment (by pedromendonca):
I've found the cause of part of what you report.
**Description of the current glossary match logic:**
For any types of glossary items (part of speech), if the entry has
multiple words won't try to add any suffixes, and is immediately added to
the glossary list.
**The problem:**
If is a single word, currently it will only be added if there are rules
for suffixes, which is wrong. Even if there isn't any rule, at least the
exact word should be added. (Fixing it as we speak).
This seems to fix the cases for "Welcome", "please", "your" and "sorry"
for other than nouns and verbs, which are the ones that currently have
rules for matching suffixes
(https://github.com/GlotPress/GlotPress/blob/develop/gp-templates/helper-
functions.php#L87).
For the other cases with hyphen, I didn't understood, could you show some
examples please?
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7473#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list