mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
PY-61665 i18n:Preference/Settings: Editor: Live Template: Python and flask template descriptions are hardcoded
GitOrigin-RevId: f89f81e4a37de4ce7d1c2a0a1f3161c6fd68226d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43728358b2
commit
ff42f80fea
@@ -1,5 +1,6 @@
|
||||
<templateSet group="Python">
|
||||
<template name="super" value="super($args$).$method$($end$)" description="'super(...)' call" toReformat="false" toShortenFQNames="true">
|
||||
<template name="super" value="super($args$).$method$($end$)" toReformat="false" toShortenFQNames="true" key="inspection.super.description"
|
||||
resource-bundle="messages.PyBundle">
|
||||
<variable name="args" expression="pyVerSpecificSuperSignature()" defaultValue="" alwaysStopAt="false" />
|
||||
<variable name="method" expression="pyFunctionName()" defaultValue="" alwaysStopAt="false" />
|
||||
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
|
||||
@@ -7,19 +8,22 @@
|
||||
<option name="Python_Class" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="main" value="if __name__ == '__main__': $END$" description="if __name__ == '__main__'" toReformat="false" toShortenFQNames="true">
|
||||
<template name="main" value="if __name__ == '__main__': $END$" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.main.description" resource-bundle="messages.PyBundle">
|
||||
<context>
|
||||
<option name="Python_Top_Level" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="iter" value="for $VAR$ in $ITERABLE$: $END$" description="Iterate (for ... in ...)" toReformat="false" toShortenFQNames="true">
|
||||
<template name="iter" value="for $VAR$ in $ITERABLE$: $END$" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.iter.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<context>
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="itere" value="for $INDEX$, $VAR$ in enumerate($ITERABLE$): $END$" description="Iterate (for ... in enumerate)" toReformat="false" toShortenFQNames="true">
|
||||
<template name="itere" value="for $INDEX$, $VAR$ in enumerate($ITERABLE$): $END$" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.itere.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="INDEX" expression="" defaultValue=""i"" alwaysStopAt="true" />
|
||||
@@ -27,7 +31,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compl" value="[$VAR_EXPR$ for $VAR$ in $ITERABLE$]" description="List comprehension" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compl" value="[$VAR_EXPR$ for $VAR$ in $ITERABLE$]" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compl.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -35,7 +40,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compli" value="[$VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$]" description="List comprehension with 'if'" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compli" value="[$VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$]" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compli.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -44,7 +50,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compg" value="($VAR_EXPR$ for $VAR$ in $ITERABLE$)" description="Generator comprehension" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compg" value="($VAR_EXPR$ for $VAR$ in $ITERABLE$)" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compg.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -52,7 +59,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compgi" value="($VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$)" description="Generator comprehension with 'if'" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compgi" value="($VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$)" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compgi.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -61,7 +69,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="comps" value="{$VAR_EXPR$ for $VAR$ in $ITERABLE$}" description="Set comprehension" toReformat="false" toShortenFQNames="true">
|
||||
<template name="comps" value="{$VAR_EXPR$ for $VAR$ in $ITERABLE$}" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.comps.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -69,7 +78,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compsi" value="{$VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$}" description="Set comprehension with 'if'" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compsi" value="{$VAR_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$}" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compsi.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -78,7 +88,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compd" value="{$KEY_EXPR$: $VAL_EXPR$ for $VAR$ in $ITERABLE$}" description="Dict comprehension" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compd" value="{$KEY_EXPR$: $VAL_EXPR$ for $VAR$ in $ITERABLE$}" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compd.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="KEY_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -87,7 +98,8 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="compdi" value="{$KEY_EXPR$: $VAL_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$}" description="Dict comprehension with 'if'" toReformat="false" toShortenFQNames="true">
|
||||
<template name="compdi" value="{$KEY_EXPR$: $VAL_EXPR$ for $VAR$ in $ITERABLE$ if $VAR_EXPR_IF$}" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.compdi.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="ITERABLE" expression="pyIterableVariable()" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="VAR" expression="collectionElementName(ITERABLE)" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="KEY_EXPR" expression="" defaultValue="VAR" alwaysStopAt="true" />
|
||||
@@ -97,19 +109,22 @@
|
||||
<option name="Python" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="prop" value="@property def $NAME$(self): return $END$" description="Property getter" toReformat="false" toShortenFQNames="true">
|
||||
<template name="prop" value="@property def $NAME$(self): return $END$" toReformat="false" toShortenFQNames="true"
|
||||
key="inspection.prop.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
|
||||
<context>
|
||||
<option name="Python_Class" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="props" value="@property def $NAME$(self): return $END$ @$NAME$.setter def $NAME$(self, value): pass" description="Property getter/setter" toReformat="false" toShortenFQNames="true">
|
||||
<template name="props" value="@property def $NAME$(self): return $END$ @$NAME$.setter def $NAME$(self, value): pass"
|
||||
toReformat="false" toShortenFQNames="true" key="inspection.props.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
|
||||
<context>
|
||||
<option name="Python_Class" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
<template name="propsd" value="@property def $NAME$(self): return $END$ @$NAME$.setter def $NAME$(self, value): pass @$NAME$.deleter def $NAME$(self): pass" description="Property getter/setter/deleter" toReformat="false" toShortenFQNames="true">
|
||||
<template name="propsd" value="@property def $NAME$(self): return $END$ @$NAME$.setter def $NAME$(self, value): pass @$NAME$.deleter def $NAME$(self): pass"
|
||||
toReformat="false" toShortenFQNames="true" key="inspection.propsd.description" resource-bundle="messages.PyBundle">
|
||||
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
|
||||
<context>
|
||||
<option name="Python_Class" value="true" />
|
||||
|
||||
@@ -1493,3 +1493,18 @@ INSP.requirement.uninstalled.name=Requirement is not satisfied
|
||||
INSP.requirements.package.not.installed=Package {0} is not installed
|
||||
QFIX.NAME.install.requirement=Install package {0}
|
||||
QFIX.NAME.install.all.requirements=Install all missing packages
|
||||
inspection.propsd.description=Property getter/setter/deleter
|
||||
inspection.props.description=Property getter/setter
|
||||
inspection.prop.description=Property getter
|
||||
inspection.compdi.description=Dict comprehension with 'if'
|
||||
inspection.compd.description=Dict comprehension
|
||||
inspection.compsi.description=Set comprehension with 'if'
|
||||
inspection.comps.description=Set comprehension
|
||||
inspection.compgi.description=Generator comprehension with 'if'
|
||||
inspection.compg.description=Generator comprehension
|
||||
inspection.compli.description=List comprehension with 'if'
|
||||
inspection.compl.description=List comprehension
|
||||
inspection.itere.description=Iterate (for ... in enumerate)
|
||||
inspection.iter.description=Iterate (for ... in ...)
|
||||
inspection.main.description=if __name__ == '__main__'
|
||||
inspection.super.description='super(...)' call
|
||||
|
||||
Reference in New Issue
Block a user