Small fixes:
[nikiroo-utils.git] / src / be / nikiroo / fanfix / bundles / StringIdBundle.java
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.
10 *
11 * @author niki
12 */
13 public class StringIdBundle extends TransBundle<StringId> {
14 /**
15 * Create a translation service for the given language (will fall back to
16 * the default one i not found).
17 *
18 * @param lang
19 * the language to use
20 */
21 public StringIdBundle(String lang) {
22 super(StringId.class, Target.resources, 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 StringIdBundle(null).updateFile(path);
38 System.out.println("Path updated: " + path);
39 }
40 }