You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "kcyril (JIRA)" <ji...@apache.org> on 2010/06/21 14:33:24 UTC

[jira] Created: (SHINDIG-1372) Translation issue: Invalid XML structure in message bundle

Translation issue: Invalid XML structure in message bundle
----------------------------------------------------------

                 Key: SHINDIG-1372
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1372
             Project: Shindig
          Issue Type: Bug
          Components: PHP
    Affects Versions: 1.0
         Environment: WAMP / Windows XP
            Reporter: kcyril


Hi,

I have a multi-language widget, and i noticed an issue concerning message bundle
Here is how translation files are imported:

 <Locale lang="de" messages=" ... /messages-DE.xml"/>
 <Locale lang="en" messages=" ... /messages-EN.xml"/>
 <Locale lang="fr" messages=" ... /messages-FR.xml"/>
 <Locale lang="es" messages=" ... /messages-ES.xml"/>
 <Locale messages=" ... /messages-default.xml"/>

Shindig returns an "Invalid XML structure in message bundle" error. The widget works fine if i remove the line:

 <Locale messages=" ... /messages-default.xml"/>

It seems that Shindig does not like when the "lang" parameter is not specified in a Locale tag.


Regards,

kcyril

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-1372) Translation issue: Invalid XML structure in message bundle

Posted by "Bastian Hofmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892828#action_12892828 ] 

Bastian Hofmann commented on SHINDIG-1372:
------------------------------------------

I think this issue can be closed. Locals are working here as expected, even if no lang parameter is present. Additionally the posted exception message suggest the the problem lies with the link xml file which can not be parsed. (If no lang parameter is present in a locale tag this message bundle is parsed always and extends any other message bundle with possible additional keys which are not present in the special, localized message bundle).

> Translation issue: Invalid XML structure in message bundle
> ----------------------------------------------------------
>
>                 Key: SHINDIG-1372
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1372
>             Project: Shindig
>          Issue Type: Bug
>          Components: PHP
>    Affects Versions: 1.0
>         Environment: WAMP / Windows XP
>            Reporter: kcyril
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Hi,
> I have a multi-language widget, and i noticed an issue concerning message bundle
> Here is how translation files are imported:
>  <Locale lang="de" messages=" ... /messages-DE.xml"/>
>  <Locale lang="en" messages=" ... /messages-EN.xml"/>
>  <Locale lang="fr" messages=" ... /messages-FR.xml"/>
>  <Locale lang="es" messages=" ... /messages-ES.xml"/>
>  <Locale messages=" ... /messages-default.xml"/>
> Shindig returns an "Invalid XML structure in message bundle" error. The widget works fine if i remove the line:
>  <Locale messages=" ... /messages-default.xml"/>
> It seems that Shindig does not like when the "lang" parameter is not specified in a Locale tag.
> Regards,
> kcyril

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-1372) Translation issue: Invalid XML structure in message bundle

Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-1372.
-----------------------------------

    Fix Version/s: 2.0.0-RC1
       Resolution: Fixed

resolved


> Translation issue: Invalid XML structure in message bundle
> ----------------------------------------------------------
>
>                 Key: SHINDIG-1372
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1372
>             Project: Shindig
>          Issue Type: Bug
>          Components: PHP
>    Affects Versions: 1.0
>         Environment: WAMP / Windows XP
>            Reporter: kcyril
>             Fix For: 2.0.0-RC1
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Hi,
> I have a multi-language widget, and i noticed an issue concerning message bundle
> Here is how translation files are imported:
>  <Locale lang="de" messages=" ... /messages-DE.xml"/>
>  <Locale lang="en" messages=" ... /messages-EN.xml"/>
>  <Locale lang="fr" messages=" ... /messages-FR.xml"/>
>  <Locale lang="es" messages=" ... /messages-ES.xml"/>
>  <Locale messages=" ... /messages-default.xml"/>
> Shindig returns an "Invalid XML structure in message bundle" error. The widget works fine if i remove the line:
>  <Locale messages=" ... /messages-default.xml"/>
> It seems that Shindig does not like when the "lang" parameter is not specified in a Locale tag.
> Regards,
> kcyril

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.