-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add-on translations can not be used from installTasks #2715
Comments
Comment 1 by jteh on 2012-10-14 05:47 |
Comment 2 by ragb (in reply to comment 1) on 2012-10-14 10:42
I understand your point but (semantic arguing coming): I explicitly remove the add-on on the Another solution would be to have another variable, say pending-install-and-executing-install-tasks add-ons, (not with this naming for sure) and check also that in P.S. There is a strange log call on my patch that is not suposed to be there :). |
Comment 3 by ragb (in reply to comment 2) on 2012-10-14 10:45
Actualy only one add-on can be in this state at the same time :). |
Comment 4 by jteh on 2012-10-15 00:36
|
Comment 5 by ragb (in reply to comment 4) on 2012-10-15 20:19
Sure! :)
Oh, I forgot that on my last comment.
Ok. |
Comment 6 by ragb on 2012-10-16 10:07 To solve this I also temporarely add the add-on to |
Attachment addons-installTasks.patch added by ragb on 2012-10-16 10:08 |
Comment 7 by jteh on 2012-10-16 23:24
Thanks. |
Comment 8 by ragb on 2012-10-17 13:19 |
Reported by ragb on 2012-10-13 11:05
The add-on translation machhinery can not be used from installTasks module, due to the add-on beeing not present in available add-ons on
installTasks.onInstall
execute time. This means that the current add-on can not be found, soaddonHandler.initTranslation
can not instanciate the corrent gettext translation.Attached patch solves this issue, moving the insertion to
addonHandler._availableAddons
beforeinstallTasks.onInstall
execution. I can commit if agreed.The text was updated successfully, but these errors were encountered: