Site language DE: Saving contents produces a 500

# 1 Old 07-29-2007, 07:54 AM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
Default Site language DE: Saving contents produces a 500
I started localizing Hayes 1.8.1c for our needs, so I created a resources.de.txt for German language. It works ok so far, I can choose it properly and my translated strings appear as expected (just started and put a handful into the .txt file).

But as soon as I'm done editing a page and want to click "save", I'm getting the following apache 500:
Quote: Request URI: http://192.168.0.20/@api/deki/pages/...09&redirects=0
Server response
<exception><type>System.NotSupportedException</type><message>Culture "de" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's current culture.</message><source>mscorlib</source><stacktrace><frame>System.Globalization.Cul tureInfo.CheckNeutral () [0x00000]</frame><frame>System.Globalization.CultureInfo.get_ DateTimeFormat () [0x00000]</frame><frame>System.Globalization.CultureInfo.GetF ormat (System.Type formatType) [0x00000]</frame><frame>System.Globalization.DateTimeFormatIn fo.GetInstance (IFormatProvider provider) [0x00000]</frame><frame>System.DateTime.ToString (System.String format, IFormatProvider fp) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.ConvertWikiText (System.Xml.XmlNode node) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.ConvertWikiText (System.Xml.XmlNode node) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.ConvertWikiText (System.Xml.XmlNode node) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.ConvertWikiText (System.Xml.XmlNode node) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.ConvertWikiText (System.Xml.XmlNode node) [0x00000]</frame><frame>MindTouch.Deki.WikiConverter_TextToXm l.Convert (MindTouch.Dream.XDoc doc) [0x00000]</frame><frame>MindTouch.Deki.DekiXmlParser.Parse (MindTouch.Deki.PageBE page, MindTouch.Dream.XDoc result, ParserMode mode, Boolean isInclude) [0x00000]</frame><frame>MindTouch.Deki.DekiXmlParser.ParseNew ContentForSave (MindTouch.Deki.PageBE page, System.String contentType, System.String content, Int32 section) [0x00000]</frame><frame>MindTouch.Deki.Logic.PageBL.Save (MindTouch.Deki.PageBE page, System.String userComment, System.String text, System.String contentType, Int32 section, DateTime timeStamp, UInt64 restoredPageID, Boolean loggingEnabled) [0x00000]</frame><frame>MindTouch.Deki.Logic.PageBL.Save (MindTouch.Deki.PageBE page, System.String userComment, System.String text, System.String contentType, Int32 section) [0x00000]</frame><frame>MindTouch.Deki.DekiWikiService+&lt;&g t;c__CompilerGenerated68.MoveNext () [0x00000]</frame><frame>MindTouch.Tasking.Coroutine+&lt;&gt;c __DisplayClass1.&lt;Iterate&gt;b__0 () [0x00000]</frame><frame>(wrapper delegate-invoke) System.MulticastDelegate<line>:invoke_void ()</line></frame><frame>MindTouch.Tasking.Task.Execute (System.VoidHandler handler, MindTouch.Tasking.TaskBehavior behavior) [0x00000]</frame></stacktrace></exception>
The result is that the content cannot be saved anymore.

As Hayes expects a "resources.de.txt", a troubleshoot-check with "resources.de-de.txt" fails, of course (not selectable).

Is it a setting I overlooked or did I find "one" again? (@steve: Maybe you should think about having bonus cards for bugspotters *g* /jk)
# 2 Old 07-30-2007, 07:52 AM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,999
Yep, that's another one! I investigated the issue today and discovered that we had based our implementation on a bad localization table. Both were taken from MSDN, go figure. Anyhow, I've updated the languages table on the wiki: http://wiki.opengarden.org/Deki_Wiki/Languages

The correct resources name will be 'resources.de-de.txt', but since the wrong table was encoded 'Names.php', that won't work. Luckily, the workaround happens to also be the right way to do it. Save your localization file as 'resources.de.txt', which is a the neutral German resources file. This file should _not_ be selectable, but it is due to a bug. Now, create empty files with the region-specific names: resources.de-at.txt, resources.de-de.txt, resources.de-li.txt, resources.de-lu.txt, and resources.de-ch.txt.

Finally, select the 'German (Austria)' file from the Control Panel. While this is technically not the right locale, all German speaking countries fortunately use officially Hochdeutsch, so the locale doesn't make a difference (although, having a Switzerdütsch version would be hilarious! (no offense to the Swiss! )).

I'll check in the corrections to Control Panel tomorrow.
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
# 3 Old 07-30-2007, 01:25 PM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
Hehe... Alright. Thanks!
# 4 Old 07-30-2007, 10:43 PM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
I did as you described, but the stuff I entered in resources.de.txt doesn't appear when I select "German (Austria)" (using an empty resources.de-at.txt). Neither of the one you mentioned brings the expected result, so maybe there are even more bugs in it. (Your explanations make sense to me and should work in theory, I think. But as it's not working here, there might be more behind it. - Or it's me... Anyway.)

Well, I'll better wait for your checkin, so we can continue localizing as soon as your fix appears in SF's SVN. Just drop me a note.
Last edited by merktnichts : 07-30-2007 at 11:02 PM.
# 5 Old 07-31-2007, 06:58 PM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,999
I checked the fix yesterday into SVN. Can you send me what you have so far so I can give it a shot (steveb at mindtouch dot com)? Thanks.
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
# 6 Old 08-01-2007, 05:59 AM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
Hrmmm... Seems like your syncing with SF's SVN is not seemless yet. The last entry is:

Quote: r4743@tp (orig r4949): steveb | 2007-07-30 13:31:43 -0500
Deki:
* DekiWikiService: grab text to log before message is sent (otherwise, message might already be closed by the time we get to it)
So I guess I had no chance to grab your changes yet as it's not public on SF until now.

Anyway, here's the localized stuff I started. Just a handful of entries, not much more. I appended it in this post as it's just some bytes.

With this I can choose the Austrian German in the control panel, but nothing changes, the deki's main menu bar stays English. The file works/translates the menu if I rename it to resources.de.txt. But then the bug occurs, of course. That was just to check the file is basically formatted ok.

As said, I checked with rev6432/SF (your internal rev seems to be 4949). I guess your local SVN is newer than the stuff you're mirroring on SF.
Attached Files
File Type: zip deki_res.zip (370 Bytes, 61 views)
# 7 Old 08-01-2007, 05:59 PM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,999
Thanks. I'm currently travelling and staying in San Jose, CA for a conference, but I'll take a look at it today.
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
# 8 Old 08-02-2007, 03:25 PM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
It's fixed now and works as it should with current SVN when using de-de.

Thanks for the fix!
Last edited by merktnichts : 08-02-2007 at 04:16 PM. Reason: Stupid (personal) error - Steve's fix works!!!
# 9 Old 08-02-2007, 04:18 PM
merktnichts merktnichts is offline merktnichts's reputation merktnichts is on a distinguished road » Community Member
Join Date: Jul 2007 Posts: 347
I edited the previous post. The fix in SVN works as expected now.
# 10 Old 08-02-2007, 04:28 PM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,999
Glad to hear it's working!
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
Page 1 of 2 1 2 >

Thread Tools

Search this Thread

Search this Thread Advanced Search

Display Modes

Powered by MindTouch 2010