Changeset 1e48810b116eeedf5c9eab987e322a9404ee39cd

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r18e7e82 r1e48810  
     12009-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 
    182009-05-26  Armin Burgmeier  <armin@arbur.net> 
    29 
  • code/core/header.cpp

    r188a513 r1e48810  
    356356        group_view->add(action_view_highlight_mode); 
    357357        group_view->add(action_view_highlight_none); 
     358         
     359        unsigned int language_menu_counter = 0; 
    358360        for(LanguageMap::const_iterator iter = 
    359361                action_view_highlight_languages.begin(); 
     
    361363            ++ iter) 
    362364        { 
     365                // We cannot use iter->first for the action name, since this 
     366                // is a localized string. 
    363367                Glib::ustring section_action_name = 
    364                         "ViewHighlightModeSection_" + iter->first; 
     368                        Glib::ustring::compose("ViewHighlightModeSection_%1", 
     369                                language_menu_counter); 
     370                ++language_menu_counter; 
     371 
    365372                Glib::ustring section_action_xml = 
    366373                        Glib::Markup::escape_text(section_action_name);