[Kicad-developers] [PATCH] renamed eeschema right click menu "copy" into "duplicate" and some more

2017-06-20 Thread Fabrizio Tappero
Hello,
following up on the recent proposal to rename the eeschema "copy"
command into "duplicate" and its shortcut I am sending this patch.

Specifically this patch does the following:

1) rename eeschema right click menu item "Copy" into "Duplicate"
2) rename eeschema right click menu item "Save block" into "Copy block"
3) change "Duplicate" shortcut from "C" to "Ctrl-D"
4) change eeschema right click menu item "Duplicate" icon from a copy
icon into a duplicate
5) deletes right vertical toolbar "ascend/descend hierarchy" icon and
its unnecessary code. Please make sure I deleted all of it.
6) replace few redundant icons in the eeschema right click menu into
more global icon (now global move icon)
7) replace the "mirror_footprint_axisX.svg" for a more standard
"mirror" global icon.
8) replaced eeschema right click menu "delete_text" icon with more
global "delete" icon


Cheers
Fabrizio
From 20101438915447ca543a7e7eadedfb3d91e25227 Mon Sep 17 00:00:00 2001
From: Fabrizio Tappero 
Date: Tue, 20 Jun 2017 09:41:32 +0200
Subject: [PATCH 1/2] deleted hierarchy_cursor icon and its code

---
 bitmaps_png/CMakeLists.txt   |   1 -
 bitmaps_png/cpp_26/hierarchy_cursor.cpp  |  60 -
 bitmaps_png/sources/hierarchy_cursor.svg | 143 ---
 eeschema/eeschema_id.h   |   1 -
 eeschema/onleftclick.cpp |  18 
 eeschema/schedit.cpp |   4 -
 eeschema/tool_sch.cpp|   4 -
 include/bitmaps.h|   1 -
 8 files changed, 232 deletions(-)
 delete mode 100644 bitmaps_png/cpp_26/hierarchy_cursor.cpp
 delete mode 100644 bitmaps_png/sources/hierarchy_cursor.svg

diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt
index 8584eaa..62b81ed 100644
--- a/bitmaps_png/CMakeLists.txt
+++ b/bitmaps_png/CMakeLists.txt
@@ -269,7 +269,6 @@ set( BMAPS_MID
 hammer
 help
 hidden_pin
-hierarchy_cursor
 hierarchy_nav
 hotkeys
 hotkeys_import
diff --git a/bitmaps_png/cpp_26/hierarchy_cursor.cpp b/bitmaps_png/cpp_26/hierarchy_cursor.cpp
deleted file mode 100644
index 5a5d6fb..000
--- a/bitmaps_png/cpp_26/hierarchy_cursor.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-
-/* Do not modify this file, it was automatically generated by the
- * PNG2cpp CMake script, using a *.png file as input.
- */
-
-#include 
-
-static const unsigned char png[] = {
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x1a, 0x08, 0x06, 0x00, 0x00, 0x00, 0xa9, 0x4a, 0x4c,
- 0xce, 0x00, 0x00, 0x02, 0xb5, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xb5, 0x96, 0xcb, 0x6b, 0x1a,
- 0x51, 0x14, 0xc6, 0x5d, 0xd8, 0xd0, 0x55, 0x4b, 0xb6, 0xa1, 0xab, 0x50, 0x28, 0x59, 0x76, 0xd3,
- 0x07, 0x64, 0xa1, 0xd6, 0xb7, 0x42, 0x33, 0x3a, 0x6a, 0x4c, 0x82, 0x69, 0x12, 0x75, 0xa8, 0x90,
- 0x92, 0x94, 0xa4, 0x10, 0xdf, 0x4a, 0xd1, 0x4d, 0x63, 0x1f, 0xa4, 0x50, 0xff, 0x86, 0xd8, 0x5d,
- 0xba, 0x88, 0x5d, 0xa6, 0x0b, 0x37, 0xe9, 0x2a, 0xb1, 0x6d, 0x48, 0x45, 0x41, 0xd0, 0xfa, 0x56,
- 0x4a, 0x2d, 0x16, 0x7b, 0x7a, 0xef, 0xc0, 0x88, 0x5a, 0xc7, 0xb7, 0x17, 0x3e, 0x66, 0xe6, 0x72,
- 0x39, 0x3f, 0xce, 0xbd, 0xe7, 0xbb, 0x67, 0x38, 0x1c, 0x34, 0xdc, 0x6e, 0x37, 0x17, 0x69, 0x76,
- 0x42, 0xe2, 0x62, 0x06, 0x27, 0x18, 0x0c, 0x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x1f, 0x31, 0x43, 0x24, 0x12,
- 0xcd, 0x88, 0xc5, 0x62, 0xc0, 0x4f, 0xfc, 0x2d, 0x90, 0x08, 0xee, 0xd8, 0x1d, 0xb6, 0x6c, 0x7b,
- 0xc9, 0x9e, 0x9d, 0x9f, 0x81, 0x46, 0x47, 0x16, 0x65, 0x4a, 0xd9, 0x32, 0x67, 0x98, 0xd1, 0x0e,
- 0x12, 0x8b, 0xf9, 0x77, 0x11, 0x28, 0xd7, 0xc9, 0x1f, 0xc9, 0x64, 0x12, 0x4c, 0x94, 0xa9, 0xac,
- 0x22, 0x55, 0xef, 0xfa, 0xbe, 0x19, 0xd8, 0x40, 0x52, 0xa9, 0x74, 0xde, 0xe1, 0x72, 0xd4, 0xd9,
- 0xcc, 0x98, 0xcf, 0xe7, 0xc1, 0xe1, 0xb4, 0xc3, 0xfa, 0xc6, 0x3a, 0x78, 0x3c, 0x9e, 0xde, 0x37,
- 

Re: [Kicad-developers] how to know that which string item have been removed in po file

2017-06-20 Thread jp charras
Le 20/06/2017 à 08:08, Marco Ciampa a écrit :
> On Tue, Jun 20, 2017 at 10:08:42AM +0800, liyoubdu wrote:
>> i am doing some translation. i notice that some strings in kicad.po are
>> redundant since they have been removed from cpp code files. as a result,
>> the po file is bigger and bigger. why not reduce the file, and i want to
>> do that. but questions is in my mind. how can i know that which string
>> items have  been removed. is there some good measure to reduce po file
>> automatically.
> 
> Dear liyoubdu,
> the translation strings update & removal is handled automatically by the
> gettext suite commands. These commands are launched by poedit or by the
> source supplied script update-po-files.sh (for Linux).
> I can update your strings for you if you need so.
> Just tell me if you need it and I will update stable/master strings for you.
> 
> Regards,
> 
> --
> 
> 
> Marco Ciampa

Poedit has also a command (in the Catalog sub-menu) to remove unused strings.
(Try: Catalog / Purge deleted translations).

By Default, Poedit keeps deleted translations to be able to reuse them.

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp