package org.accela.minesweeper.ui.lang.chs;

import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import org.accela.minesweeper.util.CompositeProcessor;
import org.accela.minesweeper.view.GameMenuBar;


public class GameMenuTextAndShotcut extends CompositeProcessor
{
	public GameMenuTextAndShotcut()
	{
		super(GameMenuBar.class, null);
	}
	
	@Override
	protected boolean doProcess(Object obj)
	{
		GameMenuBar bar=(GameMenuBar)obj;
		
		//======Game Menu=====
		bar.getGame().setText("ÓÎÏ·(G)");
		bar.getGame().setMnemonic('g');
		
		bar.getStart().setText("¿ª¾Ö(N)");
		bar.getStart().setMnemonic('n');
		bar.getStart().setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0));
		
		bar.getLevelLow().setText("³õ¼¶(B)");
		bar.getLevelLow().setMnemonic('b');
		bar.getLevelMiddle().setText("ÖÐ¼¶(I)");
		bar.getLevelMiddle().setMnemonic('i');
		bar.getLevelHigh().setText("¸ß¼¶(E)");
		bar.getLevelHigh().setMnemonic('e');
		bar.getLevelCustom().setText("×Ô¶¨Òå(C)");
		bar.getLevelCustom().setMnemonic('c');
		
		bar.getMark().setText("±ê¼Ç(?)(M)");
		bar.getMark().setMnemonic('m');
		bar.getSkin().setText("Æ¤·ô(K)");
		bar.getSkin().setMnemonic('k');
		bar.getLang().setText("ÓïÑÔ(L)");
		bar.getLang().setMnemonic('l');
		bar.getSound().setText("ÉùÒô(S)");
		bar.getSound().setMnemonic('s');
		
		bar.getHighScore().setText("É¨À×Ó¢ÐÛ°ñ(T)");
		bar.getHighScore().setMnemonic('t');
		
		bar.getExit().setText("ÍË³ö(X)");
		bar.getExit().setMnemonic('x');
		
		//=======Help Menu=======
		bar.getHelp().setText("°ïÖú(H)");
		bar.getHelp().setMnemonic('h');
		
		bar.getCatalog().setText("Ä¿Â¼(C)");
		bar.getCatalog().setMnemonic('c');
		bar.getCatalog().setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
		bar.getFindHelp().setText("²éÕÒ°ïÖúÖ÷Ìâ(S)");
		bar.getFindHelp().setMnemonic('s');
		bar.getUserManual().setText("Ê¹ÓÃ°ïÖú(H)");
		bar.getUserManual().setMnemonic('h');
		bar.getAbout().setText("¹ØÓÚÉ¨À×(A)");
		bar.getAbout().setMnemonic('a');
		
		return true;
		
	}

}
