| 1 | package be.nikiroo.jvcard.resources; |
| 2 | |
| 3 | |
| 4 | /** |
| 5 | * This class manages the translation of {@link TransBundle.StringId}s into |
| 6 | * user-understandable text. |
| 7 | * |
| 8 | * @author niki |
| 9 | * |
| 10 | */ |
| 11 | public class TransBundle extends |
| 12 | be.nikiroo.utils.resources.TransBundle<StringId> { |
| 13 | |
| 14 | /** |
| 15 | * Create a translation service with the default language. |
| 16 | */ |
| 17 | public TransBundle() { |
| 18 | super(StringId.class, Target.resources); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Create a translation service for the given language. (Will fall back to |
| 23 | * the default one i not found.) |
| 24 | * |
| 25 | * @param language |
| 26 | * the language to use |
| 27 | */ |
| 28 | public TransBundle(String language) { |
| 29 | super(StringId.class, Target.resources, language); |
| 30 | } |
| 31 | } |