コード例 #1
0
    public virtual void InitLocalization()
    {
        string appDisplayCode = Locos.GetString(LocoKeys.app_display_code);
        string appDisplayName = Locos.GetString(LocoKeys.app_display_name);

        appDisplayCode = Locos.GetString(LocoKeys.app_display_code);

        Debug.Log("InitLocalization:" + " appDisplayCode:" + appDisplayCode);
        Debug.Log("InitLocalization:" + " appDisplayName:" + appDisplayName);
    }
コード例 #2
0
    public void UpdateContent()
    {
        if (string.IsNullOrEmpty(gameLocalizationCode))
        {
            return;
        }

        // Get from code
        string content = Locos.GetString(gameLocalizationCode);

        if (string.IsNullOrEmpty(content))
        {
            // try lookup from current content
            string currentContent     = GetContent();
            string currentContentCode = Locos.GetCodeFromContent(currentContent);

            content = Locos.GetString(currentContentCode);
        }

        if (!string.IsNullOrEmpty(content))
        {
            SetContent(content);
        }
    }