Make the hotkey context names translatable
Originally committed to SVN as r6682.
This commit is contained in:
parent
f7a42e8821
commit
d842e73643
2 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,10 @@ find ../src ../src/command -name \*.cpp -o -name \*.h \
|
|||
sed '/"text"/!d;s/^.*"text" : \("[^"]\+"\).*$/default_menu.json|0|\1/' ../src/libresrc/default_menu.json \
|
||||
| maybe_append
|
||||
|
||||
grep '"[A-Za-z ]\+" : {' -n ../src/libresrc/default_hotkey.json \
|
||||
| sed 's/^\([0-9]\+:\).*\("[^"]\+"\).*$/default_hotkey.json|\1|\2/' \
|
||||
| maybe_append
|
||||
|
||||
find ../automation -name *.lua \
|
||||
| xargs grep tr\"[^\"]\*\" -o -n \
|
||||
| sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/\1|\2|\3/' \
|
||||
|
|
|
@ -143,7 +143,7 @@ class HotkeyModelCategory : public HotkeyModelItem {
|
|||
public:
|
||||
HotkeyModelCategory(wxDataViewModel *model, wxString const& name)
|
||||
: model(model)
|
||||
, name(name)
|
||||
, name(wxGetTranslation(name))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue