Using Commons 3.3 and f.e. the "commons_notify_node_created" message:
Neue [message:field-target-nodes:0:content-type] in [message:field-target-nodes:0:og-group-ref:0:title]: [message:field-target-nodes:0:title]
The content type will always be in english.
Locale
Internationalization
Multilingual content
are installed.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2088451-5_token_add_i18n_content_type_support.patch | 829 bytes | ptmkenny |
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.