Duplication of phrases when installing extras
If xml file has a record like
<phrase category="frontend" key="slogan">...
and this phrase already exists in the database, the script will add the phrase anyway.
So, it will have 2 identical phrases.
If duplicate phrase is met it should replace existed one.
Updated by Batyr Mackenov over 7 years ago
- Status changed from New to Closed
The way of script currently handles phrases to be added is right.
There is a unique index that simply does not allow the duplicate phrase to be added to DB.
It is ok that the phrase has been added since it specifies a plugin the phrase belongs to. Because the existing slogan phrase has the extras field equal to '' (empty string) and the newly added phrase contains the plugin name in this field, it is right that the phrase has been added. This behavior allows to have distinct translations for different plugins (packages) in case of same phrase keys.