Since some days on a taxonomy/term page the title is such as "Kultur@command-with-section/plain Kultur is the command name, %2 is its man section".
If I uncheck "display titles" under the contextual filter "Content: Has taxonomy term ID (with depth) > When the filter value is NOT in the URL", then the title isn't displayed anymore. The %1 seems to return the long title.
Don't know what's the cause for it. Any ideas?

You can see the views output and the settings in the screenshots.

CommentFileSizeAuthor
overwrite_title.png10.03 KBdrcho
contextual_filters.png10.9 KBdrcho
taxonomy-term.png31.98 KBdrcho

Comments

drcho’s picture

If you place a whitespace after the %1 then it works. Curious.

dawehner’s picture

Actually i have no idea on earth where this comes from. Are you able to grep/search in all your code after this snippet?
If you put this into drupal there are gazillions of sites with this problem, crazy.

Sadly i can't find this in my code basis of drupal+contrib modules.

Reen’s picture

I found the bug!
It is in the translations.
go to /admin/config/regional/translate/translate and search for "command"
you will find one entry %1. Edit it and you will see.

Maybe someone should move this bug to the translation section.

dawehner’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 7.x-3.0-rc1 » 8.x-dev
Component: taxonomy data » locale.module

Let's do it, seems to make sense but sadly i can't reproduce this, even imported a full po file.
What kind of strings do you have imported on your site?

hexabinaer’s picture

(Issue applies to Drupal core 7.8 as well, so I'm not sure about the version change in #4)

Hopefully my beginner's pondering can be of any help ...
To reproduce this
Install admin_menu, activate Administration views and enable the view Taxonomy Term. Check for current translation. (I am only using German and English so far - does it appear in any other translation?)

I use Localization update. The phenomenon appeared when I used it to apply all pending translations (although I'm not sure if I have enabled the taxonomy term view beforehand). But I can't find the strings in any .po file, neither in /sites/all/translations nor elsewhere.

Thoughts
I searched a dump of my database for "command-with-section" and found it 3 times - which is exactly the amount of taxonomy terms I clicked to verify my findings. This is way above my head, but is it possible that this funny "translation" is somehow generated?

I reckon once you use the interface translation to get rid of this, you won't be able to reproduce it anyways - am I wrong?

marcoka’s picture

Project: German translation » Drupal core
Version: master » 8.x-dev
Component: PO files » locale.module

i had that too.

just go to: http://dev.url.com/admin/config/regional/translate/translate

and search for @command-with-section
and the kill the funny translation

pascalduez’s picture

I just discovered this as well. Happened after running a batch update through the Localization update module.
Seems like an error in the latest views translation German set (line 737)

msgid "%1"
msgstr ""
"%1@command-with-section/plain\n"
"%1 is the command name, %2 is its man section"

http://ftp.drupal.org/files/translations/7.x/views/views-7.x-3.0-rc1.de.po

As mentioned in #6 removing the string in the translation interface resolve it.

pascalduez’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 8.x-dev » 7.x-3.0-rc1
Component: locale.module » Miscellaneous
pascalduez’s picture

Project: Views (for Drupal 7) » German translation
Version: 7.x-3.0-rc1 » master
Component: Miscellaneous » PO files
hass’s picture

Project: Drupal core » German translation
Version: 8.x-dev » master
Component: locale.module » PO files
Status: Active » Fixed

Looks to be fixed or at least I'm not able to find these two strings on l.d.o

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

more explications

joachim namyslo’s picture

Issue summary: View changes