Skip to content

Commit

Permalink
Rename “Update” to “Update from Code”
Browse files Browse the repository at this point in the history
Rename the confusing toolbar button to mention (source) code. Since the
menu item with the terminology too. Hopefully this will reduce
misunderstandings of the button’s purpose.
  • Loading branch information
vslavik committed Jul 9, 2018
1 parent e1f1495 commit 770551f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/resources/menus.xrc
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@
<label>C_atalog</label>
<style>wxMENU_TEAROFF</style>
<object class="wxMenuItem" name="menu_update_from_src">
<label platform="win">_Update from sources</label>
<label platform="unix|mac">_Update from Sources</label>
<label platform="win">_Update from source code</label>
<label platform="unix|mac">_Update from Source Code</label>
</object>
<object class="wxMenuItem" name="menu_update_from_pot">
<label platform="win">Update from _POT file…</label>
Expand Down
7 changes: 4 additions & 3 deletions src/resources/toolbar.xrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<label>Save</label>
<tooltip>Save catalog</tooltip>
</object>
<object class="separator" platform="unix"/>
<object class="separator" platform="win"/>

<object class="separator" platform="unix|win"/>

<object class="tool" name="menu_validate">
<bitmap stock_id="poedit-validate"/>
Expand All @@ -42,7 +42,8 @@
<object class="tool" name="toolbar_update">
<bitmap stock_id="poedit-update"/>
<bitmap2 platform="win" stock_id="poedit-update@disabled"/>
<label>Update</label>
<label platform="win">Update from code</label>
<label platform="mac|unix">Update from Code</label>
<tooltip>Update catalog - synchronize it with sources</tooltip>
</object>

Expand Down
2 changes: 1 addition & 1 deletion src/wx/main_toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class WXMainToolbar : public MainToolbar
}
else
{
tool->SetLabel(_("Update"));
tool->SetLabel(MSW_OR_OTHER(_("Update from code"), _("Update from Code")));
tool->SetShortHelp(_("Update catalog - synchronize it with sources"));
m_tb->SetToolNormalBitmap(m_idUpdate, wxArtProvider::GetBitmap("poedit-update", wxART_TOOLBAR));
#ifdef __WXMSW__
Expand Down

0 comments on commit 770551f

Please sign in to comment.