aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Translations.hs
AgeCommit message (Collapse)AuthorFilesLines
2018-06-29Use HsYAML instead of yaml for translations, YAML metadata.John MacFarlane1-8/+31
yaml wraps a C library; HsYAML is pure Haskell. Closes #4747. Advances #4535.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane1-0/+2
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-16Monoid/Semiground cleanup relying on custom Prelude.John MacFarlane1-4/+0
2018-03-16Translations: Semigroup instance for Translations with base >= 4.9.John MacFarlane1-0/+5
2018-01-05Update copyright notices to include 2018Albert Krewinkel1-2/+2
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane1-5/+5
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`.