Localization xml files

Vote:
 

Hi,

Can I got 'property name' from 'Localization xml file' using code?

<languages>

 <language name="English" id="en">
  <pagetypes>
   <pagetype name="LocaleChooserPage">
   <name>Locale chooser</name>
   <description>Site start page</description>
   <property name="PageTitle">
    <caption>Page title</caption>
    <help></help>
   </property>

  </pagetype>
 </pagetypes>...

 

I want to get an underlined value.

I hope for your help

#76495
Oct 26, 2013 21:55
Vote:
 

But the problem is that I don't know which key to use in a given situation

#76498
Oct 27, 2013 21:39
Vote:
 
Try something like below.

"/pagetypes/property[@name=\"PageTitle\"]/caption"
#76508
Edited, Oct 28, 2013 8:26
Vote:
 

There is a Visual Studio extension that also can help you to find the key. In your case it will give you a result that looks like this

 

#76515
Oct 28, 2013 9:05
Vote:
 

We are using strongly typed access for resource look-up. Miroslaw has created a great plugin - http://blog.m.jedynak.pl/2013/02/openwavesepiserverlocalization-strongly.html

#76560
Oct 28, 2013 23:29
Vote:
 

Per Nergård,

Thanks for your help

#76600
Oct 29, 2013 14:22
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.