remove 'flag ' prefix from flag names

This commit is contained in:
Damien Elmes 2021-06-04 15:03:17 +10:00
parent 3ced63d974
commit cff8069ef9
3 changed files with 26 additions and 22 deletions

View File

@ -42,17 +42,21 @@ actions-update-note = Update Note
actions-update-card = Update Card
actions-update-deck = Update Deck
actions-forget-card = Forget Card
actions-set-flag = Set Flag
actions-build-filtered-deck = Build Deck
actions-expand-collapse = Expand/Collapse
actions-add-notetype = Add Notetype
actions-remove-notetype = Remove Notetype
actions-update-notetype = Update Notetype
actions-update-config = Update Config
actions-red-flag = Red Flag
actions-orange-flag = Orange Flag
actions-green-flag = Green Flag
actions-blue-flag = Blue Flag
actions-pink-flag = Pink Flag
actions-turquoise-flag = Turquoise Flag
actions-purple-flag = Purple Flag
## Flags
actions-flag-number = Flag { $number }
actions-flag-red = Red
actions-flag-orange = Orange
actions-flag-green = Green
actions-flag-blue = Blue
actions-flag-pink = Pink
actions-flag-turquoise = Turquoise
actions-flag-purple = Purple
actions-set-flag = Set Flag

View File

@ -39,49 +39,49 @@ def load_flags(col: Collection) -> List[Flag]:
return [
Flag(
1,
labels["1"] if "1" in labels else tr.actions_red_flag(),
labels["1"] if "1" in labels else tr.actions_flag_red(),
icon.with_color(colors.FLAG1_FG),
SearchNode(flag=SearchNode.FLAG_RED),
"actionRed_Flag",
),
Flag(
2,
labels["2"] if "2" in labels else tr.actions_orange_flag(),
labels["2"] if "2" in labels else tr.actions_flag_orange(),
icon.with_color(colors.FLAG2_FG),
SearchNode(flag=SearchNode.FLAG_ORANGE),
"actionOrange_Flag",
),
Flag(
3,
labels["3"] if "3" in labels else tr.actions_green_flag(),
labels["3"] if "3" in labels else tr.actions_flag_green(),
icon.with_color(colors.FLAG3_FG),
SearchNode(flag=SearchNode.FLAG_GREEN),
"actionGreen_Flag",
),
Flag(
4,
labels["4"] if "4" in labels else tr.actions_blue_flag(),
labels["4"] if "4" in labels else tr.actions_flag_blue(),
icon.with_color(colors.FLAG4_FG),
SearchNode(flag=SearchNode.FLAG_BLUE),
"actionBlue_Flag",
),
Flag(
5,
labels["5"] if "5" in labels else tr.actions_pink_flag(),
labels["5"] if "5" in labels else tr.actions_flag_pink(),
icon.with_color(colors.FLAG5_FG),
SearchNode(flag=SearchNode.FLAG_PINK),
"actionPink_Flag",
),
Flag(
6,
labels["6"] if "6" in labels else tr.actions_turquoise_flag(),
labels["6"] if "6" in labels else tr.actions_flag_turquoise(),
icon.with_color(colors.FLAG6_FG),
SearchNode(flag=SearchNode.FLAG_TURQUOISE),
"actionTurquoise_Flag",
),
Flag(
7,
labels["7"] if "7" in labels else tr.actions_purple_flag(),
labels["7"] if "7" in labels else tr.actions_flag_purple(),
icon.with_color(colors.FLAG7_FG),
SearchNode(flag=SearchNode.FLAG_PURPLE),
"actionPurple_Flag",

View File

@ -512,7 +512,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_red_flag</string>
<string>actions_flag_red</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+1</string>
@ -523,7 +523,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_orange_flag</string>
<string>actions_flag_orange</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+2</string>
@ -534,7 +534,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_green_flag</string>
<string>actions_flag_green</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+3</string>
@ -545,7 +545,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_blue_flag</string>
<string>actions_flag_blue</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+4</string>
@ -630,7 +630,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_pink_flag</string>
<string>actions_flag_pink</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+5</string>
@ -641,7 +641,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_turquoise_flag</string>
<string>actions_flag_turquoise</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+6</string>
@ -652,7 +652,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>actions_purple_flag</string>
<string>actions_flag_purple</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+7</string>