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

@@ -1,3 +1,3 @@
# ADM-LOCALIZED Placeholder # ADM-TRANSLATION Placeholder
This is a placeholder page for sections that are not written yet This is a placeholder page for sections that are not written yet

View File

@@ -63,7 +63,7 @@ namespace AyaNova.Api.Controllers
<a href=""/docs"" target=""_blank"">AyaNova manual</a><br/><br/> <a href=""/docs"" target=""_blank"">AyaNova manual</a><br/><br/>
<a href=""/api-docs"" target=""_blank"">API explorer</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/> <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> <pre>{AyaNova.Core.License.LicenseInfo}</pre>
<h4>Schema version</h4> <h4>Schema version</h4>
<pre>{AySchema.currentSchema.ToString()}</pre> <pre>{AySchema.currentSchema.ToString()}</pre>

View File

@@ -43,7 +43,7 @@ namespace AyaNova.Api.Controllers
/// <summary> /// <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> /// </summary>
/// <param name="enumkey">The key name of the enumerated type</param> /// <param name="enumkey">The key name of the enumerated type</param>
/// <returns>List</returns> /// <returns>List</returns>

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
//https://github.com/domaindrivendev/Swashbuckle.AspNetCore#include-descriptions-from-xml-comments //https://github.com/domaindrivendev/Swashbuckle.AspNetCore#include-descriptions-from-xml-comments
/// <summary> /// <summary>
/// Localized text controller /// Translation controller
/// </summary> /// </summary>
[ApiController] [ApiController]
[ApiVersion("8.0")] [ApiVersion("8.0")]
@@ -131,7 +131,7 @@ namespace AyaNova.Api.Controllers
/// Get subset of translation values /// Get subset of translation values
/// </summary> /// </summary>
/// <param name="inObj">List of translation key strings</param> /// <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")] [HttpPost("SubSet")]
public async Task<IActionResult> SubSet([FromBody] List<string> inObj) 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 - INDEXES: play with it and see what works best
OUTPUT FORMAT OUTPUT FORMAT
- No localized text, up to client - No translated text, up to client
- Name of object in return result - Name of object in return result
- Object Type and ID 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 - 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> /// <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 /// used for eliminating noise words from search dictionary
/// </summary> /// </summary>

View File

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