Commit | Line | Data |
---|---|---|
5bc9573b NR |
1 | package be.nikiroo.fanfix.bundles; |
2 | ||
3 | import java.io.File; | |
4 | import java.io.IOException; | |
5 | ||
6 | import be.nikiroo.utils.resources.TransBundle; | |
7 | ||
8 | /** | |
9 | * This class manages the translation resources of the application (GUI). | |
10 | * | |
11 | * @author niki | |
12 | */ | |
13 | public class StringIdGuiBundle extends TransBundle<StringIdGui> { | |
14 | /** | |
15 | * Create a translation service for the given language (will fall back to | |
16 | * the default one if not found). | |
17 | * | |
18 | * @param lang | |
19 | * the language to use | |
20 | */ | |
21 | public StringIdGuiBundle(String lang) { | |
22 | super(StringIdGui.class, Target.resources_gui, lang); | |
23 | } | |
24 | ||
25 | /** | |
26 | * Update resource file. | |
27 | * | |
28 | * @param args | |
29 | * not used | |
30 | * | |
31 | * @throws IOException | |
32 | * in case of I/O error | |
33 | */ | |
34 | public static void main(String[] args) throws IOException { | |
35 | String path = new File(".").getAbsolutePath() | |
36 | + "/src/be/nikiroo/fanfix/bundles/"; | |
37 | new StringIdGuiBundle(null).updateFile(path); | |
38 | System.out.println("Path updated: " + path); | |
39 | } | |
40 | } |