forked from miracle2k/android2po
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.config
91 lines (75 loc) · 3.65 KB
/
example.config
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is an example configuration file for android2po, explaining the
# various options in more detail.
#
# Remove the comments for those options that you want to use.
#
# You probably want to copy this file as ".android2po" into the directory
# containing your "AndroidManifest.xml" file, so it'll be picked up
# automatically.
# If you don't like the default location, you can specify where the .po files
# should be stored. This path is relative to the path of this configuration
# file.
#--gettext locale/
# By default, android2po will always process strings.xml and arrays.xml files,
# as well as all files which are found to contain string resources. However,
# you may often find it necessary to restrict the files used. This option
# allows to explicitly define the groups being processed.
--groups strings arrays
# Specify a custom gettext domain. A gettext domain is like a namespace for
# your application, in case mutliple independent gettext enabled domains need
# to work together. As far is it concerns us here, this only affects the
# location and filename of the .po files inside the --gettext directory.
#
# You do not need to specify a domain. See the --layout option for more
# information.
#--domain android
# Determines how the .po files should be stored inside the --gettext directory.
# If not specified, .po files will be stored in
# - {gettext}/{locale}.po - if no domain was given
# - {gettext}/{domain}-{locale}.po - if a domain was given
# If you use the magic keyword "gnu", the standard gnu layout will
# automatically be used:
# {gettext}/{locale}/LC_MESSAGES/{domain}.po
# You may also customize the path completely using a Python format string with
# the mandatory variables %(locale)s and %(domain)s. Optionally, you may also
# include %(group)s. This is really only useful if you want the different
# Android XML resource files (strings.xml, arrays.xml) to end up in different
# gettext catalogs (see the XXX option [needs to be implemented]).
#--layout gnu
#--layout %(locale)/%(domain).po
#--layout %(locale)/%(domain)/%(group).po
# Customize the name of the .pot template file (basically a .po file without
# any translations). Similar to --layout, it may contain %(domain)s and
# %(group)s placeholders.
#--template template.pot
#--template %(domain)s-template.pot
# If you don't need the .pot template file, you can tell a2po not to generate
# it at all.
#--no-template
# You can specify multiple message ids that should be ignored. Those will not
# be included when generating the .po file. As you can see, you may use regular
# expressions if you surround the expression using forward slashes.
#
# As an alternative, you can also add the attribute translatable="false" to the
# string that you want to have ignored.
#--ignore app_name color_names
#--ignore /^pref/
#--ignore /^error_level_[0-9]*$/
# This will cause messages that are marked as "fuzzy" in .po files to be
# ignored on import.
#--ignore-fuzzy
# This will ignore all strings for a language if it's .po file does not have
# the given minimum percentage of translated strings. This is useful if you
# don't want to ship your app with an incomplete translation, resulting in a
# mix of localized and English texts. Set this to 1 if you want to include
# only a complete translation.
#
# If you export into multiple .po files per language, they will be counted
# as a collective for the purposes of this option.
#
# If --ignore-fuzzy is also set, then fuzzy strings will not be counted towards
# to total.
#--require-min-complete 0.9
# This will limit the maximum line length. the maximum line width for the generated
# output; use 0 or a negative number to completely disable line wrapping
#--line-width 76