Hi Jose,

I would like to ask for your attentention to an issue in the pathauto module queue.

As mentioned here http://drupal.org/node/290421#comment-3807650 it would be nice to have i18n version tokens of catpath or termpath available for pathauto module. That way localized terms can be used in paths generated by the pathauto module.

The full issue can be found here; http://drupal.org/node/290421

Do you think this is a realistic feature request?

Cheers,
Bartezz

Comments

pokurek’s picture

Version: 6.x-1.7 » 6.x-1.x-dev
StatusFileSize
new4.48 KB

Hi,

As mentioned before, it could be nice to have for pathauto module something like this patch.
Patch is not so well tested yet, but I hope it is good for start think about.

Have a nice time,
Petr

klonos’s picture

subscribing

mxt’s picture

Subscribing

philipz’s picture

subscribing

anrikun’s picture

@pokurek: patch at #1 doesn't work for me...
Is this supposed to work with "Localize terms. Terms are common for all languages, but their name and description may be localized."?

bartvdputte’s picture

This doesn't seem to work for me neither with "localize terms"...

pokurek’s picture

I have rewritten the patch. Try this one.

If term is from vocabulary with "Localize terms." then it uses i18nstrings() function for term name translation.

nimek’s picture

#7 Not working for localize terms vocabulary settings cause in that case $term->language is empty.

mathieu’s picture

I have a feeling this could include (or be included in) #1141246: Add new tokens (i18n-termpath-raw and i18n-termpath).

klonos’s picture

Status: Active » Needs review

...this is NR based on #7.

pokurek’s picture

#8 I think, If we don't know term language, we can't do any translations.
So, there is a condition for that and if term language is empty, the function return term itself.

if (i18ntaxonomy_vocabulary($term->vid) == I18N_TAXONOMY_LOCALIZE && $term->language) {
  // do translation
}
else {
  $values['i18n-term-raw'] = $term->name;
  $values['i18n-term'] = check_plain($term->name);
  // and so on
}

Module pathauto set term language before it is translated as a path alias (can see in issue: http://drupal.org/node/290421).

jose reyero’s picture

Status: Needs review » Closed (won't fix)

No new features for 6.x

klonos’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Category: feature » support
Status: Closed (won't fix) » Active

...sorry for reopening this, but this time it is a support question: How is this fixed in 7.x?

jose reyero’s picture

Status: Active » Closed (duplicate)