After removing disabled modules in #1199946: Disabled modules are broken beyond repair so the "disable" functionality needs to be removed the option to check for translation updates of disabled modules doesn't make sense anymore. The translation of an uninstalled module will be updated when the module will be enabled anyway. Therefore it is obsolete to check for translation updates of modules in between.

Talking to Gábor we figured that updating the translation of disabled themes doesn't really cover a common - if any - use case.

The option " Check for updates of disabled modules and themes" on the user interface translation settings page and related functionality should be removed therefore.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Yeah uninstalled modules seem to be foolish to cover, that was definitely not the original intention.

fubhy’s picture

Yep. I think we even temporarily removed this in the patch for https://drupal.org/node/1199946 but then purged that from the patch as we were not sure about it and didn't want to increase the size of the patch even further and give more room for controversies. Thinking about it again though it's definitely something we can remove as it makes zero sense. We actually changed the functionality of this with https://drupal.org/node/1199946 as it now covers "uninstalled" modules (which is something it didn't do before). So we really should've removed it with that patch...

So definitely +1 from me.

Gábor Hojtsy’s picture

Status: Active » Needs review
Issue tags: +language-ui
FileSize
6.15 KB

Talked to @Sutharsan and he liked the idea of this issue. Here is an initial patch. I looked at removing the setting and all related code. Then looked at whether the project status column should be removed from the database (and all code maintaining that). *However* locale is additive. Translation files are imported but when a module is uninstalled, we don't remove the translations. So it makes most sense to keep the project status / file status information, so if you reinstall a module, we know if the translation needs an update or not. The translations will be in the database the whole time.

So only removing the option and the conditions around it and keeping the filter to only check for installed/enabled projects.

Status: Needs review » Needs work

The last submitted patch, 3: remove-check-disabled.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review

3: remove-check-disabled.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 3: remove-check-disabled.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review

3: remove-check-disabled.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 3: remove-check-disabled.patch, failed testing.

k4v’s picture

I just looked into this, not shure why this fails. Will do some more debugging tomorrow, Test runs locally for 15 mins... :/

k4v’s picture

Status: Needs work » Needs review

3: remove-check-disabled.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 3: remove-check-disabled.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review
FileSize
4.77 KB

Re-rolling...

Status: Needs review » Needs work

The last submitted patch, 12: 2143093-remove-translation-12.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review
FileSize
5.61 KB
1.26 KB

Seems the config save hasn't been saving inside switch().

The last submitted patch, 14: 2143093-remove-translation-14.patch, failed testing.

vijaycs85’s picture

Removing the test case related to disabled module check...

fubhy’s picture

Status: Needs review » Reviewed & tested by the community

Thanks Vijay!

I think we should to update the disabled modules removal change notice for this one.

Gábor Hojtsy’s picture

Oh great find, that since we removed the config change for the disabled modules, the prior settings were not saved either :D Haha. +1 on RTBC.

Gábor Hojtsy’s picture

Issue tags: +Vienna2013
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Great clean-up!

Committed and pushed to 8.x. Thanks!

Gábor Hojtsy’s picture

Issue tags: -sprint

Yay for more consistency :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

asb’s picture

Are there any plans to backport the "Remove translation update for uninstalled modules and themes" functionality to D6/D7?

Should I open a new issue for this question?

Thanks!

kopeboy’s picture

Version: 8.0.x-dev » 7.x-dev
Status: Closed (fixed) » Needs work

Please can we have this backported to Drupal 7?

The locales tables are around 20% of the database size of any website I make, and 90% of those string are useless to me, i.e. string that I don't need to translate but where created and imported automatically.

Not counting the performance hit...

  • webchick committed da7d7a9 on 8.4.x
    Issue #2143093 by vijaycs85, Gábor Hojtsy | ti2m: Remove translation...

  • webchick committed da7d7a9 on 8.4.x
    Issue #2143093 by vijaycs85, Gábor Hojtsy | ti2m: Remove translation...
Gábor Hojtsy’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.