How to make a localized relative page reference

Settings in this dialog will create the following XML element in your format definition:

< pagenum lang="French;French: Canadian" usepage="true" pagetext="page numéro #" usethis="true" thistext="cette page" usenext="true" nexttext="prochaine page" useprev="true" prevtext="page précédente" useopposite="true" oppositetext="page opposée"/>

In plain language it means that the page reference will only appear in French text. It will show the number of the page where the first heading is before the marker. It will show the page number as set, without forcing arabic numerals and it will not mention section name. All page references will be in French and in case the reference will point to neigboring pages, appropriate relative description will be used instead of plain page number. Page number will be displayed as "page numéro 6", as set by the description "page numéro #"

This modification can be set for each of your elements separately. By adding elements with standard words replaced by their translation and the language dependancy set to appropriate language, you can create a reference which will always point to the source in the language of the text it's in.