📄 resource_l10n.java-template
字号:
/* * @(#)Resource_l10n.java-TEMPLATE 1.1 00/11/03 * * Copyright (c) 2000 Sun Microsystems, Inc., 901 San Antonio Road, * Palo Alto, CA 94303, U.S.A. All Rights Reserved. * * Sun Microsystems, Inc. has intellectual property rights relating * to the technology embodied in this software. In particular, and * without limitation, these intellectual property rights may include * one or more U.S. patents, foreign patents, or pending * applications. Sun, Sun Microsystems, the Sun logo, Java, KJava, * and all Sun-based and Java-based marks are trademarks or * registered trademarks of Sun Microsystems, Inc. in the United * States and other countries. * * This software is distributed under licenses restricting its use, * copying, distribution, and decompilation. No part of this * software may be reproduced in any form by any means without prior * written authorization of Sun and its licensors, if any. * * FEDERAL ACQUISITIONS: Commercial Software -- Government Users * Subject to Standard License Terms and Conditions */package com.sun.midp.lcdui.i18n;/* * A template file for the localization of Resource.java. *//** * Change the class and file name to Resource_<your locale>. */public class Resource_l10n extends com.sun.midp.lcdui.Resource { /** * DO NOT TOUCH. */ public Object[][] getContents() { return contents; } /** * Translate the English word(s) or sentence in the left * paranthese and put the translation into the right side. */ static final Object[][] contents = { // Alert {"Done", ""}, // DateField, TextField {"Back", ""}, {"Save", ""}, // DateField {"noon", ""}, {"PM", ""}, {"mid.", ""}, {"AM", ""}, {"<date>", ""}, {"<time>", ""}, {"<date/time>", ""}, {"Sun", ""}, {"Mon", ""}, {"Tue", ""}, {"Wed", ""}, {"Thu", ""}, {"Fri", ""}, {"Sat", ""}, {"January", ""}, {"February", ""}, {"March", ""}, {"April", ""}, {"May", ""}, {"June", ""}, {"July", ""}, {"August", ""}, {"September", ""}, {"October", ""}, {"November", ""}, {"December", ""}, {"Jan", ""}, {"Feb", ""}, {"Mar", ""}, {"Apr", ""}, {"May", ""}, {"Jun", ""}, {"Jul", ""}, {"Aug", ""}, {"Sep", ""}, {"Oct", ""}, {"Nov", ""}, {"Dec", ""}, // Selector {"About", ""}, {"Copyright 2000 Sun Microsystems Inc. All Rights Reserved.", ""}, {"Copyright 2000 Sun Microsystems Inc. All Rights Reserved.\nSun, Sun Microsystems, the Sun logo, Java, and all Sun-based andJava-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.\n\nThis product meets the Wireless Profile Compatible designation requirement, containing tested and compatible Wireless Profile software from Sun Microsystems, Inc.\n\nUse is subject to license terms and limited to demonstration only. Sun Microsystems, Inc. has intelluctual property rights relating to the technology embodied in this software. In particular, and without limitation, these intellectual property rights may include one or more U.S. patents, foreign patents, or pending applications.\nU.S. Government approval required when exporting the product.\n\nFEDERAL ACQUISITIONS\nCommercial Software -- Government Users Subject to Standard License Terms and Conditions.", ""}, {"About Wireless Profile", ""}, {"Choose One:", ""}, {"Can not start: ", ""}, {"Exception: ", ""}, // Image files for splash screens. keep these intact unless // you really need to change these {"/icons/JavaPowered-8.png", "/icons/JavaPowered-8.png"}, {"/icons/JavaPowered-2.png", "/icons/JavaPowered-2.png"}, }; /** * Returns a formatted date string that is suited for the target * language. In English, this will return: * * "Fri, 05 Dec 2000" */ public String getLocalizedDateString(String dayOfWeek, String date, String month, String year) { return dayOfWeek + ", " + date + " " + month + " " + year; } /** * Returns a formatted time string that is suited for the target * language. In English, this will return; * * "10:05:59 PM" * * Note that ampm can be null. */ public String getLocalizedTimeString(String hour, String min, String sec, String ampm) { return hour + ":" + min + ":" + sec + " " + ((ampm == null) ? "" : ampm); } /** * Returns a formatted date and time string that is suited for the * target language. In English, this will return: * * "Fri, 05 Dec 2000 10:05:59 PM" * * Note that ampm can be null. */ public String getLocalizedDateTimeString(String dayOfWeek, String date, String month, String year, String hour, String min, String sec, String ampm) { return dayOfWeek + ", " + date + " " + month + " " + year + " " + hour + ":" + min + ":" + sec + " " + ((ampm == null) ? "" : ampm); } /** * Returns what the first day of the week is; e.g., Sunday in US, * Monday in France. */ public int getLocalizedFirstDayOfWeek() { return java.util.Calendar.MONDAY; } /** * Returns whether the AM_PM field comes after the time field or * not. */ public boolean isLocalizedAMPMafterTime() { return true; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -