当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: Internationalization is the pro
 

 

    摘要: 实际上我们可以在客户端生成一个用graphics画的图或者也可以在客户端转发一个从服务器取来的图片但如何集成多个gif,jpg图片生成一个大的图片,同时还有自己画的图就不容易了,比如:我上上星期遇到了这个困难,所幸把这个问题解决了。大家都是程序员,各种api我也不用解释了,就把代码贴出来好了,我会在必要的地方加上注释。总共有三个文件showimage-----------------------......
 ·hibernate的性能    »显示摘要«
    摘要: xiecc:我们的项目从去年12月份启动,采用了struts+hibernate的架构,一开始使用hibernate的时候速度极快,对象操作异常方便,大家都说爽歪歪。 可惜好景不长,随着我们对象关系的不断复杂,数据量的不断增加,hibernate的性能急剧下降。具体表现为:我们在设计对象时采用了很多的one-to-many和many-to-one的关系,在取某个对象的几个简单的属性时,它会把所有......


Formatting messages with variable content
internationalization is the process of designing an application to work with multiple languages and in regions around the world. this not only involves translating text labels to other languages. it also also means displaying information such as dates and times in a format appropriate for that particular region of the globe. the first step involved in internationalizing text labels and messages is to move everything into resource bundles. for each quoted string you want the user to see, you create an entry in a resource bundle. then, you change the code to dynamically look up the text label or message based on the locale of the user. when you do this correctly, a user in the united states might see help as the label for a help menu, while a spanish user would see ayuda. this technique works perfectly well for straight text-to-text translations, where you are always displaying a "whole" message. however this technique doesnt work for compound messages, where you need to combine several pieces of a message into one longer message. for instance, consider the following message:    hello, john. good luck.you might think that you could simply use string concatenation, and build the compound message by appending multiple strings together:    system.out.println(     "hello, " +     name +     ". good luck.")you might also assume that you could localize the compound message by moving the hello and good luck strings into resource bundles. this might work, but what happens when you get to a language where the form of the greeting becomes something like:  
...   下一页
 ·eclipse 资源总汇(保持更新)    »显示摘要«
    摘要: eclipse开发环境的使用eclipse使用入门目前java开发领域的各种集成开发环境(ide)呈现出百花齐放的局面,从borland的jbuilder,到ibm的visual age for java、websphere studio,oracle的jdeveloper,sun的 forte for java,webgain的visual cafe,togethersoft的together......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE