Changeset 1e48810b116eeedf5c9eab987e322a9404ee39cd
- Timestamp:
- 06/03/09 19:39:47 (4 years ago)
- Author:
- Armin Burgmeier <armin@…>
- Parents:
- 2891196639b3fb29ce483e091f557d9ae093276d
- Children:
- b9f0eda66558c4d1215da5ff56da6466557ea331
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2009-06-03T19:39:47Z+0200
- Message:
-
Don't use localized action names, so Gobby starts on Japanese systems
2009-06-03 Armin Burgmeier <armin@…>
- code/core/header.cpp: Replace localized section string by a
numerical ID for the action names of the various language sections, to
prevent a crash when starting Gobby on a Japanese system. Based on a
patch by Takahiro Sunaga.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r18e7e82
|
r1e48810
|
|
| | 1 | 2009-06-03 Armin Burgmeier <armin@arbur.net> |
| | 2 | |
| | 3 | * code/core/header.cpp: Replace localized section string by a |
| | 4 | numerical ID for the action names of the various language sections, to |
| | 5 | prevent a crash when starting Gobby on a Japanese system. Based on a |
| | 6 | patch by Takahiro Sunaga. |
| | 7 | |
| 1 | 8 | 2009-05-26 Armin Burgmeier <armin@arbur.net> |
| 2 | 9 | |
-
|
r188a513
|
r1e48810
|
|
| 356 | 356 | group_view->add(action_view_highlight_mode); |
| 357 | 357 | group_view->add(action_view_highlight_none); |
| | 358 | |
| | 359 | unsigned int language_menu_counter = 0; |
| 358 | 360 | for(LanguageMap::const_iterator iter = |
| 359 | 361 | action_view_highlight_languages.begin(); |
| … |
… |
|
| 361 | 363 | ++ iter) |
| 362 | 364 | { |
| | 365 | // We cannot use iter->first for the action name, since this |
| | 366 | // is a localized string. |
| 363 | 367 | Glib::ustring section_action_name = |
| 364 | | "ViewHighlightModeSection_" + iter->first; |
| | 368 | Glib::ustring::compose("ViewHighlightModeSection_%1", |
| | 369 | language_menu_counter); |
| | 370 | ++language_menu_counter; |
| | 371 | |
| 365 | 372 | Glib::ustring section_action_xml = |
| 366 | 373 | Glib::Markup::escape_text(section_action_name); |