• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

OmegaT プロジェクト単位で稼働時間を記録します。


Commit MetaInfo

Révision3 (tree)
l'heure2013-10-27 02:00:11
Auteuryu-tang

Message de Log

add L10n

Change Summary

Modification

--- src/jp/sourceforge/users/yutang/omegat/plugin/timetracker/L10n.java (nonexistent)
+++ src/jp/sourceforge/users/yutang/omegat/plugin/timetracker/L10n.java (revision 3)
@@ -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+}
--- src/jp/sourceforge/users/yutang/omegat/plugin/timetracker/Setting.java (revision 2)
+++ src/jp/sourceforge/users/yutang/omegat/plugin/timetracker/Setting.java (revision 3)
@@ -34,7 +34,7 @@
3434
3535 public Setting() {
3636 // add item to options menu
37- menuItem = createLocalizedMenuItem("Time Tracker...");
37+ menuItem = createLocalizedMenuItem(L10n.getTimeTrackerMenuLabel());
3838 JMenu toolsMenu = Core.getMainWindow().getMainMenu().getOptionsMenu();
3939 toolsMenu.add(menuItem);
4040 SwingUtilities.invokeLater(new Runnable() {