Show / Hide Table of Contents

Class WeaverLanguage

Used for accessing translations

Inheritance
object
WeaverLanguage
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class WeaverLanguage

Methods

| Edit this page View Source

GetString(string, string)

Gets a translated string via a key

Declaration
public static string GetString(string key, string fallback = null)
Parameters
Type Name Description
string key

The language key to get the translated string under

string fallback

A fallback in case the key wasn't found

Returns
Type Description
string

Returns the translated string from the language key

| Edit this page View Source

GetString(string, string, string)

Gets a translated string via a key and sheetTitle

Declaration
public static string GetString(string key, string sheetTitle, string fallback = null)
Parameters
Type Name Description
string key

The language key to get the translated string under

string sheetTitle

The sheet title to get teh translated string under

string fallback

A fallback in case the key wasn't found

Returns
Type Description
string

Returns the translated string from the language key

| Edit this page View Source

GetStringInternal(string)

Declaration
public static string GetStringInternal(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string
| Edit this page View Source

GetStringInternal(string, string)

Declaration
public static string GetStringInternal(string key, string sheetTitle)
Parameters
Type Name Description
string key
string sheetTitle
Returns
Type Description
string
| Edit this page View Source

HasString(string)

Does the language key exist?

Declaration
public static bool HasString(string key)
Parameters
Type Name Description
string key

The language key to check for

Returns
Type Description
bool

Returns true if the language key exists

| Edit this page View Source

HasString(string, string)

Does the language key exist?

Declaration
public static bool HasString(string key, string sheetTitle)
Parameters
Type Name Description
string key

The language key to check for

string sheetTitle

The sheet title to get teh translated string under

Returns
Type Description
bool

Returns true if the language key exists

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾