eXist-db/demo-apps

Update location of i18n.xql

joewiz opened this issue · 1 comments

According to http://exist-db.org/exist/apps/demo/examples/special/i18n-docs.html#configuration, also https://github.com/eXist-db/demo-apps/blob/master/examples/special/i18n-docs.html#L112 (see other locations on this page...), i18n.xql is located in /db/i18n/modules/i18n.xql. It is actually in /db/apps/demo/modules/i18n.xq - see https://github.com/eXist-db/demo-apps/blob/master/modules/i18n.xql.

@windauer @zwobit Is the code sample at https://github.com/eXist-db/demo-apps/blob/master/examples/special/i18n-docs.html#L110-L119 meant to be copied and pasted into someone's own app without changes? At the very least, the location of i18n.xql and the i18n data would need to be updated. Similarly, in the controller.xql code the path to /db/i18n/modules/view.xql at https://github.com/eXist-db/demo-apps/blob/master/examples/special/i18n-docs.html#L77-L94 would need to be updated.

Someone on the list mentioned this was confusing to them. Can you either update the code samples to point to the actual location of these files in the demo app, or add language saying that the user needs to copy these modules/data into their own application?