![]() |
How do I create a proper language xml?
I want to create a language.xml file to easily import some phrases in to the Admin Control Panel to use in a cpnav.xml. I have looked at other language.xml files and tried, but the phrases aren't showing up properly in the cpnav when I view it - the phrases are showing up as the varnames like this:
*[foobar]* *[acp_foo]* *[acp_bar]* instead of: foobar foo bar In the above example "foobar" is the cpnav setting group, and "foo" and "bar" are the settings. This is what my cpnav xml file looks like: Quote:
I created the phrases manually as global cp phrases, but they are not showing up. I would prefer to be able to do it automatically with an xml file. Can someone show me what a language.xml import file, using the above phrases as examples, would look like? |
You should create the phrases as AdminCP Global.
|
would that be:
<phrasetype name="AdminCP Global" fieldname="cpglobal"> or <phrasetype name="AdminCP Global" fieldname="admincpglobal"> ?? |
<phrasetype name="Control Panel Global" fieldname="cpglobal">
|
cpglobal does work, but cphome should be used instead - as the phraees are really only required on ACP Home :)
|
Quote:
so that would be: <phrasetype name="AdminCP Home" fieldname="cphome"> ??? |
Check in the language manager.
|
All times are GMT. The time now is 09:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|