Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2013 at 13:52 UTC
Updated:
20 Jan 2015 at 11:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amitaibuI believe that would be a token issue, not a Message's one
Comment #2
slowflyer commentedComment #3
yuseferi commentedI have the same problem, how can I solve it , ????
Comment #4
ptmkenny commentedClosing #2015835: [node:content-type:name] and i18n as a duplicate of this issue
Comment #5
ptmkenny commentedi18n_node is the relevant submodule of the i18n module.
I'm not sure whether this functionality belongs in i18n or token. However, I wrote a preliminary patch for token which I tested and is working on my site, so here it is.
Comment #6
schifazl commentedWorks for me too, thank you! :)
Comment #7
caspervoogt commentedThanks ptmenny, that solves it nicely. Is this just about RTBC?
Comment #8
dave reidWhy doesn't i18n use the API to alter token values? https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
Comment #9
TS79 commentedIn patch #5, the language is not considered.
For the new version of token.token.inc ("7.x-1.5") you need something like that:
[node:content-type] token will show the translated node type.
Comment #10
TS79 commentedComment #11
gonssalJust in case anyone lands here looking for this feature, it has been added in i18n #535522: Using translated content type from i18ncontent as a token for pathauto, which is the place to do it.
I guess this can be closed as fixed.