brianlam 10 Posted February 13, 2022 Share Posted February 13, 2022 Hi, my all video's chinese traditional subtitle name changed to chinese simplified, please help. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted February 13, 2022 Share Posted February 13, 2022 Hi, is there a problem with the subtitles actually working correctly besides the way they are listed? I believe this was simplified a bit to cover multiple Chinese subs for selection purposes. Link to comment Share on other sites More sharing options...
Luke 37064 Posted February 13, 2022 Share Posted February 13, 2022 How are the files named? Link to comment Share on other sites More sharing options...
brianlam 10 Posted February 13, 2022 Author Share Posted February 13, 2022 (edited) .zh.ass or .zh-hk.ass. It was displayed Chinese traditional. Edited February 13, 2022 by brianlam Link to comment Share on other sites More sharing options...
Carlo 4330 Posted February 14, 2022 Share Posted February 14, 2022 6 hours ago, brianlam said: .zh.ass or .zh-hk.ass. It was displayed Chinese traditional. zh is the ISO code for Chinese and if marked without a country code would be considered simplified. There are several countries where Chinese is the main written language. The major difference between them is whether they use simplified or traditional characters, but there are also minor regional differences (in vocabulary, etc). The standard way to distinguish these would be with a country code, e.g. zh_CN for mainland China, zh_SG for Singapore, zh_TW for Taiwan, or zh_HK for Hong Kong. Mainland China and Singapore both use simplified characters, and the others use traditional characters. Since China and Taiwan are the two with the biggest populations, a lot of content is marked using either zh_CN or zh_TW to distinguish simplified and traditional character versions of a website. But any of the country codes should work as well. Technically a more correct way to mark these subs, but not commonly used in practice, would be to use zh_HANS for (generic) simplified Chinese characters, and zh_HANT for traditional Chinese character. Technically zh-hk is just simplified Chinese as it doesn't contain a country code which is required to be in caps. @Luke Could you take a quick peak at the code to see if we handle all the different codes and variations for simplified vs traditional? Anything starting with zh is simplified by spec unless it has a proper code distinguishing it as traditional. Link to comment Share on other sites More sharing options...
brianlam 10 Posted February 14, 2022 Author Share Posted February 14, 2022 1 hour ago, cayars said: zh is the ISO code for Chinese and if marked without a country code would be considered simplified. There are several countries where Chinese is the main written language. The major difference between them is whether they use simplified or traditional characters, but there are also minor regional differences (in vocabulary, etc). The standard way to distinguish these would be with a country code, e.g. zh_CN for mainland China, zh_SG for Singapore, zh_TW for Taiwan, or zh_HK for Hong Kong. Mainland China and Singapore both use simplified characters, and the others use traditional characters. Since China and Taiwan are the two with the biggest populations, a lot of content is marked using either zh_CN or zh_TW to distinguish simplified and traditional character versions of a website. But any of the country codes should work as well. Technically a more correct way to mark these subs, but not commonly used in practice, would be to use zh_HANS for (generic) simplified Chinese characters, and zh_HANT for traditional Chinese character. Technically zh-hk is just simplified Chinese as it doesn't contain a country code which is required to be in caps. @Luke Could you take a quick peak at the code to see if we handle all the different codes and variations for simplified vs traditional? Anything starting with zh is simplified by spec unless it has a proper code distinguishing it as traditional. Hi, I think zh should be just Chinese, no simplified or traditional, for zh_hk /zh-hk should be chinese traditional, because the search subtitle also display chinese traditional (HongKong). Link to comment Share on other sites More sharing options...
Carlo 4330 Posted February 14, 2022 Share Posted February 14, 2022 8 hours ago, brianlam said: Hi, I think zh should be just Chinese, no simplified or traditional, for zh_hk /zh-hk should be chinese traditional, because the search subtitle also display chinese traditional (HongKong). zh = chinese and without any further Country code to differentiate it would be considered mainland China. Mainland China uses simplified vs tradition so that is what it what subtitles should default to as well per spec. Link to comment Share on other sites More sharing options...
Luke 37064 Posted February 14, 2022 Share Posted February 14, 2022 Try zh-hk instead of just zh. With only zh, there's no way for the server to know which Chinese version it should be. Link to comment Share on other sites More sharing options...
brianlam 10 Posted February 14, 2022 Author Share Posted February 14, 2022 so, if i want to display as chinese traditional, I need to change all my zh subtitle to zh-hk or zh-tw, is that right? Link to comment Share on other sites More sharing options...
Happy2Play 8282 Posted February 15, 2022 Share Posted February 15, 2022 @Luke @cayars can we get the specific variables for this added to the KB? Link to comment Share on other sites More sharing options...
Carlo 4330 Posted February 15, 2022 Share Posted February 15, 2022 14 hours ago, Happy2Play said: @Luke @cayars can we get the specific variables for this added to the KB? Yes, and it will get published today with some other KB edits. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted February 16, 2022 Share Posted February 16, 2022 The following KB article has been updated to cover using country codes in addition to the ISO codes. https://support.emby.media/a/solutions/articles/44001159160 I added info about the country codes right after the ISO codes at the bottom of the page. Link to comment Share on other sites More sharing options...
Luke 37064 Posted May 19, 2022 Share Posted May 19, 2022 @brianlam has this helped? Link to comment Share on other sites More sharing options...
brianlam 10 Posted June 12, 2022 Author Share Posted June 12, 2022 Hi, I found the zh-hk still display in Chinese Simplified, will change to Chinese Traditional? Link to comment Share on other sites More sharing options...
Luke 37064 Posted June 12, 2022 Share Posted June 12, 2022 Yea that's odd. zh-hk should be chinese traditional. Link to comment Share on other sites More sharing options...
brianlam 10 Posted June 14, 2022 Author Share Posted June 14, 2022 So... what can I do? Link to comment Share on other sites More sharing options...
Luke 37064 Posted June 15, 2022 Share Posted June 15, 2022 If you add a new video with new subtitle files, is it correct? Link to comment Share on other sites More sharing options...
brianlam 10 Posted June 18, 2022 Author Share Posted June 18, 2022 On 6/16/2022 at 2:52 AM, Luke said: If you add a new video with new subtitle files, is it correct? No, zh-hk still show Chinese Simplified. Link to comment Share on other sites More sharing options...
Luke 37064 Posted July 2, 2022 Share Posted July 2, 2022 On 6/18/2022 at 2:51 AM, brianlam said: No, zh-hk still show Chinese Simplified. @Happy2Play are you able to reproduce? Link to comment Share on other sites More sharing options...
Happy2Play 8282 Posted July 2, 2022 Share Posted July 2, 2022 5 minutes ago, Luke said: @Happy2Play are you able to reproduce? Yes, zh-SG does not work either but listed in KB. ISO and Country codes used together @cayarsKB appears to be wrong with underscore instead of dash. 1 Link to comment Share on other sites More sharing options...
Luke 37064 Posted July 3, 2022 Share Posted July 3, 2022 8 hours ago, Happy2Play said: Yes, zh-SG does not work either but listed in KB. ISO and Country codes used together @cayarsKB appears to be wrong with underscore instead of dash. @Happy2Play zh-hg is chinese simplified singapore, which is a locale we don't even have in our system right now. but i suppose for now we can detect it as just chinese simplified. Link to comment Share on other sites More sharing options...
Luke 37064 Posted July 3, 2022 Share Posted July 3, 2022 Regarding zh-hk, looking into it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now