Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ardas’s picture

Assigned: crt » ardas

It is only possible for node keywords because if you have i18n module each node will have translation nodes and every node may have its own set of meta tags.

You can also keep translated global meta tags because they are stored in a variable which is translatable by i18n module.

But! There is a huge problem with front page meta tags - they are stored in nodewords table directly (type = page and id = NULL) and can't be translated. So, you can't have multiple sets of front page meta tags per each language of your site.

I'm about to propose a patch for this...

toemaz’s picture

Quite important feature for a multi lingual website. If there is anyone willing to sponsor this, I'd be glad to implement this feature.

2xe’s picture

We need this as well, has there been done any work on this issue yet?

nonsie’s picture

subscribe

asak’s picture

subscribing.

carlospo’s picture

subscribe.

asak’s picture

This problem renders this module quite useless (for anyone who's running an multilingual website).

It's idea is SEO - but having the wrong set of keywords is far from good SEO...

@toemaz: If you could check out what needs to be done and how much work that will take, please let me know. we may be able to help.

If anyone has any other ideas - i'm all ears!

Thanks!

toemaz’s picture

@asak

Sorry, don't have the time anymore to improve the module. But I agree, for a multi lingual website, this module is rather useless.

apaderno’s picture

Assigned: ardas » Unassigned

The Assigned field is thought for the maintainers of the project.

asak’s picture

I found that using multilingual nodes/views for frontpages, which means using a specific node/view for every language as front page with its own set of meta tags, solves the front page meta tags problem.

ar-jan’s picture

It would be great if someone found a way to deal with multilingual setups. As noticed above, nodes aren't the problem, each translation is it's own node after all. I would like to be able to store the Views description and keywords variable in different languages.
A trick that has worked before with other contrib modules lacking language support is adding the variables in your settings.php, like

$conf['i18n_variables'] = array(
  'nodewords_view_description',
);

Except that I can't find a variable we would need. Are the metatags stored in a variable so we can do this trick?

toemaz’s picture

"Are the metatags stored in a variable so we can do this trick?"

No they aren't, at least not all nodewords variables are stored in the typical Drupal variables. So the only solution I see is to rewrite the module and move all variables under nodewords_settings() function which implements the good Drupal way to store variables.

2xe’s picture

subscribe

2xe’s picture

Version: 6.x-1.0 » master
Status: Needs review » Active
FileSize
1.2 KB
4.19 KB
2.51 KB

This patch enables to customize keywords and descriptions for the front page for all enabled languages. It modifies the admin/content/nodewords/frontpage page, and adds a section for each language.

It adds a language field to the nodewords table and the primary key, so multiple instances are allowed to exist.

I've only tested it on a multilanguage installation (with per domain language setting), so I'm not sure if it might break an existing configuration, but the module maintainer should be able to review this...

NB! don't use these, please use the patches further down on this page...

Robrecht Jacques’s picture

Version: master » 6.x-1.0
Status: Active » Needs review

Should you extend the update function to set the language for the already existing rows?
This doesn't actually change what meta tags content is shown... it only works for frontpage, right?

I'll have to look at it a bit more carefully, but this is already a step towards i18n. After I've looked at it a bit closer and/or someone else comments, this may get into nodewords quite soon.

2xe’s picture

Updating existing rows is probably a good idea, yes. I'll add it to the list.

It is only implemented for the front page but I guess it be prepared to work for anything that uses this table (I only have page records in the table, so I haven't had the chance to test anything else). On a norwegian site it shows the norwegian keywords and description on the frontpage, and likewise for any other languages that may be installed.

(and this patch really has nothing to do with i18n, it's just relying on the locale module)

2xe’s picture

New patch, in addition to what was mentioned above;

  • Now localized taxonomy terms and descriptions are translated (i18ntaxonomy).
  • Existing rows are copied to all enabled languages for the type 'page' on install

Patch is for current 6.x-1.0 release.

asak’s picture

Any chance for a D5 backport?

2xe’s picture

Version: master » 6.x-1.0
Status: Active » Needs review
FileSize
934 bytes

Here's a patch for the keywords.inc file to properly translate the taxonomy terms added as meta keywords to nodes...

2xe’s picture

FileSize
794 bytes

And here's the patch for description.inc...

ar-jan’s picture

Great that you are working on this, SeroSero. Hope to try these patches later!

2xe’s picture

Expect a rewrite - I think we're better of doing what toemaz suggested; use the builtin support for translation of system variables. The variable translation system is terrible, because you have to edit settings.php to make it work - but on the other hand translations will be stored in a standardized and pretty robust fashion. I'm using the current patch on a production server, but doing the rewrite of how variables are stored is pretty high up on the list, as it would solve translation of the global keywords as well.

xibun’s picture

+1

asak’s picture

SeroSero: did you get to it? are you still using the patches you provided on production sites?

chipway’s picture

Hi,

When do you plan a dev version with i18n patches to help many of us test it ?

Thank you.

milksamsa’s picture

I'm very interested in this. I might consider a sponsorship.

scott859’s picture

subscribing

apaderno’s picture

As i18n.module is not a core module, I think this code is more suitable for a separated module.
After the module API will be stable, we can think of creating such module.

EDIT: The module can be part of meta tags, or be a project apart.

apaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs review » Needs work

Patches should be applied to the development snapshot, not to official releases.
An official release already existing cannot be changed, if not creating another official release that is created from the development snapshot.

As the patch uses functions present in a third-party module, I still think it doesn't fit in nodewords.module, but it should rather be part of another module.

srobert72’s picture

subscribing

It would be a great improvement to be able to translate all meta tags.

For nodes keywords there is already a solution by using taxonomy "Auto-keywords vocabularies".
Keywords included as such are correctly translated.

joflizn’s picture

After applying pacthes on #17: admin: node settings displayed in both "settings and filters" an, descriptions and keywords are not loaded on node pages.
So here is a fixed patch I provide that seems to correct this bug. I just add a the function _nodewords_language() call before the update queries if the language code is empty. This forces the language code to be saved properly in the table for nodes.
Edit: This is an erronous file so don't use this.

joflizn’s picture

Version: 6.x-1.x-dev » 6.x-1.0-rc1
FileSize
4.18 KB

Ok. If your descriptions and keywords are not loaded on node pages. Here's the fix. I just added the function call _nodeword_language() before update and delete. So it forces the language code when it's empty.

apaderno’s picture

Version: 6.x-1.0-rc1 » 6.x-1.x-dev

@#32: Patches needs to be against the development snapshot.

diogo_plta’s picture

subscribe.

bilvanisli’s picture

Version: 6.x-1.x-dev » 6.x-1.0

subscribe

apaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

See my comment #33.

xibun’s picture

@KiamLaLuno: can you help by making the dev version available on the project page?

apaderno’s picture

The development snapshot is now visible on project page.

xibun’s picture

Thanks. In the mean time I did find and download it from cvs and tried to apply the patch manually, but it's much more tricky then I expected. So unfortunately I won't be the one to make it happen.

btw from another post I can see that you would like many people to test the dev version - I think you might have a higher testing coverage when the dev version is visible on the project page, so I would leave it visible.

apaderno’s picture

The patch for version 6.x-1.0 doesn't apply to the development snapshot; that is the reason this report is marked as needs work.

bavarian’s picture

Version: 6.x-1.x-dev » 6.x-1.2

Does anybody know if it is possible to use the patches available here on the recently released 6.x-1.2 version of Nodewords?

leovarg’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

I think it should be a separate module, there are a lot of non coders, waiting for this fix, without the need of patching or using a dev version this is a most feature for SEO purpose, hope someday I can see this module or a similar one. , it would be a helpful module.

bilvanisli’s picture

comment #32;
I guess in the patch, line +439,18 it must be
return db_query("DELETE FROM {nodewords} WHERE type = '%s' AND id = '%s' AND language = '%s'", $type, $id, $language_code);

instead of;
return db_query("DELETE FROM {nodewords} WHERE type = '%s' AND id = '%s' AND language_code = '%s'", $type, $id, $language_code);

zmove’s picture

I subscribe

About the translation of meta tags using i18n variable system, I think this is not possible.

The informations are not stored in the variable table, but in a custom nodeword table, so i18n is not designed for that.

There are 2 solutions :

- Register nodewords default setting as a drupal variable, so, i18n should be able to translate them. For the node level meta, they already are translatable because each translation is considered as a new node.
- Implements a custom multilanguage system in nodewords, which is certainly more complex but can bring a far better UI.

But yes, this is a very important issue, I'm surprised to see it now whereas multilanguage was a Drupal 6 credo since the begining.

apaderno’s picture

I have marked #611666: Multi Language - Site Information as duplicate of this report.

ailgm’s picture

subscribing

prisonbreaker82’s picture

subscribing

leovarg’s picture

subscribing

apaderno’s picture

Status: Needs work » Postponed (maintainer needs more info)

Recent development snapshots introduced the field language, and changed the unique key to include that field.

Now, the only change that must be done is the code. In the case of nodes, that is easy (it's enough to consider the language associated with the node); for the other cases, I am not sure what should be done.

For the fields added in taxonomy terms edit form, it seems that adding a selector for the language could be a solution; when editing the meta tags for a taxonomy term, I would first select the language for which I would change the meta tags, and then change the meta tags (the form would be only one).
The same is true for the edit form that allow to set the meta tags for the front page, the error pages, ...

apaderno’s picture

Version: 6.x-1.x-dev »

As this feature requires an API change, it will be implemented in branch 6.x-3.

kommand’s picture

And what about the fact that is no possible to use "Other Pages" in Nodewords to create different Meta Tags per language, with the path matching?
For example if you set in "Other Pages" different meta tags for a specific path "us/*" only the default meta tags are displayed.

apaderno’s picture

For example if you set in "Other Pages" different meta tags for a specific path "us/*" only the default meta tags are displayed.

The language prefix is not passed into $_GET['q']. The only way to detect the language set is to check the content of the global variable $language.

ressa’s picture

Hi,

Great module, I especially like how you can define meta tags for a view, by entering its path.
But like you say, it doesn't work for multilingual paths, yet.

Do you think this feature will be implemented in a future release?

Thanks.

leovarg’s picture

subscribe

Netrunner-2’s picture

Is there any module to make frontpage of multilingual Drupal website search engine friendly?

Why did not drupal solve this problem after so long time?

betamos’s picture

subscribing

ressa’s picture

Netrunner: It is possible to make the frontpages of multilingual Drupal website search engine friendly, just follow the directions given here:
http://drupal-translation.com/content/setting-front-page-language

ronnbot’s picture

We took a different approach, which works for our needs.

We patched nodewords.module to run the tags through the 't' function:

function nodewords_load_tags($type = 'default', $id = '') {
  $result = db_query("SELECT * FROM {nodewords} WHERE type = '%s' AND id = '%s'", $type, $id);
  $tags = array();
  $tags_info = nodewords_get_possible_tags();

  while ($row = db_fetch_object($result)) {
    if (isset($tags_info[$row->name])) {
      $tags[$row->name] = $tags_info[$row->name]['tag:db:type'] != 'string' ? unserialize($row->content) : array('value' => t($row->content)); // translate content
    }
  }
  
  if (empty($tags) && $type == 'term') {
    return nodewords_load_tags('vocabulary', db_result(db_query('SELECT vid FROM {term_data} WHERE tid = %d', $id)));
  }

  return $tags;
}

Then, we used the locale module to import .po files containing the translation for the keywords, description, etc.

This way, change is minimal and it uses the core locale module to manage the translation.

ressa’s picture

I have taken another approach and gone the block views route, abandoning page views and their paths, which were quite a hassle in the first place.

In stead I will simply make ordinary pages with a block added in the content area. When a page is translated from the English version to another language, the new path is added to the block, to also display the block on that page.

Granted, there is a little work involved, but I now don't have to set URL aliases, and I can have meta tags for all languages.

It also makes it easier for the editor, since everything now is pages, in stead of a mixture of normal pages and page views, which have to be translated differently.

I will also have to define less custom_breadcrumbs, since large parts of the paths are now ordinary menu paths, and can be generated with menu_breadcrumb.

apaderno’s picture

We took a different approach, which works for our needs.

We patched nodewords.module to run the tags through the 't' function

As reported by the documentation of t(), the first argument must be a literal string, not a dynamic value.
Then t() is being called too early, as it is not still defined which language to use; if the meta tags are shown in a node that has Chinese as associated language, you cannot use the default language, as this would lead you to have meta tags in English (in the case the default language has not been changed), or French (if the default language has been changed) in a node that is written in Chinese.

d.sibaud’s picture

Hello, will be this important feature in the 6.x-3.x version? And, if affermative, when will be it released, about.. ? I need it very bad. Thanks in advance for your exceptional work.

apaderno’s picture

Yes, it will be. I cannot say when it will be implemented, as there are some details I need to verify.
The fact I am the only one to develop code slows the development of the module, then.

saipas’s picture

Hello,

I did a similar thing as ronn abueg in #58 so my meta keywords and description would be translatable. In nodewords.module, function nodewords_output_tags:

      if ($bool) {
        $template = $tags_info[$parts[0]]['tag:template'][$parts[1]];
        $replace = array(
          '%name' => $meta_name,
          '%content' => ($template == NODEWORDS_META) ? t($meta_content) : $meta_content,
          '%attributes' => empty($tags_info[$parts[0]]['tag:attributes'][$parts[1]]) ? '' : drupal_attributes($tags_info[$parts[0]]['tag:attributes'][$parts[1]]),
        );
        $weight = isset($tags_info[$parts[0]]['tag:weight'][$parts[1]]) ? $tags_info[$parts[0]]['tag:weight'][$parts[1]] : 0;

I changed the order of the lines (put $template definition first) and then depending on $template I make $meta_content translatable or not.
So now my meta tags output in the current language :)

apaderno’s picture

@saipas: The first argument of t() needs to be a literal string. If to get translatable meta tags should be enough to do that, then I would have done it already. ;-)

Hobbes-2’s picture

Subscribe

askibinski’s picture

I've got different nodes as setup as frontpage in settings -> site information using multilanguage variables (in settings.php -> i18n_variables).

The nodes themselves have meta descriptions but they don't show up on the frontpage.
I expected this to work as a workaround for this issue. But it doesn't.

saipas’s picture

@kiamlaluno: yes I encountered that issue in other modules, strangely in that one no error arises. Anyhow, the workaround is to use the following:

$tr = 't';
$meta_content = $tr(meta_content);
apaderno’s picture

@saipas: Your work-around doesn't work either. The script that is used to extract the strings to translate looks for code such as t('literal string'), and it is not able to handle $tr($meta_content) because it cannot know the content of the variable $tr, and see if its content is the string 't' (in the same way it is not able to know the content of the variable $meta_content, which could vary at each execution step, and not be a static value).

Your workaround works only in the case the script already found another code line that passes that string to the function t(); if you are using a string that is not used from other modules (such as the case of the meta tags content — I don't think a module uses the same string you use for the meta tag content in its user interface), then the string is not added from the script to any translation template, and nobody will translate that string.

apaderno’s picture

Status: Postponed (maintainer needs more info) » Postponed

I am changing the status of this feature report, as at the actual state is postponed.

Anonymous’s picture

I would also add that using a different Drupal variable for each meta tag to allow the string to be translatable by adding a code line in settings.php is not the correct way to do it. Having 100 nodes, and 5 meta tags would mean to add 500 Drupal variables more that would be loaded in memory all time Drupal is started.
Apart that problem, which is not a little problem, there would be the problem on how to keep the translation updated.

alberto56’s picture

subscribing

iamjon’s picture

Subscribing

heyyo’s picture

subscribing

ain’s picture

Joining in with the feature request. I understand the possibilities to use specific tags as per page, but for Custom pages meta tags (e.g. Views-related), unfortunately, this is not the case.

heyyo’s picture

What is the best version of nodewords to use on production website with multilanguages ?
What is possible to do with it ?

Regards

danyg’s picture

Using the $conf['i18n_variables'] on Settings page's fields is working (like 'nodewords_global_keywords'). I think the problem on Default and specific metatags page's fields is the same fieldname for every subpage (Front page, default, 404, 403, etc), so on this pages the i18n_variables doesn't work.

lord_of_freaks’s picture

Patch for nodewords taxonomy translation, works for me

heyyo’s picture

works great. Hope that it will be comitted soon :-)

lord_of_freaks’s picture

Status: Postponed » Patch (to be ported)
FileSize
1.24 KB

Is possible commit the patch????

Anonymous’s picture

Status: Patch (to be ported) » Needs work

Is possible commit the patch????

The patch doesn't apply to branch 6.x-3 for which the feature request is open. I would like better a patch that allows to use translated meta tags for every implemented meta tag.

srobert72’s picture

Status: Needs work » Patch (to be ported)

Is this patch to translate Taxonomy terms in MetaTags ??
I don't understand what it adds.

Since long time terms are translated in MetaTags.
See my comment in this same issue : http://drupal.org/node/130389#comment-1929164

Implementation of Taxonomy Terms in MetaTags have changed. They now used Token.
I supposed maybe this new implementation doesn't translate them anymore. But it does.

I use nodewords 6.x-1.x-dev without patch and Taxonomy Terms are translated.

Could you precise what this patch brings ?

EDIT : Status was updated since I was written my comment. Sorry to revert status change, it's not my fault.

lord_of_freaks’s picture

Version: » 6.x-1.11
Status: Patch (to be ported) » Needs work
FileSize
1.24 KB

@kiam

Sorry!!! in this comment I update the version for the patch to 6.x-1.11, because this patch is for 6.x-1.11 version

@srobert72
Mi site have to languages English and Spanish
I´m using the option "Auto-keywords vocabularies:" and when I visit a node in both languages the META "title" is in english, this patch solves this problem translating the term to the desired language.

Sorry for my (very) bad english i hope this post will be understandable

srobert72’s picture

@lord_of_freaks
Title is HTML tag not a Meta tag.
Or do you want to say "Dublin Core title" which is a Meta tag.

I also have a site in English and French.
Without any patch :
* Title tag (<title>) is well translated
* Taxonomy terms (<meta name="keywords">)are well translated
* I don't use "Dublin Core title" Meta tag so I can't say for it

I think there was confusion between words (term, meta, tag) which were not always used properly in right place.

lord_of_freaks’s picture

@srobert72

Sorry I said "title" the right META is "Keywords"

Perhaps Ubercart module breaks translation without this patch ... i don´t know ... the vocabalary "Catalog" is not translated into Keywords metatag using nodewords-6.x-1.11 (last recommended realease)

Thanks anyway

apaderno’s picture

Version: 6.x-1.11 »

i18n compatibility will be implemented in branch 6.x-3.

Anonymous’s picture

Status: Needs work » Postponed

I am marking this feature report as postponed, as I am still deciding how the feature will be implemented.

Anonymous’s picture

Title: i18n compatibility » Translatable meta tags content
Anonymous’s picture

Status: Postponed » Fixed

The code to translate meta tags will be contained in a module that is part of the project Extra meta tags modules. Nodewords code has been changed to allow the other module to translate the meta tags to the language currently set for the site.

Status: Fixed » Closed (fixed)

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

Marko B’s picture

Category: feature » support

Can i get current status of node words and multi language issues? Is it possible to use it for multi-lang or is it useless for that task?

DamienMcKenna’s picture

I do not believe the current v6.x-1.x codebase provides any direct support for translation, but please check hook_nodewords_tags_alter() and hook_nodewords_tags_output_alter() in nodewords.api.php for hooks which should accomplish what you are looking for.

DamienMcKenna’s picture

DamienMcKenna’s picture

Version: » 6.x-1.x-dev
Status: Closed (fixed) » Postponed

Reopening this, re-assigning it to the v6.x-1.x branch, and I added a note to the module's project page explaining the current internationalization support.

Marko B’s picture

Version: 6.x-1.x-dev »
Status: Postponed » Closed (fixed)

Thanx Damien, will look at this.

DamienMcKenna’s picture

Version: » 6.x-1.x-dev
Status: Closed (fixed) » Postponed

Resetting the issue settings.

iamjon’s picture

Hi everyone.
@DamianMcKenna or Dave Reid,
Can you provide some further direction on how to properly get meta tags (main description and keywords translated ) translated.

From what I understand we can use one of the hooks the module provides? How?

I tried this in a custom module but ended up with doubled keywords and description

function mymodule_nodewords_tags_alter(&$output, $parameters){  
    if(drupal_is_front_page()){       
        $output[description] = t('blah blah blah');
    } 
}

Is this the wrong way to do it?
Would you suggest upgrading to 3.x dev?

Can someone suggest a workaround that is production safe? (Obviously to the best of their knowledge without any guarantees)

With over 70,000 known installs there must be people who have gotten their keywords to translate.

I understand that the module was designed for nodes, and is know being pushed into other entities (pages and things that aren't nodes) but it is the definitive module to take care of key words

I'm including a list of other threads in the issue queue, maybe one them is relevant.

#951802: Make default meta description/tags translateable - Dead end

#770440: Create a module that allows to translate meta tags - Never done. Thread not closed.

#810322: Language support for nodewords_custom_pages - Patch ignored

#913108: Multilingual translated front page meta tags - Newer thread with similar issue.

#917190: Nodewords on mulit-lingual sites - 3.x feature request should we close this issue and move discussion over there?

d.sibaud’s picture

I know, it's only a workaround but, in the meanwhile, it works:

Insert the following code in settings.php:

$conf['i18n_variables'] = array(
  // Different front page for each language
  'site_frontpage',
);

Then set a node/x in the "Dafault front page" textfield on admin/settings/site-information for each used language,
last uncheck "Use front page meta tags" option from the page admin/content/nodewords,

et voilà it works, and you can set your meta like you normally do for internal pages.

iamjon’s picture

Thanks tourtools,
but what if i don't have a node set to be home, but a panel?

d.sibaud’s picture

sorry, but if you are choosing the language for your content inside the panel via views, there no way than waiting for a code solution, but you can choose another way to do this setting a node without body and hiding the node title in some way and displaing your panel content in another way, I don't know very well panels, so I can't suggest the best solution, maybe trying to display a certain language panel using multilanguage blocks or contexts can do the trick joined to the #97 solution.

But maybe you can achieve this showing your panel on node/xxen node/xxit node/xxde, and like I said hiding the node and obtaining to publish metas.

DamienMcKenna’s picture

Closed #1049778: Translate meta tags as a duplicate of this ticket.

DamienMcKenna’s picture

Closed #917190: Nodewords on mulit-lingual sites as a duplicate of this ticket.

DamienMcKenna’s picture

DamienMcKenna’s picture

tomsm’s picture

subscribing...

j0nathan’s picture

Subscribing.

jyee’s picture

I've developed a module to add multi-languages in the nodewords settings for frontpage, 404, etc. Currently it's a sandbox project here:
http://drupal.org/sandbox/jyee/1103360 http://drupal.org/project/nodewords_translate

At some point, I may decide to upgrade it to a full project, but I thought I'd get feedback for a while before launching that.

The basic idea is that it duplicates the existing nodewords form fields for each language enabled on your site.
Those values get stored into a separate table called "nodewords_translate"
Then it calls hook_nodewords_tags_output_alter() to retrieve any translated meta information and output new metatags.

I don't have a lot of time to maintain this, so if you find any problems, submitting patches is appreciated. Also, if any of the nodewords maintainers have insights on better ways to leverage nodeword's hooks, I'd appreciate those as well.

philipz’s picture

#106 -> Page not found

Can I download this anywhere ?

jyee’s picture

Perfect timing! Of course the only time anyone goes to find the module is right after I decide to promote it to a full project! :D

That module is now available here:
http://drupal.org/project/nodewords_translate

philipz’s picture

This is great news! I managed to translate my keywords and description tags using standard translation interface in drupal after adding this line in nodewords.module:
if(strlen($tags[$row->name]['value']) > 0) $tags[$row->name]['value'] = t($tags[$row->name]['value']);
right after:
$tags[$row->name] = unserialize($row->content);
in nodewords_load_tags function.

But now I'm going to try your new module out.

Summit’s picture

Hi May be all translate stuff, like other/custom pages meta tags should be focussed in this new module nodewords_translate: http://drupal.org/project/nodewords_translate?
greetings, Martijn

wolfie71’s picture

Version: 6.x-1.x-dev » 6.x-2.0-alpha1

Hi. I'm running a multilingual website win 5 languages. There are several pages generated by panels that were used to present info in all the 5 languages. The problem is that we can not assign different meta tags to the same panel page for the different languages, even if we define custom pages as "en/panels_page" and for french "fr/panels_page".

Can anyone point us a direction?

Thanks. Best regards

Edu

Oceanman’s picture

What is the right solution for this problem? This thread started in 2007 and there still seems to be no clear correct thing to do.

I am using 6.x-1.x-dev. is the option in #97 best or the new module: nodewords_translate

What is the best solution for multilingual home page keywords and description in August 2011?

keesje’s picture

@martijn: thanks for sharing, sometimes I miss the obvious.
This module is a step towards a solution, but doesn't address the whole issue.
The real problem is that t() parsing dynamic strings ($variables) is a "no go" in proper Drupal development.
If this is no option there is no alternative than to "form_alter-ing" an extra field for every possible node_words field available per language, and handle that properly when loading your node/panel/taxonomy/commerce/views/whatever page there is that contains these.

I think this should be addressed at the root of the problem, the node_words module. But easier said than done though...

Regards

Beddengoed jongens meisjes

DamienMcKenna’s picture

Version: 6.x-2.0-alpha1 » 6.x-2.x-dev

Making these easier to index.

johnzzon’s picture

When we were to solve this problem on a multilingual site, we simply used the hook_nodewords_tags_alter to add the t()-function to the tags.
Not entirely sure whether it's the most clean way to achieve it, but it works well enough.

DamienMcKenna’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

Unfortunately this module is no longer supported, so I'm closing this issue.