Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1925 Location: Stoevring, Denmark
|
| Posted: Sun Aug 19, 2007 7:19 am Post subject: How to translate 'Country/Region' to local language |
|
|
A common request is to being able to handle the country code from Active Directory accordingly. When the country field is pulled out, it is just left with the international country code (based on ISO-3166), which is useless to put into the signature.
Example: | Quote: | Kind regards
John Doe
Manager
ProfCom Corporation GmBH
Berlin
DE |
Instead of 'DE' we would have written "Germany" in the English version and "Deutschland" in the German local signature like this:
| Quote: | Kind regards
John Doe
Manager
ProfCom Corporation GmBH
Berlin
Germany (or 'Deutschland', respectively) |
However AD does only return the country code, so we need to react on this. The template would look like:
| Code: | Kind regards
((First_name)) ((Last_name))
((Ttle))
((Company))
((city))
{$$COUNTRY('((Country/Region))')$$LANGUAGE('GB')$$} |
In the above example we wanted to write "Germany" in the English signature and "Deutschland" in the German signature.
To write "Deutschland" (German for 'Germany') we replace the GB code with the German code 'DE':
| Code: | | {$$COUNTRY('((Country/Region))')$$LANGUAGE('DE')$$} |
|
|