lambdoc icon indicating copy to clipboard operation
lambdoc copied to clipboard

translation support

Open edwintorok opened this issue 10 years ago • 1 comments

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:

  • the context in which the translation is used: title/caption or reference (or lambtex could capitalize first character of the translated captions/titles if it is a letter)
  • allow to specify order of reference number and reference text

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

edwintorok avatar Oct 12 '14 13:10 edwintorok

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... :-)

darioteixeira avatar Oct 13 '14 09:10 darioteixeira