File: adding_new_language

package info (click to toggle)
acr 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: sh: 4,738; makefile: 41
file content (31 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (6)
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
How to add a new language into ACR
==================================

Just follow these steps:

*) edit src/acr-sh

*) init lang environ (in ##INIT## section)
	LANG_XXX=""
	LANG_XXX_REQUIRED=""
	LANG_XXX_ENV=""

*) add keyword in ##LANGS## section
		  "LANG_XXX") env_xxx; ;;
		  "LANG_XXX") env_xxx; LANG_XXX_REQUIRED=1 ; ;;

*) add env_xxx in ##ENV_LANG## section

		  env_xxx() {
			if [ "${LANG_XXX_ENV}" = "1" ]; then return ; fi
			  LANG_XXX_ENV="XXX"
			ENVHELP=`cat <<EOF
				XXX    this variable is used to manage the XXX language
		  EOF
		  `
			add_lang_envwords "XXX"
		  }

*) add lang_xxx