From a41477a3bf833b5e7eb4036cdbc7ff0d31f3715e Mon Sep 17 00:00:00 2001 From: Igor Steinmacher Date: Wed, 23 Oct 2013 12:13:12 -0700 Subject: [PATCH 01/15] Adding private fields to SQL scripts in order to export/import owner, timestamp, etc. --- src/java/net/sf/jabref/BibtexFields.java | 13 +++++++++++++ src/java/net/sf/jabref/sql/SQLUtil.java | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/java/net/sf/jabref/BibtexFields.java b/src/java/net/sf/jabref/BibtexFields.java index cc128b9ba7c..20a9845162f 100644 --- a/src/java/net/sf/jabref/BibtexFields.java +++ b/src/java/net/sf/jabref/BibtexFields.java @@ -434,6 +434,19 @@ public static String[] getAllFieldNames() { return runtime.PUBLIC_FIELDS ; } + + /** returns an string-array with only private fieldnames */ + public static String[] getAllPrivateFieldNames(){ + Vector pFields = new Vector() ; + for (BibtexSingleField sField : runtime.fieldSet.values()){ + if (sField.isPrivate()) { + pFields.add( sField.getFieldName() ); + } + } + return pFields.toArray(new String[pFields.size()]); + + } + /** returns the fieldname of the entry at index t */ public static String getFieldName( int t ) diff --git a/src/java/net/sf/jabref/sql/SQLUtil.java b/src/java/net/sf/jabref/sql/SQLUtil.java index 7bb146fd81b..1d0bfa34ea1 100644 --- a/src/java/net/sf/jabref/sql/SQLUtil.java +++ b/src/java/net/sf/jabref/sql/SQLUtil.java @@ -62,6 +62,7 @@ public static void refreshFields() { allFields.clear(); } uniqueInsert(allFields, BibtexFields.getAllFieldNames()); + uniqueInsert(allFields, BibtexFields.getAllPrivateFieldNames()); } /** @@ -108,12 +109,12 @@ private static ArrayList uniqueInsert(ArrayList list, if (array != null) { for (int i = 0; i < array.length; i++) { if (!list.contains(array[i])) + if (array[i] != "#") list.add(array[i]); } } return list; } - /** * Generates DML specifying table columns and their datatypes. The output of * this routine should be used within a CREATE TABLE statement. From 20d08479a8aacac1b672a45aed1db09f0e015f96 Mon Sep 17 00:00:00 2001 From: Igor Steinmacher Date: Wed, 23 Oct 2013 16:37:02 -0700 Subject: [PATCH 02/15] New entries translated to pt-BR --- src/resource/JabRef_pt_BR.properties | 172 +++++++++++++-------------- src/resource/Menu_pt_BR.properties | 14 +-- 2 files changed, 93 insertions(+), 93 deletions(-) diff --git a/src/resource/JabRef_pt_BR.properties b/src/resource/JabRef_pt_BR.properties index 14035c39fc8..efcd5837172 100644 --- a/src/resource/JabRef_pt_BR.properties +++ b/src/resource/JabRef_pt_BR.properties @@ -1,5 +1,5 @@ #! -#! created/edited by Popeye version 0.54 (popeye.sourceforge.net) +#! created/edited by Popeye version 0.55 (https://github.com/koppor/popeye) #! encoding:ISO-8859-1 %0_contains_the_Regular_Expression_%1=%0_cont\u00e9m_a_Express\u00e3o_Regular_%1 %0_contains_the_term_%1=%0_cont\u00e9m_o_termo_%1 @@ -16,6 +16,7 @@ =