Menu

#156 [ART] Cannot add name in second language

2015
closed
2016-02-20
2014-05-12
mgraauw
No

When a concept has no name in a language, one cannot add it in ART.

Steps:
- Open demo1 (with proper rights)
- Open & expand dataset
- Switch to 'en-US'
- Click Edit
- You can edit name of 'Weight' etc., but clicking on the element below 'Weight gain' (which has no en-US name), you cannot edit the name.

Discussion

  • Alexander Henket

    That might not be such an easy fix. Normally upon editing a concept, all elements are instantiated as they live in the underlying format. If you switch language then every element that was not in the underlying format is unavailable to the editor.

    This means that you either need to use the switch language event to iteratively add missing elements/attributes for the new language, or you need a [+]/[-] for every element (most notably dataset/name & desc, concept/name & desc)

    The iterative process only works when you switch in edit mode. If you switch and then go to edit mode, the fresh copy from the database will not have the requested language unless already present. To make that happen you need a language parameter on get-decor-concept-for-edit.xquery.

    To make editing a new language a bit more feasible we need to do more however: how do you translate if you cannot see the base language. So: while editing mode you actually need to see all languages or at the very least the project/@defaultLanguage.

    Side note: concept/@versionLabel should switch to forms:input while in edit mode to be able to edit it. It currently is forms:output only. This is a separate bug and has nothing to do with the language.

     
    • mgraauw

      mgraauw - 2014-05-12

      Or we could make a translation form across all @language-having thingies in Art Decor. With:
      - artefact type (i.e. concept name, actor desc etc.)
      - name in defaultLanguage (any sane DECOR artefact should at least have a name in the default language, I guess)
      - editable column for target language

       

      Last edit: Alexander Henket 2014-05-13
  • Alexander Henket

    I'm not sure that one form hat targets translation only for any artifact is feasible but it's a tempting idea as you could put people to work on translation while not offering them the option for structural changes in the dataset, value sets, scenarios or templates.

     
  • Alexander Henket

    Made all parts editable for the given language. There's no switching while in edit mode. So: switch first then click Edit

     
  • Alexander Henket

    • Milestone: 2014 --> 2015
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2016-02-20
    • status: open --> closed
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2016-02-20

    Implemented through the "world globe" button

     

Log in to post a comment.