cryptonas/stuff/language_specification.txt

35 lines
1.4 KiB
Plaintext
Raw Normal View History

2006-11-06 17:05:00 +01:00
Some important notes regarding the language files:
2006-12-25 13:22:54 +01:00
1) warning/success messages
2006-11-06 17:05:00 +01:00
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'
2006-11-06 17:05:00 +01:00
Link.Rel - relative url (based on the cgi root)
2006-11-14 13:32:38 +01:00
Link.Attr[12].[name|value] - arguments to be added to the link
2006-11-06 17:05:00 +01:00
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.
2006-11-06 17:05:00 +01:00
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"
2006-11-14 13:32:38 +01:00
- "Link.Abs" can not be combined with "Link.Prot", "Link.Rel" or "Link.Attr..."
2006-11-06 17:05:00 +01:00
- "Link.Rel" and "Link.Prot" may be used together
2006-11-14 13:32:38 +01:00
(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