I could really use a Drupal 7 version of this module. Sadly I am not a programmer, so I can't do it myself, and this module seems to be abandoned by the maintainer.

Has anyone found a way to accomplish the "Use current language ; if not available use original language" feature in Drupal 7 with the latest i18n tools? I'm having the problem described in http://groups.drupal.org/node/21055

If I come up with a solution, I'll post it here.

CommentFileSizeAuthor
#1 select_translation_d7.tar_.gz7.97 KBcitronica

Comments

citronica’s picture

Title: Is there any way to do this in D7? » Here's a D7 version
StatusFileSize
new7.97 KB

My programmer husband took pity on me and created a D7 version. Be sure to rename the tar file so it ends with "tar.gz" (the drupal.org uploader automatically renamed it for security reasons).

Once you install it, you'll find the filter in Views under "Content: Select translation".

hbfkf’s picture

Great, works like a charm for me on Drupal 7.4. Thanks!

peteruithoven’s picture

It works so I'm very grateful for that. But it does have a few quirks.
After changing the Language priorities, submitting them and then reopening the filter they are not shown anymore.
Also when I first added the filter it didn't show the Select translation selection modes, they showed up after reopening the filter.

Toxid’s picture

@citronica, Many thanks to you and your husband!

@peteruithoven, It doesn't behave that way for me. Perhaps it's a browser issue?

lolandese’s picture

Status: Active » Needs review

Adjusted status. Please test and give feedback on #1...and of course...many thanks to citronica's husband.

rv0’s picture

Been using it for quite a while actually.

botris’s picture

Status: Needs review » Reviewed & tested by the community

Great, confirm it is working. Thanks to Citronica's programming husband.

nils.destoop’s picture

Little bug found when using own language priorities. The priority is not beïng saved then.

in select_translation_filter_handler.inc following option should be added in option_definition().

$options['priorities']['default'] = '';

anou’s picture

Thanks a lot for this ! Just what I need it.

gggdrpl’s picture

Just what I was looking for!!! Thanks for sharing, citronica!!!

lolandese’s picture

Any chance on getting this committed?

lolandese’s picture

Title: Here's a D7 version » Select translation: D7 version

Changed title to make it more distinctive in the "Track posts" block on the dashboard.

friera’s picture

Issue summary: View changes

It works well for me.

Any plans to create a branch of the drupal 7 version based in this source code?

rv0’s picture

@friera
the maintainer seems to have disappeared, so if anyone wants to maintain a D7 version they should try taking over/co maintaining it.

alcroito’s picture

If anyone needs a remote url where the D7 project is hosted, they can use the repository I created.

It contains the code from the initial archive + zuuperman's #8 quickfix.

It also includes a rewritten views filter handler, that uses a clean left join-based solution instead of dependent sub-queries which should make the query execution much faster for databases with a lot of nodes.

https://github.com/Placinta/select_translation

alcroito’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Released as separate branch.