aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Translations.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-08-12Added Listing to Term.John MacFarlane1-0/+1
So far only added to English.
2017-08-12Added Encl, Glossary to TermJohn MacFarlane1-1/+3
2017-08-12Change to yaml for translation files.John MacFarlane1-22/+37
2017-08-11Added support for translations (localization) (see #3559).John MacFarlane1-0/+94
* readDataFile, readDefaultDataFile, getReferenceDocx, getReferenceODT have been removed from Shared and moved into Class. They are now defined in terms of PandocMonad primitives, rather than being primitve methods of the class. * toLang has been moved from BCP47 to Class. * NoTranslation and CouldNotLoudTranslations have been added to LogMessage. * New module, Text.Pandoc.Translations, exporting Term, Translations, readTranslations. * New functions in Class: translateTerm, setTranslations. Note that nothing is loaded from data files until translateTerm is used; setTranslation just sets the language to be used. * Added two translation data files in data/translations. * LaTeX reader: Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia) and `\figurename`.