YAFLogo

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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.1
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.1
2011-04-22T10:13:50Z
try with this one
UserPostedImage
beast_b9
  • beast_b9
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2011-04-22T10:19:41Z
hahaha , what was the problem???
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