Make the hotkey context names translatable

Originally committed to SVN as r6682.
This commit is contained in:
Thomas Goyne 2012-04-10 20:40:48 +00:00
parent f7a42e8821
commit d842e73643
2 changed files with 5 additions and 1 deletions

View File

@ -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/' \

View File

@ -143,7 +143,7 @@ class HotkeyModelCategory : public HotkeyModelItem {
public:
HotkeyModelCategory(wxDataViewModel *model, wxString const& name)
: model(model)
, name(name)
, name(wxGetTranslation(name))
{
}