brianlam 10 Posted February 13, 2022 Posted February 13, 2022 Hi, my all video's chinese traditional subtitle name changed to chinese simplified, please help.
Carlo 4552 Posted February 13, 2022 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.
brianlam 10 Posted February 13, 2022 Author Posted February 13, 2022 (edited) .zh.ass or .zh-hk.ass. It was displayed Chinese traditional. Edited February 13, 2022 by brianlam
Carlo 4552 Posted February 14, 2022 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.
brianlam 10 Posted February 14, 2022 Author 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).
Carlo 4552 Posted February 14, 2022 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.
Luke 40086 Posted February 14, 2022 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.
brianlam 10 Posted February 14, 2022 Author 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?
Happy2Play 9444 Posted February 15, 2022 Posted February 15, 2022 @Luke @cayars can we get the specific variables for this added to the KB?
Carlo 4552 Posted February 15, 2022 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.
Carlo 4552 Posted February 16, 2022 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.
brianlam 10 Posted June 12, 2022 Author Posted June 12, 2022 Hi, I found the zh-hk still display in Chinese Simplified, will change to Chinese Traditional?
Luke 40086 Posted June 12, 2022 Posted June 12, 2022 Yea that's odd. zh-hk should be chinese traditional.
Luke 40086 Posted June 15, 2022 Posted June 15, 2022 If you add a new video with new subtitle files, is it correct?
brianlam 10 Posted June 18, 2022 Author 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.
Luke 40086 Posted July 2, 2022 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?
Happy2Play 9444 Posted July 2, 2022 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
Luke 40086 Posted July 3, 2022 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.
Yuchenjimmy 8 Posted May 31 Posted May 31 (edited) On 2/14/2022 at 1:49 PM, Carlo 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. Hello, Carlo. I'm a user from Taiwan. I would like to express my disagreement with the decision to treat zh (Chinese) as Simplified Chinese by default in Emby. According to international standards, such as W3C and Unicode CLDR, the tag zh refers to Chinese in a general sense. It must not be assumed to mean Simplified Chinese. Below is a screeshot taken on W3C(https://www.w3.org/International/questions/qa-choosing-language-tags) : Instead: zh-Hans is the correct tag for Simplified Chinese; zh-Hant is the correct tag for Traditional Chinese; And zh by itself is neutral — simply meaning "Chinese", without implying any particular script or regional form. To illustrate with a well-known example: The en tag refers to English in general. It does not automatically mean American English (en-US) or British English (en-GB). The distinction is made explicit by using en-US or en-GB when necessary. Treating zh as equivalent to zh-Hans is just as incorrect as assuming en always means en-US. Defaulting zh to Simplified Chinese disregards the large number of Traditional Chinese users from Taiwan, Hong Kong, Macau, and other regions. This choice is both technically inaccurate and culturally insensitive. So, "Chinese" is just fine for zh. Thank you for your attention to proper localization and internationalization support. Edited May 31 by Yuchenjimmy 1 1
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