File: LanguagePacks.txt

package info (click to toggle)
opendb 0.81p18-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,716 kB
  • ctags: 6,787
  • sloc: php: 50,213; sql: 3,098; sh: 272; makefile: 54; xml: 48
file content (53 lines) | stat: -rw-r--r-- 1,711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Language Packs
--------------

1)	Introduction

Only OpenDb wide language support is provided, with update scripts
to change the system data for descriptions and prompts to the
language required.

2) Language packs

The lang/english.inc.php and patch/language/english.sql are to
be used as templates for new language packs.  Make a copy of
each of these and replace the 'english' part with your 
language name.  
	
	*** Ensure the language names are all legal filenames ***

2.2) lang/english.inc.php

The lang/english.inc.php script consists of a lot (500 lines)
of $lang_var['...'] array variables.  Each one of these will
need to be translated.  Please be sure to leave the {varname}
UNTRANSLATED, as these will be replaced in context by php
at runtime.  In may cases the {varname} will actually expand
to another $lang_var['...'], but not necessarily.  For instance
it may translate to a $s_item_type, or a variable in the
include/config.php file, such as $CONFIG_VARS['site.admin_name'].

2.3) lang/local.english.inc.php

If you want to modify any variables out of lang/english.inc.php, 
you are better off copying them to this script and making changes 
here.  In this way you can copy this local one over to a new 
install of OpenDb, and automatically have your customisations 
take effect.

2.4) patch/language/english.sql

Most of the statements in this file are UPDATE statements for:

	Table   					Columns
	-----						-------
	s_item_type					title_prompt,description
	s_attribute_type			prompt,description,input_type
	s_item_attribute_type		prompt
	s_attribute_type_lookup		display


3) 	Notes

The Administration section, patch facility and logging do not
support other languages besides english.