Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #158 (new defect)

Opened 8 years ago

Last modified 8 years ago

Updates wrong node/Duplicat nodes

Reported by: alexander@… Owned by: sveinung@…
Priority: minor Component: ManageLanguages
Keywords: Cc:

Description

I have the following xml:
<?xml version="1.0" encoding="utf-8"?>
<languages>

<language name="svenska" id="sv">

<boxpriceinfo>

<month>Month:</month>

</boxpriceinfo>
<blikunde>

<month>Month:</month>

</blikunde>

</language>

<languages>

If I edit blikunde/month in the editor, then boxpriceinfo/month is actually updated with the new text. If I swap the order of the nodes in the xml file, then boxpriceinfo/month is updated.

It seams that ManageLanguages ignores the path, and only look at the node name. E.g. it searches for the first match in the xml for "month" and changes that text, even if the path is wrong.

Another issue is that both boxpriceinfo and blikunde shows up twice in the editor.

Any help is appriciated.

Change History

comment:1 Changed 8 years ago by alexander@…

  • Priority changed from major to minor
  • Summary changed from Updates wrong node to Updates wrong node/Duplicat nodes

It took me 6 hours, but finally tracked down the reason (had 3MB of lang files).

Turns out another node in the lang file made ManageLanguages show some nodes twice in the editor and messed up the saving.

If you have a lang file that includes a node like this you will get this problem:
<?xml version="1.0" encoding="utf-8"?>
<languages>

<language name="svenska" id="sv">

<something>Here</something>

</language>

<languages>

If you change it to <something><otherthing>Here</otherthing></something> it will fix the problem.

Note: See HelpUser/Tickets for help on using tickets.