Exemplo n.º 1
0
def getBattleCommandExample(msgText):
    i18nKey = I18N_INGAME_GUI.chat_example(msgText)
    if i18nKey is not None:
        i18nName = html.escape(i18n.makeString(i18nKey))
    else:
        i18nName = msgText
    return i18nName
Exemplo n.º 2
0
def getBattleCommandExample(msgText):
    i18nKey = I18N_INGAME_GUI.chat_example(msgText)
    if i18nKey is not None:
        i18nName = html.escape(i18n.makeString(i18nKey))
    else:
        i18nName = msgText
    return i18nName
Exemplo n.º 3
0
def getBattleCommandExample(msgText):
    result = msgText.split('/', 1)
    if len(result) > 1:
        i18nKey = I18N_INGAME_GUI.chat_example(result[1])
        if i18nKey is not None:
            i18nName = html.escape(i18n.makeString(i18nKey))
        else:
            i18nName = msgText
    else:
        i18nName = i18n.makeString(msgText)
    return i18nName
Exemplo n.º 4
0
def getBattleCommandExample(msgText):
    result = msgText.split('/', 1)
    if len(result) > 1:
        i18nKey = I18N_INGAME_GUI.chat_example(result[1])
        if i18nKey is not None:
            i18nName = html.escape(i18n.makeString(i18nKey))
        else:
            i18nName = msgText
    else:
        i18nName = i18n.makeString(msgText)
    return i18nName