space = popup
[nikiroo-utils.git] / src / be / nikiroo / fanfix / bundles / StringIdBundle.java
CommitLineData
08fe2e33
NR
1package be.nikiroo.fanfix.bundles;
2
3import java.io.File;
4import java.io.IOException;
5
948637bc 6import be.nikiroo.utils.resources.TransBundle;
08fe2e33
NR
7
8/**
5bc9573b 9 * This class manages the translation resources of the application (Core).
08fe2e33
NR
10 *
11 * @author niki
12 */
13public class StringIdBundle extends TransBundle<StringId> {
14 /**
15 * Create a translation service for the given language (will fall back to
5bc9573b 16 * the default one if not found).
08fe2e33
NR
17 *
18 * @param lang
19 * the language to use
20 */
21 public StringIdBundle(String lang) {
5bc9573b 22 super(StringId.class, Target.resources_core, lang);
08fe2e33
NR
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}