darioteixeira / lambdoc

Lambdoc is a library providing support for semantically complex documents in Ocsigen web applications
GNU General Public License v2.0
17 stars 1 forks source link

translation support #14

Open edwintorok opened 9 years ago

edwintorok commented 9 years ago

There is some support for french and portugal words, however in general words cannot be translated independently of context (capitalization, order of words in sentence, plural forms, etc. all depend on context).

I tried to add support for Romanian and Hungarian, and what I would need for that is:

For example I would like to use 'Figura 1' in romanian as the caption for a figure, and refer to it as 'figura 1'. In hungarian both would be '1. ábra'.

See what gettext does, there is also ocaml-gettext but I don't know if it supports the '%1$s' format that would be required here: https://www.gnu.org/software/gettext/manual/html_node/c_002dformat-Flag.html https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html

darioteixeira commented 9 years ago

Yeah, I'm aware that presently the translation support is universal as long as your universe consists only of languages in the western european sprachbund... Nevertheless, I'm rating this as a fairly low priority issue, unless you urgently need to write some documents in Hungarian... :-)