Revision 29906 trunk/extensions/extI18n/src/org/gvsig/i18n/I18nManager.java

View differences:

I18nManager.java
2 2
 *
3 3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4 4
 * of the Valencian Gobernment (CIT)
5
 * 
5
 *
6 6
 * This program is free software; you can redistribute it and/or
7 7
 * modify it under the terms of the GNU General Public License
8 8
 * as published by the Free Software Foundation; either version 2
9 9
 * of the License, or (at your option) any later version.
10
 * 
10
 *
11 11
 * This program is distributed in the hope that it will be useful,
12 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 14
 * GNU General Public License for more details.
15
 * 
15
 *
16 16
 * You should have received a copy of the GNU General Public License
17 17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 19
 * MA  02110-1301, USA.
20
 * 
20
 *
21 21
 */
22 22

  
23 23
/*
......
31 31

  
32 32
/**
33 33
 * Management of I18n and Locale related activities.
34
 * 
34
 *
35 35
 * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
36 36
 * @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a>
37 37
 */
......
43 43

  
44 44
    /**
45 45
     * Returns the display name of a locale language.
46
     * 
46
     *
47 47
     * @param locale
48 48
     *            to get the language display name
49 49
     * @param displayLocale
......
54 54

  
55 55
    /**
56 56
     * Returns the display name of a locale language.
57
     * 
57
     *
58 58
     * @param locale
59 59
     *            to get the language display name
60 60
     * @return the locale language display name
......
63 63

  
64 64
    /**
65 65
     * Returns the display name of a locale in the given locale to be displayed.
66
     * 
66
     *
67 67
     * @param locale
68 68
     *            to get the display name
69 69
     * @param displayLocale
......
74 74

  
75 75
    /**
76 76
     * Returns the display name of a locale.
77
     * 
77
     *
78 78
     * @param locale
79 79
     *            to get the display name
80 80
     * @return the locale display name
......
83 83

  
84 84
    /**
85 85
     * Returns the current locale.
86
     * 
86
     *
87 87
     * @return the current locale
88 88
     */
89 89
    Locale getCurrentLocale();
90 90

  
91 91
    /**
92 92
     * Sets the current application locale.
93
     * 
93
     *
94 94
     * @param locale
95 95
     *            the current application locale
96 96
     */
97 97
    void setCurrentLocale(Locale locale);
98
    
98

  
99 99
    /**
100 100
     * Returns the application host system default locale.
101
     * 
101
     *
102 102
     * @return the default system locale
103 103
     */
104 104
    Locale getDefaultSystemLocale();
105 105

  
106 106
    /**
107 107
     * Returns the list of locales supported by the current gvSIG installation.
108
     * 
108
     *
109 109
     * @return the list of locales supported
110 110
     */
111 111
    Locale[] getInstalledLocales();
......
113 113
    /**
114 114
     * Installs or a new locale (or a list) and its translation, or updates an
115 115
     * already existing one.
116
     * 
116
     *
117 117
     * @param importFile
118 118
     *            the jar or zip file which contains the locales and the
119 119
     *            translations as resource bundle files
......
125 125

  
126 126
    /**
127 127
     * Uninstalls a locale and its translation.
128
     * 
128
     *
129 129
     * @param locale
130 130
     *            to uninstall
131 131
     * @throws I18nException
......
138 138
     * translation, into a jar file. Into the file is also included the
139 139
     * translations of another existing locale to be used as reference for
140 140
     * updating the locale.
141
     * 
141
     *
142 142
     * @param locale
143 143
     *            the locale to update or complete
144 144
     * @param referenceLocale
......
156 156
     * translation, into a jar file. Into the file is also included the
157 157
     * translations of another existing locale to be used as reference for
158 158
     * updating the locale.
159
     * 
159
     *
160 160
     * @param locales
161 161
     *            the locales to update or complete
162 162
     * @param referenceLocale
......
173 173
     * Exports the keys of text to translate to a new locale to a jar file. Into
174 174
     * the file is also included the translations of another existing locale to
175 175
     * be used as reference for translating to the new locale.
176
     * 
176
     *
177 177
     * @param locale
178 178
     *            the new locale to translate to
179 179
     * @param referenceLocale
......
190 190
     * Exports the keys of text to translate to a new locale to a jar file. Into
191 191
     * the file is also included the translations of another existing locales to
192 192
     * be used as reference for translating to the new locale.
193
     * 
193
     *
194 194
     * @param locale
195 195
     *            the new locale to translate to
196 196
     * @param referenceLocales
......
206 206
    /**
207 207
     * Returns the list of default locales to use as reference when exporting to
208 208
     * translate a new locale, or update or complete an existing one.
209
     * 
209
     *
210 210
     * @return the list of default locales to export
211 211
     */
212 212
    Locale[] getReferenceLocales();
213 213

  
214 214
    /**
215 215
     * Sets the list of default locales to export.
216
     * 
216
     *
217 217
     * @param referenceLocales
218 218
     *            the list of default locales to export
219 219
     */
......
224 224
     * will be used as the list of installed ones when gvSIG is run for the
225 225
     * first time with the I18n extension. The following times, that list will
226 226
     * be taken form the extension configuration in the plugins persistence.
227
     * 
227
     *
228 228
     * @param defaultLocales
229 229
     */
230 230
    void setDefaultLocales(Locale[] defaultLocales);

Also available in: Unified diff