Coder Social home page Coder Social logo

Comments (3)

ptaoussanis avatar ptaoussanis commented on June 15, 2024

Hi there,

  1. You can add a note for translators to please keep <=20 symbols. There's no out-the-box way of enforcing a limit, but since dictionaries are just Clojure data structures, it'd be easy enough to apply any kind of limits you'd like.
  2. Not sure I really understood this one, but it does sound like you'll just want different translation keys. So something like :last-name-grid, :last-name-form or like {:last-name {:grid _ :form _}} (i.e. you can namespace the key variants if you like).

Hope that helps! Cheers :-)

from tower.

obeah avatar obeah commented on June 15, 2024

Hi Peter,

Thank you for prompt answer.
This questions come from prototyping possible re-implementation in clojure of the quite large system with (tens of) thousands of translatable texts and thousands of entity properties.
I understand now, that I'll have to implement own solution but below are more detailed explanations in case you decide sometimes in the future to extend the library in order to support (some of) these requirements.

  1. What I meant is that some UI translation tool reads data structure and enforces limit on the level of edit field where translator enters his text. My question is if it is possible to add this kind of (meta-)data about the text to current data structure. Another similar example of such meta-data: some kind of comment/hint from developer to translator for some ambiguous text. Again, translator will not see the maps defined in clojure. He will just have an URL to translation UI where he has to translate all texts added/changed since last translation. So these meta data (size limit, hint/comment) has to be somehow associated with (some) texts and will influence translator's UI
  2. Different keys are possible but makes such texts definition more verbose and more difficult to maintain. If I know that in my system every entity property will always have 3 associated texts, then I'd prefer to define it like {:last-name ["LN" "Last name" "Enter last name of the person"]}
    I understand that this requirement may seem quite specific (though it is almost exactly the way how such property texts are defined in the largest ERP software).

Thanks

from tower.

ptaoussanis avatar ptaoussanis commented on June 15, 2024

(1) My question is if it is possible to add this kind of (meta-)data about the text to current data structure.

There's support to add arbitrary comments to a key to help let translators know about any non-obvious context, limits/requirements, etc. (see the _comment_ key in the README example my-tconfig). Note that you'll need a tool which can use this info.

(2) If I know that in my system every entity property will always have 3 associated texts, then I'd prefer to define it like

You'd still need some way of identifying individual elements / translation keys. If you want to always identify by order and only order, you could do something like {:my-translation-key {:1 _ :2 _ :3 _}}. Not sure how that'd be more difficult to maintain, but it's possible I'm missing something (?).

Hope that helps, cheers! :-)

from tower.

Related Issues (20)

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.