MapGuide tips -- localization of the field property list)

Source: Internet
Author: User

Currently, Mapguide is only available in English versions. In the process of using MapGuide for development, we often need to refine the MapGuide interface to better meet customers' usage habits. The work of the Chinese language involves many areas, such as common tool menus, tool prompts, interface information, and error prompts. They may need different methods in the Chinese language, some need to replace the resource file (for the method of resource replacement, we have post discussions on the mgdn forum, and some other netizens download the compiled resource file, you can go to the mgdn forum to search). Some users only need to make minor changes in MapGuide Studio to achieve localization. In this article, we will describe the list of layer fields in Chinese.

As you know, when setting layers in MapGuide Studio, you can set to display the attribute information of the selected object in the browser. For example

Select the fields that need to be displayed in the Viewer. Generally, when designing data, the field names are all in English or pinyin, while avoiding Chinese characters as much as possible to avoid unpredictable consequences. However, Chinese characters are often displayed on the interface. Note that "Name to Display" can be customized by changing this attribute. Click the field selected in the "Name to Display" column, and then click to modify it. For example:

 

In this way, after simple settings, the interface will become Chinese. Is it much better?

 

Add more in-depth knowledge. In the previous article, we did not know the resource and resource content once. as a resource, layer settings are also saved in the resource content represented in xml. How is the xml Representation Corresponding to the above Modification on the MapGuide Studio interface? You can use edit as xml in Maestro or save as xml in MapGuide studio to view the information:

<PropertyMapping> <Name> FeatId </Name> <Value> FeatId </Value> </PropertyMapping> <Name> Name </Name> <Value> Name </ value> </PropertyMapping> <Name> Fuzeren </Name> <Value> owner </Value> </PropertyMapping>
 

What other simple operations have you not found? If you have also found it, you are also welcome to follow the post or discuss it on mgdn.

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.