Closed wppunk closed 2 years ago
i18n functions for the file wpforms-some-addon-name/some-directory/some-file.php should have the wpforms-some-addon domain.
wpforms-some-addon-name/some-directory/some-file.php
wpforms-some-addon
Config:
<config name="multi_domains" value="true"/> <rule ref="WPForms.PHP.ValidateDomain"> <properties> <property name="wpforms-lite" value="wpforms"/> <property name="wpforms" value="wpforms/pro/,wpforms/src/Pro/"/> </properties> </rule>
i18n functions for the file wpforms-some-addon-name/some-directory/some-file.php have the wpforms-lite domain.
wpforms-lite
We should fix the algorithm for detecting rewritten domains. Fix the findDomainByProperty method by adding an additional slash at the end.
Expected Behavior
i18n functions for the file
wpforms-some-addon-name/some-directory/some-file.php
should have thewpforms-some-addon
domain.Current Behavior
Config:
i18n functions for the file
wpforms-some-addon-name/some-directory/some-file.php
have thewpforms-lite
domain.Possible Solution
We should fix the algorithm for detecting rewritten domains. Fix the findDomainByProperty method by adding an additional slash at the end.
Steps to Reproduce
wpforms-some-addon-name/some-directory/some-file.php