diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-11-22 23:47:26 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-11-22 23:47:38 +0100 |
commit | 6745c24fdad942f61c225632688bce78da0a547e (patch) | |
tree | f9c17d9f74aa80e21f3eec97a138ddec534d6b8b /cui | |
parent | 4bec07b086be55fc473ab5f341deb451421aad74 (diff) |
fdo#86550 make some strings localizable
Change-Id: Ie3b47e30b22b4bbae86f575ca1c9f3639afd3afd
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/cuires.hrc | 5 | ||||
-rw-r--r-- | cui/source/options/personalization.cxx | 9 | ||||
-rw-r--r-- | cui/source/options/personalization.src | 20 | ||||
-rw-r--r-- | cui/uiconfig/ui/specialcharacters.ui | 2 |
4 files changed, 30 insertions, 6 deletions
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc index c85b2948a232..d25afbb47d6b 100644 --- a/cui/source/inc/cuires.hrc +++ b/cui/source/inc/cuires.hrc @@ -431,6 +431,11 @@ #define RID_SVXSTR_CONFIRM_RESTORE_DEFAULT (RID_SVX_START + 1284) #define RID_SVXSTR_CONFIRM_SET_LANGUAGE (RID_SVX_START + 1285) +#define RID_SVXSTR_PERSONA_ABSTRACT (RID_SVX_START + 1286) +#define RID_SVXSTR_PERSONA_COLOR (RID_SVX_START + 1287) +#define RID_SVXSTR_PERSONA_MUSIC (RID_SVX_START + 1288) +#define RID_SVXSTR_PERSONA_NATURE (RID_SVX_START + 1289) + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 5399dab23768..ff99b0f8a9d4 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -50,19 +50,19 @@ SelectPersonaDialog::SelectPersonaDialog( vcl::Window *pParent ) m_vSearchSuggestions[0]->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) ); get( m_vSearchSuggestions[1], "suggestion2" ); - m_vSearchSuggestions[1]->SetText( "Abstract" ); + m_vSearchSuggestions[1]->SetText( CUI_RES ( RID_SVXSTR_PERSONA_ABSTRACT ) ); m_vSearchSuggestions[1]->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) ); get( m_vSearchSuggestions[2], "suggestion3" ); - m_vSearchSuggestions[2]->SetText( "Color" ); + m_vSearchSuggestions[2]->SetText( CUI_RES ( RID_SVXSTR_PERSONA_COLOR ) ); m_vSearchSuggestions[2]->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) ); get( m_vSearchSuggestions[3], "suggestion4" ); - m_vSearchSuggestions[3]->SetText( "Music" ); + m_vSearchSuggestions[3]->SetText( CUI_RES( RID_SVXSTR_PERSONA_MUSIC ) ); m_vSearchSuggestions[3]->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) ); get( m_vSearchSuggestions[4], "suggestion5" ); - m_vSearchSuggestions[4]->SetText( "Nature" ); + m_vSearchSuggestions[4]->SetText( CUI_RES( RID_SVXSTR_PERSONA_NATURE ) ); m_vSearchSuggestions[4]->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) ); get( m_pEdit, "search_term" ); @@ -75,7 +75,6 @@ SelectPersonaDialog::SelectPersonaDialog( vcl::Window *pParent ) get( m_pCancelButton, "cancel" ); m_pCancelButton->SetClickHdl( LINK( this, SelectPersonaDialog, ActionCancel ) ); - get( m_vResultList[0], "result1" ); get( m_vResultList[1], "result2" ); get( m_vResultList[2], "result3" ); diff --git a/cui/source/options/personalization.src b/cui/source/options/personalization.src index aeaa9e19fc66..eba74b836d24 100644 --- a/cui/source/options/personalization.src +++ b/cui/source/options/personalization.src @@ -49,4 +49,24 @@ String RID_SVXSTR_APPLYPERSONA Text [ en-US ] = "Applying Theme..."; }; +String RID_SVXSTR_PERSONA_ABSTRACT +{ + Text [ en-US ] = "Abstract"; +}; + +String RID_SVXSTR_PERSONA_COLOR +{ + Text [ en-US ] = "Color"; +}; + +String RID_SVXSTR_PERSONA_MUSIC +{ + Text [ en-US ] = "Music"; +}; + +String RID_SVXSTR_PERSONA_NATURE +{ + Text [ en-US ] = "Nature"; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/uiconfig/ui/specialcharacters.ui b/cui/uiconfig/ui/specialcharacters.ui index 5b3824e029e9..ae3bbfc54777 100644 --- a/cui/uiconfig/ui/specialcharacters.ui +++ b/cui/uiconfig/ui/specialcharacters.ui @@ -19,7 +19,7 @@ <property name="layout_style">end</property> <child> <object class="GtkButton" id="ok"> - <property name="label">_Insert</property> + <property name="label" translatable="yes">_Insert</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="has_default">True</property> |