7 replies [Last post]
renco's picture
Offline
Joined: 06/02/2010
Juice: 7
Was this information Helpful?

Hello. We have our drupal website already running, but still have some trouble we cannot solve. If people find us on google, they are directed to pages which are half dutch and half english. We never made this page and the nodes are quite strange as well, It seems the website doesn't ' understand' when it's on the dutch part and when it's on the English part of the website. Same pages have the full english url, but instead of the 'EN' for english,, suddenly 'NL' for Dutch shows up in the url. We tried so many things already, but have no idea how to solve this.

Second is a really urgent problem. By changing the catalog block, I switch the language from 'all languages' into ' English. After that, our Dutch catalog disappeared. I tried already to check the ' all languages' option, but it seems it's gone. However, if I check the Dutch option, I do have the catalog back in Dutch, but then the English catalog is away. What to do?

fivepoints's picture
Offline
Getting busy with the Ubercode.
Joined: 09/26/2007
Juice: 258
Second is a really urgent

Second is a really urgent problem. By changing the catalog block, I switch the language from 'all languages' into ' English. After that, our Dutch catalog disappeared. I tried already to check the ' all languages' option, but it seems it's gone. However, if I check the Dutch option, I do have the catalog back in Dutch, but then the English catalog is away. What to do?

I've the same problem. I'm getting crazy. If I go under admin/build/block/configure/uc_catalog/0 I can't change the language option under multilingual settings. I'm trying to find a solution but for now I don't have any : (

fivepoints's picture
Offline
Getting busy with the Ubercode.
Joined: 09/26/2007
Juice: 258
renco wrote: Second is a
renco wrote:

Second is a really urgent problem. By changing the catalog block, I switch the language from 'all languages' into ' English. After that, our Dutch catalog disappeared. I tried already to check the ' all languages' option, but it seems it's gone. However, if I check the Dutch option, I do have the catalog back in Dutch, but then the English catalog is away. What to do?

hallo,
it seems to be a problem of i18nblocks.module, not a uc_catalog.module problem.
anyway, for this problem for now I've found onlty his solution:
- go into mysql i18n_blocks table and force the value of uc_catalog -> localize uc_catalog under module column and remove the strings in the column language (it must be empty)
- change your website url from /de to /en -> you now have to see the catalog with taxnomy strings translated

for me it works. but these are my settings for taxonomy vocabularies under admin/content/taxonomy:
- I've got two vocabularies, one for site language -> Catalog (en) and Catalogo (it)
- for each vocabulary I've got the option "Set language to vocabulary. The vocabulary will have a global language and it will only show up for pages in that language." under admin/content/taxonomy/edit/vocabulary/your-vocabulary-ID

if you have this settings and you still see no changes in the vocabulary title into dutch site and english site, retype the name of the vocabulary into taxonomy interface (admin/content/taxonomy) and save the page.
maybe you have also to clear the caches (but I'm not sure of this).

you also have to add in the settings.php file of your website something like this:

/**
* Multilingual settings
*
* This is a collection of variables that can be set up for each language when i18n is enabled.
* These are the basic ones for Drupal core, but you can add your own here.
*/
$conf['i18n_variables'] = array(
// start ubercart
'uc_catalog_vid',
'uc_catalog_name'
// add here the variables you want, for example:
// Site name, slogan, mission, etc..
'site_name',
'site_slogan',
'site_mission',
'site_footer',
);

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: renco wrote: Second is a

Ubercart already put uc_catalog_name into the list of i18n_variables. Why does uc_catalog_vid need to be there? It's a number, not a string ...

<tr>.
fivepoints's picture
Offline
Getting busy with the Ubercode.
Joined: 09/26/2007
Juice: 258
Re: Re: renco wrote: Second is a

ah ok, I didn't know about the fact that ubercart already put uc_catalog_name.
about uc_catalog_vid I need to specify it because in admin/store/settings/catalog/edit/catalog there is the vocabolary ID for the catalog:
<select name="uc_catalog_vid" class="form-select i18n-variable" id="edit-uc-catalog-vid" ><option value="4">Catalog</option><option value="2" selected="selected">Catalogo</option></select>

renco's picture
Offline
Joined: 06/02/2010
Juice: 7
Almost solved

I solved it with installing the multiblock module and making an instance of the block I still had. Afterwards, I changed the language of the new block into ´Dutch´ and I found two seperate blocks. Works all good, the only problem is that the new block doesn´t have any colour....

fivepoints's picture
Offline
Getting busy with the Ubercode.
Joined: 09/26/2007
Juice: 258
Re: Almost solved

I've never used the multiblock module.
anyway, you also have to check the i18n_variable table. you have to insert in this two variables:
example:
name | language | value
uc_catalog_name | it | s:8:"Catalogo";
uc_catalog_name | en | s:7:"Catalog";

kellogs's picture
Offline
Joined: 02/11/2010
Juice: 57
Re: Trouble with google and catalog block

Use this patch, this is the only solution to get catalog i18n working:
http://drupal.org/node/951760