nl_tokens: Returns a localized chapter title . e . g . Chapter 1 If the language does not have a match a default localization will be used .
pl_tokens: function localizeChapterTitle ( language_slug , chapter_number ) { var translations = { 'ar' : 'الفصل %', 'en' : 'Chapter %' , 'ru' : 'Глава %', 'hu' : '%. fejezet' , 'sr-Latin' : 'Поглавље %', 'default' : 'Chapter %' } ; var title = translations [ language_slug ] ; if ( ! title ) title = translations [ 'default' ] ; var num = parseInt ( chapter_number ) ; if ( isNaN ( num ) ) num = chapter_number ; return <mask> . replace ( '%' , num ) ; }