Comments (3)
Hi there,
- 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.
- 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.
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.
- 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
- 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.
(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)
- make-t fails for a dictionary containing language tag :id HOT 6
- What is correct way to specify deeply nested translation path? HOT 10
- Compilation of tower.cljs fails with ClojureScript 0.0-2913 HOT 16
- Temp: testing markdown
- AssertionError from make-t when map with :missing is loaded from external resource HOT 3
- Invalid locale exception when passing arguments to translation in sw locale HOT 6
- Script support for languages HOT 4
- Tower 3.1.0-beta3 with ClojureScript: IllegalArgumentException with tower/dict-compile* HOT 6
- timbre/logp not found HOT 4
- Best way to make dynamic paths HOT 2
- Wrong Swedish currency output HOT 2
- using figwheel in translation HOT 3
- Dependency problem HOT 2
- Formatting time and timezone
- Warn about `dev-mode?` in readme and changelog? HOT 1
- encore.cljs: contains? not supported on type: clojure.lang.PersistentList HOT 2
- Assert failed: Invalid tconfig key: :dictionary HOT 1
- Customizable markdown
- Invalid locale exception with numeric region code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tower.