| | |
| | | import java.util.MissingResourceException;
|
| | | import java.util.ResourceBundle;
|
| | |
|
| | | import com.gitblit.utils.TimeUtils;
|
| | |
|
| | | /**
|
| | | * Loads the Gitblit language resource file.
|
| | | *
|
| | |
| | | public class Translation {
|
| | |
|
| | | private final static ResourceBundle translation;
|
| | | |
| | | private final static TimeUtils timeUtils;
|
| | |
|
| | | static {
|
| | | ResourceBundle bundle;
|
| | |
| | | bundle = ResourceBundle.getBundle("GitBlitWebApp");
|
| | | }
|
| | | translation = bundle;
|
| | | |
| | | timeUtils = new TimeUtils(translation);
|
| | | }
|
| | |
|
| | | public static String get(String key) {
|
| | |
| | | }
|
| | | return key;
|
| | | }
|
| | | |
| | | public static TimeUtils getTimeUtils() {
|
| | | return timeUtils;
|
| | | }
|
| | | }
|