This commit is contained in:
2020-03-06 20:45:26 +00:00
parent c477124204
commit d17e88db12
6 changed files with 10 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ namespace AyaNova.Api.Controllers
<a href=""/docs"" target=""_blank"">AyaNova manual</a><br/><br/>
<a href=""/api-docs"" target=""_blank"">API explorer</a><br/><br/>
<a href=""mailto:support@ayanova.com"">Email AyaNova support</a><br/><br/>
<h4>{await TranslationBiz.GetDefaultLocalizedTextAsync("HelpLicense")}</h4>
<h4>{await TranslationBiz.GetDefaultTranslationAsync("HelpLicense")}</h4>
<pre>{AyaNova.Core.License.LicenseInfo}</pre>
<h4>Schema version</h4>
<pre>{AySchema.currentSchema.ToString()}</pre>

View File

@@ -43,7 +43,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get name value localized display value list of AyaNova enumerated types for list specified
/// Get name value Translated display value list of AyaNova enumerated types for list specified
/// </summary>
/// <param name="enumkey">The key name of the enumerated type</param>
/// <returns>List</returns>

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
//https://github.com/domaindrivendev/Swashbuckle.AspNetCore#include-descriptions-from-xml-comments
/// <summary>
/// Localized text controller
/// Translation controller
/// </summary>
[ApiController]
[ApiVersion("8.0")]
@@ -131,7 +131,7 @@ namespace AyaNova.Api.Controllers
/// Get subset of translation values
/// </summary>
/// <param name="inObj">List of translation key strings</param>
/// <returns>A key value array of localized text values</returns>
/// <returns>A key value array of translation text values</returns>
[HttpPost("SubSet")]
public async Task<IActionResult> SubSet([FromBody] List<string> inObj)
{

View File

@@ -41,7 +41,7 @@ namespace AyaNova.Biz
- INDEXES: play with it and see what works best
OUTPUT FORMAT
- No localized text, up to client
- No translated text, up to client
- Name of object in return result
- Object Type and ID in return result
- Group results by object type, then by object ID descending which will result in natural most recently created order
@@ -794,7 +794,7 @@ private static Dictionary<long, TranslationWordBreakingData> translationWordBrea
}
/// <summary>
/// Stop words list reset upon login or editing of localized text
/// Stop words list reset upon login or editing of Translation text
/// used for eliminating noise words from search dictionary
/// </summary>

View File

@@ -188,10 +188,10 @@ namespace AyaNova.Biz
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
internal static async Task<string> GetDefaultLocalizedTextAsync(string key)
internal static async Task<string> GetDefaultTranslationAsync(string key)
{
if (string.IsNullOrWhiteSpace(key))
return "ERROR: GetDefaultLocalizedText NO KEY VALUE SPECIFIED";
return "ERROR: GetDefaultTranslation NO KEY VALUE SPECIFIED";
#if (DEBUG)
TrackRequestedKey(key);
#endif
@@ -609,7 +609,7 @@ namespace AyaNova.Biz
{
if (!NewTranslationDict.ContainsKey(s))
{
NewTranslationDict.Add(s, await GetDefaultLocalizedTextAsync(s));
NewTranslationDict.Add(s, await GetDefaultTranslationAsync(s));
}
}