Edit the Struts internationalization properties file in idea

Source: Internet
Author: User


Edit the Struts internationalization properties file in idea

If you manually create a Web project, the i18n properties file of struts can be converted using the Native2ascii tool (remember that the second file name of the command line is the file name to save, and if not written, the original file is not automatically modified).

If it is eclipse, it should be editable in a graphical way.

If it is idea, you can edit it as follows:

    • To change the system configuration: preferences–>editor–>filecodings, select Transparent native-to-ascii conversion.
    • Create at least 2 property files, such as: Messenus.properties and Messzhcn.properties,idea will automatically form a resource Bundle.
    • Can be edited graphically, in English and Chinese comparison, very convenient, fill in the language will be automatically converted to \u5f55 such content storage.
    • You can also edit the Chinese file directly, and the Chinese will be converted automatically.

Resources:
Https://www.jetbrains.com/idea/help/configuring-encoding-for-properties-files.html
Https://www.jetbrains.com/idea/help/editing-resource-bundle.html

Author:galaxy

created:2015-07-02 Thu 15:55

Emacs 24.4.1 (ORG mode 8.2.10)

Validate

Editing the Struts internationalization properties file in idea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.