--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/XPZiXTfkvVsJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
Hi Ingo,Thanks for the reply. Just to be clear, I'm not looking for technical assistance here per se - this issue is solved as far as my current project is concerned. I guess my point was that it would be good to address this in a more generalised way. It would be good to support translation in both simplified and traditional Chinese out of the box and in the way recommended by W3C.Simply adding new locales as suggested in the docs doesn't quite do it unfortunately. For example, the Translatable->getContentLanguage function won't work when using zh-Hant and zh-Hans as a locale. I think it's also worth noting that they aren't actually locales so simply adding them in this way mislabels them and potentially adds confusion to the code. I'm not sure how they should be described, but they're more like identifiers of a written language.
Simply using a locale to describe what language the document is in (which is sufficient in most cases and seems to be a fairly standard practice) just doesn't really work for Chinese. I realise this isn't a problem unique to Silverstripe, and I haven't done a great deal of research into how others are solving it.I just wanted to raise the topic here because I think it's an issue worth examining in more depth (maybe others don't agree?). I've submitted the odd patch here and there for the Translation module, but I don't know enough about i18n or translation to be unilaterally making the kinds of changes to the translation module code which I think are required to solve this - hence opening the discussion on the Core Dev list.Cheers,Simon
On Wednesday, January 2, 2013 6:07:30 PM UTC+10, Ingo Schommer wrote:Hey Simon, how about just overriding SiteTree->MetaTags() in your Page class?Or for HTML5 usage with <html lang="…">, create a getter in ContentControllerwhich uses SiteTree->Locale and transforms it accordingly.I don't really understand why you can't use the correct locales in the first place though?On 2/01/2013, at 8:17 AM, drzax <si...@elvery.net> wrote:We've recently been building a site which uses the translation module and has translations in both Simplified and Traditional Chinese. This process has taught me a lot about translations and Chinese translation in particular, but I'm still far from being expert on the subject, however there seem significant deficiencies in the Translation module which relate specifically to Chinese.Chinese is a complicated use case for translation because there are multiple versions of both the written and spoken language and there are additional complicating geographic inconsistencies. This makes the standard way of defining translations (the combination of language and region) less than ideal. This seems to be a reasonable summary. The W3C recommends using zh-Hant and zh-Hans for the lang attribute of (x)html content which currently isn't really supported.As I said at the top, I'm far from being an expert on this topic, but I wanted to open the discussion and see if anyone with more expertise would weigh into the conversation because I think this aspect of the translation module could really do with some work. It certainly would have made our current project easier, and Chinese translations are becoming a more regular requirement in our studio.Cheers,Simon--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/XPZiXTfkvVsJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/ulJ-FQL3AzkJ.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
Simon
Elvery
T: +61 408 155 856
E: si...@elvery.net
elvery.net
alltheplacesigo.com