No announcement yet.

Question about creating/importing a language.xml

  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about creating/importing a 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:


    instead of:


    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:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <navgroups product="vbulletin">
    <navgroup phrase="cp_foobar" permissions="canadminsettings" hr="true" displayorder="10">

    <navoption displayorder="20">

    <navoption displayorder="30">
    The cpnav file works fine, it is showing up exactly where I want it to, and the links do exactly what I want them to, but the language is wrong, as indicated above.

    I created the phrases manually as global acp 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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.