Hi,

On the way to a perfectly translated JabRef, I worked on syncLang.py
last month to let it recognize more keys.
As it prints out possible obsolete keys, I think, these keys can be removed.

The task now is to check whether these keys are really obsolete or if
syncLang.py is wrong.

Could anyone take care of this?
I've got no time left for that and I would be really happy if someone
could care.

Here a few examples:


Key not found in Java:

Output:
Possible obsolete key: Assign_new_file

JabRef-Source:
No hits when searching for "Assign new file"
(Note that all "_" (underscores) have been replaces by " " (spaces))

Solution:
Remove key "Assign_new_file" from JabRef_en.properties


Linebreak at Globals.lang call:

Output:
Possible obsolete key: Enter_URL

JabRef-Source:
ImportInspectionDialog.java:
            String result =
JOptionPane.showInputDialog(ImportInspectionDialog.this, Globals
                .lang("Enter URL"), entry.getField("url"));

Solution:
Remove newline between "Globals" and ".lang":
            String result =
JOptionPane.showInputDialog(ImportInspectionDialog.this,
                Globals.lang("Enter URL"), entry.getField("url"));


Complex Globals.lang parameters:

Output:
Possible obsolete key: delete_entry

JabRef-Source:
BasePanel.java:
(Globals.lang(bes.length > 1 ? "delete entries" : "delete entry"))

Solution
Move "?" to outside:
(bes.length > 1 ? Globals.lang("delete entries") : Globals.lang("delete entry"))


String contained in comment

Output:
Possible obsolete key: Could_not_determine_version_of_

JabRef-Source:
PluginInstaller.java
            //case UNKNOWN_VERSION:
            //    JOptionPane.showMessageDialog(frame,
Globals.lang("Could not determine version of "));
            //    break;
            case UNKNOWN_VERSION:

Solution:
Delete the disabled code and remove the key from JabRef_en.properties


Special case:

Output:
Possible obsolete key: A_string_with_this_label_already_exists

JabRef-Source:
BibtexDatabase.java: throw new KeyCollisionException("A string with
this label already exists,");

Solution:
Adapt Java code
throw new KeyCollisionException(Globals.lang("A string with this label
already exists"));
Note that the final "," has been removed from the string.


Thank you in advance and greetings,

Oliver

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Jabref-devel mailing list
Jabref-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jabref-devel

Reply via email to