Trying out Translation for the first time, and was surprised to find... nothing.

A peek at the source code told me that there should be translation tabs on the node page, but they are not there.
A few quick dsm-s showed me that when the cache is cleared (devel/cache/clear/all),
$info['translation']['translation']['base path'] is not present, so the tabs don't get added.
I see the comment above that line telling me:

    // Menu is rebuilt while determining base paths so we might not have them
    // available yet.

but I'm not sure what I'm supposed to do about that.

Any ideas? Cheers!

CommentFileSizeAuthor
#7 1012054.patch915 bytesbojanz

Comments

bojanz’s picture

RC3 install. Updated it to the latest D7 dev, but still nothing.

I nailed the $path to 'node/%node', but found that the tabs still weren't there because translation_node_tab_access() returns FALSE, and it returns false because one of it's conditions is checking for variable_get('language_content_type_' . $type, 0) which is also FALSE (I see no option to enable when editing content types).

So, I'm officially confused :)

sun’s picture

bojanz’s picture

That was my thought as well, but the access code still seems just wrong. Seems to me that instead of translation_node_tab_access() the default should be _translation_node_tab_access()

Edit: with the access code fixed, the menu() problem doesn't matter, the Translate tabs show either way (with or without patch above).

plach’s picture

@bojanz:

I see no option to enable when editing content types

You should find multilingual options under the Publishing options tab.

bojanz’s picture

Status: Active » Fixed

Found it, and now it works despite the menu strangeness.
So the main problem was between the keyboard and the chair.
Guess a line in the README would help :)

Thank you for your help!

plach’s picture

Title: Translation tabs don't appear » Document how to make the "Translate" tab appear
Category: bug » task
Status: Fixed » Active
bojanz’s picture

Status: Active » Needs review
StatusFileSize
new915 bytes

Here's an attempted README patch. I'm not very good at this, but it's a start.

Also, here's Views support: #1006176: Add support for field based translation :)

Guillo’s picture

I'm sorry... I know the info on how to solve this problem is in this thread, but I'm afraid it all went a little bit over my head.
I have two problems, the first being the same as the OP's: I don't see the Translation options when going in as a user. Nada, 0, nothing at all. Would you mind spelling out the solution for someone who isn't really a programmer??
(I do English to Spanish Translation, and we are trying to separate that section of the main site into a completely new one... but I write content, I'm only on programmer duty cause my partner is on holidays, and I'm afraid I'm in over my head!!)
Thank you! Any other suggestions for the new site are welcome!

bojanz’s picture

Enable translation for the desired entity types at admin/config/regional/translation. Nodes should be enabled by default, I think.
If translating nodes, you need to set Multilingual support to "Enabled, with content translation" in settings for each content type.

(from my readme patch above)

sun’s picture

Component: User interface » Documentation

Related, but not the same: #1030038: Initial setup lacks UX

plach’s picture

Project: Content translation » Entity Translation
Version: 7.x-2.x-dev » 7.x-1.x-dev
plach’s picture

Status: Needs review » Needs work

Text needs to be updated after #11.

sun’s picture

Status: Needs work » Closed (duplicate)

Marking as duplicate of #1030038: Initial setup lacks UX