How to translate the node title to other language
mirsent - August 13, 2009 - 11:17
| Project: | Automatic Nodetitles |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I use plain text as well as patterns to create the node title, for example my pattern is Customer - [field_fullname-raw], [field_country-raw].
I would like this to be Kunders - [field_fullname-raw], [field_country-raw] if the node language is Swedish.
Is there some way I can do this? Thanks.

#1
what is 'Customers' is it text from the body, or is it something else?
#2
I have a similar problem.
I have a content type called "Order". The automatic title is [type-name] [author-name] [dd]/[mm]/[yyyy].
I have translated the name of the content type "Order" (type:order:name) in French and Dutch, but when I create a node in these languages the [type-name] token is not translated.
I think this is a token, i18n issue.
#3
'Customers' is not text from the body. I enter it directly into the Pattern for the title field in the Automatic title generation section of my content type.
#4
I believe that you have to use the PHP option
"Evaluate PHP in pattern."
<?phpecho (t('Customer') . ' - [field_fullname-raw], [field_country-raw]');
?>
Not sure if the echo() is needed or not.
#5
Thank you for the suggestion. I tried it but I'm afraid it didn't work. I could not add translations for the word Customer in www.example.com/admin/build/translate/search. The search did not find the string. I also substituted a string that already has a translation in the Translation interface, but that didn't work either.