35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
|
Some important notes regarding the language files:
|
||
|
|
||
|
1) warning/success messages
|
||
|
|
||
|
Attributes:
|
||
|
Title - title of the message
|
||
|
Text - text of the message
|
||
|
Link.Text - textual representation of a link
|
||
|
Link.Abs - absolute URL e.g. http://cryptobox.org/trac
|
||
|
Link.Prot - 'http' or 'https'
|
||
|
Link.Rel - relative url (based on the cgi root)
|
||
|
Link.Attr[12].[name|value] - arguments to be added to the link
|
||
|
|
||
|
The "Link" attributes are only necessary if the (warning) message can be resolved by
|
||
|
some action. Otherwise it is not necessary to define any "Link" attribute.
|
||
|
|
||
|
All values are optional, but you should follow these rules:
|
||
|
- at least one of "Title" and "Text" should be defined
|
||
|
- if there are "Link" attributes, then you should also define "Link.Text"
|
||
|
- "Link.Abs" can not be combined with "Link.Prot", "Link.Rel" or "Link.Attr..."
|
||
|
- "Link.Rel" and "Link.Prot" may be used together
|
||
|
(see plugin/volume_format_fs/lang/en.hdf for a good example for links)
|
||
|
|
||
|
|
||
|
2) adding a new language
|
||
|
- add the language code (e.g. "de") to the ALL_LANGUAGES setting in
|
||
|
scripts/update_po_files.py
|
||
|
- run "scripts/update_po_files.py"
|
||
|
- svn add plugins/*/intl/NEW_LANG_CODE intl/NEW_LANG_CODE
|
||
|
- svn revert plugins/*/intl/NEW_LANG_CODE/*.mo intl/NEW_LANG_CODE/*.mo
|
||
|
- svn propset svn:ignore "*.mo" plugins/*/intl/NEW_LANG_CODE intl/NEW_LANG_CODE
|
||
|
- add it to /etc/pootle/pootle.prefs in the translation pootle server
|
||
|
- add it to conf-examples/cryptobox.conf
|
||
|
|