MutationDigitale / craft3-translate

Craft CMS plugin for static translations in CP
Other
12 stars 7 forks source link

0 Translations migrated from PHP translation files #31

Closed Stalex89 closed 3 years ago

Stalex89 commented 3 years ago

I was trying to migrate the existing PHP translation files to the plugin, however it migrates 0 translations.

I have the following structure: Screenshot 2021-08-11 at 14 29 18

And the files are not empty as well: Screenshot 2021-08-11 at 14 29 40

Screenshot of the result: Screenshot 2021-08-11 at 14 17 46

Plugin settings:

Screenshot 2021-08-11 at 14 31 59

Can you please fix it ? Thank you

Craft version: Craft Pro 3.7.4 Php version: 7.3.29 Database version: MySQL 5.7.34 Plugin version : 2.4.4

smcyr commented 3 years ago

The categories should be only "site" and "app" without the "en/". The language shouldn't be included in the category. And is the language of your site "en" only or something like "en-US" ?

Stalex89 commented 3 years ago

@smcyr thank you for your tips, I removed the "en/" from categories and changed the site Language from "en-US" to "en" and it worked for me 👍
So I think the ticket can be closed.

Screenshot 2021-08-11 at 17 08 41

Screenshot 2021-08-11 at 17 09 19