Title of master index remains permanently "Vocabularies" after upgrading

pingvinen - August 8, 2009 - 17:29
Project:Taxonomy VTN
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:AlexisWilke
Status:active
Description

I have tryed to search for the string "Vocabularies" in ?q=taxonomy_vtn using drupal internal translate module. Can't simply find it, it do not exist! I had it translated before I did an upgrade.

#1

AlexisWilke - August 8, 2009 - 17:50

pningvinen,

It exists in the en.pot file...

<?php
#: taxonomy_vtn.module:74;204 taxonomy_vtn_blocks/taxonomy_vtn_blocks.module:153
msgid "Vocabularies"
msgstr ""
?>

I have not directly worked on translations so I'm not too sure why it would be a problem... Which language are you working with?

Thank you.
Alexis

#2

pingvinen - August 9, 2009 - 12:05

I have tried to change the string in the en.pot file too, no success there either. I wan't to translate/change the string to a Swedish word. I have tryed to clear the cache and run cron.php with hope that drupal could find the string so I could translate it. I also tryed the |10-client with no success.

#3

AlexisWilke - August 9, 2009 - 22:00
Status:active» postponed (maintainer needs more info)

Sorry, actually the en.pot file is very old. If you can point me to a page on how to update that file, I'll do so. That's probably what the problem is. It certainly moved from one file to another (i.e. from the .module to the .admin.inc)

Thank you.
Alexis Wilke

#4

pingvinen - August 10, 2009 - 21:30

Have now tryed the module "String overrides". Problem still persist with no changes at all. Could I have some messed up translation files or something?

#5

AlexisWilke - August 10, 2009 - 21:34

pingvinen,

Did you read my last post (not this one, the one before) by any chance?

Thank you
Alexis

#6

pingvinen - August 10, 2009 - 22:05

I'm sorry, I don't understand what you want me to do. You want my en.pot file?

#7

AlexisWilke - August 10, 2009 - 22:12

Okay. I will look into it. More later.

#8

AlexisWilke - August 11, 2009 - 01:26
Version:6.x-1.4» 6.x-1.x-dev
Assigned to:pingvinen» AlexisWilke
Status:postponed (maintainer needs more info)» fixed

Alright, I have put a new en.pot file in the module. You should be able to translate properly from that new file.

Thank you.
Alexis Wilke

P.S. To extract the .pot file, use this project: http://drupal.org/project/potx

#9

pingvinen - August 11, 2009 - 07:22

I downloaded the CVS version, updated my system, cleared cache and so on but It makes no different.
admin/module don't tell me what version I have of taxonomy_vtn now. The field for version number is blank. I still can't change the string "Vocabularies" on ?q=taxonomy_vtn with either drupals translation module or with String overrides.

I had it translated before. I can't just figure out why I cannot change it now. Even if I try to force it! Should I remove the swedish translations from drupal and reimport them from scratch? Maby there is a bug or error in the DB.

#10

AlexisWilke - August 11, 2009 - 08:24

Argh! I see there were a po & a translations folders. I removed the po folder since it should not be there and renamed the en.pot as taxonomy_vtn.pot which I believe is the right thing to do.

The result looks good to me... (In French) I had some problems with UTF-8, but other than that, it now finds the file and shows the French version.

In regard to the version, it is indeed "missing" in the CVS. You want to either get the -dev version or edit the .info and add that info in there. (look at other modules to see what's missing.)

Thank you.
Alexis

#11

pingvinen - August 11, 2009 - 16:35

I updated to version 6.x-1.x-dev and see your changes. I still can't change the string "Vocabularies". I can change "Terms in @vocabulaty".

Can you, Alexis, go to admin/build/translate/search and search for "Vocabularies", find it and make a change to it?

#12

AlexisWilke - August 11, 2009 - 20:06
Status:fixed» active

Okay, I'll try that later. The French translation is working so I'm not too sure why yours would fail now.

Two things:

a) To get the French translation to work I had to completely uninstall and reinstall Taxonomy VTN (i.e. Disable, go to Uninstall, click Uninstall twice [2nd time to confirm], then reinstall). That was the only way to get the translation recognized.

b) Did you delete the old files before extracting the new tarball? Several files have moved and/or have a new name (in regard to translations) and thus you may not get the right thing to happen if you still have the wrong files... (but I'm not that familiar with the translation modules)

Thank you.
Alexis Wilke

#13

pingvinen - August 12, 2009 - 05:35
Status:active» fixed

Thank you so very much, Alexis. I could never believe I had to uninstall the module to get it working. After the reinstall I had to manually edit all of my vocabularies, and I have allot of them... But now it works! :)

There should, in a future release be a standard template or option that the admin can use. So that all vocabularies gets setup to the same. Like I don't want to show a back link on any of my vocabularies or count any terms and so on.

Thank you again for all your help!

#14

AlexisWilke - August 13, 2009 - 08:04

Note "a lot", "allot" is another word. 8-)

If you want to see that one day, you may want to post a feature issue... 8-)

Thank you.
Alexis

#15

Juhani - August 18, 2009 - 05:23
Title:Cannot translate the string "Vocabularies"» Title of master index remains permanently "Vocabularies" after upgrading
Status:fixed» active

This was a tricky one. I upgraded from 1.2 to 1.4. Old files were all deleted and update.php ran.

After upgrading, I noticed that in 1.4 title of master index of vocabularies couldn't be changed in settings and not even by patching strings of the module in english. Altough the title name was "Vocabularies", there wasn't any drupal_set_title() or t() functions or database variables left in 1.4 using that name. In 1.2 name of this title was "Vocabularies" and in 1.4 it's changed to "Site index".

I would suppose that this might be a bug in upgrade path, because complete reinstallation is needed in order to get the title working properly in 1.4. Only after reinstallation, translating or overriding the string "Site index" things will work fine. In my use case, Taxonomy VTN groups were not in use.

Thank you for the useful module!

with Kind Regards,
Juhani

#16

AlexisWilke - August 18, 2009 - 06:21

Juhani,

I dunno, but it feels like the problem is in the Translation module, not the taxonomy VTN. Unless you know what the problem really is, I don't see how I could fix it.

Let me know if you have a solution...

Thank you.
Alexis

#17

Juhani - August 18, 2009 - 08:23

I'm not a developer, so it's hard to say unambigiuously:)

There may be a bug with "Master index" title setting and visibility in taxonomy_vtn.pages.inc, because behaviour of the module is illogical:

  • If there's 0 Taxonomy VTN groups, value of "Master index" isn't shown as a title, but instead there is shown unchangeable name "Site index". Looks incorrect.
  • If there's 1 Taxonomy VTN groups, value of "Master index" and unchangeable name "Site index" both are not shown, but name of the only group is shown as a title. Looks incorrect.
  • If there's 2 or more Taxonomy VTN groups, value of "Master index" is shown as a title and above all the group names, but unchangeable name "Site index" is now hidden. Looks correct.

So, I would suppose this "Site index" is superfluous thing here. It's set up only in taxonomy_vtn.module for implementing hook_menu(). The core system may put it for a page title, because in taxonomy_vtn.pages.inc function drupal_set_title() isn't accessed to print a value of "Master index" for a title when there are 0 (or 1) Taxonomy VTN groups present.

I can't study what's exactly in the code, but could it be possible that in release 1.4 (or 1.3) values of hook_menu() implementation have been changed, but they are not updated when running update.php? This could explain why "Vocabularies" remains there instead of a new value "Site index" that is, actually, shown in a wrong place instead of "Master index".

#18

AlexisWilke - September 1, 2009 - 03:00

Juhani,

Actually, the "Site index" is the default Drupal title taken from the menu. You can edit the menu and change the name for the main Site index. Now, there are two others that are hidden (because they are not recognized as menus but just as tasks). Those cannot be changed, obviously (not with the standard Drupal interface.)

I guess it could be that the "Vocabularies" title sticked in your menu item. If the item already exists, I suppose Drupal does not replace it and thus you are stuck with the old name. Now you could edit the one you have access to and see what happens...

Thank you.
Alexis Wilke

 
 

Drupal is a registered trademark of Dries Buytaert.