translating-qml icon indicating copy to clipboard operation
translating-qml copied to clipboard

Not working on Mac

Open amit-bst opened this issue 5 years ago • 8 comments

I have not looked at the code but i simply imported to Qt Creator and ran but it always shows "Failed to load translation file, falling back to English"

I have not tested this on windows

amit-bst avatar Jun 16 '20 07:06 amit-bst

I have tested on windows now and its not working on that too.

amit-bst avatar Jun 16 '20 07:06 amit-bst

The article linked in the README.md might have some more steps which you could've missed. If not, then perhaps something changed in the Qt code over the past 3 years.

retifrav avatar Jun 16 '20 07:06 retifrav

Yes i saw the article as well and followed it but that also gives the same result. Yes something might have changed so i just want to let you know if you can fix it.

amit-bst avatar Jun 16 '20 07:06 amit-bst

I am using Qt 5.12.7

amit-bst avatar Jun 16 '20 07:06 amit-bst

Yes, would be nice to check what might be wrong, but sadly I have absolutely no free time at the moment, so that's unlikely to happen in the nearest future.

retifrav avatar Jun 16 '20 08:06 retifrav

Not an issue at all but just created a issue to let you and others know. Thanks

amit-bst avatar Jun 17 '20 10:06 amit-bst

Hey @amit-bst, could you check 2 things for me?

  1. In your i18n folder, what files do you have? 2.When you uncomment 23. line in trans.cpp what does it say? Is it the same path as to your i18n folder?

saNidzom avatar Jul 29 '20 23:07 saNidzom

This is not an issue on the Windows machine. At least not a big issue. First, you have to run Tools>External>Linguist>Release Translations (lrelease). That will create .qm files from .ts files that are located in the i18n folder. Now, you have 2 options, edit code (QDir - path), or Copy/Paste i18n folder to location that's printed by qDebug() << dir.path();.

Best regards, and good luck :)

saNidzom avatar Jul 29 '20 23:07 saNidzom