-
Notifications
You must be signed in to change notification settings - Fork 65
Conversation
Hi @kagamine, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Which exact OS and version are you running? The file being updated here is auto-generated, so updating it manually will get overwritten the next time the generator tool is run. |
👍 @Eilon, that's what I mentioned to him before |
I forgot the environment which detected a zh-Hans-CN, it may be OSX 10.11 beta |
Hmm that's an interesting one. @DamianEdwards seems like different OSes send different sets of cultures. Any thoughts on whether we need to merge in results from various OSes? This seems to be a real culture, and if it isn't a "known culture" then it'll be ignored... |
Interesting 😄 |
It was something wrong with dnvm on my mac, it cannot find the latest version of cidev feed. I opened an issue in dnvm repo. aspnet/dnvm#472. Now I cannot run the tool on mac. |
Should we make some changes with the generator to ensure it can merge different culture lists? |
What the error are you facing when you run the |
~~ My CLRs are old, must be updated, but the dnvm cannot find the latest version from cidev feed. like aspnet/dnvm#472. ~~ |
Oh, I just missed a 's' in protocol. Now I am going to run the generator on mac. |
So interesting, the generator seems that can be run on Windows only.
|
can you upgrade the |
dnvm has been upgraded to the latest rc1-15524 successfully, and the errors occurred when I run the generator. There are still many language codes which missed that compare to the ISO-639-1 list. |
i don't know why the filename is unknown in the exception?!! |
I solved the cross-plat problem, and it gave us a different result from #101 The following result was generated from Mac OS X 10.10.5
|
@DamianEdwards, @kirthik your thoughts |
Conflicts: src/CultureInfoGenerator/Program.cs
I did some changes with the generator. Now it will make a json result in ../Microsoft.Extensions.Globalization.CultureInfoCache/GeneratedResults/, and when you run the generator, it will combine the current result and all of the results in the result path . By the way, I do not have the environment of Mac OS X 10.11 beta now, which I said before. If you need, I will install one and generate a culture list. /cc @kirthik, @DamianEdwards, @Eilon, @hishamco |
@kagamine the cultures should be retrieved from the OS itself rather than json file, which is based on the .NET version |
Maybe you are right. But I don't know how to get the cultures by using the original methods of OS. |
FYI the same culture shows in the issue #38 , I will check it now in my end, if it's require may i will check it in a Mac OS if I got a chance |
Perhaps you got me confuse with Chinese cultures 😄 |
😄 There were more informal cultures in China, such as zh-wuu, zh-yue, zh-gan. For example, I cannot understand the words which are spoken by zh-yue person.
😭 I still confuse with git rebase.... QAQ |
We will discuss these next week and get back to you. |
Closing this because we're making a design change so that this isn't necessary: #111 In the new design the list of cultures is not a master list, just a cache. |
The most of browsers will detect the accept lang into zh or zh-CN, but in chrome it will be zh-Hans-CN.
By the way, I am not suggest put cultures in a class, why not put them into the resx? I think a resource file contains the cultures which supported in the file is better.
In PR #101 Line 823
It should be zh-Hant-HK and zh-Hant-MO and missing zh-Hans-CN & zh-Hant-TW
T means traditional, S means simplified, in HK、MO、TW they are still using the traditional Chinese.