Giter Club home page Giter Club logo

aem-dictionary-translator's People

Contributors

bdhoine avatar royteeuwen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wietsev

aem-dictionary-translator's Issues

Order of languages should completely match with the imported CSV

How to reproduce:

  • create dictionary with multiple languages (e.g. en, nl, fr)
  • export CSV
  • change the order of languages to something else (e.g. fr, en, nl)
  • import CSV

You will receive error:
please only add languages that exist in the dictionary

This will also occur if you only import 1 language and the dictionary contains multiple languages.
If the dictionary contains of en, nl, I want to be able to only import nl

In a dictionary with multiple languages, leaving a translation input field empty results in an jcr node with an empty sling:message

Steps to reproduce

  • create a dictionary with multiple languages (e.g. EN, FR & NL)
  • add a label
  • add translations for this label in all languages except FR
translation label

Finding

A node is created in JCR in the FR section. This node has an (empty) sling:message.
Because a sling:message is available in FR, it's blank value is shown in the FR site-section instead of a falling back to the filled-in EN translation.

crx

Not able to see/create any dictionary

I have installed the tool on my AEM on premise (6.5 with SP 6.5.21).
Unfortunately the tool for me doesn't work at all. I am not able to create any dictionary or seeing the existing one.
Check screenshots
image

image

We would like to use this tool for our AEM implementations but not possible if is like that...

Publish button ignoring ACLs + no correct info message shown

When selected a dictionary or label, the publish button is always available and do not take ACLs into account

You get always a successful message (Label/Dictionary published), despite it not being published if you do not have the correct permissions.
( in the Logs it is visible it was not published:
*ERROR* [[0:0:0:0:0:0:0:1] [1709119475475] POST /apps/aem-dictionary-translator/content/granite/dialog/dictionary/publish/items/properties/items/columns/items/column/items/form HTTP/1.1] be.orbinson.aem.dictionarytranslator.servlets.action.ReplicateDictionaryServlet ReplicationException occurred when trying to replicate dictionary in ReplicateDictionaryServlet
)

Also when you dont have the rights to create a label or update a label, you always get the info message Label saved while the operation was not successful

[Feature Request] Add export/import feature for a selected dictionary

export

Add the option to export the key and translations for all labels (in all defined languages) for a selected dictionary to CSV.

The resulting file should have

  • 1st column, containing the label's key (column header 'KEY`)
  • a columns for each language defined in this dictionary, containing the label's translation for this language (column header = the language-code for this language)

import

Add the option to import a CSV file into a selected dictionary.

The import file should be considered invalid (and an error should be shown if)

  • the file is empty or invalid
  • column 'KEY` is missing
  • column 'KEY` contains keys that are not available in the selected dictionary
  • other column-headers contain a value that does not match with a language-code defined for the selected dictionary

Remark: Not ALL languages defined in the selected dictionary should be present in the import CSV. This will allow a user to import translations language per language (if this is needed)

If the import file is valid,

  • the translation-value of a label is updated for all languages provided in the import file
  • a translation node is created if it is not yet available in CRX
  • if a translation value is empty, the sling:message for this node should be removed

Generic error message instead of `Label already exists`

No clear indication when trying to create a label which name already exists.

Test steps:

  1. Create a label with name test
  2. Submit dialog to create the label
  3. Create a new label again with the same name test

Expected behaviour:
A clear message should be shown to indicate this label already exists

Actual behaviour:
A generic error message Server Error is being shown

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.