beast_b9
  •  beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T07:34:57Z
Just one question, if i wan't to create new language, does i only need to translate english.xml in for example croatian, or i need to do some more customization?
Sponsor
tha_watcha
2011-04-22T09:05:03Z
You need to create a new xml file for the language.

- For Example create a file called croatian.xml
- Copy the complete content from the english.xml to the croatian.xml file
- Now you need to modify the language name and language code

<Resources xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" language="Croatian" code="hr">

UserPostedImage
beast_b9
  •  beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T09:38:08Z
now i have this problem
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

beast_b9
  •  beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T09:39:40Z
If i add croatian xml, do i have to configure something more? Because when i add it i have probem in Board Settings and Languages tabs in admin part of the page ... Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

this is the stack
[NullReferenceException: Object reference not set to an instance of an object.]
YAF.Core.StaticDataHelper.Cultures() +840
YAF.Pages.Admin.languages.BindData() +17
YAF.Pages.Admin.languages.Page_Load(Object sender, EventArgs e) +289
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
tha_watcha
2011-04-22T10:13:50Z
try with this one
File Attachment(s):
croatian.xml (239kb) downloaded 351 time(s).

UserPostedImage
beast_b9
  •  beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T10:19:41Z
hahaha , what was the problem???
File Attachment(s):
croatian.xml (235kb) downloaded 86 time(s).
beast_b9
  •  beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T10:38:11Z
all is working fine , ablle to locate the problem

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved