0

我正在做一个项目,它即将完成,但我面临发布项目的问题。目前,该项目的上下文是英语。但是要求就像,根据国家/地区的位置,上下文会发生变化,例如日语、西班牙语、中文等。所以我关心的问题是如何做到这一点?我写的敌人英语是这样的:

   <string name="bookedittext">EDIT</string>
    <string name="button_delete">Delete</string>
    <string name="button_delete_cancel">Cancel</string>
    <string name="button_back">Back</string>
    <string name="progress_deleting">Deleting...</string>
    <string name="share_message_conf_delete">Do you want to delete?</string>
    <string name="share_message_conf_delete_all">Do you want to delete all?</string>
    <string name="TEXT_SHARE_VIA">Share Via</string>
    <string name="TEXT_CONTENT">Image content</string>
    <string name="TEXT_SELECT_APPLICATION">Select an Application</string>
    <string name="TEXT_MORE_OPTIONS">More Options</string>
    <string name="TEXT_FACEBOOK">Facebook</string>
    <string name="TEXT_KAKAO_TALK">Kakao Talk</string>
    <string name="TEXT_SKYPE">Skype</string>
    <string name="TEXT_KIK">Kik Messanger</string>
    <string name="TEXT_FRING">Fring Messenger</string>
    <string name="TEXT_TWITTER">Twitter</string>
    <string name="TEXT_YAHOO">Yahoo Messenger</string>
    <string name="TEXT_USE_FOR_DEFAULT">Use this by default action</string>
    <string name="TEXT_USE_FOR_BACK">Back</string>

请帮助我如何将这些转换为日文?

4

1 回答 1

0

您可以有多个资源文件,用于不同的语言环境。读

http://developer.android.com/guide/topics/resources/localization.html

http://developer.android.com/reference/java/util/Locale.html

于 2012-06-25T11:11:03.450 回答