Saturday, July 17, 2010

Migrating translations for fields and other components using Force.com IDE

Well, this is quite risky job if your machine does not support a language to be edited in its proper format and re formats the content into some garbage characters. This might be the case with chinese, japanese and for all the languages that do not use 'script' similar to english.

The steps are quite easy with just one DON'T..what? wait for a minute, you'll get to know soon..
I am assuming that you know how to use Force.com IDE. Now
  • Create a Force.com package using your credentials for your source environment/sandbox
  • While selecting metadata components, select second option (i.e. Choose manually)
  • Expand "objects" and select the object(s) whose translation you want to migrate (including field translations). Example: Account, MyObject__c
  • Expand "translations" and select the languages for which the translation is done. Example: ja, zh_CN
  • Next expand "objectTranslation" and select the translation for the objects in step3 and select the labguage for those objects in step 4.
Now when you will click Next and Finish, three folders should be there in your project's "src" folder, viz. object, tranaslation and objectTranslation. And here is that DON'T. DO NOT open any objectTranslation file on your machine. just keep them as they are. Although you can open a fine that supports your "keyboard". for example if you are using an english keybord, you can open French or German file and so on.

  • To deploy this to your target environment/sandbox, right click on project --> Force.com -->Deploy to server
  • Enter the credentials
  • On the next page, "Deselect All" the components, then manually select only the objectTranslation file (assuming you have already migrated objects and have set up the language otherwise select all the components)
  • Validate your deployment before clicking Next
  • Click Next when you get a Green signal
  • And yayy..you are done..
See how simple. For further reference go to
http://wiki.developerforce.com/index.php/Documentation#Usage_and_Implementation_Guides


and the book is Localizing with the Force.com IDE.

Here is the direct link

Hope this was useful.

Happy clouding..

No comments:

Post a Comment