Hi

When adding or editing a node translation, the whole site changes to the selected language. Is it possible for the UI to remain in the default language? I think this used to be the case with the alpha versions of Entity Translate.

Fantastic module btw :)

Jason

Comments

plach’s picture

Status: Active » Fixed

Sure, you can either use the Administration Language module or configure language detection and selection settings so that content language is always determined by URL (or Session) and interface language follows the user or browser preference and just falls back to URL (or Session).

Jason Dean’s picture

Thanks Plach for answering :)

When I set interface language to follow user/browser preference, it always stays in default language even if a different language is manually selected. If a site visitor selects a different language, I need the interface and content to change to that language.

Administration Language module looks perfect for just keeping the Admin interface in the default language, but the 7.x dev code seems really buggy (but that's not your problem, I know!).

So I guess I'll try to persevere with Administration Language module.

Status: Fixed » Closed (fixed)

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

toxinlabs’s picture

Status: Closed (fixed) » Active

this doesn't work for me. i tried using the "administration language" module and i tried changing my language detection and selection settings... neither worked.

if i edit an node with german content and click on translate in order to add an english translation the link always switches the interface language to english as well. that's not what i want because people who will add the english translations are german speaking as well. it's a bit confusing for them if the whole interface language switches if they only want to add a translation. more languages will be added later, so that will make matters even worse and more confusing.

toxinlabs’s picture

ahoms’s picture

hi there,

that's an ugly workaround... but I really needed this behaviour and I think I managed to patch the module code.

Add this line

$link["language"]->prefix = "ca";

in line number 1331 of the file "includes/translation.handler.inc", replacing "ca" by your default language.

This will make the edit form interface stay in that language.

Cheers.

plach’s picture

Status: Active » Fixed

The issue reported in #4 is "by design". The solution is properly configuring language negotiation so that content and UI language are disjoint. Most of the times Admin language is the way to do this, if it doesn't work then you encountered a bug of its, sorry.

Status: Fixed » Closed (fixed)

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