Some views like "Commons Radioactivity - Active content in a group (Content)" retrieve the content-type to display a small widget in front of the title.
view
The widget is displayed using css-class f.e.

.type-Post

but with translated content types it results in

.type-Beitrag

Two changes solve the issue

  1. Enable "Output machine name (Display field as the content type machine name.)" when retrieving content type in the view
  2. adapt the css file to new class names fe. change .type-Post to .type-post

Comments

ezra-g’s picture

Issue tags: +Commons 7.x-3.4 radar

Adding to the 3.4 radar for triage.

devin carlson’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB
new195.32 KB

I was able to duplicate and solve this using the instructions in the original post (thanks!).

translated-content-types.png

A patch to use the machine name of the content type in the view and update function to revert it.

Searching through the common_* modules and origin theme, I didn't find any CSS that needed adapting; all of the selectors were already targeting the type-* classes.

slowflyer’s picture

Seems that css has changed with 3.3

The widget is now used with:

.row-type-event:before {
background: url("../images/icons-s0eb3728c55.png") no-repeat scroll 0 -821px transparent;
display: inline-block;
height: 12px;
margin-right: 3px;
position: relative;
top: 1px;
width: 12px;
}

instead of

.type-Event or .type-event it was used before.

Therefore 3.3 works with no changes.

devin carlson’s picture

Status: Needs review » Fixed

Retested and committed #2 to Commons 7.x-3.x.

http://drupalcode.org/project/commons.git/commit/dd438d5

No additional CSS changes are necessary per #3.

devin carlson’s picture

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