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 |
Jump to:
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
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
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
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
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
pingvinen,
Did you read my last post (not this one, the one before) by any chance?
Thank you
Alexis
#6
I'm sorry, I don't understand what you want me to do. You want my en.pot file?
#7
Okay. I will look into it. More later.
#8
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
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
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
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
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
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
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
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
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
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:
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
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