Dear users,
On the way to a perfectly translated JabRef, I worked on syncLang.py.
It prints out possible obsolete keys.
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Jabref-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jabref-users