When I enable views on my site, one thing immediately happens: the tracker page layout/content is changed for no apparent reason, even though it is not being overriden.

Changes include:

- the table length is shortened because the default <div id="tracker"> where the table is contained gets magically transformed into <div class='view view-tracker'>; plenty of other new id and class tags are added to the source code too, although those appear to have no apparent visual effect.
- the table headers are not translated into my Portuguese locale anymore, instead displaying as the default english "Type / Title / Author / Replies / Last Post".
- the title for the tracker page changes from "tópicos recentes" like it is set in the navigation menu to a Portuguese translation of the string "recent posts".

Should all this be occuring just because one enables the module or is it a bug?

CommentFileSizeAuthor
#9 views-tracker-title.patch370 byteshaggai_e
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Hmm. I'm surprised it's not translating, I'll have to doublecheck but I thought those strings were all in t() so they'd translate.

You can disable the Views' tracker page by going to admin/views and clicking 'disable'. That'll return you to the default tracker view. Or you can 'add' the view and customize it if you like.

Leaving this open until I can investigate why the tracker view strings aren't translating.

ricmadeira’s picture

Hmm... I don't have any "Disable" link in my /admin/views; the only action listed is to add a view to override the default one. However, I took a long shot and visited the link /admin/views/disable/tracker and it seemed to work. Thanks.

Shouldn't these things be disabled by default? I mean, if I want any of my views changed, I'll add a new one to override the old one, right? I wasn't aware that just by enabling the module some of my views would end up automatically changed.

ricmadeira’s picture

Hmm... I just installed Organic Groups, and I noted that the two additional pages views creates for og (group/mytracker and group/mytracker) can't be translated. The strings used for the pages appear in the locale settings, but providing translations for them does not have any effect whatsoever; they're always presented fully in english (well the titles and headers, anyways, since I have no groups/group posts created to fill in the tables).

If you could get them to work with locale, it would be great. Those two pages are really cool!

ricmadeira’s picture

The pages I mentioned should be group/mytracker and group/myunread, of course. Small mistake there.

anarcat’s picture

the fact that enable/disable links are not there is fixed by the following issue:

http://drupal.org/node/74833

merlinofchaos’s picture

Status: Active » Fixed

I *think* all of this is fixed, but I'm not 100% sure. If it's not, please re-open.

Anonymous’s picture

Status: Fixed » Closed (fixed)
JirkaRybka’s picture

Status: Closed (fixed) » Needs work

Problems with tracker table-titles not translating solved in Views 4.7.x 1.5 only partially:
- For "recent popular posts" it's still not translating: Needs a patch in the file views/modules/views_statistics.inc, where all the 'label' => xxx lines should have t() added to the texts.
- Because the views table-titles are cached, any edit to the locals take only effect after re-submitting the admin/modules page (i.e. refreshing the cache), which is really confusing to the user, and should be added to help-texts in bold letters (both views and locals probably).

haggai_e’s picture

FileSize
370 bytes

The title page translation problem still exists on the released package for 4.7.x version.

I've attached a simple patch.

--- views_user.inc (revision 203)
+++ views_user.inc (local)
@@ -111,7 +111,7 @@
$view->nodes_per_page = '25';

$view->menu = true;
- $view->menu_title = 'recent posts';
+ $view->menu_title = t('recent posts');
$view->block = false;
$view->field = array (
array (

merlinofchaos’s picture

Status: Needs work » Fixed

Both fixed and checked in. Thanks for the reports!

Anonymous’s picture

Status: Fixed » Closed (fixed)