cryptonas-branches/translation-base-v0.3/stuff/language_specification.txt
lars 0a1a7bd383 started a seperate branch to manage translations for v0.3.x based on tags/v0.3.4.2
fixed corrupt language.hdf file for "volume_passwd" (merged from [891])
fixed spelling in "plugin_manager" and "volume_format_fs" (merged from [880])
merged current state of update_po_files.py (removed obsolete revert_unchanged.sh)
2007-03-29 19:04:21 +00:00

33 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 && scripts/revert_unchanged_po_files.sh"
- 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