简体   繁体   中英

In windows form, why are some text in .resx file not displayed correctly in terms of upper/lower case?

I encountered a very unusual Windows form bug and I just thought maybe some of you have an idea or have encountered this before. If so, please yell. :)

For instance (not exact text) Excerpt of .resx file (Resource)

<data name="Events.Text" xml:space="preserve">
<value>Select one or more RaceCar tracks:</value>
</data>

this will display "Select one or more Racecar tracks:" which is incorrect because it should be RaceCar instead of Racecar.

But if I add any extra character at the end, it will be fixed.

<data name="Events.Text" xml:space="preserve">
<value>Select one or more RaceCar tracks: </value>   -> if I add space " "
</data>

this will now display as is: "Select one or more RaceCar tracks: "

Any insight to what's happening in the .resx file?

It looks like you might have some caching at play here. Check how the files are referenced. Embedded content, just files in the bin folder etc. Does it update the file if you do a full rebuild of your code? If so it could be that your files are refreshed when rebuilding and cached after you reference them in the app.

经过长时间的调试,事实证明,我们代码中的某些内容更改了该值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM