cancel
Showing results for 
Search instead for 
Did you mean: 

non localized paths in CMIS

lordzoster
Champ in-the-making
Champ in-the-making
Hallo,
I'm currently working against two Alfresco installation, one localized (Italian) and one not.
How should I use GetObjectByPath for getting i.e. "Sites"?
In Italian I have to use "Siti" while in English the standard form.
Eg.:

Folder folder = (Folder) session.GetObjectByPath("/Sites/c0001/documentLibrary"); // this one works in English installation only

Folder folder = (Folder) session.GetObjectByPath("/Siti/c0001/documentLibrary"); // this one works in Italian installation only

thanks in advance
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
You can check the locale in your code and then create query accordingly.
https://wiki.alfresco.com/wiki/I18N