Difference between revisions of "Languages.pl"
(Added page about config file) |
(Added actually file name in bold.) |
||
Line 2: | Line 2: | ||
{{cfgd}} | {{cfgd}} | ||
− | + | '''languages.pl''' contains configuration for use of languages within EPrints. This has two settings: | |
# '''<code>$c->{defaultlanguage}</code>''' - The default language of the repository. By default this in <tt>en</tt> for English. | # '''<code>$c->{defaultlanguage}</code>''' - The default language of the repository. By default this in <tt>en</tt> for English. | ||
# '''<code>$c->{languages}</code>''' - The list of languages supported by this repository. This includes <tt>en</tt> by default but other languages could be added (e.g. <tt>fr</tt> for French, <tt>de</tt> for German, etc.). N.B. that you may need to define you own phrases for languages other than English or the English phrases will be used by default. | # '''<code>$c->{languages}</code>''' - The list of languages supported by this repository. This includes <tt>en</tt> by default but other languages could be added (e.g. <tt>fr</tt> for French, <tt>de</tt> for German, etc.). N.B. that you may need to define you own phrases for languages other than English or the English phrases will be used by default. |
Latest revision as of 10:27, 30 January 2022
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
languages.pl contains configuration for use of languages within EPrints. This has two settings:
$c->{defaultlanguage}
- The default language of the repository. By default this in en for English.$c->{languages}
- The list of languages supported by this repository. This includes en by default but other languages could be added (e.g. fr for French, de for German, etc.). N.B. that you may need to define you own phrases for languages other than English or the English phrases will be used by default.