X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fbundles%2FStringIdGuiBundle.java;fp=src%2Fbe%2Fnikiroo%2Ffanfix%2Fbundles%2FStringIdGuiBundle.java;h=c036381ba68cff456bebc537733f7da06c17c7b8;hp=0000000000000000000000000000000000000000;hb=5bc9573be46f09ac92207e104915bd5babbd6d63;hpb=3d709626bd29ff75ee31cb42ac47774a639d514c diff --git a/src/be/nikiroo/fanfix/bundles/StringIdGuiBundle.java b/src/be/nikiroo/fanfix/bundles/StringIdGuiBundle.java new file mode 100644 index 0000000..c036381 --- /dev/null +++ b/src/be/nikiroo/fanfix/bundles/StringIdGuiBundle.java @@ -0,0 +1,40 @@ +package be.nikiroo.fanfix.bundles; + +import java.io.File; +import java.io.IOException; + +import be.nikiroo.utils.resources.TransBundle; + +/** + * This class manages the translation resources of the application (GUI). + * + * @author niki + */ +public class StringIdGuiBundle extends TransBundle { + /** + * Create a translation service for the given language (will fall back to + * the default one if not found). + * + * @param lang + * the language to use + */ + public StringIdGuiBundle(String lang) { + super(StringIdGui.class, Target.resources_gui, lang); + } + + /** + * Update resource file. + * + * @param args + * not used + * + * @throws IOException + * in case of I/O error + */ + public static void main(String[] args) throws IOException { + String path = new File(".").getAbsolutePath() + + "/src/be/nikiroo/fanfix/bundles/"; + new StringIdGuiBundle(null).updateFile(path); + System.out.println("Path updated: " + path); + } +}