OmegaT プロジェクト単位で稼働時間を記録します。
add L10n
@@ -0,0 +1,39 @@ | ||
1 | +/************************************************************************** | |
2 | + TimeTracker - allow project basis time tracking. | |
3 | + | |
4 | + Copyright (C) 2013 Yu Tang | |
5 | + Home page: http://sourceforge.jp/users/yu-tang/ | |
6 | + Support center: http://sourceforge.jp/users/yu-tang/ | |
7 | + | |
8 | + This file is part of plugin for OmegaT. | |
9 | + http://www.omegat.org/ | |
10 | + | |
11 | + License: GNU GPL version 3 or (at your option) any later version. | |
12 | + | |
13 | + You should have received a copy of the GNU General Public License | |
14 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | |
15 | + **************************************************************************/ | |
16 | + | |
17 | +package jp.sourceforge.users.yutang.omegat.plugin.timetracker; | |
18 | + | |
19 | +import java.util.ResourceBundle; | |
20 | + | |
21 | +/** | |
22 | + * | |
23 | + * @author Yu-Tang | |
24 | + */ | |
25 | +public class L10n { | |
26 | + | |
27 | + private static final ResourceBundle bundle; | |
28 | + | |
29 | + static { | |
30 | + bundle = ResourceBundle.getBundle("jp/sourceforge/users/yutang/omegat/plugin/timetracker/Bundle"); | |
31 | + } | |
32 | + | |
33 | + // for menu | |
34 | + | |
35 | + public static String getTimeTrackerMenuLabel() { | |
36 | + return bundle.getString("TIME_TRACKER_MENU_LABEL"); | |
37 | + } | |
38 | + | |
39 | +} |
@@ -34,7 +34,7 @@ | ||
34 | 34 | |
35 | 35 | public Setting() { |
36 | 36 | // add item to options menu |
37 | - menuItem = createLocalizedMenuItem("Time Tracker..."); | |
37 | + menuItem = createLocalizedMenuItem(L10n.getTimeTrackerMenuLabel()); | |
38 | 38 | JMenu toolsMenu = Core.getMainWindow().getMainMenu().getOptionsMenu(); |
39 | 39 | toolsMenu.add(menuItem); |
40 | 40 | SwingUtilities.invokeLater(new Runnable() { |