Plugin impossible to translate
Home › WPAli Support Forums › WooCommerce Drag & Drop Image Upload › Plugin impossible to translate
- This topic has 25 replies, 2 voices, and was last updated 5 years, 5 months ago by Ali Khallad.
-
AuthorPosts
-
July 11, 2019 at 12:45 pm #839ArnaudParticipant
still the same problem on version 1.0.5 I have the following message on Locotranslate
Missing model
This package does not define a translation model.Can not translate to Poedit.
Try translating from your side with the free LocoTranslate plugin or the Poedit paid software, you’ll see it’s impossible
July 11, 2019 at 12:48 pm #840Ali KhalladKeymasterCan you take a screenshot?
July 11, 2019 at 5:22 pm #841ArnaudParticipantI can not send you the file.
This is what the message says about Poedit:
Failed to fetch WordPress information.
• The “WooCommerce Drag & Drop Uploader” extension is not ready for localization.
Please send an email to help@poedit.net so we can fix this problem.
And if I click on see the log :
Veuillez envoyer ce log par e-mail à help@poedit.net. Merci !
*** Please attach a ZIP with the plugin/theme folder. ******
WordPress error: L’extension « WooCommerce Drag & Drop Uploader » n’est pas prête pour la localisation.
Name: ‘WooCommerce Drag & Drop Uploader’Analyzing WP directory /Users/Sanchez/Downloads/wpali-wc-drag-drop-uploader
not theme – lacks style.css
in /Users/Sanchez/Downloads/wpali-wc-drag-drop-uploader/wpali-wc-drag-drop-uploader.php: header « Plugin Name » = « WooCommerce Drag & Drop Uploader »
/Users/Sanchez/Downloads/wpali-wc-drag-drop-uploader/wpali-wc-drag-drop-uploader.php is the main plugin file
in /Users/Sanchez/Downloads/wpali-wc-drag-drop-uploader/wpali-wc-drag-drop-uploader.php: header « Text Domain » = « wpali-wc-drag-drop-uploader »
no load_plugin_textdomain call and lacking metadata
some work is probably required to make the PHP code localization-ready
see https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/I managed to force on Loco Translate but the translation is not displayed.
I would like to be able to translate what the customer sees in French
July 12, 2019 at 6:25 am #842ArnaudParticipantHello,
Please use a translation tool such as Poedit.
I do not ask you to do the translation but by testing, you will see that there is a problem.
Best regards,
Arnaud
July 12, 2019 at 12:04 pm #843Ali KhalladKeymasterMove the translation files to this location: /wp-content/languages/loco/plugins (there is an option for that in loco)
then add this code to your child theme functions.php
/** * Load plugin textdomain. */ add_action( 'init', 'wcdragndrop_load_textdomain' ); function wcdragndrop_load_textdomain() { $path = ABSPATH . '/wp-content/languages/loco/plugins'; load_plugin_textdomain( 'wpali-wc-drag-drop-uploader', false, $path ); }
This is test and working, so please make sure you use the exact code + the path shared above to save the translation files.
July 13, 2019 at 10:36 am #844ArnaudParticipantHello,
I followed your path but it stops in “languages”.
Files “Loco” and “Plugins” were not found.
I managed to create my translation file in French from the folder of your application on my FTP server.
However, it does not apply.
With the other authors it’s very simple, I take the pluglin and I translate it with Poedit before putting it on my site in .zip
Can you find a solution?
Normally it is simple, I have never had problems.
Best regards
July 13, 2019 at 11:07 am #845Ali KhalladKeymasterYou haven’t created a template file in that directory. Anyway, I have added the code and template file in the plugin, now it should work directly as any other plugin.
Please make sure to install latest version 1.0.6
July 13, 2019 at 11:56 am #846ArnaudParticipantThank you, actually the translation of the plugin works normally.
But with all that happened before this one does apply.
How much do you charge to solve this problem?
July 13, 2019 at 11:58 am #847Ali KhalladKeymasterGood to hear it works for you, this is free of charge.
If you need custom work use the custom work button at the top or reach out via contact form.July 13, 2019 at 12:13 pm #848ArnaudParticipantSorry, I did not express myself well.
Yes I can translate the plugin and I did it.
No the translation does not appear.
I just want to posted in French “Drop Images Here, Or Browse …”
I think this is due to the problem with the translation file.
That’s why I asked you if you can fix directly on my site.
July 13, 2019 at 12:15 pm #849Ali KhalladKeymasterOk, can you share login details here: support@wpali.com
-
AuthorPosts
- You must be logged in to reply to this topic.